• 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!

Need help adding to a storage value after each kill~

Joined
Jun 22, 2010
Messages
268
Solutions
1
Reaction score
5
Location
Usa, Utah
im using 0.4,
after i take all of a monsters hp he doesn't die just stands there with no health bar, also i need the +1 to be +dano or the variable tried many diffrent things couldn't get it to work.

could someone help me with this?


Lua:
function onKill(cid, target, damage, flags)
if isMonster(target) then	
dano = damage
doPlayerSay(cid, ""..dano.."", TALKTYPE_SAY)
doCreatureSetStorage(cid, 123, math.max(0, getCreatureStorage(cid, 123)) + 1)
end	
return true
end
 

Similar threads

Back
Top Bottom