• 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 Bug utito tempo san

Elexonic

Well-Known Member
Joined
Jun 18, 2008
Messages
1,920
Reaction score
59
I have bug in spells utito tempo san , when i used this spell i CAN healt but no can atack , exori con,exori san etc.. and I think it's the opposite, in tibia cip soft..

This is my utito tempo san.. :

Lua:
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

And my exori san..

Lua:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_HOLYDAMAGE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SMALLHOLY)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1, -10, -1, -20, 5, 5, 1.4, 2.1)

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

why this happens
 
Last edited by a moderator:
Sirion_Mido : thanks for script but i say script Michy work fine.. but i need know if something happens if I remove these lines


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


EDIT: DOWN
Michy : thanks you very much!!
 
Last edited:
I think not, because the exhausted add it on the line. Xml

Code:
[COLOR="#FF0000"]local exhaust = createConditionObject(CONDITION_EXHAUST)
setConditionParam(exhaust, CONDITION_PARAM_SUBID, 2)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, 10000)
setCombatCondition(combat, exhaust)[/COLOR]

Code:
<instant name="Sharpshooter" words="utito tempo san" lvl="60" mana="450" prem="1" aggressive="0" selftarget="1" [COLOR="#FF0000"]exhaustion="2000"[/COLOR] needlearn="0" event="script" value="support/sharpshooter.lua">
		<vocation id="3"/>
		<vocation id="7"/>

Edit:
You're welcome :E
 
Last edited:
UP: Mm in rl hace exausted 10 seg? , idk how set exausted only for healing spells :S
I see tibiahispano spells after.
 
This is my custom code for Utito Tempo San (had same problem as you).
Lua:
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, 3)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, 10000)
setCombatCondition(combat, exhaust)

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

@EDIT: If didn't work for you, post your lib/000-constant.lua :)
 
Last edited:
Up: Work nice i think.. only have one error i think.
In rl no can used potions for healing.
with this magic if you can heal with potions.
Not sure if it can be corrected. All others either
 
It can be possible, but when you execute the spell you are going to be unable to use any item... Unless you edit your Potions to add the correct Exhaust/Spellgroup.
 
This is my custom code for Utito Tempo San (had same problem as you).
Lua:
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, 3)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, 10000)
setCombatCondition(combat, exhaust)

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

@EDIT: If didn't work for you, post your lib/000-constant.lua :)

Thx man, i have that problem too, and now with this script is perfect.
 
OMG GUYS.
Ots have few base exhaustions, one is a non-aggresive, and second one is aggresive.

Your problem is here, and only here:
Lua:
local exhaust = createConditionObject(CONDITION_EXHAUST)
setConditionParam(exhaust, CONDITION_PARAM_SUBID, 3)		-- 1 is support spells, 2 is a aggresive, 3 means healing
setConditionParam(exhaust, CONDITION_PARAM_TICKS, 10000)
setCombatCondition(combat, exhaust)

1 = support spells, 2 = aggresive, 3 = healing
 
Andu.. in script i used.. i have this.. setConditionParam(exhaust, CONDITION_PARAM_SUBID, 3)
for healing spells? [spells¿?¿?¿?] . I can`t used spells for healing . But i can used potions for healing.. [ i think in rl no can use this.. ]
 
Andu.. in script i used.. i have this.. setConditionParam(exhaust, CONDITION_PARAM_SUBID, 3)
for healing spells? [spells¿?¿?¿?] . I can`t used spells for healing . But i can used potions for healing.. [ i think in rl no can use this.. ]

You can use potions in RL. Trust me.
 
Back
Top