GW Working Bots 2020

01/19/2021 19:03 Razerb#1426
Quote:
Originally Posted by Restia Ashdoll View Post


Easy way to find where an error happens is to add outputs

in most of the bots the function for that is Out("")


So you can put a few outs after inbetween the func to see when the error happens

Out("Start using hero skills")

Out("Hero Skills used/worked")

Out("Command Heros")
Out("Command Worked")

etc. and see what gets not displayed is probably the issue

you can narrow that down


on the other hand you can also just debugg




Thank you for the advice I think I found the problem

this function is broke



Func PrepareToFight()
Local $lDunkoro, $lTahlkora, $lMiku, $lZhed
Local $lDeadLock, $lDeadLock2

$lDunkoro = GetAgentByName($dunkoro)
$lTahlkora = GetAgentByName($tahlkora)
$lMiku = GetAgentByName($miku)

UseHeroSkill(4, 1)
Sleep(2000)
UseHeroSkill(4, 8, $lDunkoro)
Sleep(3500)
UseHeroSkill(4, 8, $lTahlkora)
Sleep(3500)
UseHeroSkill(4, 8, $lMiku)
Sleep(3500)


CommandAll(-5536, -4765)

CommandHero(1, -5399, -4965)
CommandHero(2, -5877, -4479)
CommandHero(3, -5669, -4640)
01/19/2021 19:18 Restia Ashdoll#1427
Quote:
Originally Posted by Razerb View Post
Thank you for the advice I think I found the problem

this function is broke



Func PrepareToFight()
Local $lDunkoro, $lTahlkora, $lMiku, $lZhed
Local $lDeadLock, $lDeadLock2

$lDunkoro = GetAgentByName($dunkoro)
$lTahlkora = GetAgentByName($tahlkora)
$lMiku = GetAgentByName($miku)

UseHeroSkill(4, 1)
Sleep(2000)
UseHeroSkill(4, 8, $lDunkoro)
Sleep(3500)
UseHeroSkill(4, 8, $lTahlkora)
Sleep(3500)
UseHeroSkill(4, 8, $lMiku)
Sleep(3500)


CommandAll(-5536, -4765)

CommandHero(1, -5399, -4965)
CommandHero(2, -5877, -4479)
CommandHero(3, -5669, -4640)
as far as i am aware getagendbynameis not working since a few years go by ID
01/19/2021 20:43 Waka.Waka#1428
Quote:
Originally Posted by Restia Ashdoll View Post
as far as i am aware getagendbynameis not working since a few years go by ID
its 99% the getagentbyname() function. all bots i know do it in a different way
01/20/2021 00:31 DerMoench14#1429
Pretty sure it's 100% GetAgentByName() ... afaik noone was able to fix it :D :D :D
01/20/2021 05:56 Razerb#1430
Quote:
Originally Posted by DerMoench14 View Post
Pretty sure it's 100% GetAgentByName() ... afaik noone was able to fix it :D :D :D

So in my *** ^^

thank you all for your advice and your time.
01/20/2021 09:02 Restia Ashdoll#1431
Quote:
Originally Posted by Razerb View Post
So in my *** ^^

thank you all for your advice and your time.
try this approach

Code:
$lMiku = GetAgentbyID(58)
should work for Miku - can read ID's out with toolbox :)
01/20/2021 17:52 Razerb#1432
Quote:
Originally Posted by Restia Ashdoll View Post
try this approach

Code:
$lMiku = GetAgentbyID(58)
should work for Miku - can read ID's out with toolbox :)


A big thank you to all of you it works perfectly now. <3



@[Only registered and activated users can see links. Click Here To Register...]
@[Only registered and activated users can see links. Click Here To Register...]
@[Only registered and activated users can see links. Click Here To Register...]
01/20/2021 19:11 melodida#1433
Quote:
Originally Posted by bob31450 View Post
hi everyone, I have a problem I managed to make mantid farm of 2019 work, it works very well in one detail, it picks up everything except the celestial weapons ^^
does anyone have an idea?
You need to remove the ;~ between line 710 and 737.
In the 2019 version i downloaded, it only pick up celestial shield.
What build do you use? The one in the file seems messy
01/20/2021 19:24 Restia Ashdoll#1434
Quote:
Originally Posted by melodida View Post
You need to remove the ;~ between line 710 and 737.
In the 2019 version i downloaded, it only pick up celestial shield.
What build do you use? The one in the file seems messy
OgcUYxr2lPPInDoOD3JcgOhuJIA
01/20/2021 20:21 Ray133#1435
Quote:
Originally Posted by Amaliax View Post
Hey guys, i'm trying to fix the Kilroy bot, but he crashes while taking the quest, i updated the quest ID with

