Tampek
ECHO 'Zarkonia.online';
Summon spell for heal creature only when no have fight during X minutes.
Here is script for White pale heal all hp when he go low hp, well i think it can reworked to heal monster when no have fight...
anyone know how rework?
Here is script for White pale heal all hp when he go low hp, well i think it can reworked to heal monster when no have fight...
Code:
local condition = createConditionObject(CONDITION_REGENERATION)
setConditionParam(condition, CONDITION_PARAM_SUBID, 88888)
setConditionParam(condition, CONDITION_PARAM_TICKS, 15 * 60 * 1000)
setConditionParam(condition, CONDITION_PARAM_HEALTHGAIN, 0.01)
setConditionParam(condition, CONDITION_PARAM_HEALTHTICKS, 15 * 60 * 1000)
function onPrepareDeath(cid, lastHitKiller, mostDamageKiller)
if isCreature(cid) == true and getCreatureName(cid) == "White Pale" then
if getCreatureCondition(cid, CONDITION_REGENERATION, 88888) == false then
doAddCondition(cid, condition)
doCreatureAddHealth(cid, 400)
return false
end
else
return false
end
return true
end
anyone know how rework?
Last edited: