Sir Islam
Never Give Up
i use this script Rich Set Upgrader but this clone items this item name ( Rich Set Upgrader ) use in Rich set then Upgrader to anther items like Upgrade Rich helmet
Code:
function onUse(cid, item, frompos, item2, topos)
if item.itemid == 8306 then
if getPlayerItemCount(cid,2496,1) < 200 then
doPlayerAddItem(cid,2501,1)
doPlayerRemoveItem(cid,8306,1)
doPlayerRemoveItem(cid,2496,1)
doPlayerSendTextMessage(cid,21,"Your Rich Helmet has been upgraded!")
elseif item.itemid == 8306 then
if getPlayerItemCount(cid,2505,1) < 200 then
doPlayerAddItem(cid,2503,1)
doPlayerRemoveItem(cid,8306,1)
doPlayerRemoveItem(cid,2505,1)
doPlayerSendTextMessage(cid,21,"Your Rich Armor has been upgraded!")
elseif item.itemid == 8306 then
if getPlayerItemCount(cid,2507,1) < 200 then
doPlayerAddItem(cid,2504,1)
doPlayerRemoveItem(cid,8306,1)
doPlayerRemoveItem(cid,2507,1)
doPlayerSendTextMessage(cid,21,"Your Rich Legs has been upgraded!")
elseif item.itemid == 8306 then
if getPlayerItemCount(cid,2538,1) < 200 then
doPlayerAddItem(cid,8905,1)
doPlayerRemoveItem(cid,8306,1)
doPlayerRemoveItem(cid,2538,1)
doPlayerSendTextMessage(cid,21,"Your Rich Shield has been upgraded!")
elseif item.itemid == 8306 then
if getPlayerItemCount(cid,2641,1) < 200 then
doPlayerAddItem(cid,2358,1)
doPlayerRemoveItem(cid,8306,1)
doPlayerRemoveItem(cid,2641,1)
doPlayerSendTextMessage(cid,21,"Your Rich Boots has been upgraded!")
elseif item.itemid == 8306 then
if getPlayerItemCount(cid,5907,1) < 200 then
doPlayerAddItem(cid,7438,1)
doPlayerRemoveItem(cid,8306,1)
doPlayerRemoveItem(cid,5907,1)
doPlayerSendTextMessage(cid,21,"Your Rich Slingshot has been upgraded!")
elseif item.itemid == 8306 then
if getPlayerItemCount(cid,7417,1) < 200 then
doPlayerAddItem(cid,8931,1)
doPlayerRemoveItem(cid,8306,1)
doPlayerRemoveItem(cid,7417,1)
doPlayerSendTextMessage(cid,21,"Your Rich Sword has been upgraded!")
elseif item.itemid == 8306 then
if getPlayerItemCount(cid,7429,1) < 200 then
doPlayerAddItem(cid,2437,1)
doPlayerRemoveItem(cid,8306,1)
doPlayerRemoveItem(cid,7429,1)
doPlayerSendTextMessage(cid,21,"Your Rich Club has been upgraded!")
elseif item.itemid == 8306 then
if getPlayerItemCount(cid,8924,1) < 200 then
doPlayerAddItem(cid,8926,1)
doPlayerRemoveItem(cid,8306,1)
doPlayerRemoveItem(cid,8924,1)
doPlayerSendTextMessage(cid,21,"Your Rich Axe has been upgraded!")
elseif item.itemid == 8306 then
if getPlayerItemCount(cid,7424,1) < 200 then
doPlayerAddItem(cid,7958,1)
doPlayerRemoveItem(cid,8306,1)
doPlayerRemoveItem(cid,7424,1)
doPlayerSendTextMessage(cid,21,"Your Rich Mage has been upgraded!")
else
doPlayerSendCancel(cid, "This Item You Try To Uprgade Not Rich !")
end
end
end
end
end
end
end
end
end
end
return 1
end