Ir para conteúdo

Pergunta

Ola, gostaria de pedir ajuda a voces do XTIBIA...

estou com um script que funciona da seguinte forma

quando sobe no teleport todos os monstros da sala no caso yalahar quest é teleportados para que a sala fique limpa e fazer a quest denovo!

 

so que esta aparecendo um erro toda hora que faz isso...

alguem poderia me ajudar?

dou REP+

 

ERRO

 

 

[17/11/2012 21:24:55] [Error - MoveEvents Interface]

[17/11/2012 21:24:55] data/movements/scripts/azerus.lua:onStepIn

[17/11/2012 21:24:55] Description:

[17/11/2012 21:24:55] (luaGetThingFromPosition) Tile not found

 

[17/11/2012 21:24:55] [Error - MoveEvents Interface]

[17/11/2012 21:24:55] data/movements/scripts/azerus.lua:onStepIn

[17/11/2012 21:24:55] Description:

[17/11/2012 21:24:55] (luaGetThingFromPosition) Tile not found

 

 

 

function onStepIn(cid, item, position, fromPosition)

--Config-->

local queststatus = getPlayerStorageValue(cid, 50001)

local player_pos_entrada = {x = 32784, y = 31177, z = 9} --coloque a pos pra onde o player q pisou no piso vai ser teleportado!

local starting={x = 32775, y = 31156, z = 10}

local ending={x = 32790, y = 31175, z = 10}

local trash= {x=33193, y=31689, z=15}

local players = 0

local total = 0

local monster = {}

--EndConfig-->

 

 

if item.actionid == 1974 and queststatus == -1 then

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "It seems by defeating Azerus you have stoped this army from entering your world! Better leave this ghastly place forever.")

setPlayerStorageValue(cid, 4765, 1)

return TRUE

end

 

if item.actionid == 1973 and queststatus == -1 then

 

for x = starting.x, ending.x do

for y = starting.y, ending.y do

local creature = getThingfromPos({x = x, y = y, z = starting.z, stackpos = 253}).uid

if isPlayer(creature) then players = players+1 end

if isMonster(creature) then monster[total+1] = creature total = total+1 end

end

end

 

if #monster > 0 and players == 0 then

for i = 1, #monster do

doTeleportThing(monster, trash)

end

end

 

doTeleportThing(cid, player_pos_entrada)

doSendMagicEffect(player_pos_entrada, 10)

 

else

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, 'Você já terminou a quest!')

end

return true

end

 

Link para o comentário
https://xtibia.com/forum/topic/199155-azerus-scripts-teleport/
Compartilhar em outros sites

0 respostass a esta questão

Posts Recomendados

Até agora não há respostas para essa pergunta

Visitante
Este tópico está impedido de receber novos posts.
×
×
  • Criar Novo...