• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Script change item

_M4G0_

Intermediate OT User
Joined
Feb 6, 2016
Messages
550
Solutions
17
Reaction score
108
someone help in this script?

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
 
Back
Top