• 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 I rep++ for help!

Flaxit

FrozenL Player
Joined
May 22, 2009
Messages
179
Reaction score
1
Location
Sweden
How do i make so it comes text over my tps for example: "WAR ZONE" or "TEPLE" etc.. I would rep++ if someone could help me with that.
 
[Globalevents]

Lua:
function onThink(interval, lastExecution)
local teleportpos1 = {x=xxxx, y=yyyy, z=z, stackpos=1}
    doSendAnimatedText(teleportpos1, "TEXT HERE", math.random( 1, 65 ) )
    doSendMagicEffect(teleportpos1, math.random( 1, 65 ) )
 return TRUE
end

on globalevents.xml

PHP:
<globalevent name="Talk Tp" interval="3" script="scriptname"/>

Heres one for only one colour and one effect:

Lua:
function onThink(interval, lastExecution)
local teleportpos1 = {x=xxxx, y=yyyy, z=z, stackpos=1}
    doSendAnimatedText(teleportpos1, "TEXT HERE", TEXTCOLOR_COLOURNAME)
    doSendMagicEffect(teleportpos1, CONST_ME_EFFECTNAME)
 return TRUE
end
interval="3" ---> each 3 seconds it will say the words that u typed on "TEXTHERE"
 
XML, World, Npc, Monster, Actions, Creature scripts, logs, actions, talkactions and more.. But no global events.. can i make a own it does work then?
 
Back
Top