• 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 Update script for tfs 1.1

norrow

Member
Joined
Dec 16, 2012
Messages
129
Reaction score
7
Location
Poland
You could rewrite it to the new version? I wish that it was in the array
Code:
function onThink(cid, interval)
local efekt = 42
    if getPlayerVocation(cid) == 1 then
        doSendMagicEffect(getCreaturePosition(cid), efekt)
    end
return true
end
the board
Code:
local effects = {
    [201] = 22, --vocation, effect
    [202] = 23,
}
Please please help
 
Code:
local effects = {
    --[vocationId] = effect
    [1] = CONST_ME_ICEAREA
}

function onThink(player, interval)
    local effect = effects[player:getVocation():getId()]
    if not effect then
        return true
    end

    player:getPosition():sendMagicEffect(effect)
    return true
end
 

Similar threads

Back
Top