Zaggyzigzig
plx itens menz
Been playing with my scripts for a while, Been working on this for over 2 hours now so I am going to ask for help!
Heres my gold platinum and crystal scripts, been trying to build a working one to change change 100 crystal coins into 1 golden nugget, Would be be awesome If someone knows how to do this!
Gold:
Platinum:
Crystal:
Really Can't seem to get it to work! Any Ideas? All of these scripts work fine, Just not the one I am trying to make.. Heres mine..
Golden Nugget:
-- Moderator edit: Use code tags when posting scripts.
Heres my gold platinum and crystal scripts, been trying to build a working one to change change 100 crystal coins into 1 golden nugget, Would be be awesome If someone knows how to do this!
Gold:
Code:
function onUse(cid, item, frompos, item2, topos)
if item.itemid == 2148 and item.type == 100 then
doRemoveItem(item.uid,item.type)
doPlayerAddItem(cid,2152,1)
doPlayerSendTextMessage(cid,22,"You have changed 100 gp to 1 platnium coin")
elseif item.itemid == 2148 and item.type < 100 then
doPlayerSendTextMessage(cid,22,"You have to have 100 gp's to change for platinum coin")
end
end
Platinum:
Code:
function onUse(cid, item, frompos, item2, topos)
if item.itemid == 2152 and item.type == 100 then
doRemoveItem(item.uid,item.type)
doPlayerAddItem(cid,2160,1)
doPlayerSendTextMessage(cid,22,"You have changed 100 platinum to 1 crystal coin")
elseif item.itemid == 2152 and item.type < 100 then
doRemoveItem(item.uid,1)
doPlayerAddItem(cid,2148,100)
doPlayerSendTextMessage(cid,22,"You have changed 1 platinum to 100 gold coins")
end
end
Crystal:
Code:
function onUse(cid, item, frompos, item2, topos)
if doRemoveItem(item.uid,1) then
doPlayerSendTextMessage(cid,22,"You have changed 1 crystal coin to 100 platinum coins")
doPlayerAddItem(cid,2152,100)
end
end
Really Can't seem to get it to work! Any Ideas? All of these scripts work fine, Just not the one I am trying to make.. Heres mine..
Golden Nugget:
Code:
function onUse(cid, item, frompos, item2, topos)
if item.itemid == 2160 and item.type == 100 then
doRemoveItem(item.uid,item.type)
doPlayerAddItem(cid,2152,1)
doPlayerSendTextMessage(cid,22,"You have changed 100 crystal coins to 1 golden nugget")
elseif item.itemid == 2160 and item.type < 100 then
doPlayerSendTextMessage(cid,22,"You have to have 100 crystl coins to change for 1 golden nugget")
end
end
-- Moderator edit: Use code tags when posting scripts.
Last edited by a moderator: