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

Lua Utito tempo san spell, need help.

flaxe

the one and only
Joined
Jun 12, 2009
Messages
336
Reaction score
2
Location
Sweden
Hello. When a Paladin uses the spell "utito tempo san" that increases your distance damage, the paladin arn't able to heal himself. UH doesn't works, or any healing spell doesn't work. May any1 fix this problem? Below is the spell code:

Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)

local condition = createConditionObject(CONDITION_ATTRIBUTES)
setConditionParam(condition, CONDITION_PARAM_TICKS, 10000)
setConditionParam(condition, CONDITION_PARAM_SKILL_DISTANCEPERCENT, 150)
setConditionParam(condition, CONDITION_PARAM_BUFF, TRUE)
setCombatCondition(combat, condition)

local speed = createConditionObject(CONDITION_PARALYZE)
setConditionParam(speed, CONDITION_PARAM_TICKS, 10000)
setConditionFormula(speed, -0.7, 56, -0.7, 56)
setCombatCondition(combat, speed)

local exhaust = createConditionObject(CONDITION_EXHAUST)
setConditionParam(exhaust, CONDITION_PARAM_SUBID, 2)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, 10000)
setCombatCondition(combat, exhaust)

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

Below is how it looks in spells.xml

Code:
<instant name="Sharpshooter" words="utito tempo san" lvl="60" mana="450" prem="1" aggressive="0" selftarget="1" exhaustion="1000" needlearn="0" script="support/sharpshooter.lua">
		<vocation name="Paladin"/>
		<vocation name="Royal Paladin"/>


Any help would be apreciated very much. I'm using TFS 0.3.1. Thanks!
 
Effect: Increases the distance skill of Paladins by approximately 50% for 10 seconds.
While this spell is in effect, the paladin's speed is reduced by 70%, they cannot cast any healing, support or supply spells, and they cannot block attacks.
 
Hello. When a Paladin uses the spell "utito tempo san" that increases your distance damage, the paladin arn't able to heal himself. UH doesn't works, or any healing spell doesn't work. May any1 fix this problem? Below is the spell code:

Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)

local condition = createConditionObject(CONDITION_ATTRIBUTES)
setConditionParam(condition, CONDITION_PARAM_TICKS, 10000)
setConditionParam(condition, CONDITION_PARAM_SKILL_DISTANCEPERCENT, 150)
setConditionParam(condition, CONDITION_PARAM_BUFF, TRUE)
setCombatCondition(combat, condition)

local speed = createConditionObject(CONDITION_PARALYZE)
setConditionParam(speed, CONDITION_PARAM_TICKS, 10000)
setConditionFormula(speed, -0.7, 56, -0.7, 56)
setCombatCondition(combat, speed)

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

Below is how it looks in spells.xml

Code:
<instant name="Sharpshooter" words="utito tempo san" lvl="60" mana="450" prem="1" aggressive="0" selftarget="1" exhaustion="1000" needlearn="0" script="support/sharpshooter.lua">
		<vocation name="Paladin"/>
		<vocation name="Royal Paladin"/>


Any help would be apreciated very much. I'm using TFS 0.3.1. Thanks!

Check now
FIXED!
 
Back
Top