Help with writing a script please

Open discussion forum. For topics that do not fit anywhere else.
Post Reply
Havok
New User
Posts: 4
Joined: Wed Jul 04, 2007 6:38 pm

Help with writing a script please

Post 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:
Havok
New User
Posts: 4
Joined: Wed Jul 04, 2007 6:38 pm

Post 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:
runtest
Grandmaster Poster
Posts: 194
Joined: Sat Aug 05, 2006 11:43 am

Post 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:
Havok
New User
Posts: 4
Joined: Wed Jul 04, 2007 6:38 pm

Post 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:
Havok
New User
Posts: 4
Joined: Wed Jul 04, 2007 6:38 pm

Post 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:
Pierce
Forum Regular
Posts: 420
Joined: Thu Feb 02, 2006 8:33 am

Post 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
runtest
Grandmaster Poster
Posts: 194
Joined: Sat Aug 05, 2006 11:43 am

Post 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
Post Reply