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

Requesting : [Paying] Manarune

Breakdown

Be good, or be good at it
Joined
Feb 5, 2009
Messages
334
Reaction score
9

A manarune script ...


But this is how i would like it to work.

From level 20 to 50 it awards 85 mana per use.

From level 50 to 100 it awards 120 mana per use.

From level 100 to 200, it awards 200 mana per use.

Lastly, from level 200 to 9000000000000000000000 it awards 300 mana per use.


A more advance one i would love, but i dont care which one can be done is :

From level 20 to 50 awards 3% of total mana on use.

From level 50 to 100 awards 8% of total mana on use.

From level 100 to 200, it awards 12% of total mana on use.

From level 200 to 9999999999999999 it awards 15% of total mana on use.


If the second one cant be done, it's fine either one is great id just prefer the second one.

I will give 4 USD to the first person who makes the second one, and sends it to me in a private message keeping it confidential.
 
Code:
[08/06/2009 16:53:31] Lua Script Error: [Spell Interface] 
[08/06/2009 16:53:31] data/spells/scripts/custom/manarune.lua:onCastSpell

[08/06/2009 16:53:31] luaDoRemoveItem(). Item not found
Help :<. I've changed
Code:
local item_id = ID OF MANARUNE
When manarune is on floor it's working in 100%, but when on eq slot or bp I'm getting error. xd.
 
O.M.F.G

Try..
Lua:
  local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, 1)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)

function onCastSpell(cid, var)
        -- Script by Shawak

        -- DON'T TOUCH ------------------------
        local pct = 1          -- pct = procent
        local lv = getPlayerLevel(cid)
        local maxMana = getCreatureMaxMana(cid)
        ---------------------------------------

        if lv <= 19 then
                pct = 2
        elseif lv >= 20 and lv <= 49 then
                pct = 3
        elseif lv >= 50 and lv <= 99 then
                pct = 8
        elseif lv >= 100 and lv <= 199 then
                pct = 12
        elseif lv >= 200 then
                pct = 15
        end
        doCreatureAddMana(cid,(maxMana / 100 * pct))
        doRemoveItem(item.uid)
        return doCombat(cid, combat, var)
end

Regards,
Shawak
 
Lol. xD. Now it's not removing count always 100 charges(/i 2300). And error:
Code:
[08/06/2009 21:42:47] Lua Script Error: [Spell Interface] 
[08/06/2009 21:42:47] data/spells/scripts/custom/manarune.lua:onCastSpell

[08/06/2009 21:42:47] data/spells/scripts/custom/manarune.lua:27: attempt to index global 'item' (a nil value)
[08/06/2009 21:42:47] stack traceback:
[08/06/2009 21:42:47] 	data/spells/scripts/custom/manarune.lua:27: in function <data/spells/scripts/custom/manarune.lua:6>
 
Last edited:
Back
Top