jareczekjsp
Member
When player change money can all the time change and when dont have cap or space in backpack drop monet of floor .
I want do when player dont have cap or space in backpack player can not exchange money whow I can change
my sripts change money
1.
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
2.
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 got 100 gp's to change for platinum coin")
end
end
3.
function onUse(cid, item, frompos, item2, topos)
if doRemoveItem(item.uid,1) then
doPlayerSendTextMessage(cid,22,"1 Cash Coin is 100 crystal coins")
doPlayerAddItem(cid,2160,100)
end
end
Somebody Can help me?
I want do when player dont have cap or space in backpack player can not exchange money whow I can change
my sripts change money
1.
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
2.
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 got 100 gp's to change for platinum coin")
end
end
3.
function onUse(cid, item, frompos, item2, topos)
if doRemoveItem(item.uid,1) then
doPlayerSendTextMessage(cid,22,"1 Cash Coin is 100 crystal coins")
doPlayerAddItem(cid,2160,100)
end
end
Post automatically merged:
Somebody Can help me?