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

Can anyone help me with this script?

norse123

Member
Joined
Jun 26, 2010
Messages
1,193
Reaction score
19
Hey

I'm using TFS 0.3.6pl1 and i wounder if someone could help me to create for example a rune that when u right click u get full mana back and you can only use it every 10minutes. And same with Health.

Thanks alot/

Norse
 
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)

local heal = {min = 250, max = 500}
function getSpellDamage(cid, weaponSkill, weaponAttack, attackStrength)
	return heal.min, heal.max
end
setCombatCallback(combat, CALLBACK_PARAM_SKILLVALUE, "getSpellDamage") 

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

?¿
 
Back
Top