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?
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?
>>>>> 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?
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" ?
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.
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);
}
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:
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.
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?
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?