Olá, tenho uma duvidas sobre o Anti Lure.
não to conseguindo configurar direito para sai o que estive mais proxima de waypoint.
Exemplo:
adicionei 3 label que ta escrito "SaiTop", "SaiHunt" e o segundo no centro "SaiMid", "SaiHunt" e o terceiro perto da saida da hunt "Sai", "SaiHunt" assim por diante.
por isso testei varia vez, quanto tem maior que anti lure, e o char tava mais próxima no label "Sai", "SaiHunt", só que o bot foi pra "SaiTop", "SaiHunt" e nao "Sai", "SaiHunt"
veja como esta no meu scripts.
tem alguns error?PHP Code:
--Anti Lure
auto(100)
if $posz == 9 and $wptsection ~= "SaiTop" and maround(10, "Ghastly Dragon","Lizard Chosen") >= tonumber(getuseroption("AntiLureAmount")) then
playsound("alert.wav")
wait(500)
setsetting('Looting/Enabled', 'no')
setsetting("Persistent/Scripts/Haste/Enabled","yes")
setsetting("Targeting/Creatures/Lizard Chosen/Setting1/OnlyIfTrapped","yes")
setsetting("Targeting/Creatures/Ghastly Dragon/Setting1/OnlyIfTrapped","yes")
setsetting("Targeting/Creatures/Lizard Chosen/Setting2/OnlyIfTrapped","yes")
setsetting("Targeting/Creatures/Ghastly Dragon/Setting2/OnlyIfTrapped","yes")
stopattack()
gotolabel("SaiTop","SaiHunt")
wait(5000)
elseif $posz == 9 and $wptsection ~= "SaiMid" and maround(10, "Ghastly Dragon","Lizard Chosen") >= tonumber(getuseroption("AntiLureAmount")) then
setlooting("no")
setsetting("Persistent/Scripts/Haste/Enabled","yes")
setsetting("Targeting/Creatures/Lizard Chosen/Setting1/OnlyIfTrapped","yes")
setsetting("Targeting/Creatures/Ghastly Dragon/Setting1/OnlyIfTrapped","yes")
setsetting("Targeting/Creatures/Lizard Chosen/Setting2/OnlyIfTrapped","yes")
setsetting("Targeting/Creatures/Ghastly Dragon/Setting2/OnlyIfTrapped","yes")
stopattack()
gotolabel("SaiMid","SaiHunt")
wait(5000)
elseif $posz == 9 and $wptsection ~= "Sai" and maround(10, "Ghastly Dragon","Lizard Chosen") >= tonumber(getuseroption("AntiLureAmount")) then
setlooting("no")
setsetting("Persistent/Scripts/Haste/Enabled","yes")
setsetting("Targeting/Creatures/Lizard Chosen/Setting1/OnlyIfTrapped","yes")
setsetting("Targeting/Creatures/Ghastly Dragon/Setting1/OnlyIfTrapped","yes")
setsetting("Targeting/Creatures/Lizard Chosen/Setting2/OnlyIfTrapped","yes")
setsetting("Targeting/Creatures/Ghastly Dragon/Setting2/OnlyIfTrapped","yes")
stopattack()
gotolabel("Sai","SaiHunt")
wait(5000)
end