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

teleports effect

Code:
local config = {
 positions = {
  ["Welcome"] = { x = 1105, y = 989, z = 7 },
  ["Hunt Spot"] = { x = 1003, y = 996, z = 7 },
  ["Quests"] = { x = 1004, y = 996, z = 7 },
  ["Trainers"] = { x = 997, y = 1002, z = 7 }
},

 effects = {
  CONST_ME_MAGIC_BLUE,
  CONST_ME_MAGIC_GREEN,
  CONST_ME_MORTAREA,
  CONST_ME_STUN
 },

 colors = {
  TEXTCOLOR_WHITE,
  TEXTCOLOR_ORANGE,
  TEXTCOLOR_GREEN,
  TEXTCOLOR_BLUE
 }
}

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

Code:
<globalevent name="effects" interval="1500" event="script" value="effects.lua"/>
 
Back
Top