RazorBlade
Retired Snek
Hey everyone, I decided to make the obsidian knife work for the lord of the elements so that you always get neutral matter, just like in real Tibia. Although it can only be skinned once because I set it up so that once skinned, it changes from 9009 to 9010 which can not be skinned. I also didn't use storage values because if the lord of the elements is going to be used, chances are he's going to be part of a quest you can only do once or in an area you can't access after killing him. If someone wants me to add storage values so multiple people can skin it rather than it changing to 9010, I'll add it as well. I hope it helps someone because I needed it, and I assume at least one other person might need it too. Here's what I have:
Thanks in advance :thumbup:
Code:
local corpse = {9009}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if isInArray(corpse, itemEx.itemid) == TRUE then
doPlayerAddItem(cid, 8310, 1)
doTransformItem(itemEx.uid, itemEx.itemid + 1)
doDecayItem(itemEx.uid)
doSendMagicEffect(toPosition, CONST_ME_BLOCKHIT)
else
doPlayerSendCancel(cid, "You can not use this object.")
end
return TRUE
end
return FALSE
Thanks in advance :thumbup:
Last edited: