Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Guild Wars > GW Exploits, Hacks, Bots, Tools & Macros
You last visited: Today at 04:59

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

Advertisement



OK to ask for exploit/Scripting help here...

Discussion on OK to ask for exploit/Scripting help here... within the GW Exploits, Hacks, Bots, Tools & Macros forum part of the Guild Wars category.

Reply
 
Old 08/13/2019, 15:21   #121
 
elite*gold: 0
Join Date: Mar 2013
Posts: 29
Received Thanks: 46
Hi try that I did it quick missed some regulation but it works

Player: OgcTcZ/8ZiHRn5AKukmE35uU4AA , Hero: OwIU0wHDFrGyTkOMepEAAA6A
Attached Files
File Type: zip Doa Farmer .V1.1.zip (49.6 KB, 1 views)
File Type: zip Doa Farmer v1.2.zip (50.4 KB, 2 views)



Bibopp is offline  
Thanks
1 User
Old 08/13/2019, 15:45   #122
 
elite*gold: 0
Join Date: Dec 2017
Posts: 273
Received Thanks: 198
Quote:
Originally Posted by Bibopp View Post
Hi try that I did it quick missed some regulation but it works

Player: OgcTcZ/8ZiHRn5AKuk ; Hero: OwIU0wHDFrGyTkOMepEAAA6A
I'm going to test it right now
Tks a lot


oneshout is offline  
Old 08/16/2019, 09:27   #123
 
elite*gold: 0
Join Date: Mar 2019
Posts: 25
Received Thanks: 6
hello,

there is no UseSkillEx Func in gwa2 for heroes to use a skill until is casted cause i didn't want to rely on a sleep after useheroskill cause of the casting time you know so i wrote one for heroes it seems to be working but is it right ? i want to add skillcost too but if any experienced coder can comment first if its ok will be cool.

Code:
Func UseHeroSkillEx($aHeroNumber, $aHeroSkill, $aTarget = -2, $aTimeout = 3000)
   If GetIsDead($aHeroNumber) Then Return
   If Not IsHeroSkillRecharged($aHeroNumber, $aHeroSkill) Then Return

   Local $lDeadLock = TimerInit()
   UseHeroSkill($aHeroNumber, $aHeroSkill, $aTarget)
   Do
	  Sleep(50)
	  If GetIsDead($aHeroNumber) Then Return
   Until (Not IsHeroSkillRecharged($aHeroNumber, $aHeroSkill)) Or (TimerDiff($lDeadLock) > $aTimeout)
   Sleep(50)
EndFunc

Func IsHeroSkillRecharged($aHeroNumber, $aHeroSkill)
    Return GetSkillbarSkillRecharge($aHeroSkill, $aHeroNumber) == 0
EndFunc
CoderAndy is offline  
Old 08/17/2019, 08:14   #124
 
elite*gold: 0
Join Date: Sep 2014
Posts: 209
Received Thanks: 56
Cool FLAGS CRASHING CLIENT

Ok well... it has been almost since I started this thread that I myself has asked for help... but, I have ran into a strange problem that no one seems to know about. For some reason, my client crashes when running a bot, when I try to flag my heroes??????? Is anyone else having this problem... Or is it just me?

Let me know if anyone has a solution, or has any idea what might be causing this?

Here you go Andy! I see you asked for heroes... I am going to check for that... but, I will leave this.

Code:
FUNC USESKILLEX($ASKILLSLOT, $ATARGET = -2)
	IF GETISDEAD(-2) OR NOT $BOT_RUNNING THEN RETURN FALSE
	$TDEADLOCK = TIMERINIT()
	USESKILL($ASKILLSLOT, $ATARGET)
	DO
		SLEEP(250)
		IF NOT $BOT_RUNNING OR GETISDEAD(-2) THEN RETURN FALSE
		IF GETMAPLOADING() == 2 THEN
		        DISCONNECTED()
			RETURN FALSE
		ENDIF
	UNTIL GETSKILLBARSKILLRECHARGE($ASKILLSLOT) <> 0 OR TIMERDIFF($TDEADLOCK) > 5000
	RETURN 1
ENDFUNC


phat34 is offline  
Old 08/17/2019, 10:35   #125
 
elite*gold: 0
Join Date: Dec 2017
Posts: 273
Received Thanks: 198
Quote:
Originally Posted by phat34 View Post
Ok well... it has been almost since I started this thread that I myself has asked for help... but, I have ran into a strange problem that no one seems to know about. For some reason, my client crashes when running a bot, when I try to flag my heroes??????? Is anyone else having this problem... Or is it just me?

