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
any kind of help will be greatly apprecied eg. event tell'in me what file to change.