• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

7.6 Avesta [HELP]

/others/money.lua
Code:
function onUse(cid, item, frompos, item2, topos)
--Gold Coins--
      if item.itemid == 2148 and item.type == 100 then
      doRemoveItem(item.uid, item.type)
      doPlayerAddItem(cid,2152,1)

--Platinum Coin--
    elseif item.itemid == 2152 and item.type == 100 then
      doRemoveItem(item.uid, item.type)
      doPlayerAddItem(cid,2160,1)
    elseif item.itemid == 2152 and item.type <= 99 then
      doRemoveItem(item.uid, 1)
      doPlayerAddItem(cid,2148,100)

--Crystal Coin--
    elseif item.itemid == 2160 and item.type <= 100 then
      doRemoveItem(item.uid, 1)
      doPlayerAddItem(cid,2152,100)
    end
return true
end

actions.xml
Code:
    <action itemid="2148" script="others/money.lua"/>
    <action itemid="2152" script="others/money.lua"/>
    <action itemid="2160" script="others/money.lua"/>
/Avesta
 
Back
Top