I have this spell right here:
But it doesn't change the player's (caster) outfit
instead they go invisible (like utana vid)
I really want to use this OUTFIT CONDITION but its not working
TFS1.0
EDIT -- SOLVED
Instead of addOutfitCondition do this:
Lua:
local outfitx = {lookType = 58, lookHead = 0, lookLegs = 0, lookBody = 0, lookFeet = 0, lookAddons = 0}
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)
local condition = createConditionObject(CONDITION_OUTFIT)
setConditionParam(condition, CONDITION_PARAM_TICKS, 10000)
addOutfitCondition(condition, outfitx)
setCombatCondition(combat, condition)
local condition2 = createConditionObject(CONDITION_HASTE)
setConditionParam(condition2, CONDITION_PARAM_TICKS, 10000)
setConditionParam(condition2, CONDITION_PARAM_SPEED, 200)
setCombatCondition(combat, condition2)
function onCastSpell(cid, var)
local player = Player(cid)
if not player then
return false
end
doCombat(cid, combat, var)
return true
end
But it doesn't change the player's (caster) outfit
instead they go invisible (like utana vid)
I really want to use this OUTFIT CONDITION but its not working
TFS1.0
EDIT -- SOLVED
Instead of addOutfitCondition do this:
Lua:
addOutfitCondition(condition, 0, 58, 0, 0, 0, 0)
Last edited: