• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Named teleporters? (Text floating above it)

Skylinx

Game Programmer
Joined
Nov 26, 2008
Messages
399
Reaction score
15
Location
TORONTO, CANADA
Greetings.

I've been searching for a script now for a while with many search terms but haven't come across the result I've wanted.

I once saw a script that allowed your teleports to have sort of .. orange floating text above them. I believe it was quite a simple script but I can't seem to remember where it was placed or the post.

If anyone remembers this or knows how to I would greatly appreciate some assistance.
 
i know that its a globalevent. or at least i think it is. maybe that can narrow ur search a bit

- - - Updated - - -

try here
http://otland.net/f16/globalevent-teleport-effects-please-help-me-170469/
 
edit: Is there any way to make this interval a float? so I can make it 0.2 for example

Thanks a lot. I can't believe I missed this.
++

Code:
local config = {
positions = {
        ["Use Boat"] = { x = 996, y = 995, z = 7 },
	["Jump!"] = { x = 996, y = 997, z = 7 },
	["Climb"] = { x = 996, y = 996, z = 7 },
},

effects = {
CONDITION_PARAM_DELAYED
}
}

function onThink(cid, interval, lastExecution)
    for text, pos in pairs(config.positions) do
        doSendAnimatedText(pos, text, math.random(5, 5))
    end
    return TRUE
end

Credits to Loney
 
Last edited:
Here try This ( I used to use this on my OT ) it should work :

Globalevents/scripts/effectile.lua Paste this


PHP:
local config = {
positions = {
    ["Text that Appears Here"] = { x = 876, y = 1019, z = 7 },
	["Text that Appears Here"] = { x = 876, y = 1017, z = 7 },
	["Text that Appears Here"] = { x = 876, y = 1015, z = 7 }

	
},

effects = {
CONDITION_PARAM_DELAYED
}
}

function onThink(cid, interval, lastExecution)
    for text, pos in pairs(config.positions) do
	doSendMagicEffect(pos, math.random(10,30)) 
        doSendAnimatedText(pos, text, math.random(30, 134))
    end
    return TRUE
end

and in Globalevents.xml add this

PHP:
<globalevent name="effect" interval="-1" script="Effectile.lua" />


If i helped Rep me :)
 
Back
Top