someone help in this script?
Item 123 change item 321 to 1234 and 1234 to 12345
is possible ?
Item 123 change item 321 to 1234 and 1234 to 12345
is possible ?
local upg = {
[X] = XX,
[XX] = XXX,
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
local player = Player(cid)
local tmp = upg[item.itemid]
if item.itemid == Z and tmp then
item:remove()
itemid:transform(tmp)
player:sendTextMessage()
end
return true
end
[X] = XX,
[XX] = XXX,
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
local player = Player(cid)
local tmp = upg[item.itemid]
if item.itemid == Z and tmp then
item:remove()
itemid:transform(tmp)
player:sendTextMessage()
end
return true
end