pugamoline
uint32_t patch_mem(char *
- Joined
- Nov 15, 2011
- Messages
- 189
- Reaction score
- 19
hi this scripts is "zombie event"
zombie atack to player and player lose hp ok. and same time player have 0 hp and not die
help please
rep++
zombie atack to player and player lose hp ok. and same time player have 0 hp and not die
Lua:
<event type='statschange' name='zombieEventStatsChange' event='script'><![CDATA[
domodlib('zombieEvent_conf')
function onStatsChange(target, cid, changetype, combat, value)
if isMonster(cid) and isPlayer(target) and ZOMBIE[getCreatureName(cid):lower()] and changetype == STATSCHANGE_HEALTHLOSS and math.abs(value) >= getCreatureHealth(target) then
doCreatureAddHealth(target, getCreatureMaxHealth(target) - getCreatureHealth(target))
doCreatureAddMana(target, getCreatureMaxMana(target) - getCreatureMana(target))
return loseOnZombieArena(target) and false
end
return true
end
]]></event>
help please
rep++