Posco Malatesta
New Member
- Joined
- Jul 18, 2010
- Messages
- 12
- Reaction score
- 2
Hello World!
I've been working on a simple script (that doesn't seem so simple now ¬¬) its supposed to work like this:
player use an item on another and this creates a new item on cid position, this item should have the itemEx description, only that it doesn't and I don't know what am I doing wrong.
Here's my code:
I've been working on a simple script (that doesn't seem so simple now ¬¬) its supposed to work like this:
player use an item on another and this creates a new item on cid position, this item should have the itemEx description, only that it doesn't and I don't know what am I doing wrong.
Here's my code:
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if itemEx.itemid == 389 then
sec = doCreateItem(5943, getCreaturePosition(cid))
[B] desc = getItemDescriptions(itemEx.uid)[/B]
doSetItemSpecialDescription(sec, desc)
return TRUE
elseif itemEx.itemid == 2782 then
doTransformItem(itemEx.uid, 2781)
doDecayItem(itemEx.uid)
return TRUE
end
return destroyItem(cid, itemEx, toPosition)
end