Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Guild Wars > GW Bots
You last visited: Today at 21:49

  • 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 Bots forum part of the Guild Wars category.

Reply
 
Old 11/01/2019, 05:48   #196
 
oneshout's Avatar
 
elite*gold: 0
Join Date: Dec 2017
Posts: 385
Received Thanks: 294
Quote:
Originally Posted by richpianagroyper View Post
maybe try
Code:
;~ Description: Drop environment object.
Func DropBundle()
	Return PerformAction(0xCD, 0x1e)
EndFunc   ;==>DropBundle
Tks a lot, working now...it was a bad PerformAction
oneshout is offline  
Old 11/02/2019, 07:58   #197
 
elite*gold: 0
Join Date: Jan 2019
Posts: 53
Received Thanks: 22
I have posted a couple times and tried my fair share of attempts at fixing bots... to my honest defense i suck miserably at it. (NO coding experience what so ever)

Needless to say, I made it one of my goals to learn a little bit more than what i know now about how to code some scripts. Not expecting to learn how to code a full DOA run, just small scripts like killing a boss or simple farm.


I have many questions that come to my mind....

1) i understand that GWA2 has a sh** ton of code in it, and i learned that theres alot of functions inside of it. so does that mean that when you write a script, it searches through GWA2 for that function that your calling?

2) im trying to figure out how i should start learning about how to make my own small scripts. i know there is a tool out there for simple IDs and travelto points, but what about a master list of functions to learn first before moving on to the whole weird number thingys.


i know eventually i will be able to write something useful.
ForgottenRelic is offline  
Thanks
1 User
Old 11/03/2019, 02:25   #198
 
Nachico's Avatar
 
elite*gold: 28
Join Date: Jul 2018
Posts: 38
Received Thanks: 31
Hey guys quick question. Calling this:

Code:
Func test()
	If GetMapLoading() == 2 Then Disconnected()
        While GetMapID() == $Test
		If GetMapLoading() == 2 Then Disconnected()
		If GUICtrlRead($pause) = 1 Then
		    out("Bot paused")
		    sleep(2000)
		Else
		    Out("I am in the testmap!")
		    Sleep (10000)
		    SendChat('resign', '/')
		    WaitMapLoading()
		EndIf
	WEnd
will result in spamming all chat with "esign" Instead of resigning. i've tried calling the same function with Resign() to GWA2, had the same result. re-compiled it too, GWA2 is uptodate. Because it's sending chat but just not the R. i'm out of idea's.

Might this be lag or something? Or have somebody an idea how to fix this?
Nachico is offline  
Old 11/03/2019, 05:48   #199
 
oneshout's Avatar
 
elite*gold: 0
Join Date: Dec 2017
Posts: 385
Received Thanks: 294
Quote:
Originally Posted by Nachico View Post
Hey guys quick question. Calling this:

Code:
Func test()
	If GetMapLoading() == 2 Then Disconnected()
        While GetMapID() == $Test
		If GetMapLoading() == 2 Then Disconnected()
		If GUICtrlRead($pause) = 1 Then
		    out("Bot paused")
		    sleep(2000)
		Else
		    Out("I am in the testmap!")
		    Sleep (10000)
		    SendChat('resign', '/')
		    WaitMapLoading()
		EndIf
	WEnd
will result in spamming all chat with "esign" Instead of resigning. i've tried calling the same function with Resign() to GWA2, had the same result. re-compiled it too, GWA2 is uptodate. Because it's sending chat but just not the R. i'm out of idea's.

Might this be lag or something? Or have somebody an idea how to fix this?
i Just have test the resign function and it's working as intended.
Be sure to have all function updated in GWA2 like Sendchat :

Code:
$SendChatHeader = 0x6A
Code:
;~ Description: Send a message to chat.
Func SendChat($aMessage, $aChannel = '!')
	Local $lMessage
	Local $lAddress = 256 * $mQueueCounter + $mQueueBase

	If $mQueueCounter = $mQueueSize Then
		$mQueueCounter = 0
	Else
		$mQueueCounter = $mQueueCounter + 1
	EndIf

	If StringLen($aMessage) > 120 Then
		$lMessage = StringLeft($aMessage, 120)
	Else
		$lMessage = $aMessage
	EndIf

	;MemoryWrite($lAddress + 8, $aChannel & $lMessage, 'wchar[122]')
	MemoryWrite($lAddress + 12, $aChannel & $lMessage, 'wchar[122]')
	DllCall($mKernelHandle, 'int', 'WriteProcessMemory', 'int', $mGWProcHandle, 'int', $lAddress, 'ptr', $mSendChatPtr, 'int', 8, 'int', '')

	If StringLen($aMessage) > 120 Then SendChat(StringTrimLeft($aMessage, 120), $aChannel)
