Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Programming
You last visited: Today at 14:16

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

Advertisement



Refinery Info packet not working.

Discussion on Refinery Info packet not working. within the CO2 Programming forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
kill_acvc's Avatar
 
elite*gold: 0
Join Date: Dec 2007
Posts: 63
Received Thanks: 0
Refinery Info packet not working.

I borrowed this packet from pro4never's source but I can't make it work.
Any ideas?

Quote:
public static GamePacket RefineryInfo(Item I, bool self, uint Pos,uint Type,uint Level,uint Effect,uint Expires)
{
byte[] Pack = new byte[44];
WriteUInt16(36, 0, Pack);
WriteUInt16(2077, 2, Pack);
WriteUInt32(Pos, 4, Pack);//position
WriteUInt32(I.UID, 8, Pack);
if (!self)
WriteUInt32(2, 12, Pack);
// if (I.Refinery != null)
// {
WriteUInt32((uint)Type, 16, Pack);//refinery type
WriteUInt32(Level, 20, Pack);//lvl
WriteUInt32(Effect, 24, Pack);//effect
WriteUInt32(Expires, 28, Pack);//time remaining

// }
// else return new byte[] { };
return new GamePacket(Pack);
}
kill_acvc is offline  
Old 04/03/2011, 09:45   #2
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,376
You're using it wrong. There's nothing wrong with the packet.

Make sure that the refinery type you send is a valid subtype and the other variables are all proper also :P
pro4never is offline  
Thanks
1 User
Old 04/03/2011, 17:05   #3
 
kill_acvc's Avatar
 
elite*gold: 0
Join Date: Dec 2007
Posts: 63
Received Thanks: 0
Quote:
Originally Posted by pro4never View Post
You're using it wrong. There's nothing wrong with the packet.

Make sure that the refinery type you send is a valid subtype and the other variables are all proper also :P


Ok I have a doubt. What does that that "self" bool mean? And what is "Effect"? Because the rest I know how to use.

Thanks, by the way.

[Edit]
Forgot to say... I'm using it in this fashion

Quote:
foreach (Item I in Client.MyCharacter.Inventory.This.Values)
Client.AddSendGamePacket(GamePackets.RefineryInfo( I, true, 0, (uint)Enums.ItemEnums.RefineryType.Breakthrough, 3, 255, uint.Parse(DateTime.Now.AddDays(7).ToString("yyddm m"))).ToArray);
kill_acvc is offline  
Old 04/03/2011, 17:10   #4

 
Kiyono's Avatar
 
elite*gold: 20
Join Date: Jun 2006
Posts: 3,296
Received Thanks: 924
self bool is not needed and effect is percentage appearing on items.
For example, using 200 for effect would give this:
Kiyono is offline  
Thanks
1 User
Old 04/03/2011, 17:31   #5
 
kill_acvc's Avatar
 
elite*gold: 0
Join Date: Dec 2007
Posts: 63
Received Thanks: 0
Quote:
Originally Posted by Kiyono View Post
self bool is not needed and effect is percentage appearing on items.
For example, using 200 for effect would give this:
Oh I see, thanks. =P But I guess I know what's going on. I was using a 5372 client while the packet was sniffed for 5355 clients =P. I'll test this theory now and thanks for the informations.
kill_acvc is offline  
Old 04/03/2011, 19:11   #6
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,376
It should still work on the latest client. Last I tested it with was 5370 I think.

The self bool is completely wrong. It should be coded as 2 always for refinery (it's like a 'send type'. 2 for refinery, 14 or something for dragon souls)


But yes, make sure you have valid values in all of the offsets and it works just great.


For example...

ItemInfo item = user.Equipment[1];//headgear or w/e. MUST be equipped or this will not work
user.Send(Packets.RefineryInfo(item, true, item.Location, 301, 1, 10, 1000));
pro4never is offline  
Old 04/05/2011, 00:35   #7
 
kill_acvc's Avatar
 
elite*gold: 0
Join Date: Dec 2007
Posts: 63
Received Thanks: 0
Quote:
Originally Posted by pro4never View Post
It should still work on the latest client. Last I tested it with was 5370 I think.

The self bool is completely wrong. It should be coded as 2 always for refinery (it's like a 'send type'. 2 for refinery, 14 or something for dragon souls)


But yes, make sure you have valid values in all of the offsets and it works just great.


For example...

ItemInfo item = user.Equipment[1];//headgear or w/e. MUST be equipped or this will not work
user.Send(Packets.RefineryInfo(item, true, item.Location, 301, 1, 10, 1000));

Just noticed the packet works only for equipped items. Thanks.

#request close
kill_acvc is offline  
Reply


Similar Threads Similar Threads
[Release] Arena Info Packet Structure
02/21/2011 - CO2 PServer Guides & Releases - 12 Replies
Heya! I hope this become an usefull release for who use an source with arena... and i would really apreciate any help to end the other 4 packets .... (2208,2205,2206,2207); so... this is the structure... only... if u get it working you will see something like this in game: http://b.imagehost.org/0760/19240804.jpg
Item Info Packet 5362
02/16/2011 - CO2 Private Server - 9 Replies
Problem Solved. FUCK YOU 4BOTTERS! UGLY LEECHERS! Even you copied the Packet, You will never get monks to your servers as I Did MWAH BABES <3 http://i989.photobucket.com/albums/af15/RockArch/ ItemProblem.png?t=1297547882
[question] Packet 0x3b, picking drop. Info about number
01/24/2010 - Kal Online - 9 Replies
Hello, I want to have the item structure with info about amount etc. When I pick up drop and I've already own this kind of item (all countable items) the packet 3b is sent to client when sent pick packet to server. Those packets looks like: ------- size hd ????? ev hh num Recv - 07003b c378 5f 02 da Recv - 07003b b17c 5f 02 db Recv - 07003b 6572 5f 02 dc
Packet Info.
01/20/2010 - CO2 Private Server - 20 Replies
I heard that the lotf packets are very poorly coded, is that true? And what is the downfall of unsafe code? Anyway to convert them to a better coded packet, like "Packet.WriteUint16(X);" instead of the *(p-1) = XXX". i think i might know when it says like "*(p-1) = (uint)XXX" or w/e, but what is its just like *(p-1) = XXX". Is that just WriteByte? That may be confusing, but the first question is what I really wanna know.
[NEED INFO]Packet Editing
10/05/2007 - Dekaron - 3 Replies
i would like to get started on how to packet edit. i know that the packets sent from 2moons server is encrypted. i wanna learn how to decrypt them, edit them, and resend them. anyone that has sites, ideas, or tuts please reply. thanks much. P/S: i know that wpe pro is detectable by gg...i'm trying other options out there.



All times are GMT +2. The time now is 14:16.


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.