• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

CreatureScript Help plz

CrumDubh

New Member
Joined
Feb 10, 2009
Messages
41
Reaction score
0
I need to add health on a "prepareDeath" but it seems that on 0.3.6pl1, it's bugged or something..

Could some1 tell me how to add the health on any way (could b source editing or someway in lua)


Thanks
CrumDubh
 
Code:
function onPrepareDeath(cid, lastHitKiller, mostDamageKiller) 
    if(isPlayer(cid))and(getPlayerLevel(cid) <= 45)then 
            doCreatureAddHealth(cid, (getCreatureMaxHealth(cid) - getCreatureHealth(cid)))
            doCreatureAddMana(cid, (getCreatureMaxMana(cid) - getCreatureMana(cid))) 
            doSendMagicEffect(getCreaturePosition(cid), 37)    
              end
                 return true
                end

?? test it and tell me if it works
 
nope (doCreatureAddHealth() doesn't heal with in 0.3.6pl1 in prepareDeath)

Also u should have return FALSE but btw..
 
Last edited:
Back
Top