Register for your free account! | Forgot your password?

You last visited: Today at 10: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 11/18/2010, 08:04   #121
 
Interest07's Avatar
 
elite*gold: 0
Join Date: Mar 2010
Posts: 862
Received Thanks: 576
Quote:
Originally Posted by SunB View Post
I can do self cast but I can not do it with target and after do 4-5 self cast spells, the game client become not responding. Maybe my code do something stupid with the game client. Anyway, thank for your respond ^ ^

P/s: Is there any problem if I open and close the process many time, for example, update game info, perform send package, scan for mob, items, npc?
Maybe... why don't you just open the process once?

Do you play on the russian server?
Interest07 is offline  
Thanks
1 User
Old 11/18/2010, 08:21   #122
 
elite*gold: 0
Join Date: Sep 2008
Posts: 35
Received Thanks: 0
I am playing on Vietname server I am refactoring my code to only open the process once. How to let the character move to a specified location by sending package?
SunB is offline  
Old 11/18/2010, 09:32   #123
 
Interest07's Avatar
 
elite*gold: 0
Join Date: Mar 2010
Posts: 862
Received Thanks: 576
In the first post of this thread I linked to a post explaining movement by packets.

Ahh, there is a chance packets aren't all the same on Vietnamese server I suppose.
Interest07 is offline  
Thanks
1 User
Old 11/18/2010, 15:59   #124
 
BuBucekTop's Avatar
 
elite*gold: 0
Join Date: Nov 2007
Posts: 160
Received Thanks: 28
>>>>> I can do self cast but I can not do it with target

Have you set proper target before using skill on it ???
______________________________
Captiain Obvious is at your service.
BuBucekTop is offline  
Old 11/18/2010, 16:00   #125
 
Interest07's Avatar
 
elite*gold: 0
Join Date: Mar 2010
Posts: 862
Received Thanks: 576
Quote:
Originally Posted by BuBucekTop View Post
>>>>> I can do self cast but I can not do it with target

Have you set proper target before using skill on it ???
______________________________
Captiain Obvious is at your service.
oh yeah, good question, did you select target before trying to use a skill on it
Interest07 is offline  
Old 11/18/2010, 17:13   #126
 
elite*gold: 0
Join Date: Sep 2008
Posts: 35
Received Thanks: 0
Quote:
Originally Posted by BuBucekTop View Post
>>>>> I can do self cast but I can not do it with target

Have you set proper target before using skill on it ???
______________________________
Captiain Obvious is at your service.
Of course, I do target the proper mob. Does that exactly mean "set proper target"
Update:
A little try after work, I can do regular attack. I call SelectTarget before casting, am I missing anything?
SunB is offline  
Old 12/04/2010, 04:08   #127
 
elite*gold: 0
Join Date: Sep 2008
Posts: 35
Received Thanks: 0
I call function "Set Target" first, then I use "Cast Skill" but it fail. I try to target manually and call function "Cast Skill" and it works Am I missing anything before call "Use Skill" ?
SunB is offline  
Old 12/04/2010, 09:19   #128
 
Interest07's Avatar
 
elite*gold: 0
Join Date: Mar 2010
Posts: 862
Received Thanks: 576
has there been enough time between the set target and cast skill?
If you send the two packets (almost) simultaneously, they might arrive in the wrong order at the server.
Interest07 is offline  
Old 12/04/2010, 11:32   #129
 
elite*gold: 0
Join Date: Sep 2008
Posts: 35
Received Thanks: 0
Hi Interest, I tried to some the package after 5s but it did not work. After call "Set Target", I call "Regular Attack" and it works. However I can do self cast (buffs...).
Here is the cast skill function:
Code:
 public void DoCastSpell(uint skillID, uint targetID)
        {
            var stream = new MemoryStream();
            stream.Write(BitConverter.GetBytes(0x29), 0, 2);
            stream.Write(BitConverter.GetBytes(skillID), 0, 4);
            stream.Write(BitConverter.GetBytes(0x100), 0, 2);
            stream.Write(BitConverter.GetBytes(targetID), 0, 4);
            byte[] data = stream.ToArray();
            SendPackage(data);
        }
Is the package correct?
SunB is offline  
Old 12/04/2010, 18:17   #130
 
Interest07's Avatar
 
elite*gold: 0
Join Date: Mar 2010
Posts: 862
Received Thanks: 576
do you reverse the byte order ? I've never used MemoryStream before, but i don't think it reverses byte order for you. BUt when you for example want to use skill (skillId 0x1234, playerId 0x12345678) you send packet:

290034120000000178563412
Interest07 is offline  
Old 12/04/2010, 19:27   #131
 
elite*gold: 0
Join Date: Mar 2008
Posts: 109
Received Thanks: 64
You don't need to reverse the bye array when writing bytes directly using BitConverter. His UseSkill works when he selects the target before hand so it's not the function problem.

The problem is his SetTarget function. He needs to lock target first by using "Select" opcode (0200) before he can execute skills on the target. He's probably setting target by just writing the targetId to the Target offset without locking.
vuduy is offline  
Thanks
1 User
Old 12/04/2010, 21:45   #132
 
Interest07's Avatar
 
elite*gold: 0
Join Date: Mar 2010
Posts: 862
Received Thanks: 576
Hehe thanks vuduy, I'm never good at figuring out what goes wrong for people.
Interest07 is offline  
Old 12/05/2010, 01:52   #133
 
elite*gold: 0
Join Date: Sep 2008
Posts: 35
Received Thanks: 0
I used the "SetTarget" get function for "targeting". After call this function, I do check the target ID at TargetOffset and it matches. Is that the correct way to target and lock target?
SunB is offline  
Old 12/05/2010, 02:44   #134
 
elite*gold: 0
Join Date: Mar 2008
Posts: 109
Received Thanks: 64
What do you do in your SetTarget function?
vuduy is offline  
Old 12/05/2010, 02:48   #135
 
elite*gold: 0
Join Date: Sep 2008
Posts: 35
Received Thanks: 0
Here it is:
Code:
 public void 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);
        }
Thank you, Vuduy
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 10: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.