View Full Version : Guards to kill flagged people: How?
PyroMaker
14.02.2007, 14:34
Hi,
I've been trying to figure out how I can make a NPC AI for guards to kill flagged people on their sight, basically I wanted to make a peace zone for ACM and such areas but then I realized it would suck because people would just start gatehopping and such, which is really annoying.
So I think the best thing I could do to prevent spawnkilling and even people abusing spawn such as hitting people and as soon as they move PK them is add guards that hit flagged people.
So the question is:
How can I make a good NPC AI for guards to hit flagged people? I'm terrible with ai.obj ...
Thanks in advance,
Best regards.
you can always look at the town guards who hit chaotic ppl .. guess a small change will make it flagged.
[offtopic]
imo those guards would be annoying tho .. if you happen to be red .. running arround and happen to come across the spawnpoint you die .. might even cause ppl to chase ppl to the spawnpoint so they dont have to kill em but have the guards kill em, but then again spawnkilling is annoying aswell.
[/oftopic]
Actually making all spawn points a safe zone works
we did it for all field spawn points and maybe then a 3x3 square, and with the small size its almost impossible for someone to run into a safe zone if being attacked by a player. but in the long run it help because people can spawn and have time to finish loading the mad and then to buff them selfs before they leave the spawn point.
PyroMaker
15.02.2007, 14:15
Hmm... Seems like a good idea GMan, I'm wondering; Could you share those spawn zones / teach me how you do it or did you use any program to design the spawnzones / etc?
I've been trying to do this in areadata.txt but the area never works for some reason, I guess there are many tricks to make zones.
Thanks for the help.
Actually making all spawn points a safe zone works
we did it for all field spawn points and maybe then a 3x3 square, and with the small size its almost impossible for someone to run into a safe zone if being attacked by a player. but in the long run it help because people can spawn and have time to finish loading the mad and then to buff them selfs before they leave the spawn point.
same way we did it .. 1x1 zone tho.. this way they can go there.. but the slightest movement and they are off it..
one thing they can do tho is stand there and shittalk/scout the place
but if you see a huge pvp going on in a place you can SOE out again so thats nice again :)
you can use L2SM to create the zones easily .. just gotta enter your coords and generate an areadata .. quick and easy way to just get a small zone
example :
area_begin name=[varkaspawn] map_no={23;16} type=peace_zone range={{125808;-40782;-3764;-3444};{125810;-40782;-3764;-3444};{125810;-40780;-3764;-3444};{125808;-40780;-3764;-3444}} area_end
this is from my varkaport coords tho..so make sure you got yours :p
PyroMaker
15.02.2007, 14:35
Thanks dirkr... I had an old version of L2SM, now I'm getting the latest one with areadata feature.
Best regards,
PyroMaker.
My small share :)
https://postpacific.loc-online.com/forums/showthread.php?t=6861
PyroMaker
15.02.2007, 18:55
Appreciate it. Thanks for all the help.
Here's something that my friend DHX gave to me.
I think it will be helpful for people with this same problem:
http://img106.imageshack.us/img106/9061/nospawnpkof9.th.jpg (http://img106.imageshack.us/my.php?image=nospawnpkof9.jpg)
well thats where the L2SM thing comes in handy.. you make a new npcpos i think ..or even areadata..enter one coord ( for one npc or something ) and put the teritory at 1radius.. gives you all teh coords :)
PyroMaker
15.02.2007, 20:14
Yep. Also Fidow's share works perfectly in case you want things already done, very good:
https://postpacific.loc-online.com/forums/showthread.php?t=6861