Register for your free account! | Forgot your password?

You last visited: Today at 09:48

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

Advertisement



[Help] Wrong IDs?

Discussion on [Help] Wrong IDs? within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
JobvdH's Avatar
 
elite*gold: 0
Join Date: Nov 2010
Posts: 371
Received Thanks: 120
[Help] Wrong IDs?

Hello all,

I have a question.
Thanks to 12tails and pro4never I've got it done to make transformations possible.
It now shows me an restore button and a countdown .

But now 2 questions:
1: Whats the packet for restore? (Now it won't restore and button dissapear).
2: Everytime I want to transform I`ll be invisible or a whole other mesh..

My code is in the spoiler:

Does anyone have a clue??

Thanks,
JobvdH!
JobvdH is offline  
Old 11/03/2011, 14:04   #2


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
Its like you want us to write your source for you, maybe we should start charging =x
Korvacs is offline  
Old 11/03/2011, 14:11   #3
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
you need to learn to COMBINE SEPARATE VALUES when you send the mesh value...

You don't keep boosting the value you hold them as separate and only combine when you need the combined value.


Korv is right.. I'll code the whole disguise system for 50 bux if you want
pro4never is offline  
Old 11/03/2011, 14:19   #4
 
JobvdH's Avatar
 
elite*gold: 0
Join Date: Nov 2010
Posts: 371
Received Thanks: 120
So...
Means..
I got to combine, mesh * 10000000 + avatar * 10000 + normal mesh?

EDIT: I already found the General Data subtype for restore button!!
JobvdH is offline  
Old 11/03/2011, 14:39   #5
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
Quote:
Originally Posted by JobvdH View Post
So...
Means..
I got to combine, mesh * 10000000 + avatar * 10000 + normal mesh?

EDIT: I already found the General Data subtype for restore button!!
Exactly. Personally I use get/set accessors for each mesh part and a simple get accessor for the final mesh which combines them. I NEVER alter them or do the actual multiplication inside the variable. It's much easier to know what transformation id 223 or w/e is compared to 2230000000 off the top of your head.
pro4never is offline  
Old 11/03/2011, 14:54   #6
 
JobvdH's Avatar
 
elite*gold: 0
Join Date: Nov 2010
Posts: 371
Received Thanks: 120
Alright..
Now I got this:

Code:
                            OldMesh = Model;
                            Transformed = true;
                            TransformStamp = DateTime.Now;
                            TransformModel = (223 * 10000000L);
                            Model = ulong.Parse(TransformModel.ToString() + Avatar.ToString() + Model.ToString());
                            MyClient.SendPacket(Program.MyPackets.Vital(UID, 12, ulong.Parse(Avatar.ToString() + Model.ToString())));
                            MyClient.SendPacket(Program.MyPackets.Vital(UID, 26, GetStat()));
                            World.UpdateSpawn(MyClient.MyChar);
But uhh...
When I do this:
Code:
                            OldMesh = Model;
                            Transformed = true;
                            TransformStamp = DateTime.Now;
                            TransformModel = (223 * 10000000L);
                            Model = ulong.Parse(TransformModel.ToString() + (Avatar * 10000).ToString() + Model.ToString());
                            MyClient.SendPacket(Program.MyPackets.Vital(UID, 12, ulong.Parse(Avatar.ToString() + Model.ToString())));
                            MyClient.SendPacket(Program.MyPackets.Vital(UID, 26, GetStat()));
                            World.UpdateSpawn(MyClient.MyChar);
It gives me an error that it is to big for an Int64 >_>

Now it transforms but in a different mesh..
JobvdH is offline  
Old 11/03/2011, 15:18   #7
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
mesh is an uint... not a ulong...

You're doing tostring! That is wrong it's pasting the numbers infront of eachother


1000000 + 10000 becomes


100000010000

This is not correct... as we said in the original thread just look at how other sources do it.. it's really simple.
pro4never is offline  
Reply




All times are GMT +1. The time now is 09:48.


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.