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

GlobalEvent Effects on floor

9380023

New Member
Joined
Apr 19, 2010
Messages
37
Reaction score
0
PHP:
<globalevent name="Tp"  interval="1" script="effects.lua"/>


go and create lua.file call it effects

PHP:
local config = {
 positions = {
  ["We"] = { x = 998, y = 998, z = 7 },
  ["LovE"] = { x = 999, y = 998, z = 7 },
  ["KinG"] = { x = 1000, y = 998, z = 7 },
  ["DixoN"] = { x = 1001, y = 998, z = 7 },
},

 effects = {
   35
 },

 colors = {
  TEXTCOLOR_RED
 }
}

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, config.colors[math.random(1, #config.colors)])
 end
 return TRUE
end

to change the effect change this number
effects = {
35

to change the colour of words go here
colors = {
TEXTCOLOR_RED


like if its differnt for u
here's a picture

ImageShack� - Online Photo and Video Hosting

Comment if u like:)
 
Last edited:
interval -1???
 
ye it works aswell in my serv, lol and there's a picture
 
he mean for the time to repeat this is too low may cause lag and nothing new ur wasting ur time
 
It will change automatically I think.
I remember some bugs I noticed in console which been caused by too low interval value.
I'm not sure how it's now, but in past it was 500ms (or maybe ~625?)
 
Back
Top