Scripting Tutorial
Moderator: POL Developer
Scripting Tutorial
hello everybody...
I'm new at POL and I dont know nothing about scripting at eScript. I just wanted someone to tell me any good guide or tutorial for eScript, the basics would be very nice. I tryed searching some tutorial in this forum but found nothing.
Can someone help me with this?
Thanks Y'all
EDIT: I've found Racalac's guide. Any other?
I'm new at POL and I dont know nothing about scripting at eScript. I just wanted someone to tell me any good guide or tutorial for eScript, the basics would be very nice. I tryed searching some tutorial in this forum but found nothing.
Can someone help me with this?
Thanks Y'all
EDIT: I've found Racalac's guide. Any other?
Re: Scripting Tutorial
Also, you can pick up almost any programming book. And study it. Scripting, programming, are all about the same except for the "language". Alot of the core concepts are the same across the realm of scripting languages and programming languages. I suggest anyone who wants to learn how to "script" or program to learn "java". Not java script, but java. Its an "oop" language that was free last time I looked. So find a beginner's guide to "java" programming. This will build some of your "basic" concepts. Then when you start to script with pol, it will make more sense.
Re: Scripting Tutorial
ahh.. ok... I have a few knowledge about scripting. I've learnt a language similar to C some years ago. Maybe it'll be useful. I just wanted to know how the POL works. What file do what. Whats the function of everything inside the distro, undestand? I'll follou your advices. Read the Racalac's Guide, study java a little and try to understand other people scripts, like I've read in other topics.
Thanks guys... see ya...
Thanks guys... see ya...
Re: Scripting Tutorial
so... I was exploring a little, and I found this folder... "pkg"... as I see, this apparently is one of the most important folders. In there, I found where the monsters and animals are stored, the "mobiles" folder inside "pkg"... inside it I found "BrainAI", where the "scripts" really are. I tried to find monsters such as "deamon" or "dragon" inside "config/npcdesc" but I could not find them! I've found horses, skeletons, ettins, etc, but no deamon or dragons. >_<
I am too dumb to find them, or they're in a different place?
I am too dumb to find them, or they're in a different place?
Re: Scripting Tutorial
a pkg directory = where you put individual "packages" for your game server.
config/npcdesc.cfg = describes npc's
Learn to use Pol's wonderful doc's (pol is documented real well).
For example if you wanted to learn about the file npcdesc.cfg
From this web site click on
Docs
Select Documentation Versions 098
Scroll down to -> Configuration Files
click on it.
On left side search for -> npcdesc.cfg
click on it.
Read the description of the file.
Now you know about npcdesc.cfg.
I would suggest you spend some time in the Pol 098 Documentation Reading everything available....
Might help
config/npcdesc.cfg = describes npc's
Learn to use Pol's wonderful doc's (pol is documented real well).
For example if you wanted to learn about the file npcdesc.cfg
From this web site click on
Docs
Select Documentation Versions 098
Scroll down to -> Configuration Files
click on it.
On left side search for -> npcdesc.cfg
click on it.
Read the description of the file.
Now you know about npcdesc.cfg.
I would suggest you spend some time in the Pol 098 Documentation Reading everything available....
Might help
Re: Scripting Tutorial
hmm nice tip jace... Im reading them... really helpful!
thanks
thanks
Re: Scripting Tutorial
Can you ask for anything more lol ?
Re: Scripting Tutorial
I'm gonna write this here. And yes, im still reading the docs lol.
Anyway. I have a "raw" server. I use the function: SetAttributeBaseValue
It appears that the skill is set if I use GetAttributeBaseValue it returns the value set
But in the "skills" gump when i click on it, it shows 0.0 for all skills.
I also checked the lock status. All appears normal.
Why does the "skills" gump show 0.0? Do I have to "hook" to it and create my own skills gump?
Anyway. I have a "raw" server. I use the function: SetAttributeBaseValue
It appears that the skill is set if I use GetAttributeBaseValue it returns the value set
But in the "skills" gump when i click on it, it shows 0.0 for all skills.
I also checked the lock status. All appears normal.
Why does the "skills" gump show 0.0? Do I have to "hook" to it and create my own skills gump?
Re: Scripting Tutorial
What client are you using? The old 3D clients used to do something to this extent.
Re: Scripting Tutorial
I have Mondain's Legacy Fully Updated. The only distro packages I have are the gump and world save. So I installed the main Pol server files, added the Distro gump and world save packages. Created a new attributes.cfg file. When I log in a character. It goes into the game. I freeze him. I created a new gump with the skills that were picked from the character set up. (They add to 100). I then have it update his skills with the commands above. Then unfreeze him. Only problem is that his skills gump doesnt show the skills going up. I might have to install the Distro Attributes package, if I cant figure it out ...
Re: Scripting Tutorial
Hi, im new too, but let's say that i have got some experience in programming. Where can I read about how pol works?
For example: I use skill, does pol reads cfg files to get what script to run or cfg files are loaded into memory?
Sorry for my English.
For example: I use skill, does pol reads cfg files to get what script to run or cfg files are loaded into memory?
Sorry for my English.
Re: Scripting Tutorial
just recycling the topic...
I wanted to change a little bit the command .mtele
I wanted it to teleport without targeting, just teleporting to the current cursor position.
So, I opened the mtele script and found the target function.
After this, I opened uo.em and tried to find any funtion that give me informations about the cursor, but found nothing!
Is there any funcion like this?
Or is there any other way to do this?
Thanks guys
I wanted to change a little bit the command .mtele
I wanted it to teleport without targeting, just teleporting to the current cursor position.
So, I opened the mtele script and found the target function.
After this, I opened uo.em and tried to find any funtion that give me informations about the cursor, but found nothing!
Is there any funcion like this?
Or is there any other way to do this?
Thanks guys
Re: Scripting Tutorial
the UO Client has nothing for this type of support that you are looking for
Re: Scripting Tutorial
so you mean it cant be done ?
allright thanks
allright thanks
Re: Scripting Tutorial
there is some new guide for scripting?