I guess it's the old problem, there you, without skull throw magic fields outside depot, and then run straight in..
Once a non-skulled player enter the field (within the field owner time), the one casting the fields will get PZ-lock and a skull.
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, true)
Set PZ when you use the runes.
Code:setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, true)
local combat = Combat()
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_HITBYFIRE)
combat:setParameter(COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_FIRE)
combat:setParameter(COMBAT_PARAM_CREATEITEM, ITEM_FIREFIELD_PVP_FULL)
combat:setParameter(COMBAT_PARAM_AGGRESSIVE, true)
function onCastSpell(creature, var, isHotkey)
return combat:execute(creature, var)
end
<rune name="Antidoto" id="2266" allowfaruse="1" charges="1" lvl="15" maglv="0" exhaustion="1000" aggressive="1" needtarget="1" blocktype="solid" script="healing/antidote rune.lua"/>