bodycarcoo11
Mapper
Hello And Welcome Lets Start Use Notbad
Put This In ../data/actions/scripts/ingot.lua
And Put This in ../data/actions/actions.xml
If You Like REP++
Put This In ../data/actions/scripts/ingot.lua
Code:
function onUse(cid, item, frompos, item2, topos)
if item.itemid == 2157 and item.type == 100 then
doRemoveItem(item.uid,item.type)
doPlayerAddItem(cid,9971,1)
doSendAnimatedText(getPlayerPosition(cid), "$$$", TEXTCOLOR_LIGHTGREEN)
elseif item.itemid == 2157 and item.type < 100 then
doRemoveItem(item.uid,1)
doPlayerAddItem(cid,9971,100)
doPlayerSendTextMessage(cid,22,"You have changed 100 golden nuggets to 1 Golden Ingot")
end
end
Code:
<action itemid="9971" event="script" value="other/ingot.lua"/>