Page 1 of 1

Safe zone with no combat skill gain

Posted: Tue Jul 29, 2008 8:21 am
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.

Area control

Posted: Tue Jul 29, 2008 11:05 am
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