does anyone know how to make a script add heroes/henchmen to your party?
also, what would be the equivalent to put into a script to "C + Spacebar" (target nearest foe + attack)
is there a reason scripts never open the zaishen chest with the same dialogue as toolbox does? is it not safe? wondering if i can use it to make certain scripts faster.
In the public ToC script there is a function called EnterFoW() somewhere around line #677. I modified the movement route to ensure that it gives a wide route around the NPC that often patrols and sometimes body blocks your character. for me I replaced the movement with a new function MoveRandom() and wrote 20 different paths that worked. You can simply change whatever coords are getting you stuck with any of the below or you can put the new function in and and just cut/paste the below into your script.
Code:
Func MoveRandom()
Out("Random Movement")
Switch (Random(1, 20, 1)) ;<<<<<<<<<<<<<<<<<<<<<<<< NOTICE: MAKE SURE TO CHANGE THIS TO THE NUMBER OF RANDOM PATHS >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.
Case 1
Out("Random Move-1")
MoveTo(-3921, 17481, 100)
Case 2
Out("Random Move-2")
MoveTo(-3872, 17407, 100)
Case 3
Out("Random Move-3")
MoveTo(-4030, 17267, 100)
Case 4
Out("Random Move-4")
MoveTo(-4318, 17257, 100)
Case 5
Out("Random Move-5")
MoveTo(-4517, 17140, 100)
MoveTo(-3298, 17703, 100)
Case 6
Out("Random Move-6")
MoveTo(-3604, 17680, 100)
Case 7
Out("Random Move-7")
MoveTo(-3110, 17908, 100)
Case 8
Out("Random Move-8")
MoveTo(-3041, 18051, 100)
Case 9
Out("Random Move-9")
MoveTo(-2958, 18041, 100)
Case 10
Out("Random Move-10")
MoveTo(-3349, 17643, 100)
Case 11
Out("Random Move-11")
MoveTo(-4217, 16914, 100)
Case 12
Out("Random Move-12")
MoveTo(-4210, 17072, 100)
MoveTo(-3729, 17264, 100)
Case 13
Out("Random Move-13")
MoveTo(-4776, 17714, 100)
MoveTo(-2989, 18115, 100)
Case 14
Out("Random Move-14")
MoveTo(-4207, 17233, 100)
Sleep(GetPing()+250)
MoveTo(-3316, 17795, 100)
Case 15
Out("Random Move-15")
MoveTo(-5347, 18281, 100)
Sleep(GetPing()+350)
MoveTo(-4764, 18646, 100)
Sleep(GetPing()+350)
MoveTo(-3655, 17592, 100)
MoveTo(-3050, 17958, 100)
Case 16
Out("Random Move-16")
MoveTo(-3724, 17171, 100)
Sleep(GetPing()+350)
Case 17
Out("Random Move-17")
MoveTo(-5063, 19388, 100)
Sleep(GetPing()+5550)
MoveTo(-3902, 17738, 100)
Sleep(GetPing()+350)
MoveTo(-3757, 17694, 100)
MoveTo(-3614, 17697, 100)
MoveTo(-3614, 17697, 100)
MoveTo(-3400, 17779, 100)
Case 18
Out("Random Move-18")
MoveTo(-4667, 17195, 100)
MoveTo(-4667, 17195, 100)
MoveTo(-3935, 17277, 100)
Case 19
Out("Random Move-19")
MoveTo(-4110, 17172, 100)
ReverseDirection()
Sleep(GetPing()+1550)
ReverseDirection()
Sleep(GetPing()+1550)
MoveTo(-3471, 17634, 100)
Case 20
Out("Random Move-20")
MoveTo(-4601, 17762, 100)
Sleep(GetPing()+1550)
ReverseDirection()
Sleep(GetPing+1550)
ReverseDirection()
MoveTo(-4196, 17809, 100)
MoveTo(-3476, 17772, 100)
EndSwitch
EndFunc ;Move to 1 of 20 random spots
In the public ToC script there is a function called EnterFoW() somewhere around line #677. I modified the movement route to ensure that it gives a wide route around the NPC that often patrols and sometimes body blocks your character. for me I replaced the movement with a new function MoveRandom() and wrote 20 different paths that worked. You can simply change whatever coords are getting you stuck with any of the below or you can put the new function in and and just cut/paste the below into your script.
Code:
Func MoveRandom()
Out("Random Movement")
Switch (Random(1, 20, 1)) ;<<<<<<<<<<<<<<<<<<<<<<<< NOTICE: MAKE SURE TO CHANGE THIS TO THE NUMBER OF RANDOM PATHS >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.
Case 1
Out("Random Move-1")
MoveTo(-3921, 17481, 100)
Case 2
Out("Random Move-2")
MoveTo(-3872, 17407, 100)
Case 3
Out("Random Move-3")
MoveTo(-4030, 17267, 100)
Case 4
Out("Random Move-4")
MoveTo(-4318, 17257, 100)
Case 5
Out("Random Move-5")
MoveTo(-4517, 17140, 100)
MoveTo(-3298, 17703, 100)
Case 6
Out("Random Move-6")
MoveTo(-3604, 17680, 100)
Case 7
Out("Random Move-7")
MoveTo(-3110, 17908, 100)
Case 8
Out("Random Move-8")
MoveTo(-3041, 18051, 100)
Case 9
Out("Random Move-9")
MoveTo(-2958, 18041, 100)
Case 10
Out("Random Move-10")
MoveTo(-3349, 17643, 100)
Case 11
Out("Random Move-11")
MoveTo(-4217, 16914, 100)
Case 12
Out("Random Move-12")
MoveTo(-4210, 17072, 100)
MoveTo(-3729, 17264, 100)
Case 13
Out("Random Move-13")
MoveTo(-4776, 17714, 100)
MoveTo(-2989, 18115, 100)
Case 14
Out("Random Move-14")
MoveTo(-4207, 17233, 100)
Sleep(GetPing()+250)
MoveTo(-3316, 17795, 100)
Case 15
Out("Random Move-15")
MoveTo(-5347, 18281, 100)
Sleep(GetPing()+350)
MoveTo(-4764, 18646, 100)
Sleep(GetPing()+350)
MoveTo(-3655, 17592, 100)
MoveTo(-3050, 17958, 100)
Case 16
Out("Random Move-16")
MoveTo(-3724, 17171, 100)
Sleep(GetPing()+350)
Case 17
Out("Random Move-17")
MoveTo(-5063, 19388, 100)
Sleep(GetPing()+5550)
MoveTo(-3902, 17738, 100)
Sleep(GetPing()+350)
MoveTo(-3757, 17694, 100)
MoveTo(-3614, 17697, 100)
MoveTo(-3614, 17697, 100)
MoveTo(-3400, 17779, 100)
Case 18
Out("Random Move-18")
MoveTo(-4667, 17195, 100)
MoveTo(-4667, 17195, 100)
MoveTo(-3935, 17277, 100)
Case 19
Out("Random Move-19")
MoveTo(-4110, 17172, 100)
ReverseDirection()
Sleep(GetPing()+1550)
ReverseDirection()
Sleep(GetPing()+1550)
MoveTo(-3471, 17634, 100)
Case 20
Out("Random Move-20")
MoveTo(-4601, 17762, 100)
Sleep(GetPing()+1550)
ReverseDirection()
Sleep(GetPing+1550)
ReverseDirection()
MoveTo(-4196, 17809, 100)
MoveTo(-3476, 17772, 100)
EndSwitch
EndFunc ;Move to 1 of 20 random spots
Are you editing the ToC script from like 15 pages ago? Yours seems to have more script and the enterfow function seems to start another one called enterkneel which I thought was doing that movement. Again I may be mistaken, my knowledge is basically nothing lol
I did some looking and I see how I could add it to the script, now misses that group entirely. Thank you very much! I was wondering also how you got these coordinates? Is that thru toolbox somehow or a different way? Thanks for the help on this fix though, there is about 10 stuck again in the same spot still XD
Are you editing the ToC script from like 15 pages ago? Yours seems to have more script and the enterfow function seems to start another one called enterkneel which I thought was doing that movement. Again I may be mistaken, my knowledge is basically nothing lol
I did some looking and I see how I could add it to the script, now misses that group entirely. Thank you very much! I was wondering also how you got these coordinates? Is that thru toolbox somehow or a different way? Thanks for the help on this fix though, there is about 10 stuck again in the same spot still XD
you can get co-ords from toolbox under the "player" section in the settings
Since you guys didn't notice this yet:
The problem with the toc bot being stuck kneeling is that the modelID of the champion has changed since the anniversary update. Just do +4 to the champion ID and then it has no problems entering FoW.
Could someone update the Leader / Follower bot please ?
Would be much appreciated.
Grab a gwa2 file from a "working" bot and see if it works and what doesn't. The basic idea of a follow bot is find local player, find player to follow, if the distance is too much move to them, and then also check for in combat/looting.