Zonet
Web Developer
Hello, i made a easir script of goGoGo script which was posted by kokorec.
PS: This script works only for 0.3!
I've worked on it not long 5 minutes, but i had problem
with couldn't execute event
I found that problem just put a return TRUE before the end
What it does?
Text appear on a tile everysecond.
A Magic effect too.
This are using math.random so there will be random effect
Here is it
Create a new file in data/globalevents/script name it text.lua.
Open it and paste in this.
Now go to your data/globalevents/globalevents.xml
Write this line.
Dont forget!
Interval = 1 = 1 Second.
Pos = which pos the text should appear.
Liked it?
rep++
PS: This script works only for 0.3!
I've worked on it not long 5 minutes, but i had problem
with couldn't execute event
I found that problem just put a return TRUE before the end
What it does?
Text appear on a tile everysecond.
A Magic effect too.
This are using math.random so there will be random effect
Here is it
Create a new file in data/globalevents/script name it text.lua.
Open it and paste in this.
PHP:
function onThink(interval, lastExecution)
local pos = {x=91, y=125, z=7}
local text = "Test"
local color = math.random (1, 215)
local effect = math.random (2, 16)
doSendAnimatedText(pos, text, color)
doSendMagicEffect(pos, effect)
return TRUE
end
Now go to your data/globalevents/globalevents.xml
Write this line.
PHP:
<globalevent name="event" interval="1" script="text.lua"/>
Dont forget!
Interval = 1 = 1 Second.
Pos = which pos the text should appear.
Liked it?
rep++
Last edited: