Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Guild Wars
You last visited: Today at 23:28

  • Please register to post and access all features, it's quick, easy and FREE!


Reset function

Discussion on Reset function within the Guild Wars forum part of the MMORPGs category.

Old   #1
elite*gold: 0
Join Date: Aug 2018
Posts: 15
Received Thanks: 1
Reset function

Hey I've recently been working on a script for a particular run and I've noticed it seems to be getting stuck in certain places and not resetting itself. I don't have a reset function, and I was wondering if there was one I could add? I could fix the path where it goes in each of these spots, but I figured having a part in the code for it to just reset back to the beginning if it's been sitting for like 5 minutes would help a lot more. Thanks in advance if anybody has any ideas!
snowflavored is offline  
Old 07/04/2020, 06:12   #2
elite*gold: 0
Join Date: Oct 2005
Posts: 2,485
Received Thanks: 218
You should post the code, otherwise it will be quite difficult to help you. You could add an infinity check to your MoveTo function:

function Lib_MoveTo(x, y)
	MoveTo(x, y)
	loopFixer = 0
	while (TargetDistance(x, y) > 100) do
		loopFixer = loopFixer + 1
		if (loopFixer == 300) then --wait 30 seconds for infinity check
			if (PlayerXMovementSpeed() == 0) then
				return 1
        return 0
This would abort the Lib_MoveTo command if your character still stands still after 30 seconds. Just check if Lib_MoveTo returns 0 (success) or 1 (fail) and add a routine that travels back to town and restarts the run or something like that. Not very "clean" but simple and should do the trick most of the time.
Term!nX is offline  
1 User

Similar Threads Similar Threads
std::function of a function returning an std::function
11/11/2013 - C/C++ - 19 Replies
Nun muss ich nach langer Zeit auch mal wieder einen Thread erstellen, weil mir Google nicht mehr weiterhelfen kann. Ich verzweifle an Folgendem Vorhaben: #include <Windows.h> #include <string> #include <iostream> using namespace std;
Running Function 2 after Function 1 finished
09/15/2013 - AutoIt - 3 Replies
Hey, its me again. Im stuck on a problem since yesterday and as much as i hate to ask for help, i really dont know what else to try. I want Function 2 to run after Function 1 has finished. I tried GuiCtrlSetOnEvent and MsgLoop, but i dont really understand it. I tried to read tutorials but they didnt help at all. The line that are underline is what im talking about. I want gamestart() to run first and when its finished, i want iniviteteam() to run. #AutoIt3Wrapper_UseX64=n...
In der Z8games mall für crossfire gibt es 2 items '(K/D reset und W/L reset)
11/10/2012 - CrossFire - 13 Replies
was bringt das ?:confused:
[VIP-function] ToxicSYS [VIP-function]
08/14/2010 - WarRock Hacks, Bots, Cheats & Exploits - 1 Replies
heeeey E-pvpers :pimp: this is a new hack by TSYS Status : UNDETECTED Functions (VIDEO) : YouTube - WarRock - Bikini event VIP hack

All times are GMT +1. The time now is 23:28.

Powered by vBulletin®
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

BTC: 33E6kMtxYa7dApCFzrS3Jb7U3NrVvo8nsK
ETH: 0xc6ec801B7563A4376751F33b0573308aDa611E05

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2021 elitepvpers All Rights Reserved.