Register for your free account! | Forgot your password?

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

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

Advertisement



ToCbot issue (i'm a coding noob)

Discussion on ToCbot issue (i'm a coding noob) within the GW Bots forum part of the Guild Wars category.

Reply
 
Old   #1
 
aimlesschibbi's Avatar
 
elite*gold: 0
Join Date: Aug 2012
Posts: 50
Received Thanks: 2
ToCbot issue (i'm a coding noob)

I have no idea what to do actually, yes i'm more of a leecher.
I tried learning how to code but i just can't understand any of it.

Please take a look at the files attached. I included the GWA2, GWA2 headers, ToCbot and the Gwa_Missing_headers textfile.

(Guildwars crash when the bot tries to use a FoW scroll)

I hope some of you can give me some advice on what to do and how to do it.
My thanks in advance,

This is where i think the issue is. (gwa_missing_headers.txt)
Quote:
C:\Users\ToC Botv2.1.au3 (521):
C:\Users\ToC Botv2.1.au3 (522): Func UseItembyModelID($amodelid)
C:\Users\ToC Botv2.1.au3 (523): Local $lItem
C:\Users\ToC Botv2.1.au3 (524): For $lbag = 1 To 4
C:\Users\ToC Botv2.1.au3 (525): For $lslot = 1 To $bag_slots[$lbag]
C:\Users\ToC Botv2.1.au3 (526): $lItem = getitembyslot($lbag, $lslot)
C:\Users\ToC Botv2.1.au3 (527): If DllStructGetData($lItem, "ModelID") == $amodelid Then Return sendpacket(8, 119, DllStructGetData($lItem, "ID"))
C:\Users\ToC Botv2.1.au3 (528): Next
C:\Users\ToC Botv2.1.au3 (529): Next
C:\Users\ToC Botv2.1.au3 (530): Return False
C:\Users\ToC Botv2.1.au3 (531): EndFunc ;==>useitembymodelid
Attached Files
File Type: rar ToCbot.rar (37.3 KB, 11 views)
aimlesschibbi is offline  
Old 04/07/2018, 15:57   #2
 
elite*gold: 0
Join Date: May 2014
Posts: 269
Received Thanks: 328
Inside Toc Botv2.1.au3:

Replace Line 291
Code:
Return sendpacket(8, $HEADER_ITEM_USE, DllStructGetData($item, "ID"))
with
Code:
UseItem(DllStructGetData($item, "ID"))
Replace Line 527
Code:
If DllStructGetData($lItem, "ModelID") == $amodelid Then Return sendpacket(8, 119, DllStructGetData($lItem, "ID"))
with
Code:
If DllStructGetData($lItem, "ModelID") = $amodelid Then UseItem(DllStructGetData($$lItem, "ID"))
DerMoench14 is offline  
Thanks
3 Users
Old 04/10/2018, 22:59   #3
 
elite*gold: 0
Join Date: Mar 2018
Posts: 77
Received Thanks: 132
Quote:
Originally Posted by aimlesschibbi View Post
Please take a look at the files attached. I included the GWA2, GWA2 headers, ToCbot and the Gwa_Missing_headers textfile.

(Guildwars crash when the bot tries to use a FoW scroll)
Perfect example for the kind of information I asked for. Thanks for supplying all the files I asked for. This really makes helping way easier

Quote:
Originally Posted by DerMoench14 View Post
Inside Toc Botv2.1.au3:

Replace Line 291
Code:
Return sendpacket(8, $HEADER_ITEM_USE, DllStructGetData($item, "ID"))
with
Code:
UseItem(DllStructGetData($item, "ID"))
Replace Line 527
Code:
If DllStructGetData($lItem, "ModelID") == $amodelid Then Return sendpacket(8, 119, DllStructGetData($lItem, "ID"))
with
Code:
If DllStructGetData($lItem, "ModelID") = $amodelid Then UseItem(DllStructGetData($$lItem, "ID"))
That looks like a working fix.

Other than having all calls to sendpacket inside gwa2 this way, this does not look to be any different than replacing the 119 by $HEADER_ITEM_USE. All UseItem does is getting the ID the same way its done in the snippets and then it calls sendpacket with the exact same parameters.

Or do I miss sth?

Just asking so I can fix it in the patcher correctly.
rheek is offline  
Old 04/10/2018, 23:24   #4
 
aimlesschibbi's Avatar
 
elite*gold: 0
Join Date: Aug 2012
Posts: 50
Received Thanks: 2
Quote:
Originally Posted by rheek View Post
Perfect example for the kind of information I asked for. Thanks for supplying all the files I asked for. This really makes helping way easier



That looks like a working fix.

Other than having all calls to sendpacket inside gwa2 this way, this does not look to be any different than replacing the 119 by $HEADER_ITEM_USE. All UseItem does is getting the ID the same way its done in the snippets and then it calls sendpacket with the exact same parameters.

Or do I miss sth?

Just asking so I can fix it in the patcher correctly.
It is a working fix, the bot runs and does its job perfectly again!
Would be nice for others if you could add this to the patcher.
I do not have the knowledge to answer your question other than that the fix worked.
aimlesschibbi is offline  
Reply


Similar Threads Similar Threads
Strange issue with mbot crack , looking if any people had similar issue
04/29/2017 - Silkroad Online - 1 Replies
After many years without playing any silkroad private servers i ended come back, but after download mbot to run it, i tried run the cracked vesion download directly from joysro forum , but when i run that i get blue screen. Was looking if someone had simillar issue since nowadays i'm using W10 , in the build 15063.138 , so i was wondering if it could be a issue with the softwere or related to hardwere since i'm using a laptop nowadays.
im new im noob im noob hacker plez heelp me
09/30/2009 - Lineage 2 - 5 Replies
hallo i play server im not donatore my weapon +6 and arma +6 donadore kill me donatore have weapon +35 etc.......... pleaaaas i need msn god hacher fore guise me pleeaaaaaaaaas veery tnx
How can i compile (Noob Question but i am noob at this)
08/04/2009 - CO2 Private Server - 6 Replies
Hello all i got this problem that when i changed something in source it doesnt changes inside how do i compile ;) please help :)



All times are GMT +1. The time now is 13:11.


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.