Let me know if anyone has a solution, or has any idea what might be causing this?
What bot or function are you using to flag a hero / heroes ? maybe the sendPacket adress is wrong...i have try a kabob farmer with a 1 hero flag and it don't crash...

GWA2 :
Quote:
;~ Description: Place a hero's position flag.
Func CommandHero($aHeroNumber, $aX, $aY)
Return SendPacket(0x14, $HEADER_HERO_PLACE_FLAG, GetHeroID($aHeroNumber), FloatToInt($aX), FloatToInt($aY), 0)
EndFunc ;==>CommandHero

;~ Description: Place the full-party position flag.
Func CommandAll($aX, $aY)
Return SendPacket(0x10, $HEADER_PARTY_PLACE_FLAG, FloatToInt($aX), FloatToInt($aY), 0)
EndFunc ;==>CommandAll
Exemple from Kabob farmer to flag 1 hero but with use the CommandAll (full-party position flag) :

Quote:
Func KabobFarm()
logFile("Kabob Farm Checked")
If GetMapId() <> 425 Then
RndTravel(425)
WaitMapLoading(425)
logFile("Setting Build")
LoadSkillTemplate($templateKabob)
logFile("Adding Koss")
endif
AddHero(6)
logFile("Exit town")
MoveTo(-15421, 9298)
Move(-15300, 9000)
WaitMapLoading(384)
CommandAll(-13500, 2000)
UseHeroSkill(1, 1, -2)

UseSkillEx(1,-2)
logFile("First Point")
MoveKill(-14614, 8009)
MoveKill(-13545, 8396)
MoveKill(-11612, 10283)
logFile("Killing Drake")
Kill()
logFile("Drake Dead")
PickUpLoot()
logFile("Second Point")
MoveKill(-10270, 11077)
MoveKill(-6942, 11754)
logFile("Killing Drake")
Kill()
logFile("Drake Dead")
PickUpLoot()
sleep (100)
If GetIsDead(-2) Then
$nbFails += 1
logFile("I'm dead.")
Else
$nbRuns += 1
EndIf
logFile("Start Again")
RndTravel(425)
EndFunc
oneshout is offline  
Old 08/17/2019, 11:51   #126
 
elite*gold: 0
Join Date: Mar 2019
Posts: 25
Received Thanks: 6
Quote:
Originally Posted by phat34 View Post
Ok well... it has been almost since I started this thread that I myself has asked for help... but, I have ran into a strange problem that no one seems to know about. For some reason, my client crashes when running a bot, when I try to flag my heroes??????? Is anyone else having this problem... Or is it just me?

Let me know if anyone has a solution, or has any idea what might be causing this?

Here you go Andy! I see you asked for heroes... I am going to check for that... but, I will leave this.

Code:
FUNC USESKILLEX($ASKILLSLOT, $ATARGET = -2)
	IF GETISDEAD(-2) OR NOT $BOT_RUNNING THEN RETURN FALSE
	$TDEADLOCK = TIMERINIT()
	USESKILL($ASKILLSLOT, $ATARGET)
	DO
		SLEEP(250)
		IF NOT $BOT_RUNNING OR GETISDEAD(-2) THEN RETURN FALSE
		IF GETMAPLOADING() == 2 THEN
		        DISCONNECTED()
			RETURN FALSE
		ENDIF
	UNTIL GETSKILLBARSKILLRECHARGE($ASKILLSLOT) <> 0 OR TIMERDIFF($TDEADLOCK) > 5000
	RETURN 1
ENDFUNC

believe it or not i had some weird problems too lately and i just uninstalled the game and reinstalled and my problems solved, it's like sometimes the .dat file goes corrupt, another problem that i had was that i couldn't delete ppl from friend list and the reinstallation solved that too,

right now i'm working on a script with heroes and i don't have any problem flag/cancel the heroes etc,

what i'm trying to do with the UseHeroSkillEx is that if you want to cast a lot of skills from a specific hero you can't rely with sleeps after UseHeroSkill cause of the casting time/lag etc and it will cancel the skill/pass to the next one without finishing the cast, from my testing with UseHeroSkill that was my observation,
i don't see to have that problem with what i wrote and it casts the skills while w8ing to finish the cast just fine, if you can test it too to see whats going on would be cool, thx.
CoderAndy is offline  
Old 08/17/2019, 19:40   #127
 