EndFunc   ;==>SendChat
#EndRegion Chat
oneshout is offline  
Thanks
1 User
Old 11/03/2019, 10:04   #200
 
Nachico's Avatar
 
elite*gold: 28
Join Date: Jul 2018
Posts: 38
Received Thanks: 31
Quote:
Originally Posted by oneshout View Post
i Just have test the resign function and it's working as intended.
Be sure to have all function updated in GWA2 like Sendchat :

Code:
$SendChatHeader = 0x6A
Code:
;~ Description: Send a message to chat.
Func SendChat($aMessage, $aChannel = '!')
	Local $lMessage
	Local $lAddress = 256 * $mQueueCounter + $mQueueBase

	If $mQueueCounter = $mQueueSize Then
		$mQueueCounter = 0
	Else
		$mQueueCounter = $mQueueCounter + 1
	EndIf

	If StringLen($aMessage) > 120 Then
		$lMessage = StringLeft($aMessage, 120)
	Else
		$lMessage = $aMessage
	EndIf

	;MemoryWrite($lAddress + 8, $aChannel & $lMessage, 'wchar[122]')
	MemoryWrite($lAddress + 12, $aChannel & $lMessage, 'wchar[122]')
	DllCall($mKernelHandle, 'int', 'WriteProcessMemory', 'int', $mGWProcHandle, 'int', $lAddress, 'ptr', $mSendChatPtr, 'int', 8, 'int', '')

	If StringLen($aMessage) > 120 Then SendChat(StringTrimLeft($aMessage, 120), $aChannel)
EndFunc   ;==>SendChat
#EndRegion Chat
Was missing this:

Code:
MemoryWrite($lAddress + 12, $aChannel & $lMessage, 'wchar[122]')
I had:
Code:
MemoryWrite($lAddress + 8, $aChannel & $lMessage, 'wchar[122]')


Edit: Yup, this fixed the issue. Seems like my GWA2 isnt so uptodate after all.
Nachico is offline  
Old 11/04/2019, 09:57   #201
 
oneshout's Avatar
 
elite*gold: 0
Join Date: Dec 2017
Posts: 385
Received Thanks: 294
just a question (and a good question ) :
Somebody have found the reason why a bot behave strangely during a "no rendering" ?? most of bots don't have problem with that, seem happen for dungeon bots : Raven's point, voltaic spear or BDS bots.
oneshout is offline  
Old 11/09/2019, 02:19   #202
 
phat34's Avatar
 
elite*gold: 0
Join Date: Sep 2014
Posts: 354
Received Thanks: 120
The event system does not function while render is off... so any function using events such as names of NPC's / signpost, etc... will not be recognized. I also think that functions such as haseffect() and some environmental checks may not work while rendering is off... Merchant trading may also be affected... this info is off the top of my head and may be incorrect or need verification, but I believe this issue was never fixed, however some function workarounds have been made in some bots me or the crew have touched !
phat34 is offline  
Thanks
1 User
Old 11/09/2019, 11:38   #203
 
oneshout's Avatar
 
elite*gold: 0
Join Date: Dec 2017
Posts: 385
Received Thanks: 294
I think like CoderHandy said, the best for this 3 bots would be to transfer them on the GWapi... but i don't have time and particulary tools and the knowedge to do it properly
oneshout is offline  
Old 11/10/2019, 12:43   #204
 
elite*gold: 0
Join Date: Jan 2013
Posts: 46
Received Thanks: 23
Hi, haven't played GW in a while, and now a bot of mine doesn't work anymore, but can't find out why, i use a recent gwa2 and the headers.

The problem is somewhere in this functions:
Code:
	
         TargetNearestAlly()
	 $lGoon = GetNearestNPCToCoords(-993, 16964)
	 $lName = GetAgentName($lGoon)
	 Out("" & $lName)
Either the Getnpc function or the getname function doesn't work, beacause it doesn't return the name of the NPC.
Maybe some old headers?
zoidberg1337 is offline  
Old 11/10/2019, 13:16   #205
 
oneshout's Avatar
 
elite*gold: 0
Join Date: Dec 2017
Posts: 385
Received Thanks: 294
Quote:
Originally Posted by zoidberg1337 View Post
Hi, haven't played GW in a while, and now a bot of mine doesn't work anymore, but can't find out why, i use a recent gwa2 and the headers.

The problem is somewhere in this functions:
Code:
	
         TargetNearestAlly()
	 $lGoon = GetNearestNPCToCoords(-993, 16964)
	 $lName = GetAgentName($lGoon)
	 Out("" & $lName)
