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

party buff spell with haste, can't do it =/

Nutz

New Member
Joined
Jan 8, 2009
Messages
4
Reaction score
0
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

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
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
 
Last edited:
This could be a problem with bugged condition values, which I've had before. Try drinking a berserk/mastermind/bullseye potion on a normal (Non-GM or God) character and see if the stats go up.
 
This could be a problem with bugged condition values, which I've had before. Try drinking a berserk/mastermind/bullseye potion on a normal (Non-GM or God) character and see if the stats go up.

nope =/ they don't work, but I don't think the problem is a bug on condition values. I think I just scripted it wrongly.

utito mas sio (buff party spell) does work, I copied and added haste and then it didn't work.
 
Back
Top