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

Simple action

Snow

New Member
Joined
Jan 16, 2008
Messages
381
Reaction score
0
I wanted an action that when you use a soul orb it transforms into 25 infernal bolts, Thanks and I'll give rep+++
 
Not tested but it should work:

PHP:
local config = {
infernalId = 6529,
soulId = 5944,
text = "You have found 25 infernal bolts"
}

function onUse(cid, item, fromPosition, itemEx, toPosition)
    if item.itemid == config.soulId then
		doRemoveItem(item.uid, 1)
		doPlayerAddItem(cid, config.infernalId, 25)
		doPlayerSendTextMessage(cid, 25, config.text)
    else
        doPlayerSendCancel(cid, "Sorry, not possible")
    end

    return TRUE
end
 
Back
Top