Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Shaiya
You last visited: Today at 18:54

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

Advertisement



[C++] Auto looting/selling

Discussion on [C++] Auto looting/selling within the Shaiya forum part of the MMORPGs category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Sep 2006
Posts: 774
Received Thanks: 8,576
[C++] Auto looting/selling

.
phize is offline  
Thanks
12 Users
Old 11/08/2012, 13:02   #2
 
elite*gold: 0
Join Date: Sep 2010
Posts: 98
Received Thanks: 130
First I would like to thank you for releasing this (I know you released a while go but I haven't seen it until now.).
Secondly I would like to ask for some help.
Since I don't have all your files I needed to change a few things, well two things actually:

Code:
DetourFunc((BYTE*)pf.Get("RecvFunc"), (BYTE*)&RecvHook, 7);
jBack = pf.Get("RecvFunc") + 7;
To:
Code:
VirtualProtect((void *)recvAddr, 5, PAGE_EXECUTE_READWRITE, &error);
*(BYTE *)(recvAddr) = 0xE9;
*(DWORD *)(recvAddr + 1) = (DWORD)&RecvHook - recvAddr -5;
jBack = recvAddr+7;
That works well, it redirects as it should and everything is fine.
But when it comes to:
Code:
typedef void (__cdecl* Proto)(unsigned char*, int);
Proto Func = (Proto)pf.Get("SendFunc");
Func(p, i);
I fail to change it into a working method.
Tried :
Code:
typedef void (__cdecl* Proto)(unsigned char*, int);
Proto Func = (Proto)sendAddr;
Func(p, i);
But without success. It's kinda obvious it would fail since my sendAddr and recvAddr is have the same type. And in your code you only typecast one of them.

So what I wonder is:
What does "pf.Get("SendFunc");" return?
If I know that I could try to figure out a solution which works.

I have no plans of releasing anything which involves this code, if I ever feel like releasing anything I will ask for your permission and I would make sure you get credited for it.
Thanks.
namepod is offline  
Old 11/08/2012, 14:01   #3
 
elite*gold: 0
Join Date: Sep 2006
Posts: 774
Received Thanks: 8,576
Quote:
Originally Posted by namepod View Post
So what I wonder is:
What does "pf.Get("SendFunc");" return?
If I know that I could try to figure out a solution which works.
It returns the address of the send function (not of the winsocket module, but the wrapper function in the client). So you were right in just pointing it to "sendAddr".

What's failing exactly?
phize is offline  
Thanks
1 User
Old 11/08/2012, 14:07   #4
 
elite*gold: 0
Join Date: Sep 2010
Posts: 98
Received Thanks: 130
Quote:
Originally Posted by phize View Post
It returns the address of the send function (not of the winsocket module, but the wrapper function in the client). So you were right in just pointing it to "sendAddr".

What's failing exactly?
Well it don't pick up the items, so i figured it fails to send it?
The game don't crash or so. it just don't pick up the items.
I wonder if the packet codes are wrong, they shouldn't be.
Your code worked for Ep5 right?
namepod is offline  
Old 11/08/2012, 14:12   #5
 
elite*gold: 0
Join Date: Sep 2006
Posts: 774
Received Thanks: 8,576
Quote:
Originally Posted by namepod View Post
Well it don't pick up the items, so i figured it fails to send it?
The game don't crash or so. it just don't pick up the items.
I wonder if the packet codes are wrong, they shouldn't be.
Your code worked for Ep5 right?
Yes, it works for EP5. Are you sure you have the correct address?

If you could upload the game client you're working with, I could verify the address for you.
phize is offline  
Thanks
1 User
Old 11/08/2012, 14:20   #6
 
elite*gold: 0
Join Date: Sep 2010
Posts: 98
Received Thanks: 130
Quote:
Originally Posted by phize View Post
Yes, it works for EP5. Are you sure you have the correct address?

If you could upload the game client you're working with, I could verify the address for you.
Here it is.
sendAddr = 005892A0 - 32 => 0058926E
recvAddr = 005867F4 - 4 => 005867F0

Thanks for doing this

Virus scan.
Attached Files
File Type: rar game.rar (1.16 MB, 117 views)
namepod is offline  
Old 11/08/2012, 14:31   #7
 
elite*gold: 0
Join Date: Sep 2006
Posts: 774
Received Thanks: 8,576
sendAddr should be 0x589280
phize is offline  
Thanks
1 User
Old 11/08/2012, 14:37   #8
 
elite*gold: 0
Join Date: Sep 2010
Posts: 98
Received Thanks: 130
How stupid of me, I should have realized that..
I'm a bit ashamed actually.
All I can say to my defense is that:
1. I'm stupid for not realizing that.
2. You pattern scan for "8B 75 08 8B 5D 0C" then removes 32 from it. //note to self, don't follow something blindly.

Thanks a lot for your help
namepod is offline  
Old 11/08/2012, 14:41   #9
 
elite*gold: 0
Join Date: Sep 2006
Posts: 774
Received Thanks: 8,576
Quote:
Originally Posted by namepod View Post
How stupid of me, I should have realized that..
I'm a bit ashamed actually.
All I can say to my defense is that:
1. I'm stupid for not realizing that.
2. You pattern scan for "8B 75 08 8B 5D 0C" then removes 32 from it. //note to self, don't follow something blindly.

Thanks a lot for your help
32 in decimal, 0x20 in hex

I did a search for that and subtracted manually, and that got me to that address
phize is offline  
Thanks
1 User
Old 11/08/2012, 14:50   #10
 
elite*gold: 0
Join Date: Sep 2010
Posts: 98
Received Thanks: 130
Quote:
Originally Posted by phize View Post
32 in decimal, 0x20 in hex

I did a search for that and subtracted manually, and that got me to that address
*Crawls down a deep dark hole and hopes no one sees me*
I just assumed it was 32 in hex, that's so embarrassing..

Lesson learned

It works now.
I can't thank you enough
namepod is offline  
Thanks
1 User
Old 11/11/2020, 06:16   #11
 
elite*gold: 0
Join Date: Jul 2009
Posts: 354
Received Thanks: 83
anyone still have this
Big_ is offline  
Reply


Similar Threads Similar Threads
ScriptVessel - AUTO DC after DB looting
12/08/2010 - Conquer Online 2 - 7 Replies
anyone got idea how to set fix that ?
Need help with line code for looting Rare Items with auto hotkey
08/04/2009 - 12Sky2 - 10 Replies
Hi currently i have a fully working aoeing , 2-4 buff using , loooting , potting macro , it only loots all loots atm including junk unis , ive tried mesing with it to just pick up rares but ive made no progreas , was wondering if anyone can help me with the line of code i owuld need for it to select Rares within the ts2 window with the mouse click rather than just spamming loot key , any hints or ideas would be appreciated thanks
[CID Proxy] Auto Looting 2nd RB Items
02/21/2009 - CO2 Exploits, Hacks & Tools - 8 Replies
Hey, Never made a topic before so hey why not give it a try? ;P I Simply used Itemtype.dat Encrypt/Decrypt found somewhere in this forum using search. Looked for Dream Grass, Soul Aroma, and Moss, came out with this: 722723 Moss 722724 DreamGrass 722725 SoulAroma
Watch out when auto looting in cities
06/01/2008 - Cabal Online - 8 Replies
15:58:32.309 HoneyMustard> Botter. 15:58:54.544 HoneyMustard> I dropped a few things. 15:58:57.262 HoneyMustard> They disappear. 15:59:02.106 HoneyMustard> I am screening 15:59:06.840 HoneyMustard> And reporting it 15:59:27.919 HoneyMustard> When you're 10 miXXX away from me 15:59:32.840 HoneyMustard> very convincing. 16:00:11.122 HoneyMustard> That's not these screenies saids. 16:00:14.106 HoneyMustard> enjoy 16:00:27.465 HoneyMustard> You have the bot running.



All times are GMT +2. The time now is 18:54.


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.