Register for your free account! | Forgot your password?

You last visited: Today at 14:39

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

Advertisement



Sending Packets

Discussion on Sending Packets within the PW Hacks, Bots, Cheats, Exploits forum part of the Perfect World category.

Reply
 
Old 12/05/2010, 03:40   #136
 
elite*gold: 0
Join Date: Mar 2008
Posts: 109
Received Thanks: 64
Looks fine to me. It might be better to wait until the targetID is registered before executing the skills; you can also measure the server's latency while waiting as well. Example:

Code:
public long DoSetTarget(uint targetID)
{
	var stream = new MemoryStream();
	stream.Write(BitConverter.GetBytes(0x2), 0, 2);
	stream.Write(BitConverter.GetBytes(targetID), 0, 4);
	byte[] data = stream.ToArray();
	SendPackage(data);
	Stopwatch timer = Stopwatch.StartNew();
	while (timer.ElapsedMilliseconds < 5000)
	{
		// Check for TargetID to show up
		if (Self.TargetId == targetID) break;
		Thread.Sleep(10);
	}
	return timer.ElapsedMilliseconds / 2;
}
vuduy is offline  
Thanks
1 User
Old 12/05/2010, 05:35   #137
 
elite*gold: 0
Join Date: Sep 2008
Posts: 35
Received Thanks: 0
All the functions are fine and the problem is when I do casting spell but I am too far from the mob. The character does not automatically run to mob. Is there any to let the game-client handle that for us or we have to handle that ourselves?
SunB is offline  
Old 12/05/2010, 08:06   #138
 
elite*gold: 0
Join Date: Mar 2008
Posts: 109
Received Thanks: 64
Use Action structures for that; it simplifies everything.
vuduy is offline  
Old 12/05/2010, 09:09   #139
 
Interest07's Avatar
 
elite*gold: 0
Join Date: Mar 2010
Posts: 862
Received Thanks: 576
Just in case you don't have the action structs...


Follow:

Interaction struct (regular attack, pickup item, initiate dialogue with npc, use skill or harvest resource):


Move struct:

Interest07 is offline  
Thanks
14 Users
Old 12/05/2010, 16:07   #140
 
elite*gold: 0
Join Date: Sep 2008
Posts: 35
Received Thanks: 0
what is the pointer to the Action struct from the base address?
For interaction struct, there is "skillPointer", how we construct this pointer?
Thank you so much for your help,, vuduy and Interest ^^
SunB is offline  
Old 12/06/2010, 00:08   #141
 
Interest07's Avatar
 
elite*gold: 0
Join Date: Mar 2010
Posts: 862
Received Thanks: 576
the actionstruct pointer is an offset from player, so for pwi for example:

Code:
baseAddress = [0xA5B90C]
structureAddress = [baseAddress + 0x1C]
playerAddress = [structureAddress + 0x20]
actionStructAddress = [playerAddress + 0xFF4]
The offset finder that comes with my WQ bot should get you your actionStruct offset.

you can find skillPointer in the skillList, not sure what the offset is for that for PWI atm. BUt you basically browse through the skillList as follows:

Code:
skillListAddress = [playerAddress + skillListOffset]
for(int i = 0; i < nSkills; i++)
{
     skillPointer = [skillListAddres + i * 0x4]
     if([skillPointer + 0x8] == skillIdYouWantTouse)
     {
          break;
     }
}
Interest07 is offline  
Thanks
3 Users
Old 12/06/2010, 03:06   #142
 
elite*gold: 0
Join Date: Sep 2008
Posts: 35
Received Thanks: 0
Thank you so much for that. I will try them after work
For other actions like regular attack, gather resources or pickup, I do not need the skill pointer, so just leave it as an empty pointer, right?
SunB is offline  
Old 12/06/2010, 09:58   #143
 
Interest07's Avatar
 
elite*gold: 0
Join Date: Mar 2010
Posts: 862
Received Thanks: 576
Quote:
Originally Posted by SunB View Post
Thank you so much for that. I will try them after work
For other actions like regular attack, gather resources or pickup, I do not need the skill pointer, so just leave it as an empty pointer, right?
yup, 0 will work
Interest07 is offline  
Old 12/07/2010, 07:17   #144
 
