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

Solved Hp rune

George00

propro
Joined
Jan 11, 2014
Messages
163
Solutions
1
Reaction score
10
Location
propro
I have gotten this script
Code:
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_TARGETCASTERORTOPMOST, TRUE)
setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)

function onGetFormulaValues(cid)
min = 1900
max = 2100
return min, max
end

setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")

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

Is this a part of an uh script that is supposed to show the healing and heal about 1900-2100.. where do i enter the id of the rune ?
 
Last edited by a moderator:
What do you mean? my manarune lua works and it's in other ?

Do i create a lua in healing ? and then in spells i make a new row in healing runes and add id 2775(the one i want)
 
Last edited by a moderator:
The script you posted is a spell script, you can see that by looking at the main function: function onCastSpell(cid, var).
Runes work similar as spells, but are added different in spells.xml.
Mana runes/potions shouldn't have the same exhaustion as spells and other runes and are therefore added in actions.

And stop double post.
http://otland.net/threads/mysql-sqlite.218118/#post-2095452

Also use code tags when you post a script
[ code]
your script here
[/code]
 
So do i keep
<item fromid="2275" toid="2276" article="a" name="Super healing rune">
<attribute key="weight" value="120" />
</item> in items ? or remove it

Still wont work <rune name="Super healing rune" id="2275" allowfaruse="1" charges="1" lvl="1" maglv="1" exhaustion="1000" aggressive="0" needtarget="1" blocktype="solid" event="script" value="healing/Superhealingrune.lua"/> in spells
and in healing superhealingrune

works now it was the spaces
 
Last edited by a moderator:
Back
Top