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

Teleport Animations [Solved]

@up

Mistake from Rudolf :D try this:

PHP:
local config = {
    positions = {
        ["PoI"] = { x = 98, y = 132, z = 7 },
        ["War"] = { x = 97, y = 141, z = 7 }
    },
    
    effects = {
        CONST_ME_MORTAREA,
        CONST_ME_HITBYFIRE,
        CONST_ME_GIFTWRAPS,
        CONST_ME_STUN
    }
}

function onThink(cid, interval, lastExecution)
    for text, pos in pairs(config.positions) do
        doSendMagicEffect(pos, config.effects[math.random(1, #config.effects)])
        doSendAnimatedText(pos, text, math.random(1, 255))
    end
    
    return TRUE
end
 
im a n00b? ive created the most popular server ever made in the ot history. i can make anything i want in lua, and if i cant, i do it in c++ so stfu noob. atm roxor server is the most advanced server that is running.
 
i can make whatever i want in lua, but colandus often edit my scripts after ive made them, cuz he's n00b and want everything über pro made. ask him urself. for instance, i made TEAM-capture the flag in lua, then he see my script, and now he remade it with classes instead of tables cuz he wanna have pro scripts only lo
 
@up

Mistake from Rudolf :D try this:

PHP:
local config = {
    positions = {
        ["PoI"] = { x = 98, y = 132, z = 7 },
        ["War"] = { x = 97, y = 141, z = 7 }
    },
    
    effects = {
        CONST_ME_MORTAREA,
        CONST_ME_HITBYFIRE,
        CONST_ME_GIFTWRAPS,
        CONST_ME_STUN
    }
}

function onThink(cid, interval, lastExecution)
    for text, pos in pairs(config.positions) do
        doSendMagicEffect(pos, config.effects[math.random(1, #config.effects)])
        doSendAnimatedText(pos, text, math.random(1, 255))
    end
    
    return TRUE
end

Couldnt find COMBAT_FIREDAMGE declared in my example script, could you show me where it is?
 
Hello! I'm using the first script (for talkactions) becouse i don't got globalevents. But! I can't get more then 1 TP to show the animations + doesn't it exist another way then to say "!anim" everytime?

I WOULD GIVE RES++ + SOME EUR
 
Back
Top