• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Help Upgrade Manarune Lever

Acrenactive

★Designer★
Joined
Mar 21, 2013
Messages
224
Reaction score
56
Location
Los Angels L.A
When you place the manarune (ID:2276) on the coal basin and pull the lever it should be changed to another upgraded manarune (ID:2284) on the same place where the old rune got exchanged. But you have to be level 400 to upgrade it and a text should show up saying [Upgrade]. You can choose what magiceffect and text it should be!

a3ky07.png
 
Last edited:
Give more info, which server version do you use, is it just 1 rune or more runes, can you give ids of the runes?
What else should it do, like textmessages, magiceffects.
 
When you place the manarune (ID:2276) on the coal basin and pull the lever it should be changed to another upgraded manarune (ID:2284) on the same place where the old rune got exchanged. But you have to be level 400 to upgrade it and a text should show up saying [Upgrade]. You can choose what magiceffect and text it should be!
 
Code:
local c = {
   pos = {x = 92, y = 115, z = 7},
   oldmanarune = 2276,
   newmanarune = 2284
}

function onUse(cid, item, fromPosition, itemEx, toPosition)

     if getPlayerLevel(cid) < 400 then
         return doPlayerSendCancel(cid, "You need to be level 400 or higher.")
     end     
       
     if getTileItemById(c.pos, c.oldmanarune).uid > 0 then
         doTransformItem(getTileItemById(c.pos, c.oldmanarune).uid, c.newmanarune)
         doSendMagicEffect(c.pos, CONST_ME_MAGIC_BLUE)
         doTransformItem(item.uid, item.itemid == 1945 and 1946 or 1945)
     else
         doPlayerSendCancel(cid, "Add the mana rune.")
         doSendMagicEffect(getThingPos(cid), CONST_ME_POFF)
     end
     return true
end
 
Last edited:
Back
Top