I can't think of a way to do exactly that, but you could always make an NPC that they can speak with to toggle their PVP flag. If you really needed to, I am sure you could make a clicky item that summons an NPC (pet) that could be set to have a quest to toggle PVP flags in the default.pl or something.
Other than that, you could probably try running a client check and do some distance checks and other checks that could be used to set a PVP flag. Though, this type of script could be quite a hog and a pain to get setup in the first place. To check for clients in a zone, you can check out the custom Thanksgiving event I submitted into the custom quests section. I am sure you could probably do what you are wanting with that, but be warned, it would be rough on your server and probably hard to get working flawlessly.
At some point, I would like to add a new quest sub EVENT type for doing a client check in an entire zone. Then, it would allow you to run any checks against all clients in the zone at any given time. It would be triggered from other sub EVENTs similar to a timer. It would probably be quite a while before I could have time to implement this, but I do think it would be extremely useful. On Storm Haven, we already use my client check script for multiple events. It would just be nice to have a simpler and cleaner way of doing it so it didn't have to check all entities and just the clients in the zone. That would be alot easier on the server and alot easier to manage and write events for.
Last edited by trevius; 03-03-2009 at 06:47 AM..
|