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

hp+mana formula

alekito

Archlord - Retired
Joined
Oct 21, 2008
Messages
150
Reaction score
29
Location
Sweden
i kind of need an guide to change my currently "exura san" spell to make it heal mana aswell . This is what i need help with:

Make exura san heal 2000 hp+ 1500 mana ... and it should require 100 mana to use the spell.


I give rep ++ for help ;)
 
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)
setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
setHealingFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 5, 5, 18.5, 25)
doPlayerAddMana(cid, 1500)

function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end

Idk if it works but give it a try
 
Idk if it works but give it a try


nope :( got this error
04/09/2012 19:40:02] [Error - Spell Interface]
[04/09/2012 19:40:02] data/spells/scripts/healing/exura mercenary.lua
[04/09/2012 19:40:02] Description:
[04/09/2012 19:40:02] (luaDoCreatureAddMana) Creature not found

- - - Updated - - -

Another non-logical spell, it makes unlimited mana, who the hell would need that? Potion is potion, but spell? wtf?

actually i want that + you're wrong. It dosen't make unlimited mana, ive seen probably over 40+ servers with this kind of stuff, and your saying "potion is potion" .my server ain't gonna be like rl maps. it's an custom ot. And your the third guy that complains about this stuff, and it's getting annoying. So if you're going to keep complaining and not help me out ,don't read my post.
 
Don't read, but you haven't said I can't write. Show me a server that have this, it's simply making unlimited mana which is simply making paladins or any other class overpowered.
 
You can change the mana cost in the spells.xml

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)
	local health = math.random(1900, 2000)
	local mana = math.random(1400, 1500)
	doCreatureAddHealth(cid, health)
	doCreatureAddMana(cid, mana)
	return doCombat(cid, combat, var)
end
 
Don't read, but you haven't said I can't write. Show me a server that have this, it's simply making unlimited mana which is simply making paladins or any other class overpowered.



Here is an ot that is online atm that you can go try and see for yourself
1. madness.crazy-ots.com

- - - Updated - - -

You can change the mana cost in the spells.xml

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)
	local health = math.random(1900, 2000)
	local mana = math.random(1400, 1500)
	doCreatureAddHealth(cid, health)
	doCreatureAddMana(cid, mana)
	return doCombat(cid, combat, var)
end

////////
Works thanks man you really did my day :p
 
Here is an ot that is online atm that you can go try and see for yourself
1. madness.crazy-ots.com

This spell works on a super high rate server like Madness. Careful when using it on a server where magic level is important though as it does provide unlimited mana to the user obviously :p
 
Back
Top