Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Guild Wars > GW Bots
You last visited: Today at 13:28

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

Advertisement



[GWA2] IsHardMode function help

Discussion on [GWA2] IsHardMode function help within the GW Bots forum part of the Guild Wars category.

Reply
 
Old   #1
 
3vangelist's Avatar
 
elite*gold: 0
Join Date: Jan 2018
Posts: 46
Received Thanks: 14
[GWA2] IsHardMode function help

Hey all,

Wanted to run a quick one by you to save me some time pulling apart byte data to find out. I'm trying to create an IsHardMode function and wanted a hand

Hard mode in an explorable area was an easy one; just check for the Effect...

Code:
Func IsHardMode() ;~ Description: Check if hard mode is enabled via Effects
	Return Not IsArray(GetEffect(1912)) ; GetEffect returns array if skill not found
EndFunc
Wanted to expand this function to possibly check an offset to find out whether Hard mode is checked in an outpost - does anyone know the offset to check?

I'm thinking it might be some kind of offset in the same way we find out Titles...

Code:
Func GetLuxonFaction() ;~ Description: Returns current Luxon faction.
	Return MemoryRead(GetInstanceBasePtr() + 0x758)
EndFunc   ;==>GetLuxonFaction
Func GetMaxLuxonFaction() ;~ Description: Returns max Luxon faction.
	Return MemoryRead(GetInstanceBasePtr() + 0x7BC)
EndFunc   ;==>GetMaxLuxonFaction
Func GetBalthazarFaction() ;~ Description: Returns current Balthazar faction.
	Return MemoryRead(GetInstanceBasePtr() + 0x798)
EndFunc   ;==>GetBalthazarFaction
Func GetMaxBalthazarFaction() ;~ Description: Returns max Balthazar faction.
	Return MemoryRead(GetInstanceBasePtr() + 0x7C0)
EndFunc   ;==>GetMaxBalthazarFaction
Func GetImperialFaction() ;~ Description: Returns current Imperial faction.
	Return MemoryRead(GetInstanceBasePtr() + 0x76C)
EndFunc   ;==>GetImperialFaction
Func GetMaxImperialFaction() ;~ Description: Returns max Imperial faction.
	Return MemoryRead(GetInstanceBasePtr() + 0x7C4)
EndFunc   ;==>GetMaxImperialFaction
If anyone can shed some light and same me a tonne of time I would really appreciate it - its going towards my contribution for GWA2.
3vangelist is offline  
Old 06/06/2018, 19:31   #2
 
elite*gold: 0
Join Date: May 2014
Posts: 269
Received Thanks: 320
Code:
;~ 	Description: Returns different States about Party. Check with BitAND.
;~ 	0x8 = Leader starts Mission / Leader is travelling with Party
;~ 	0x10 = Hardmode enabled
;~ 	0x20 = Party defeated
;~ 	0x40 = Guild Battle
;~ 	0x80 = Party Leader
;~ 	0x100 = Observe-Mode
Func GetPartyState($aFlag)
    Local $lOffset[4] = [0, 0x18, 0x4C, 0x14]
    Local $lBitMask = MemoryReadPtr($mBasePointer,$lOffset)
    Return BitAND($lBitMask[1], $aFlag) > 0
EndFunc   ;==>GetPartyState
Enjoy
DerMoench14 is offline  
Thanks
3 Users
Old 06/06/2018, 19:33   #3
 
3vangelist's Avatar
 
elite*gold: 0
Join Date: Jan 2018
Posts: 46
Received Thanks: 14
Quote:
Originally Posted by DerMoench14 View Post
Code:
;~ 	Description: Returns different States about Party. Check with BitAND.
;~ 	0x8 = Leader starts Mission / Leader is travelling with Party
;~ 	0x10 = Hardmode enabled
;~ 	0x20 = Party defeated
;~ 	0x40 = Guild Battle
;~ 	0x80 = Party Leader
;~ 	0x100 = Observe-Mode
Func GetPartyState($aFlag)
    Local $lOffset[4] = [0, 0x18, 0x4C, 0x14]
    Local $lBitMask = MemoryReadPtr($mBasePointer,$lOffset)
    Return BitAND($lBitMask[1], $aFlag) > 0
EndFunc   ;==>GetPartyState
Enjoy
Awesome, thanks
3vangelist is offline  
Old 06/07/2018, 00:51   #4
 
elite*gold: 0
Join Date: May 2008
Posts: 94
Received Thanks: 82
Wait, can party defeated be used to check if your resign went through?
tjubutsi is offline  
Old 06/07/2018, 09:52   #5
 
elite*gold: 0
Join Date: May 2014
Posts: 269
Received Thanks: 320
Quote:
Originally Posted by tjubutsi View Post
Wait, can party defeated be used to check if your resign went through?
Yep
DerMoench14 is offline  
Old 06/19/2018, 08:42   #6
 
phat34's Avatar
 
elite*gold: 0
Join Date: Sep 2014
Posts: 354
Received Thanks: 120
... I believe this will solve my issue as well since _getpartydeadex seems to not work 100%...
phat34 is offline  
Reply

Tags
gwa2


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...
GWA2 A/mo Vaettir Bot; Need Help!!
02/19/2012 - GW Bots - 1 Replies
http://www.elitepvpers.com/forum/gw-exploits-hacks -bots-tools-macros/1568881-gwa-vaettir-mo-farm-bot .html ENGLISH: I can't seem to get this to work. I've spent 3-4 hours, read the entire thread here, tried to search for a detailed guide on how to get this to work but it's not. What I've done was: Downloaded the 2 files shown in the Original Post... "GWA2 A_Mo Vaettirs Farm by bl4ck3lit3.zip" Extracted it to desktop Ran GW.EXE as admin. Set-up assassin with appropriate gear and...
[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 +2. The time now is 13:28.


Powered by vBulletin®
Copyright ©2000 - 2024, 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.

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