• 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!

When you click on..."you've found (ItemName)" - Solution!

i will give you script when use lever take an item
Code:
  local cost = 10000
local newItem = {7388, 1}

function onUse(cid, item, fromPosition, itemEx, toPosition)
        if doPlayerRemoveMoney(cid, cost) == FALSE then
                doPlayerSendTextMessage(cid, 26, "You need "..cost.." gold coins for "..newItem[2].."x "..getItemNameById(newItem[1])..".")
                doSendMagicEffect(getCreaturePosition(cid), 2)
                return TRUE
        end
       
        if item.itemid == 1945 then
                doTransformItem(item.uid, 1946)
        else
                doTransformItem(item.uid, 1945)
        end

        doPlayerAddItem(cid, newItem[1], newItem[2])
        doPlayerSendTextMessage(cid, 22, "You bought "..newItem[2].."x "..getItemNameById(newItem[1]).." for "..cost..".")
        return TRUE
end
now rep++ for me :D
 
Back
Top