hello
i need a script to when you kill a monster execute this
I tried it
the error :
pls help me
i need a script to when you kill a monster execute this
doPlayerSetStorageValue(cid, 65000, getPlayerStorageValue(cid, 65000) + 1)
I tried it
function onDeath(cid, lastHitKiller, mostDamageKiller)
doPlayerSetStorageValue(mostDamageKiller, 65001, getPlayerStorageValue(cid, 65001) + 1)
end
return TRUE
did not work<event type="death" name="troll" event="script" value="troll.lua"/>
the error :
[Error - CreatureScript Interface]
data/creaturescripts/scripts/troll.luanDeath
Description:
(luaDoCreatureSetStorage) Creature not found
pls help me