Postado Agosto 21, 2015 9 anos Bom dia gente ... Estou com alguns problemas na yalahar quest do meu servidor global 8.6: 1) Primeiro aparece esse erro na executável do servidor: 2) O boss Azerus não some da sala e não é possível mata-lo. Procurei em vários foruns para tentar resolver, porém não encontrei nada que me ajudasse ... Se alguem conseguir, fico agradecido. Segue abaixo meu arquivo do azerus.lua (Data/Movements/Scripts/Azerus.Lua) function onStepIn(cid, item, position, fromPosition) --Config--> local queststatus = getPlayerStorageValue(cid, 50001) --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 -- Here is the code start: starting={x = 576, y = 560, z = 10, stackpos = 253} checking={x=starting.x, y=starting.y, z=starting.z, stackpos=starting.stackpos} ending={x = 586, y = 572, z = 10, stackpos = 253} players=0 totalmonsters=0 monster = {} repeat creature= getThingfromPos(checking) if creature.itemid > 0 then if getPlayerAccess(creature.uid) == 0 then players=players+1 end if getPlayerAccess(creature.uid) ~= 0 and getPlayerAccess(creature.uid) ~= 3 then totalmonsters=totalmonsters+1 monster[totalmonsters]=creature.uid end end checking.x=checking.x+1 if checking.x>ending.x then checking.x=starting.x checking.y=checking.y+1 end until checking.y>ending.y if players==0 then trash= {x=33193, y=31689, z=15} current=0 repeat current=current+1 if monster[current] then doTeleportThing(monster[current],trash) end until current>=totalmonsters end -- Here is the end of it doTeleportThing(cid, 581, 570, 10) doSendMagicEffect(player_pos_entrada, 10) else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, 'Você já terminou a quest!') end end Obrigado. Dou REP para quem conseguir me ajudar.
Postado Agosto 21, 2015 9 anos lol que isso? doTeleportThing(cid, 581, 570, 10) - Creio eu que os numero seja uma coordenada? intao deveria ser assim: function onStepIn(cid, item, position, fromPosition) local Coordenada = {x= 581,y= 570,z= 10} ----- Edited --Config--> local queststatus = getPlayerStorageValue(cid, 50001) --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 -- Here is the code start: starting={x = 576, y = 560, z = 10, stackpos = 253} checking={x=starting.x, y=starting.y, z=starting.z, stackpos=starting.stackpos} ending={x = 586, y = 572, z = 10, stackpos = 253} players=0 totalmonsters=0 monster = {} repeat creature= getThingfromPos(checking) if creature.itemid > 0 then if getPlayerAccess(creature.uid) == 0 then players=players+1 end if getPlayerAccess(creature.uid) ~= 0 and getPlayerAccess(creature.uid) ~= 3 then totalmonsters=totalmonsters+1 monster[totalmonsters]=creature.uid end end checking.x=checking.x+1 if checking.x>ending.x then checking.x=starting.x checking.y=checking.y+1 end until checking.y>ending.y if players==0 then trash= {x=33193, y=31689, z=15} current=0 repeat current=current+1 if monster[current] then doTeleportThing(monster[current],trash) end until current>=totalmonsters end -- Here is the end of it doTeleportThing(cid, Coordenada) doSendMagicEffect(player_pos_entrada, 10) else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, 'Você já terminou a quest!') end end
Postado Agosto 22, 2015 9 anos Autor Me desculpa, postei o script errado. O original que estou usando é este: function onStepIn(cid, item, position, fromPosition) --Config--> local queststatus = getPlayerStorageValue(cid, 50001) --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 -- Here is the code start: starting={x = 576, y = 560, z = 10, stackpos = 253} checking={x=starting.x, y=starting.y, z=starting.z, stackpos=starting.stackpos} ending={x = 586, y = 572, z = 10, stackpos = 253} players=0 totalmonsters=0 monster = {} repeat creature= getThingfromPos(checking) if creature.itemid > 0 then if getPlayerAccess(creature.uid) == 0 then players=players+1 end if getPlayerAccess(creature.uid) ~= 0 and getPlayerAccess(creature.uid) ~= 3 then totalmonsters=totalmonsters+1 monster[totalmonsters]=creature.uid end end checking.x=checking.x+1 if checking.x>ending.x then checking.x=starting.x checking.y=checking.y+1 end until checking.y>ending.y if players==0 then trash= {x=33193, y=31689, z=15} current=0 repeat current=current+1 doTeleportThing(monster[current],trash) until current>=totalmonsters end -- Here is the end of it doTeleportThing(cid, player_pos_entrada) doSendMagicEffect(player_pos_entrada, 10) else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, 'Você já terminou a quest!') end 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.