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

the text dosent come up from teleports, have i the rigth code?

Daaslund

New Member
Joined
Dec 13, 2010
Messages
41
Reaction score
1
Code:
local config = {
 positions = {
  ["Teleports"] = { x = 1006, y = 996, z = 7 },
  ["Quests"] = { x = 1006, y = 997, z = 7 },
  ["Trainers"] = { x = 1006, y = 998, z = 7 },
  ["Houses!"] = { x = 1006, y = 999, z = 7 },
},
 
 effects = {
  CONST_ME_MAGIC_BLUE,
  CONST_ME_MAGIC_GREEN,
 },
 
 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
 

Similar threads

Back
Top