Global Const $FORNIS_QUEST = 358
&
Global Const $FIRST_DIALOG = 0x85

so i have this :

Func TakeQuest()
Do
Out("Taking quest")
GoNearestNPCToCoords(17341, -4796)
RndSleep(600)
AcceptQuest($FORNIS_QUEST)
RndSleep(2000)
GoNPC(GetNearestNPCToCoords(17341, -4796))
RndSleep(2000)
Dialog($FIRST_DIALOG)
WaitForLoad()
RndSleep(600)
If (GetMapID() == 548) Then
GoToTown()
WaitForLoad()
EndIf
Until GetMapID() = $MAP_ID_FORNISINSTANCE
EndFunc

guess that's where the problem is, but i can't find out what makes him crash, i think it should work

thanks for your help
Use this:

Code:
Func TakeQuest()
	Do
		Out("Taking quest")
		GoNearestNPCToCoords(17320, -4900)
		RndSleep(250)
		Dialog(0x835803)
		RndSleep(250)
		Dialog(0x835801)
		RndSleep(1000)
		GoNPC(GetNearestNPCToCoords(17320, -4900))
		RndSleep(1000)
		Dialog(0x85)
		WaitForLoad()
		RndSleep(250)
        If (GetMapID() == 548) Then
            GoToTown()
            WaitForLoad()
        EndIf
	Until GetMapID() = $MAP_ID_FORNISINSTANCE
EndFunc
Also I dont know whats wrong with the killroy bot but if you're crashing try having toolbox active and it fixes it somehow.
01/20/2021 20:51 Restia Ashdoll#1436
Quote:
Originally Posted by Ray133 View Post
Use this:

Code:
Func TakeQuest()
	Do
		Out("Taking quest")
		GoNearestNPCToCoords(17320, -4900)
		RndSleep(250)
		Dialog(0x835803)
		RndSleep(250)
		Dialog(0x835801)
		RndSleep(1000)
		GoNPC(GetNearestNPCToCoords(17320, -4900))
		RndSleep(1000)
		Dialog(0x85)
		WaitForLoad()
		RndSleep(250)
        If (GetMapID() == 548) Then
            GoToTown()
            WaitForLoad()
        EndIf
	Until GetMapID() = $MAP_ID_FORNISINSTANCE
EndFunc
Also I dont know whats wrong with the killroy bot but if you're crashing try having toolbox active and it fixes it somehow.
Toolbox usually causes crashes with bots currently tbh - if gw continuasly crashes its outdated headers
01/20/2021 20:58 Ray133#1437
Quote:
Originally Posted by Restia Ashdoll View Post
Toolbox usually causes crashes with bots currently tbh - if gw continuasly crashes its outdated headers
I know, Killroy is the exception for me tho.
I just quickly fixed the killroy without really looking into it just to get it working for a night for leg surv.
All my headers are up to date and can only run it with toolbox active.
I only changed some quest/dialog ids and the district travel functions since they were broken.
It's weird it works with toolbox active for me and cant be bothered to look into it tbh :P its a bot you wont be running 24/7 anyway.
01/20/2021 22:53 toastbroodjie#1438
Thanks everyone who is taking the time to help unpack the code and provide people with working hacks for free
01/21/2021 05:29 bob31450#1439
Quote:
Originally Posted by melodida View Post
You need to remove the ;~ between line 710 and 737.
In the 2019 version i downloaded, it only pick up celestial shield.
What build do you use? The one in the file seems messy
thanks i am watching this tonight. the build is exactly the one Restia Ashdoll sent
01/22/2021 11:02 Amaliax#1440
Quote:
Originally Posted by Ray133 View Post
Use this:

Code:
Func TakeQuest()
	Do
		Out("Taking quest")
		GoNearestNPCToCoords(17320, -4900)
		RndSleep(250)
		Dialog(0x835803)
		RndSleep(250)
		Dialog(0x835801)
		RndSleep(1000)
		GoNPC(GetNearestNPCToCoords(17320, -4900))
		RndSleep(1000)
		Dialog(0x85)
		WaitForLoad()
		RndSleep(250)
        If (GetMapID() == 548) Then
            GoToTown()
            WaitForLoad()
        EndIf
	Until GetMapID() = $MAP_ID_FORNISINSTANCE
EndFunc
Also I dont know whats wrong with the killroy bot but if you're crashing try having toolbox active and it fixes it somehow.
Thanks a lot, it works perfectly now :)