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

[Action] Manarune, help!

sugmd

New Member
Joined
Nov 3, 2009
Messages
3
Reaction score
0
Im in need of a manarune that heals from 195-260 mana, Id like it to be an action script so the healing spells wont be exhausted if Im using the rune at the same time. Also Id like the animations and the text-animation as in a real mana potion! Im using 0.3.6 Crying Damson on a 8.54 map.

Ill rep if you hepled!
 
im in need of a manarune that heals from 195-260 mana, id like it to be an action script so the healing spells wont be exhausted if im using the rune at the same time. Also id like the animations and the text-animation as in a real mana potion! Im using 0.3.6 crying damson on a 8.54 map.

Ill rep if you hepled!

omfg search!
 
I've been searching alot with no succes... None is working the way I want. I can't make one myself as an action script because of my lack of skills in scripting.
 
Lua:
local MIN = 500
local MAX = 600

local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN)
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, 1)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)

function onCastSpell(cid, var)
doPlayerAddMana(cid, math.random(MIN, MAX))
return doCombat(cid, combat, var)
end

There you go, it should work for 0.3.6
 
Lua:
local MIN = 500
local MAX = 600

local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN)
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, 1)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)

function onCastSpell(cid, var)
doPlayerAddMana(cid, math.random(MIN, MAX))
return doCombat(cid, combat, var)
end

There you go, it should work for 0.3.6
-facepalm- that's a spell script

Code:
local t = {
	min = 195,
	max = 260,
	text = "Aaaah...",
	effect = CONST_ME_MAGIC_BLUE
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if isPlayer(itemEx.uid) then
		doPlayerAddMana(itemEx.uid, math.random(t.min, t.max))
		doCreatureSay(itemEx.uid, t.text, TALKTYPE_ORANGE_1)
		doSendMagicEffect(toPosition, t.effect)
	else
		doPlayerSendCancel(cid, "You can only use this rune on players.")
	end
	return true
end
 
Last edited:
Back
Top