Hello, I was trying to make a creaturescript that looks like this:
When you are killed by X monster,
* this monster is removed
* stopEvent(xxx)
* setGlobalStorageValue(3275,0)
but I isnt working :X
Anyone have an idea??
When you are killed by X monster,
* this monster is removed
* stopEvent(xxx)
* setGlobalStorageValue(3275,0)
but I isnt working :X
Anyone have an idea??
LUA:
function onPrepareDeath(cid, lastHitKiller, mostDamageKiller)
if lastHitKiller == "Mooh'Tha Master" then
setGlobalStorageValue(3275,0)
doRemoveCreature(lastHitKiller.uid)
doCreatureSay(cid, "ASDASDASDAS.", TALKTYPE_ORANGE_1, false, 0, getPlayerPosition(cid))
end
return true
end