Page 1 of 1

Help with writing a script please

Posted: Wed Jul 04, 2007 6:42 pm
by Havok
Hello, I'm completely new to scripting and want to start with something that I believe will benifit the shard where I currently play. it is a POL 095 server. I would like to write a script to make Chaos Guards attack blue named characters. could anyone help me with this? I atleast need to know where to start. any pointers or help will be appreciated thanks. :smile:

Posted: Wed Jul 04, 2007 7:02 pm
by Havok
I downloaded the "Pol095-scripts.zip", is this where I modify the scripts? Hmm...if you would like to help me with scripting add me to msn or just post here. thanks :grin:

Posted: Wed Jul 04, 2007 7:02 pm
by runtest
There are a couple tuts that I wrote in the Guide section along with some other really helpful stuff.
You need to get a server running locally that you can fully log into.
Then get a feel for pol in general as an admin it is a HUGE switch if you are use to runuo.
Next gimme a yell at runtest.druid@hotmail.com MSN. Once you have done all the steps above so.

1. Download pol 95 distro.
2. Log in locally all the way, that means walking around with admin char.
3. Get a feel for the commands and directories.
4. Take a look at the docs folder and then at the tutorials.
5. Give me a yell and I will help you start out. Also there are alot of people here that will help you alot. Believe me I know.
:grin: Happy POLing :grin:

Posted: Wed Jul 04, 2007 7:03 pm
by Havok
I downloaded the "Pol095-scripts.zip", is this where I modify the scripts? Hmm...if you would like to help me with scripting add me to msn or just post here. thanks :grin:

Posted: Wed Jul 04, 2007 7:44 pm
by Havok
Ok you've been added to my MSN, thank you for the help, I look forward to talking to you in the near future. :grin:

Posted: Thu Jul 05, 2007 3:43 am
by Pierce
If you want to make a chaos guard you could simply take a look into the townguard ai script. Instead of lines like

Code: Select all

if (npc.criminal)
you change that to:

Code: Select all

if (!npc.criminal)
A little work here and there and you have a chaos guard which attacks only people who are not criminal :D

Posted: Thu Jul 05, 2007 2:44 pm
by runtest
Now that I think of it. I will have to make an opposite world shard where it hard to become criminal and red and the only way to survive is to be criminal. LOL