• 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!

Equipment Upgrade Token

That Guy

New Member
Joined
Sep 13, 2008
Messages
26
Reaction score
0
Ive searched through the forums for a bit and couldnt find anything, what im looking for is basically when you use an item (lets say a paper, id 7722) on a piece of equipment (plate armor) and it will transform the plate armor into magic plate armor and remove the piece of paper from your inventory, anyone? :$
 
Lua:
function onUse(cid, item, frompos, item2, topos)
local plateid = 
local mpaid =
if doPlayerRemoveItem(cid, plateid,1) == TRUE then
doPlayerAddItem(cid, mpaid, 1)
doSendMagicEffect(getPlayerPosition(cid),12)
doRemoveItem(item.uid,1)
else
doPlayerSendCancel(cid,"You don't have plate armor.")
end
return 1
end
But I don't know is this paper is "UseWithAble" or only useable :p
Write id's of these items because I don't know them :D
 
Lua:
function onUse(cid, item, frompos, item2, topos)
local plateid = 
local mpaid =
if doPlayerRemoveItem(cid, plateid,1) == TRUE then
doPlayerAddItem(cid, mpaid, 1)
doSendMagicEffect(getPlayerPosition(cid),12)
doRemoveItem(item.uid,1)
else
doPlayerSendCancel(cid,"You don't have plate armor.")
end
return 1
end
But I don't know is this paper is "UseWithAble" or only useable :p
Write id's of these items because I don't know them :D

Is there a way to make it, so that say u have the entire plate set, using the rune id 2284, it will upgrade plate armor to magic plate armor, steel helmet to golden helmet, plate legs to golden legs, etc? the same rune, but different items upgrade to different things
 
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local needitem = 2515
local needitem2 = 2515
local cfg = {
[2463] = {2472},
[2457] = {2471}
}
local id = cfg[itemEx.itemid]
if getPlayerItemCount(cid, needitem) >= 1 and getPlayerItemCount(cid, needitem2) >= 1 then
if id then
doPlayerAddItem(cid, id[1], 1)
doRemoveItem(cid,itemEx.uid,1)
doRemoveItem(cid,item.uid,1)
else
doPlayerSendCancel(cid,"You cannot upgrade this item.")
end
else
doPlayerSendCancel(cid,"You don't have required items.")
end
return TRUE
end

Edit need items :p
 
Back
Top