Ir para conteúdo

Featured Replies

Postado

Ola eu to com um erro no script do azerus e acho que ele ta derrubando o game, pois aparecem muitos!

quem puder me ajudar arruma agradeço

REP+

[18/12/2012 21:27:51] [Error - MoveEvents Interface]

[18/12/2012 21:27:51] data/movements/scripts/azerus.lua:onStepIn

[18/12/2012 21:27:51] Description:

[18/12/2012 21:27:51] (luaGetThingFromPosition) Tile not found

Script movements

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=72, y=56, z=7}

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

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo