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

Animated text upper a all sign on the map?

vexler222

Active Member
Joined
Apr 22, 2012
Messages
714
Solutions
15
Reaction score
46
Hello, it possible (if yes then how?) to send a animated text upper all sign, if player is in range? I thiking about a text "CLICK" upper all signs on the map
i thinking about something faster than normal animated text script where i must put all postions

tfs 1.5 8.6
 
Solution
Ref
Post automatically merged:

Okay guys, i created a script what sending a animated text for items with UID cuz i don't how to send it to all items with x ID :D
But it working without any errors so i think is good

Code:
function onThink(creature, interval)

    local ids = {44440, 44441}

    for i = 1, #ids do
        local pos_sign = getThingPos(ids[i])
        local spectators = Game.getSpectators(pos_sign, false, true, 6, 6, 5, 5)
        if #spectators > 0 then
            Game.sendAnimatedText("CLICK", pos_sign, math.random(100, 120))
            pos_sign:sendMagicEffect(57)
        end
    end

    return true
end
Ref
Post automatically merged:

Okay guys, i created a script what sending a animated text for items with UID cuz i don't how to send it to all items with x ID :D
But it working without any errors so i think is good

Code:
function onThink(creature, interval)

    local ids = {44440, 44441}

    for i = 1, #ids do
        local pos_sign = getThingPos(ids[i])
        local spectators = Game.getSpectators(pos_sign, false, true, 6, 6, 5, 5)
        if #spectators > 0 then
            Game.sendAnimatedText("CLICK", pos_sign, math.random(100, 120))
            pos_sign:sendMagicEffect(57)
        end
    end

    return true
end
 
Last edited:
Solution
Back
Top