elite*gold: 0
Join Date: May 2009
Posts: 26
Received Thanks: 1
how to find other player id ??
penipu81 is offline  
Old 12/07/2010, 07:32   #145
 
elite*gold: 0
Join Date: Sep 2008
Posts: 35
Received Thanks: 0
There is a list of player around your character.
[base address + 0x1C + 0x8 + 0x20] (for PW vietnam). It may different from your client.
SunB is offline  
Old 12/08/2010, 14:38   #146
 
silkytail's Avatar
 
elite*gold: 0
Join Date: Jun 2008
Posts: 142
Received Thanks: 13
hey interest did you ever wonder to make some base of all known packet data formats? I'd like to join but I suppose it needs some fancy thing to keep all data in convenient form and don't have any idea about it right now.
silkytail is offline  
Old 12/08/2010, 14:51   #147
 
Interest07's Avatar
 
elite*gold: 0
Join Date: Mar 2010
Posts: 862
Received Thanks: 576
Hmmm, yeah I suppose it would be nice to have a file with a neat syntax describing all packets, so every programmer regardless of language can use them easily. There is still the danger of different versions of PW using different packets though. I'll put some thought into it
Interest07 is offline  
Thanks
1 User
Old 12/08/2010, 14:58   #148
 
silkytail's Avatar
 
elite*gold: 0
Join Date: Jun 2008
Posts: 142
Received Thanks: 13
yep that fancy thing should also support packet versioning a sort of wiki but with tables, probably comments :р first thought about google docs but it could be a pain..
silkytail is offline  
Old 12/08/2010, 16:15   #149
 
No0oB's Avatar
 
elite*gold: 0
Join Date: Jan 2009
Posts: 175
Received Thanks: 162
maybe you/we can create a SQL database with packets/description and that stuff...
and then show it in on a webpage (php) in a table... this way you/we can create a page for every pw version (int/rus/br/my ...) with own tables ^^
or something else (^_^)
No0oB is offline  
Old 12/08/2010, 16:18   #150
 
elite*gold: 0
Join Date: Sep 2008
Posts: 35
Received Thanks: 0
Yeah, it would be cool, a free WordPress page or as No0oB said a free hosting website and setting things up
SunB is offline  
Reply


Similar Threads Similar Threads
Help with sending packets in autoit
08/16/2010 - AutoIt - 1 Replies
ive been lookin around different sites for ways to send packets to the game server. the only examples i see is to create a server and a client which i dont need, i think. well to the point now, can someone lead me in a direction or tell me how to send packets to a game? also if i send packets then that means i dont need the game to be active, correct? Because in autoit when u use keys u need to have the game active, and control send does not work. ty
Sending Packets !!!
09/07/2008 - Kal Online - 14 Replies
now i know how to sniff / analyse packets ... but what then ? :) how can i send packets ?? to pimp or mix weapon for example i just need the way to send , and then i can depend on myself :D
Sending Packets (need advice)
03/20/2008 - Conquer Online 2 - 7 Replies
OK well im finaly trying to stop leaching off of everybodys work its been great n all download n play :D But im tired of being a begger n the past couple months ive been learning as much as i can about macros memery add blah blah you know ... After playing around with ce and ahk the past couple months i stumbled across wpe pro, theres not alot of tuturals and its hard to find good help. Well heres what ive been doing so far, open my CO then i attach it to my sniffer. I change my...
Scamming by sending packets???
04/15/2006 - Conquer Online 2 - 1 Replies
Well my friend and i came up with the idea to send packets to the server to show a certain item in the trade window. We want to use this as a type of scam. I didnt see this in any other threads and was wondering if anyone knew if this is possible and if they could point use in the right direction. My friend was pretty good with packets in CO 1.0 but we arent really sure to go about doing it. If anyone one could please lend a helping hand? P.S.- Before I get flamed for this because i know i...
Sending packets
10/12/2005 - Conquer Online 2 - 10 Replies
I've a question. Is it possible to send 1 packet multiple times at the exact same time?



All times are GMT +1. The time now is 14:40.


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.