• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

Action deleted thread

Better:
LUA:
function onUse(cid, item)
    doCreatureSay(cid, "You used an exp rune.", TALKTYPE_ORANGE_1)
    doPlayerAddExp(cid, 500)
    doRemoveItem(item.uid, 1)
    return true
end
 
Better:
LUA:
function onUse(cid, item)
    doCreatureSay(cid, "You used an exp rune.", TALKTYPE_ORANGE_1)
    doPlayerAddExp(cid, 500)
    doRemoveItem(item.uid, 1)
    return true
end

Not really as in runes "doRemoveItem(item.uid, 1)" removes all rune not 1 charge.
 
function onUse(cid, item)
doCreatureSay(cid, "You used an exp rune.", TALKTYPE_ORANGE_1)
doPlayerAddExp(cid, 500)
doTransformItem(rune.uid, rune.itemid, rune.type - 1) -- if type == 0 it del :) dont need removeitem
return true
end

done xD
 
Back
Top