• 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 Player goes Invisible, instead of changing looktype

mackerel

Well-Known Member
Joined
Apr 26, 2017
Messages
398
Solutions
18
Reaction score
72
I have this spell right here:

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:
Back
Top