I tried to edit the source code but to no avail. I have mistakes all the way, no matter what kind of points I ask to make. I do not know where the problem comes from .. I still had a mistake yesterday with a big white message asking me to send an error report to Arena Net .. My games to crash, for no reason, yet the GWA2 is up to date etc ..
I tried to edit the source code but to no avail. I have mistakes all the way, no matter what kind of points I ask to make. I do not know where the problem comes from .. I still had a mistake yesterday with a big white message asking me to send an error report to Arena Net .. My games to crash, for no reason, yet the GWA2 is up to date etc ..
Always with the Title Package bot.
I don't know how to solve it.. :/
Selene ~
Put the game in english and test again
Ps: met le jeu en anglais et test à nouveau
Mdr, bon je sais que mon Anglais est approximatif mais bon j'avais compris la phrase
Je vais essayer avec le nouvel update, merci bien ♥
tkt, le site est essentiellement anglophone; Ce n’était pas pour toi mais surtout pour les autres lecteurs
D'une manière ou d'une autre, a ton service si tu as d'autres questions.
So I want to add in a timeout Func or loop to the vsf bot because sometimes it gets stuck at certain groups and just heads towards a wall, obviously not great for when I'm leaving it on.
My research for the bot is to insert the timer in the already there while loop which integrates the mainfarm() function.
I'm not near the pc atm but am I right in thinking,
Code:
Global $timeout
While 1
$timeout = TimerInit()
Do
Mainfarm()
Until TimerDiff($timeout) >=1500000 ;hopefully 25 mins
WEnd
So if I'm right that would start the timer and would perform the mainfarm until the difference between the timerinit and the timerdiff is 25 minutes then end the loop and restart? Also do you need to manually reset the timer with 0 variables? Not mad great at coding but trying to whip my head around it as would be a very beneficial function for me to this bot
So I want to add in a timeout Func or loop to the vsf bot because sometimes it gets stuck at certain groups and just heads towards a wall, obviously not great for when I'm leaving it on.
My research for the bot is to insert the timer in the already there while loop which integrates the mainfarm() function.
I'm not near the pc atm but am I right in thinking,
Code:
Global $timeout
While 1
$timeout = TimerInit()
Do
Mainfarm()
Until TimerDiff($timeout) >=1500000 ;hopefully 25 mins
WEnd
So if I'm right that would start the timer and would perform the mainfarm until the difference between the timerinit and the timerdiff is 25 minutes then end the loop and restart? Also do you need to manually reset the timer with 0 variables? Not mad great at coding but trying to whip my head around it as would be a very beneficial function for me to this bot
I would add a timer function via AdLibRegister(calls a method in a certain time interval), which sets a bool to false when a certain time is reached. Before any action, always check the bool. So in case the time limit is reached, the bot 'drops' through the main loop and starts again.
Code:
Global $stuck = 0
Global $timer
Func CheckStuck()
If TimerDiff($timer) > 1500000 Then $stuck = 1
EndFunc
Func Mainloop()
AdLibRegister("CheckStuck")
$stuck = 0
Local $timer = TimerInit()
...
If $stuck = 0 Then FightGroup1()
If $stuck = 0 Then FightGroup2()
...
If $stuck = 0 Then OpenChest()
AdLibUnRegister("CheckStuck")
EndFunc
I would add a timer function via AdLibRegister(calls a method in a certain time interval), which sets a bool to false when a certain time is reached. Before any action, always check the bool. So in case the time limit is reached, the bot 'drops' through the main loop and starts again.
Code:
Global $stuck = 0
Global $timer
Func CheckStuck()
If TimerDiff($timer) > 1500000 Then $stuck = 1
EndFunc
Func Mainloop()
AdLibRegister("CheckStuck")
$stuck = 0
Local $timer = TimerInit()
...
If $stuck = 0 Then FightGroup1()
If $stuck = 0 Then FightGroup2()
...
If $stuck = 0 Then OpenChest()
AdLibUnRegister("CheckStuck")
EndFunc
A Better solution would be not to have the timer globally and checks via "adlibregister", instead use it in your "fightgroup" function, so every fight has its own timer.
when the timeout is hit, set $stuck =1 and the other fights shouldnt be performed, at least thats what i think it does (dont know the source-code)
That would be the way i try to solve the issue (overall i dont like functions that get called every *** MilliSeconds, this is just a way to solve a bad programming, IMO)
Adlibregister can make problems on low spec pc, espacially when you have multiple clients / bots running
A Better solution would be not to have the timer globally and checks via "adlibregister", instead use it in your "fightgroup" function, so every fight has its own timer.
when the timeout is hit, set $stuck =1 and the other fights shouldnt be performed, at least thats what i think it does (dont know the source-code)
That would be the way i try to solve the issue (overall i dont like functions that get called every *** MilliSeconds, this is just a way to solve a bad programming, IMO)
Adlibregister can make problems on low spec pc, espacially when you have multiple clients / bots running
_
Greetings
mhaendler
This is my problem, obviously being new to autoit (I have dabbled in vb.net) I see the code and think everything needs a complicated answer, but mhaendler your method is such a simple solution, and thank you aswell nofutur3 for both contributions
I've tried the bot, but I don't know if it's my connection or my computer but after 2 runs, the bot crashed.. Don't know why :/
But work correctly during the runs.
What kind of run have you try ? i just try norn run and no crash... some weird things happen like sometimes, when you die once, it seem character don't use skills anymore...but no crash at all
Updated v1.1
~Corrected merch functions
~Reduced load times (even faster now)
~Created Radio Buttons for Store/Merch Golds
~Reduced working inventory bags to first 3 bags
(Will only pickup, store, merch from first 3 bags)
Updated v1.2
~Corrected merch functions
~Removed unecessary functions
~Small edits for ID/Sell function
~Edited and upgraded Sell function
~Removed "Buy Lockpicks" checkbox from GUI
~Added "Bunny Boost!" Function. If selected, will use chocolate bunnies for 50% speed boost in outpost!
~(Choc. Bunnies do not need to be in your inventory as the function will use them from your Xunlai Storage Chest)
Updated v1.3
~Updates by Malinkadink 3.3.19
~GUI: Changed version# to v1.3a
~$TimeCheck times have been adjusted
~Second cast of Dwarven Stability added to keep up Dash
~DllStructGetData($item, 'AgentID') = 1 <===Adjusted for testing
Updated v1.3a
~Added sleep times before and after OpenChest()
If Not $WeAreDead then
Sleep(GetPing()+80)
OpenChest()
Sleep(GetPing()+80)
EndIf
Updated v1.4 (4.4.19)
~Check Gold amount before merch
~Deposit/Withdraw gold to maintain balance of 50k - 60k: Deposit_Platinum()
~Adjusted CanSell function so it wont sell lockpicks, ecto, or shards by accident
Updated v1.5 (8.2.19)
~Updated GWA2 & Headers
~Updated Target Chest
~Added option to use "I AM UNSTOPABLE" skill #3
~Changed UseSkill() function to improved UseSkillEx() function
Updated v1.1
~Corrected merch functions
~Reduced load times (even faster now)
~Created Radio Buttons for Store/Merch Golds
~Reduced working inventory bags to first 3 bags
(Will only pickup, store, merch from first 3 bags)
Updated v1.2
~Corrected merch functions
~Removed unecessary functions
~Small edits for ID/Sell function
~Edited and upgraded Sell function
~Removed "Buy Lockpicks" checkbox from GUI
~Added "Bunny Boost!" Function. If selected, will use chocolate bunnies for 50% speed boost in outpost!
~(Choc. Bunnies do not need to be in your inventory as the function will use them from your Xunlai Storage Chest)
Updated v1.3
~Updates by Malinkadink 3.3.19
~GUI: Changed version# to v1.3a
~$TimeCheck times have been adjusted
~Second cast of Dwarven Stability added to keep up Dash
~DllStructGetData($item, 'AgentID') = 1 <===Adjusted for testing
Updated v1.3a
~Added sleep times before and after OpenChest()
If Not $WeAreDead then
Sleep(GetPing()+80)
OpenChest()
Sleep(GetPing()+80)
EndIf
Updated v1.4 (4.4.19)
~Check Gold amount before merch
~Deposit/Withdraw gold to maintain balance of 50k - 60k: Deposit_Platinum()
~Adjusted CanSell function so it wont sell lockpicks, ecto, or shards by accident
Updated v1.5 (8.2.19)
~Updated GWA2 & Headers
~Updated Target Chest
~Added option to use "I AM UNSTOPABLE" skill #3
~Changed UseSkill() function to improved UseSkillEx() function
Last Chaos GuardianS - New 2019 Server (Opening 12 January 2019) 01/27/2019 - Last Chaos Private Server - 180 Replies https://www.youtube.com/watch?v=kCfwdUoPHu0
Website Coming Soon
Server Information
Start level :1
Max level:165
Experience:x2
Skill Points:x3