Either the Getnpc function or the getname function doesn't work, beacause it doesn't return the name of the NPC.
Maybe some old headers?

E: added the gwa2 i use
Check before if the function is correct in GWA2 :
Code:
;~ Description: Target the nearest ally.
Func TargetNearestAlly()
	Return PerformAction(0xBC, 0x18)
EndFunc   ;==>TargetNearestAlly
oneshout is offline  
Old 11/10/2019, 13:40   #206
 
elite*gold: 0
Join Date: Jan 2013
Posts: 46
Received Thanks: 23
Okay that function was outdated, but it still doesn't work, can you maybe upload your latest gwa2?
Attached Files
File Type: zip GWA2.zip (29.9 KB, 0 views)
zoidberg1337 is offline  
Old 11/10/2019, 13:45   #207
 
oneshout's Avatar
 
elite*gold: 0
Join Date: Dec 2017
Posts: 385
Received Thanks: 294
Go and take GWA2 from ; you'll have the latest update on DropBundle function too
oneshout is offline  
Old 11/10/2019, 14:09   #208
 
elite*gold: 0
Join Date: Jan 2013
Posts: 46
Received Thanks: 23
Quote:
Originally Posted by oneshout View Post
Go and take GWA2 from ; you'll have the latest update on DropBundle function too
tried that one but it doesn't work either, also the 0x18 offset doesn't work but this does:

Code:
;~ Description: Target the nearest ally.
Func TargetNearestAlly()
	Return PerformAction(0xBC, 0x1E)
EndFunc   ;==>TargetNearestAlly
Weird, if i restart the game and the bot it works. but if i restart the bot and not the game it doesn't work
zoidberg1337 is offline  
Old 11/11/2019, 18:59   #209
 
honigkuchenpferd2's Avatar
 
elite*gold: 32
Join Date: Dec 2010
Posts: 671
Received Thanks: 43
Donate function

Hello,

i have a problem with the donate function. The bot travels to Cavalon, talks to the faction reward guy and then doesn't donate the points. I can't find the mistake. Maybe someone can help me.

Thanks in advance!
Attached Files
File Type: zip GWA˛.Mount.Qinkai.Alpha-P.zip (54.6 KB, 2 views)
honigkuchenpferd2 is offline  
Old 11/11/2019, 20:23   #210
 
oneshout's Avatar
 
elite*gold: 0
Join Date: Dec 2017
Posts: 385
Received Thanks: 294
Quote:
Originally Posted by honigkuchenpferd2 View Post
Hello,

i have a problem with the donate function. The bot travels to Cavalon, talks to the faction reward guy and then doesn't donate the points. I can't find the mistake. Maybe someone can help me.

Thanks in advance!
Seem found error here; replace DonateFaction(1) by DonateFaction(l) (k for kurzick l for luxon and not 1 the number)

Code:
Func TurnInFaction()

	TravelTo(193)
	WaitForLoad()
	CurrentAction("grabing")
	GoNearestNPCToCoords(9076, -1111)

	$beforedone = GetLuxonFaction()

	If BitAND(GUICtrlRead($Donate), $GUI_CHECKED) = $GUI_CHECKED Then
		Do
			CurrentAction("Donate")
			DonateFaction(1)
;~ 			SendPacket(0x10, 0x2E, 0, 0, 5000)
;~ 			rndslp(1000)
;~ 			SendPacket(0x10, 0x2E, 0, 1, 5000)
			RndSleep(500)

		Until GetLuxonFaction() < 5000
	Else
		CurrentAction("Grabbing Jade Shards")
		Dialog(131)
		RndSleep(500)
		$temp = Floor(GetLuxonFaction() / 5000)
		$id = 8388609 + ($temp * 256)
		Dialog($id)
	EndIf
	RndSleep(500)
	;$luxon_title_at_begining = $beforedone - GetLuxonFaction()
	$after_donate = GetLuxonFaction()
	$what_we_donate = $beforedone - $after_donate + $what_we_donate
	RndSleep(500)
	TravelTo(389)
	WaitForLoad()
EndFunc
oneshout is offline  
Thanks
1 User
Reply


Similar Threads 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! I what program do u use to make them? cause i wanna help but i dun know how... somone plz reply!
L2Walker, scripting questions/help
12/13/2006 - Lineage 2 - 0 Replies
Hey, just asking a few questions hope you don't mind ^_^ I'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've looked through the options in walker and have it setup now, but it doesn't cast at the same time, but when I've finished casting. If this isn'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 21:49.


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.