function onDeath(cid, corpse, deathList)
item = doAddContainerItem(corpse, 2180, 1)
doItemSetAttribute(item, "description", "Hello")
return true
end
it has to be registered in rotworm.xmlI've tried both corpse and corpse.uid, is there something wrong with this code??
( killing rotworms, no reward )
Code:function onDeath(cid, corpse, deathList) item = doAddContainerItem(corpse, 2180, 1) doItemSetAttribute(item, "description", "Hello") return true end