Safe zone with no combat skill gain

Get Help on scripting in POL with configurations, config setups, script trouble shooting, etc.
Post Reply
uncletom
New User
Posts: 1
Joined: Tue Jul 29, 2008 8:16 am

Safe zone with no combat skill gain

Post by uncletom »

is it possible to do such ?

mean i wanna "declare" Minoc's mine safe (no attack pvp o mvp possible nor magic etc) - but avoid users macro combat exploiting safety mode. e.g. they'd raise any skill without need to heal themselves.

it should work like this:

(pseudo code)

Code: Select all

if AttackingPlayer OR VictimPlayer IS in AREA_RECTANGLE then

  sysmessage This is a protected area.

  AttackingPlayer.Action.Cancel // prevent skill gain
  AttackingPlayer.GO OUTSIDE_AREA / JAIL


   or: 
   if AttackingPlayer.type = PG then AttackingPlayer.kill
   if AttackingPlayer.type != PG then AttackingPlayer.remove (kill but leave no loot)

end if
and has to work wether AttackingPlayer is a pg or a mob summoned or brought by a pg and the like.


any kind of help will be greatly apprecied eg. event tell'in me what file to change.
Justae
Expert Poster
Posts: 79
Joined: Thu May 24, 2007 2:12 pm

Area control

Post by Justae »

You may want to go take a look in the Custom Script release forums, in particular, this link : http://forums.polserver.com/ftopic2178.php

Should help in what you are trying to achieve.

Regards
Justae
Post Reply