Ir para conteúdo
  • 0

Globalevents Portais Falantes Erro.


JumentoCuzaum

Pergunta

Eu Uso Este Code:

 

local config = {
   positions = {
    ["Thais"] = { x = 552, y = 226, z = 7 },Thais
    ["Thais"] = { x = 654, y = 847, z = 7 },Venore
    ["Thais"] = { x = 518, y = 602, z = 7 },Edron
    ["Thais"] = { x = 789, y = 308, z = 7 },Deserto
    ["Thais"] = { x = 250, y = 180, z = 7 },Carlin
    ["Thais"] = { x = 413, y = 804, z = 7 },Fibula

   }
}

function onThink(cid, interval, lastExecution)
   for text, pos in pairs(config.positions) do
    doSendAnimatedText(pos, text, math.random(1, 255))
   end

   return TRUE
end

 

 

fui com o god em todos os tps e nada :S ja aticionei a tag no GlobalEvents.xml e mesmo assim não aparece

 

tag:

 

<globalevent name="tps" interval="2" event="script" value="tps.lua"/>
Link para o comentário
Compartilhar em outros sites

5 respostass a esta questão

Posts Recomendados

  • 0

Tenta esse.

 

--- Created for otsmateria.com (c)----
local positions = {
["ARENA"] = {x = 996, y = 998, z = 8},
["TRAINERS"] = {x = 993, y = 1000, z = 7},
["ITEMS"] = {x = 996, y = 1003, z = 7},
["QUEST"] = {x = 994, y = 1003, z = 7},
["WAR ZONE"] = {x = 997, y = 997, z = 6},
["TP-ROOM"] = {x = 997, y = 999, z = 7},
["TP ROOM"] = {x = 1002, y = 983, z = 7},
["WAR-ZONE"] = {x = 999, y = 994, z = 7},
["OPPEN-B"] = {x = 616, y = 1423, z = 7},
["TRAP-B"] = {x = 618, y = 1423, z = 7},
["ARENA"] = {x = 620, y = 1423, z = 7},
["FreeHouse"] = {x = 996, y = 995, z = 7},
["DEPO"] = {x = 1000, y = 994, z = 7},
}
local effects = {31, 32}
function onThink(interval, lastExecution)
for text, pos in pairs(positions) do
 doSendMagicEffect(pos, effects[math.random(1, #effects)])
 doSendAnimatedText(pos, text, math.random(1, 254))
end
return true
end

Link para o comentário
Compartilhar em outros sites

  • 0

o que eu usava aqui:

local text = {

--X pos,Y pos, Z pos, text

[1] = {pos = {32374,32233,7}, text = {"DOTA"}},

[2] = {pos = {32374,32238,7}, text = {"WoE"}},

[3] = {pos = {32364,32233,7}, text = {"Coliseum"}},

[4] = {pos = {32364,32239,7}, text = {"Zombie"}},

}

 

local effects = {

--X pos,Y pos, Z pos, text

[1] = {pos = {32374,32233,7}, effect = {11}},

[2] = {pos = {32374,32238,7}, effect = {11}},

[3] = {pos = {32364,32233,7}, effect = {11}},

[4] = {pos = {32364,32239,7}, effect = {11}},

}

 

function onThink(interval, lastExecution)

for _, area in pairs(text) do

doSendAnimatedText({x=area.pos[1],y=area.pos[2],z=area.pos[3]},area.text[1], math.random(01,255))

end

for _, area in pairs(effects) do

doSendMagicEffect({x=area.pos[1],y=area.pos[2],z=area.pos[3]},area.effect[1])

end

return TRUE

end

 

Link para o comentário
Compartilhar em outros sites

  • 0

vou tentar depois comento aki pra ver como ficou ...

 

o que eu usava aqui:

local text = {

--X pos,Y pos, Z pos, text

[1] = {pos = {32374,32233,7}, text = {"DOTA"}},

[2] = {pos = {32374,32238,7}, text = {"WoE"}},

[3] = {pos = {32364,32233,7}, text = {"Coliseum"}},

[4] = {pos = {32364,32239,7}, text = {"Zombie"}},

}

 

local effects = {

--X pos,Y pos, Z pos, text

[1] = {pos = {32374,32233,7}, effect = {11}},

[2] = {pos = {32374,32238,7}, effect = {11}},

[3] = {pos = {32364,32233,7}, effect = {11}},

[4] = {pos = {32364,32239,7}, effect = {11}},

}

 

function onThink(interval, lastExecution)

for _, area in pairs(text) do

doSendAnimatedText({x=area.pos[1],y=area.pos[2],z=area.pos[3]},area.text[1], math.random(01,255))

end

for _, area in pairs(effects) do

doSendMagicEffect({x=area.pos[1],y=area.pos[2],z=area.pos[3]},area.effect[1])

end

return TRUE

end

 

 

esse deu certo vlw +REP ;]

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...