Page 1 of 1

Scripting Tutorial

Posted: Fri Jun 12, 2009 9:02 am
by Pachacuti
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?

Re: Scripting Tutorial

Posted: Fri Jun 12, 2009 9:22 am
by *Edwards

Re: Scripting Tutorial

Posted: Fri Jun 12, 2009 5:06 pm
by JaceAce
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

Posted: Sat Jun 13, 2009 6:26 am
by Pachacuti
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...

Re: Scripting Tutorial

Posted: Sun Jun 14, 2009 4:45 pm
by Pachacuti
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?

Re: Scripting Tutorial

Posted: Mon Jun 15, 2009 12:33 pm
by JaceAce
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


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

Posted: Mon Jun 15, 2009 5:00 pm
by Pachacuti
hmm nice tip jace... Im reading them... really helpful! :)


Re: Scripting Tutorial

Posted: Mon Jun 15, 2009 6:02 pm
by JaceAce
Can you ask for anything more lol ?

Re: Scripting Tutorial

Posted: Wed Jun 17, 2009 7:39 am
by JaceAce
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?

Re: Scripting Tutorial

Posted: Thu Jun 18, 2009 2:02 am
by CWO
What client are you using? The old 3D clients used to do something to this extent.

Re: Scripting Tutorial

Posted: Thu Jun 18, 2009 3:51 am
by JaceAce
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

Posted: Fri Jun 19, 2009 3:34 am
by Gurth
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.

Re: Scripting Tutorial

Posted: Sun Jul 05, 2009 11:07 am
by Pachacuti
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

Re: Scripting Tutorial

Posted: Sun Jul 05, 2009 3:32 pm
by MuadDib
the UO Client has nothing for this type of support that you are looking for

Re: Scripting Tutorial

Posted: Sun Jul 05, 2009 6:46 pm
by Pachacuti
so you mean it cant be done O_o ?

allright thanks :)

Re: Scripting Tutorial

Posted: Thu Jan 26, 2023 10:43 am
by B4st4rd
there is some new guide for scripting?

Re: Scripting Tutorial

Posted: Sat Jan 28, 2023 3:29 am
by DevGIB