Register for your free account! | Forgot your password?

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

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

Advertisement



[Help]i need help with this code

Discussion on [Help]i need help with this code within the CO2 Programming forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Dec 2009
Posts: 62
Received Thanks: 11
[Help]i need help with this code

when im coding packets i would needa do something like ushort
PHP Code:
PacketType 0x3f2;
byte[] Packet = new byte[24];
  
uint Timer = (uint)Environment.TickCount
and when ur coding packets like this
PHP Code:
   *((ushort*)(2)) = (ushort)PacketType;
((
uint*)(4)) = (uint)Timer;

*((
ushort*)(8)) = (ushort)Charr.LocMap;
  *(
22) = (byte)(0x4a 0xff); 
so i needa explanations for uint Timer (uint)Environment.TickCount; need exlanations for the *((ushort*)(p + {"the number"}) = (uint)Timer
dunno whats that into the curly brackets and the type casted timer also
folip5 is offline  
Thanks
1 User
Old 04/19/2010, 23:02   #2
 
elite*gold: 0
Join Date: Jan 2007
Posts: 177
Received Thanks: 57
Quote:
Originally Posted by folip5 View Post
when im coding packets i would needa do something like ushort
PHP Code:
PacketType 0x3f2;
byte[] Packet = new byte[24];
  
uint Timer = (uint)Environment.TickCount
and when ur coding packets like this
PHP Code:
   *((ushort*)(2)) = (ushort)PacketType;
((
uint*)(4)) = (uint)Timer;

*((
ushort*)(8)) = (ushort)Charr.LocMap;
  *(
22) = (byte)(0x4a 0xff); 
so i needa explanations for uint Timer (uint)Environment.TickCount; need exlanations for the *((ushort*)(p + {"the number"}) = (uint)Timer
dunno whats that into the curly brackets and the type casted timer also
Timer = timestamp
*((ushort*)(p + 2)) = (ushort)PacketType uses void pointer typcasted as a ushort* to store the value of the packet type (which is a ushort) at the offset
in the curly braces are offsets based on your (copypasta) packet structs.

if you can't get it from this, trade your pc in for a mac, cause viewing pictures is about as much as you will need to do
DarkMessiah is offline  
Old 04/19/2010, 23:19   #3
 
elite*gold: 0
Join Date: Apr 2006
Posts: 35
Received Thanks: 9
Quote:
Originally Posted by folip5 View Post
when im coding packets i would needa do something like ushort
PHP Code:
PacketType 0x3f2;
byte[] Packet = new byte[24];
  
uint Timer = (uint)Environment.TickCount
and when ur coding packets like this
PHP Code:
   *((ushort*)(2)) = (ushort)PacketType;
((
uint*)(4)) = (uint)Timer;

*((
ushort*)(8)) = (ushort)Charr.LocMap;
  *(
22) = (byte)(0x4a 0xff); 
so i needa explanations for uint Timer (uint)Environment.TickCount; need exlanations for the *((ushort*)(p + {"the number"}) = (uint)Timer
dunno whats that into the curly brackets and the type casted timer also
The problem is you are using C# code as PHP.
MasterFletch is offline  
Old 04/19/2010, 23:34   #4
 
Nullable's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 390
Received Thanks: 321
Quote:
Originally Posted by MasterFletch View Post
The problem is you are using C# code as PHP.
It's just a code tag.. I use that tag sometimes
OP: What darkmessiah said
Nullable is offline  
Old 04/19/2010, 23:43   #5
 
elite*gold: 0
Join Date: Apr 2006
Posts: 35
Received Thanks: 9
Quote:
Originally Posted by Nullable View Post
It's just a code tag.. I use that tag sometimes
OP: What darkmessiah said
MasterFletch is offline  
Old 04/19/2010, 23:50   #6
 
Nullable's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 390
Received Thanks: 321
Quote:
Originally Posted by MasterFletch View Post
Nullable is offline  
Old 04/20/2010, 00:23   #7
 
elite*gold: 0
Join Date: Jan 2007
Posts: 177
Received Thanks: 57
Quote:
Originally Posted by Nullable View Post
DarkMessiah is offline  
Old 04/20/2010, 15:40   #8
 
elite*gold: 0
Join Date: Dec 2009
Posts: 62
Received Thanks: 11
Well i need better explanations thanks for trying anyways ill try to get it from that one but im not sure i will be able to.
folip5 is offline  
Old 04/20/2010, 15:42   #9
 
elite*gold: 0
Join Date: Dec 2009
Posts: 62
Received Thanks: 11
Quote:
Originally Posted by MasterFletch View Post
The problem is you are using C# code as PHP.
Well if you know another way lol
folip5 is offline  
Old 04/20/2010, 18:25   #10
 
Dr.unreal's Avatar
 
elite*gold: 0
Join Date: Oct 2006
Posts: 273
Received Thanks: 86
Quote:
Originally Posted by folip5 View Post
Well if you know another way lol
Dr.unreal is offline  
Old 04/20/2010, 23:16   #11
 
elite*gold: 0
Join Date: Jan 2007
Posts: 656
Received Thanks: 541
Quote:
Originally Posted by folip5 View Post
Well if you know another way lol
Have you tied *code* */code* replacing the * with [ ]

Like this

Code:
 
Console.WriteLine("Test Test");
Trigorio is offline  
Old 04/22/2010, 04:25   #12
 
elite*gold: 0
Join Date: Jan 2007
Posts: 177
Received Thanks: 57
Quote:
Originally Posted by Trigorio View Post
Have you tied *code* */code* replacing the * with [ ]

Like this

Code:
 
Console.WriteLine("Test Test");
[code] *insert stuff here* [/code]
DarkMessiah is offline  
Reply


Similar Threads Similar Threads
B> DriftCity CBS Code | S> War Rock Code / Bounty Bay Code etc.
10/05/2010 - Trading - 1 Replies
Hi, wie schon im Titel beschrieben. In der CBS vom November gab es Bonusodes für mehrere Spiele. Ich benötige DriftCity Codes. Kann sonst für alle anderen Spiele die Codes biten, einige auch doppelt. Hier eine Liste der Spiele und Bonusaktionen: - (2x) War Rock - (2x) War of Titans - (2x) World of Warcraft - (1x) Warhammer Online - (1x) Bounty Bay online
Gebe Vip Hack Suche Storm Code oder 5k Dinar Code
07/25/2010 - WarRock Trading - 4 Replies
blubb
WTB: Japanischer/Chinesicher Guild Wars Trial-Code und EoTn Code
02/08/2010 - Guild Wars Trading - 5 Replies
Hallo, Wie schon oben in der beschreibung steht suche ich Japanischer/Chinesicher Trial-Code + EoTn oder die einzelnen Codes! Ich würde in Platin/Ektos/ZkeYs zahlen (allerdings nur mit Treuhandhändler), man weiss ja nie was einem Verkauft wird :P. Bitte so schnell wie möglich melden, wen einer es haben sollte.



All times are GMT +1. The time now is 17:47.


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.