GW Working Bots 2020

05/10/2021 11:34 monsterzone93#1891
Quote:
Originally Posted by DerMoench14 View Post
Delete the Space between $ and H.
Da ist mir ein Fehler beim Tippen passsiert, was meinst du mit H ?
05/10/2021 12:41 zer0.de#1892
Quote:
Originally Posted by monsterzone93 View Post
Hi Guys,
I always get this message when I start the new GWA2.
"Line 1505 (File" C: \ .... kilroy \ GWA2.au3 "):

Return SendPacket (0x18, $ HEADER_MAP_TRAVEL, $ aMapID,
$ aRegion, $ aDistrict, $ aLanguage, False)
Return SendPacket (0x18, ^ ERROR

Error: Variable used without beeing declared "

I tried to declare the variable, but the game crashes. The command looks like this "Global Const $ HEADER_MAP_TRAVEL = 0x18"

What did I do wrong?
Return SendPacket (0x18, $ HEADER_MAP_TRAVEL, $ aMapID,
...........................................^

exakt dort ist ein Leerschritt $HEADER_MAP_TRAVEL muss es heissen :)

Das meinte DerMoench14
05/10/2021 16:36 monsterzone93#1893
Quote:
Originally Posted by zer0.de View Post
Return SendPacket (0x18, $ HEADER_MAP_TRAVEL, $ aMapID,
...........................................^

exakt dort ist ein Leerschritt $HEADER_MAP_TRAVEL muss es heissen :)

Das meinte DerMoench14

Wie gesagt da ist mir beim Abbtippen der Lehrzeichen passiert, sonst heißt der ja Global Const $HEADER_MAP_TRAVEL = 0x18

Trotz der Variable stürzt das Spiel ab:confused:
05/10/2021 17:09 DerMoench14#1894
Header for map travel isn't 0x18 ...
05/10/2021 17:15 monsterzone93#1895
Quote:
Originally Posted by DerMoench14 View Post
Header for map travel isn't 0x18 ...
How can I find out the travel number ?
05/10/2021 23:01 OneStrangeGuy#1896
@ markgw3
Maybe you use a bad SkillID for Shelter
Yes the func HasEffect written that way already target you, no need to declare a target.
If you want to check effects on heroes you need to modify it a bit.

Test this script, its basic but runs fine.
Code:
If HasEffect(982) = True Then
   CurrentAction("Shelter found")
Else
   CurrentAction("Shelter NOT found")
EndIf
Sleep(1500)
If HasEffect(911) = True Then
   CurrentAction("Union found")
Else
   CurrentAction("Union NOT found")
EndIf
Sleep(1500)
If HasEffect(1249) = True Then
   CurrentAction("Displacement found")
Else
   CurrentAction("Displacement NOT found")
EndIf
Sleep(1500)
05/11/2021 01:27 markgw3#1897
Quote:
Originally Posted by OneStrangeGuy View Post
@ markgw3
Maybe you use a bad SkillID for Shelter
Yes the func HasEffect written that way already target you, no need to declare a target.
If you want to check effects on heroes you need to modify it a bit.

Test this script, its basic but runs fine.
Code:
If HasEffect(982) = True Then
   CurrentAction("Shelter found")
Else
   CurrentAction("Shelter NOT found")
EndIf
Sleep(1500)
If HasEffect(911) = True Then
   CurrentAction("Union found")
Else
   CurrentAction("Union NOT found")
EndIf
Sleep(1500)
If HasEffect(1249) = True Then
   CurrentAction("Displacement found")
Else
   CurrentAction("Displacement NOT found")
EndIf
Sleep(1500)
yep definitely bad skill ID, it seems to work now. OK I think I know how to fix it. Thanks for helping me debug.
05/11/2021 05:35 snowflavored#1898
Anybody know why peacekeepers are spawning in the path for the Dust Farm Rit v1.5? I haven't done any of that content on either of the accounts I'm trying to run it on and there is basically groups everywhere. I know they have to do with WiK questline or the bounties, but I have neither of those quests/activities on these characters.
05/11/2021 08:23 markgw3#1899
Is there a way for me to check if another party member has a buff? I'm making an HR paragon bot that checks if each party member has HR if not, applies it. I am thinking I start with GetParty() then loop through each agent in the array, but IDK if there's a way to GetEffect(hrID) by agent.
05/11/2021 11:06 Liliza#1900
Quote:
Originally Posted by snowflavored View Post
Anybody know why peacekeepers are spawning in the path for the Dust Farm Rit v1.5? I haven't done any of that content on either of the accounts I'm trying to run it on and there is basically groups everywhere. I know they have to do with WiK questline or the bounties, but I have neither of those quests/activities on these characters.
IIRC, WiK stuff starts spawning as soon as you beat either EotN or Prophecies. To get rid of them, you'll need to beat WiK.
05/11/2021 21:51 OneStrangeGuy#1901
Quote:
Originally Posted by markgw3 View Post
Is there a way for me to check if another party member has a buff? I'm making an HR paragon bot that checks if each party member has HR if not, applies it. I am thinking I start with GetParty() then loop through each agent in the array, but IDK if there's a way to GetEffect(hrID) by agent.
I use this as helper when i play with my para, i think you can adapt to your needs.
Code:
For $i = 0 To GetHeroCount()
   If HasEffect(3431, $i) = False Then UseSkillEx(8, GetHeroID($i)) ; HR skillID = 3431
   Sleep (200)
   UseSkillEx(5) ; (They're on Fire)
   Sleep (10000)
Next
With HasEffect Func modded like this:
Code:
Func HasEffect($aEffectSkillID, $aHeroNumber)
   If DllStructGetData(GetEffect($aEffectSkillID, $aHeroNumber), "SkillID") == 0 Then
	  Return False
   Else
	  Return True
   EndIf
EndFunc
05/11/2021 23:14 OriginsEXE#1902
Quote:
Originally Posted by OneStrangeGuy View Post
I use this as helper when i play with my para, i think you can adapt to your needs.
Code:
For $i = 0 To GetHeroCount()
   If HasEffect(3431, $i) = False Then UseSkillEx(8, GetHeroID($i)) ; HR skillID = 3431
   Sleep (200)
   UseSkillEx(5) ; (They're on Fire)
   Sleep (10000)
Next
With HasEffect Func modded like this:
Code:
Func HasEffect($aEffectSkillID, $aHeroNumber)
   If DllStructGetData(GetEffect($aEffectSkillID, $aHeroNumber), "SkillID") == 0 Then
	  Return False
   Else
	  Return True
   EndIf
EndFunc
How do you get this to follow your team? Loop it with target party leader or something?
05/11/2021 23:48 markgw3#1903
Quote:
Originally Posted by OneStrangeGuy View Post
I use this as helper when i play with my para, i think you can adapt to your needs.
Code:
For $i = 0 To GetHeroCount()
   If HasEffect(3431, $i) = False Then UseSkillEx(8, GetHeroID($i)) ; HR skillID = 3431
   Sleep (200)
   UseSkillEx(5) ; (They're on Fire)
   Sleep (10000)
Next
With HasEffect Func modded like this:
Code:
Func HasEffect($aEffectSkillID, $aHeroNumber)
   If DllStructGetData(GetEffect($aEffectSkillID, $aHeroNumber), "SkillID") == 0 Then
	  Return False
   Else
	  Return True
   EndIf
EndFunc
Isn't GetHeroCount() only work for if you are the party leader and you are only leading heroes? Not other party members/other party member heroes. I was looking at it more as a support group for the whole party. Do you know what kind of DllStructGetData can I get from an agent to look through their buffs? I could be wrong about the $aHeroNumber, 0 is self -> 1-ith number are heroes or party members/other players? I may have gotten that confused.
05/12/2021 00:41 OneStrangeGuy#1904
Quote:
Originally Posted by OriginsEXE View Post
How do you get this to follow your team? Loop it with target party leader or something?
mmm I'm not sure i completely understand your question, my english comprension is average....:D

Your team are heroes and they stay around you.
So except at the beginning, when it needs time to cast HR on all your heroes, it only cast "They're on fire" to maintain HR and occasionally recast HR if someone lose it.
I use this, to keep me free to do this job when i play alone.

If you want something that runs with real players, i think it's a waste of time. It's almost impossible to keep up HR on a party of players, they move too much.

Quote:
Originally Posted by markgw3 View Post
Isn't GetHeroCount() only work for if you are the party leader and you are only leading heroes? Not other party members/other party member heroes. I was looking at it more as a support group for the whole party. Do you know what kind of DllStructGetData can I get from an agent to look through their buffs? I could be wrong about the $aHeroNumber, 0 is self -> 1-ith number are heroes or party members/other players? I may have gotten that confused.

Just tested, GetHeroCount() return the right number of heroes of the team even if you are not the party leader or heroes aren't yours. It doesen't detect other pll.
So the script above keeps HR on yourself and on all heroes.

$aHeroNumber=0 target you because the func GetHeroID(0) returns GetMyID()

For real pll i think you need to locate their AgentID and look for the buff.
But now is too late and i need to sleep
05/12/2021 11:59 gauthier119#1905
Hey guys ,

im back on the game , Someone have JQ bot ?

Thank you !