Return SendPacket (0x18, $ HEADER_MAP_TRAVEL, $ aMapID,Quote:
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?
Quote:
Return SendPacket (0x18, $ HEADER_MAP_TRAVEL, $ aMapID,
...........................................^
exakt dort ist ein Leerschritt $HEADER_MAP_TRAVEL muss es heissen :)
Das meinte DerMoench14
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.Quote:
@ 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)
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.Quote:
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.
I use this as helper when i play with my para, i think you can adapt to your needs.Quote:
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.
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
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?Quote:
I use this as helper when i play with my para, i think you can adapt to your needs.
With HasEffect Func modded like this: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
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.Quote:
I use this as helper when i play with my para, i think you can adapt to your needs.
With HasEffect Func modded like this: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
Code:Func HasEffect($aEffectSkillID, $aHeroNumber) If DllStructGetData(GetEffect($aEffectSkillID, $aHeroNumber), "SkillID") == 0 Then Return False Else Return True EndIf EndFunc
mmm I'm not sure i completely understand your question, my english comprension is average....:DQuote:
How do you get this to follow your team? Loop it with target party leader or something?
Quote:
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.