• 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 Rune ..

3mR

Mapper
Joined
May 29, 2012
Messages
322
Reaction score
42
Hey :$
i dont know how to make hp with effects ..
i wana 3 hp rune
first
normal
vip
...
need help pless rep+ :$
 
Can you explain better what you want? You want to rune that gives hp, like a uh? and with an effect, what kind of effect?
 
If you have a server, the uh script should be in it, in spells -> healing (you can check the exact location in the spells.xml if it's not there). Just copy uh script, change name, change the healing amount and add it in spells.xml with different rune id if you want to make a custom healing rune.
 
Lol, if you are so experienced with scripting that you can make a server from 0 then you should be able to make a simple script like an uh script :p But I advice you to download a server so you have all the basic scripts.
 
LUA:
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, level, maglevel)
	min = (level * 1 + maglevel * 4) * 4.08
	max = (level * 1 + maglevel * 4) * 5.7
	if min < 250 then
		min = 250
	end
	return min, max
end

setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")

function onCastSpell(cid, var)
	return doCombat(cid, combat, var)
end
 
A slightly better version of the code posted above, made to be accurate with tibias formulas:

LUA:
----Editting any values in this LUA will deviate from actual tibia damages-----------
local power = 1.0 --spell power multiplier 
-------------------------------------------------------------------------------------
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)
function onGetFormulaValues(cid, level, maglevel)
	local min = power*(0.2*level+3.2*maglevel+20)
	local max = power*(0.2*level+5.4*maglevel+40)
	return min, max
end
setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")
function onCastSpell(cid, var)
	return doCombat(cid, combat, var)
end
Example is an IH rune.
 
This is literally the simplest part of running a server, if you cant figure it out you need to download a server with spells included and use that.

This is the LUA file for intense healing rune. Change whatever values you want and put it in your spells folder then direct to it with spells.xml.
 
maxens calm down?

hey guy ill try explain u this step by step so here we go :

data/actions/other name it uh.lua

LUA:
function onUse(cid, item, frompos, item2, topos)
mag = getPlayerMagLevel(cid)
if mag >= 0 then
doSendMagicEffect(topos,14)
doCreatureSay(cid,"aahh healing",19)
doCreatureAddHealth(cid, math.random(500, 840))
if item.type > 1 then
doChangeTypeItem(item.uid,item.type-1)
end
else
doSendMagicEffect(frompos,2)
doPlayerSendCancel(cid,"Your magic is not strong enough to wield this power.")
end
return 1
end

actions.xml u need edit this

<action itemid="yourid" event="script" value="uh.lua"/>

plxx say that u know edit this :D
 
Back
Top