FilipeJF
New Member
- Joined
- Jan 9, 2012
- Messages
- 124
- Reaction score
- 4
In my server the vocations are different races.
I want to know how to make an elf become an elf when he die, a orc become an orc when die ... and so on.
I tried this script, but it did not work:
So, here I am, with the same doubt. Someone know how to make it work or another way to do this?
I want to know how to make an elf become an elf when he die, a orc become an orc when die ... and so on.
I tried this script, but it did not work:
Code:
local array = {
[1] = 2160,
[2] = 2160,
[3] = 2160,
[4] = 2160
}
function onDeath(cid, corpse)
doTransformItem(corpse.uid, array[getPlayerVocation(cid)], 1)
doDecayItem(corpse.uid)
return true
end
So, here I am, with the same doubt. Someone know how to make it work or another way to do this?