elite*gold: 0
Join Date: Jan 2019
Posts: 6
Received Thanks: 2
Quote:
Originally Posted by phat34 View Post
Ok well... it has been almost since I started this thread that I myself has asked for help... but, I have ran into a strange problem that no one seems to know about. For some reason, my client crashes when running a bot, when I try to flag my heroes??????? Is anyone else having this problem... Or is it just me?

Let me know if anyone has a solution, or has any idea what might be causing this?
Do you mean when you manually flag heroes, instead of having the bot do it? Ive had the same problem for a long time now, even from way before they added keybinds for hero 4-7.
FriendlyFarmer is offline  
Old 08/18/2019, 04:14   #128
 
elite*gold: 0
Join Date: Sep 2014
Posts: 209
Received Thanks: 56
yes. the bot functions work fine... it is just when you try to manually flag heroes through the regular game interface that the client crashed. I have a different api that I am comparing now to see if I can spot the problem. but my gwa2 versions are flawed with this problem.
phat34 is offline  
Old 08/19/2019, 08:02   #129
 
elite*gold: 0
Join Date: Mar 2019
Posts: 25
Received Thanks: 6
hey guys is there a way to find out how much adrenaline you have like the GetEnergy(-2) ? i'm trying to use an adrenaline skill only when i have the req adrenaline for the skill but can't make it work it still try's to use it without adrenaline, any example on how to do it will be helpful thx.
CoderAndy is offline  
Old 08/19/2019, 08:45   #130
 
elite*gold: 0
Join Date: Jul 2008
Posts: 1,812
Received Thanks: 222
Quote:
Originally Posted by CoderAndy View Post
hey guys is there a way to find out how much adrenaline you have like the GetEnergy(-2) ? i'm trying to use an adrenaline skill only when i have the req adrenaline for the skill but can't make it work it still try's to use it without adrenaline, any example on how to do it will be helpful thx.
Checkout the Kilroy Bot on how to work with / check adrenaline.

Additional you can check the function:

"GetSkillbar()" in your GWA2 File

Greetings
mhaendler
mhaendler is offline  
Old 08/20/2019, 11:16   #131
 
elite*gold: 0
Join Date: Mar 2019
Posts: 25
Received Thanks: 6
hey rly sorry but i can't make it work and the adrenaline confuses me a lot,

the getskillbar function it gives you the adrenaline skill requirement as AdrenalineA and your current adrenaline strikes as AdrenalineB and the numbers is for each skillslot AdrenalineA1, AdrenalineA2 etc ?

i tried to write something like IsRecharged or HasEffect funcs for checking your current adrenaline but i can't make it work, i know its wrong just an idea like:

Code:
If HasAdrenalineFor($aSkill) < 100 Then UseSkillEx($aSkill, $aTarget)

Func HasAdrenalineFor($lSkill)
    $mSkillBar = GetSkillBar
    $AdrenalineSkillReq = DllStructGetData($mSkillBar, 'AdrenalineA' & $lSkill)
    $AdrenalineStrikes = DllStructGetData($mSkillBar, 'AdrenalineB' & $lSkill)
    If $AdrenalineSkillReq <= $AdrenalineStrikes Then Return True
EndFunc
is it possible to create such a check for adrenaline ?
also how gwa2 reads the strikes ? is 25 for 1 strike so for a skill with 10 adrenaline you need to add 10 * 25 ?
with GetSkillbarSkillAdrenaline($aSkill) < 100 still tries to use the skill without the adrenaline req or i understand wrong that specific func in gwa2 ? thx.
CoderAndy is offline  
Old 08/20/2019, 18:30   #132
 
elite*gold: 0
Join Date: Jan 2019
Posts: 6
Received Thanks: 2
Code:
Func HasAdrenalineFor($skillNumber)
	local $skillbar = getSkillbar()
	local $skill = getSkillById(dllStructGetData($skillbar, "id" & $skillNumber))
	local $adrenalineCost = dllStructGetData($skill, "adrenaline")

	if $adrenalineCost <= dllStructGetData($skillbar, "adrenalineA" & $skillNumber) then return True
EndFunc
This should work, enjoy
FriendlyFarmer is offline  
Thanks
1 User
Old 08/21/2019, 04:30   #133
 
elite*gold: 0
Join Date: Sep 2014
Posts: 209
Received Thanks: 56
In addition Andy, you can simply use the out(dllStructGetData($skillbar, "adrenalineA" & $skillNumber)) to print out the constant monitoring of you skill adrenaline to monitor how it charges number wise...
phat34 is offline  
Old 08/25/2019, 23:16   #134
 
elite*gold: 0
Join Date: Mar 2013
Posts: 29
Received Thanks: 46
Margonite Farmer (DoA) R/A V1.1

