hey everybody
I was trying to do a party buff spell that besides giving you skills, also gives you speed, when I try to use this
it only makes you go faster but doesn't give the skills.
I have tfs for tibia 8.4
I tried searching in the forum but I couldn't find anything
thanks in advance
Nutz
I was trying to do a party buff spell that besides giving you skills, also gives you speed, when I try to use this
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, 30000)
setConditionParam(condition, CONDITION_PARAM_SKILL_DISTANCE, 40)
setConditionParam(condition, CONDITION_PARAM_SKILL_CLUB, 40)
setConditionParam(condition, CONDITION_PARAM_SKILL_SWORD, 40)
setConditionParam(condition, CONDITION_PARAM_SKILL_AXE, 40)
setConditionParam(condition, CONDITION_PARAM_SKILL_SHIELD, 100)
setConditionParam(condition, CONDITION_PARAM_BUFF, TRUE)
setCombatCondition(combat, condition)
local haste = createConditionObject(CONDITION_HASTE)
setConditionParam(haste, CONDITION_PARAM_TICKS, 30000)
setConditionFormula(haste, 0.7, -56, 0.7, -56)
setCombatCondition(combat, haste)
local arr = {
{0, 0, 1, 1, 1, 0, 0},
{0, 1, 1, 1, 1, 1, 0},
{1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 3, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1},
{0, 1, 1, 1, 1, 1, 0},
{0, 0, 1, 1, 1, 0, 0},
}
local area = createCombatArea(arr)
setCombatArea(combat, area)
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
I have tfs for tibia 8.4
I tried searching in the forum but I couldn't find anything
thanks in advance
Nutz
Last edited: