Follow along with the video below to see how to install our site as a web app on your home screen.
Notka: This feature may not be available in some browsers.
<action itemid="2148" event="script" value="changegold.lua"/>
<action itemid="2152" event="script" value="changegold.lua"/>
<action itemid="2160" event="script" value="changegold.lua"/>
<action itemid="2157" event="script" value="changegold.lua"/>
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)
doSendAnimatedText(getCreaturePosition(cid), "$$$", TEXTCOLOR_YELLOW)
elseif item.itemid == 2152 and item.type == 100 then
doRemoveItem(item.uid,item.type)
doPlayerAddItem(cid,2160,1)
doSendAnimatedText(getCreaturePosition(cid), "$$$", TEXTCOLOR_LIGHTBLUE)
elseif item.itemid == 2152 and item.type < 100 then
doRemoveItem(item.uid,1)
doPlayerAddItem(cid,2148,100)
doSendAnimatedText(getCreaturePosition(cid), "$$$", TEXTCOLOR_LIGHTBLUE)
elseif item.itemid == 2160 and item.type == 100 then
doRemoveItem(item.uid,item.type)
doPlayerAddItem(cid,2157,1)
doSendAnimatedText(getCreaturePosition(cid), "$$$", TEXTCOLOR_LIGHTBLUE)
elseif item.itemid == 2160 and item.type < 100 then
doRemoveItem(item.uid,1)
doPlayerAddItem(cid,2152,100)
doSendAnimatedText(getCreaturePosition(cid), "$$$", TEXTCOLOR_LIGHTBLUE)
elseif item.itemid == 2157 and item.type < 100 then
doRemoveItem(item.uid,1)
doPlayerAddItem(cid,2160,100)
doSendAnimatedText(getCreaturePosition(cid), "$$$", TEXTCOLOR_RED)
end
end
<action itemid="2148;2152;2160;2157" event="script" value="changegold.lua"/>