Changelog V1.1 :
- GUI Update : Runs , Loots
- Change of course and better survivability.
still work to improve efficiency..

Changelog V1.2 :
- Detects if there is EOE < 5s otherwise paradox
- TP if blocked
- Selected the Dabi margo as a priority
- Tp on dabi to Big kill
- If not enough enemies back town
- Stable run 5 hour

A few more fails but itís better ( Margo Tuk)
The change of weapon does not work (problem to repair)
I left the debug and some useful functions for those who still want the upgrade
Player: OgcTcZ/8ZiHRn5AKukmE35uU4AA , Hero: OwIU0wHDFrGyTkOMepEAAA6A[/QUOTE]
Attached Files
File Type: zip Doa Farmer .V1.1.zip (49.6 KB, 14 views)
File Type: zip Doa Farmer v1.2.zip (50.4 KB, 35 views)
Bibopp is offline  
Thanks
2 Users
Old 08/30/2019, 06:54   #135
 
elite*gold: 0
Join Date: Jul 2019
Posts: 8
Received Thanks: 0
I noticed in some old posts that when picking up loot you can filter by a variety of things with modelid being the most common from the item struct. I saw in a post a general type for weapon rather than specific id.
Example:
Quote:
#Region Swords
Global Const $TYPE_Sword = 27
Global Const $ITEM_ID_DragonSword = 402
Global Const $ITEM_ID_LongSword = 412
Global Const $ITEM_ID_Spatha = 419
Global Const $ITEM_ID_CelestialSword = 790
Global Const $ITEM_ID_WickedSword = 792
Global Const $ITEM_ID_GoldenPhoenixBlade = 795
Global Const $ITEM_ID_SunquaBlade = 797
Global Const $ITEM_ID_ZodiacSword = 1043
Global Const $ITEM_ID_Gladius = 1194
Global Const $ITEM_ID_JadeSword = 1322
Global Const $ITEM_ID_DesolationSword = 1554
Global Const $ITEM_ID_DragonSword2 = 1612
Global Const $ITEM_ID_LesserHighlanderBlade = 2107
Global Const $ITEM_ID_GreaterHighlanderBlade = 2108
Global Const $ITEM_ID_MammothBlade = 2127
Global Const $ITEM_ID_SteelBroadsword = 2128
Global Const $ITEM_ID_PlatinumBroadsword = 2129
Global Const $ITEM_ID_Flamberge = 2250
Global Const $ITEM_ID_RunicBlade = 2306
Global Const $ITEM_ID_HighlanderBlade = 2307
#EndRegion Swords
At the very top there is Global Const $TYPE_Sword = 27. What would be the preferred way to filter all swords using this information from the dllstructgetdata method? This would be used in a pickuploot filter.

Thank you in advanced.


list comprehension is offline  
Reply



« Ha Henchway bot | GW Working Bots 2019! »

Similar Threads
Hello guys, i got hacked and gm didnt help me :( so i ask for help here
12/22/2009 - Kal Online - 25 Replies
Hello guys, i got hacked 7 days ago, i sent a c/s to gms connected my id card, they told me twrite back after 7 days... GM Reply Hello. This is Kalonline. We checked over your report and blocked hackers.
HELP! I need help scripting
02/06/2007 - Conquer Online 2 - 1 Replies
OK, I want to know how u ppl do it&#33; I what program do u use to make them? cause i wanna help but i dun know how... somone plz reply&#33;
L2Walker, scripting questions/help
12/13/2006 - Lineage 2 - 0 Replies
Hey, just asking a few questions hope you don&#39;t mind ^_^ I&#39;m looking to make a script so when I cast magic on something, the walker bot will cast, say Wind Strike, on the same thing, at the same time. I&#39;ve looked through the options in walker and have it setup now, but it doesn&#39;t cast at the same time, but when I&#39;ve finished casting. If this isn&#39;t possible, last time I checked Walker scripts could not pickup what was said in chat, is this still the case? Thanks. ^_^ Note: If you...
I need help scripting
09/05/2006 - General Coding - 0 Replies
Ok I am tired of leeching I am ready to try my hand at scripting but I dont know where to start and I was wondering if someone could help me get started or tell me a website that can help me learn so I can make my own hacks and contribute to the epvp community that we all love :D



All times are GMT +2. The time now is 04:59.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

BTC: 33E6kMtxYa7dApCFzrS3Jb7U3NrVvo8nsK
ETH: 0xc6ec801B7563A4376751F33b0573308aDa611E05

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