Hello, I wrote a simple script but something is not compatible because:
a) 1 Gold Nuggets does not change into 1 Scrab Coins (1sc turns into 1 nuggets)
below I put the engine scripts (TFS1.3)
PS does anyone have a script how to enter these currencies into the game? because the found scripts do not work
Nugget
a) 1 Gold Nuggets does not change into 1 Scrab Coins (1sc turns into 1 nuggets)
below I put the engine scripts (TFS1.3)
PS does anyone have a script how to enter these currencies into the game? because the found scripts do not work
Nugget
Code:
function onUse(cid, item, frompos, item2, topos)
if item.itemid == 2159 and item.type == 100 then
doRemoveItem(item.uid,item.type)
doPlayerAddItem(cid,2157,1)
doPlayerSendTextMessage(cid,22,"You have changed 100 scarab coins to 1 gold nugget")
elseif item.itemid == 2157 and item.type < 1 then
doPlayerAddItem(cid,2159,100)
doPlayerSendTextMessage(cid,22,"You have changed 1 gold nugget to 100 scarab coins")
end
end
Last edited: