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

Solved Sharpshooter(utito tempo san) and others spells

breispodeu

Mapper/Scripter/C++ Programmer
Joined
Jul 25, 2009
Messages
75
Reaction score
2
Hi. I use The OTX Server, version 2.52 - 1557.

I can't fix the spell Sharpshooter(utito tempo san) or other spells like Swift Foot(utamo tempo san). How I can add the exhaust for healing spells and how I can cancel all attacks after utamo tempo san?

Utito tempo san - "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."

Utamo tempo san - "(...) they however can not attack or use attack spells during this time."

These part of description of spells(real effect in tibia global) aren't working for me and I don't found some way to fix this. Some1 can help?

For exemple, my Sharpshooter script:

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

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

THX.
 
You have to change this line:
Lua:
setConditionParam(exhaust, CONDITION_PARAM_SUBID, 2)
1 = Support spells
2 = Attack spells
3 = Healing spells

And for Swift Foot you have to add a Pacified condition so the player can't attack:
Lua:
local disable = createConditionObject(CONDITION_PACIFIED)
setConditionParam(disable, CONDITION_PARAM_TICKS, 10000)
setCombatCondition(combat, disable)

PD: If your server is 9.XX you can just add groups on spells.xml (groups="spellgroup,ticks")
 
Have some way to make this:

"they cannot block attacks" ?

How do I add exhaust for two groups at the same time using this in spells.xml:
(groups="spellgroup,ticks") ?

Thanks!

- - - Updated - - -

Ah, other question..

Spell with group 4 doesn't have exhaust after using another spell of other groups.. Ex: I used exori gran ico and exori gran in same time..

How i fix this? Thanks :D
 
How do I add exhaust for two groups at the same time using this in spells.xml:
(groups="spellgroup,ticks") ?

groups="1,1000;2,1000"

Ah, other question..

Spell with group 4 doesn't have exhaust after using another spell of other groups.. Ex: I used exori gran ico and exori gran in same time..

How i fix this? Thanks :D

Spellgroup 4 is Support on this case, so you have to change that for Spellgroup 2 (Attack)
 
Back
Top