Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server > CO2 PServer Guides & Releases
You last visited: Today at 04:02

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

Advertisement



Redux v2 - Official 5065 Classic Source

Discussion on Redux v2 - Official 5065 Classic Source within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Closed Thread
 
Old 10/15/2014, 16:30   #1426
 
zakkwilde_17's Avatar
 
elite*gold: 0
Join Date: Jul 2007
Posts: 137
Received Thanks: 4
I believe not. I have reviewed the codes of the Albetros and believe it is the same

Redux codes:
Code:
                case DataAction.ObserveFriend:
                case DataAction.ObserveEquipment:
                    {
                        //packet.Action = DataAction.ObserveEquipment;
                        var target = client.Map.Search<Player>(packet.Data1);
                        if (target == null)
                            return;
                        Console.WriteLine(client.Name + " observing " + target.Name);
                        target.SendMessage(client.Name + " is observing your gear carefully.", ChatType.System);
                        client.Send(SpawnEntityPacket.Create(target));
                        for (byte loc = 1; loc < 10; loc++)
                        {
                            Structures.ConquerItem toView;
                            if (target.Equipment.TryGetItemBySlot(loc, out toView))
                                client.Send(ItemInformationPacket.CreateObserveItem(toView, target.UID));
                        }
                        //client.Send(packet);
                        break;
                    }
Albetros codes:

Code:
                                    case DataAction.QueryFriendEquip:
                                    case DataAction.QueryEquipment:
                                        {                                            
                                            if (!Kernel.Clients.ContainsKey(receive.Data1))
                                                return;
                                            Player target = Kernel.Clients[receive.Data1];
                                            user.Send(Packet.SpawnPlayerPacket.Create(target));
                                            for (byte i = 1; i <= (int)ItemLocation.Steed; i++)
                                            {
                                                var item = target.Equipment.GetItemBySlot((ItemLocation)i);
                                                if (item == null) continue;
                                                if (!item.ItemtypeData.HasValue) continue;
                                                user.Send(Packet.ViewItem.Create(target.UID, item));
                                                if (item.RefineryData != null || item.ArtifactData != null)
                                                    user.Send(Packet.RefineryInfoPacket.Create(item));
                                            }

                                            user.Send(StringPacket.Create(StringAction.QueryMate, target.Spouse));

                                            //StringPacket sp = new StringPacket();
                                            //sp.Strings = new NetStringPacker();
                                            //sp.UID = user.UID;
                                            //sp.Type = 16;
                                            //sp.Strings.AddString(target.Spouse);
                                            //user.Send(sp);
                                            //sp.Type = 10;
                                            //user.Send(sp);
                                            break;
                                        }
zakkwilde_17 is offline  
Old 10/15/2014, 18:01   #1427
 
elite*gold: 0
Join Date: Oct 2008
Posts: 270
Received Thanks: 10
not sure if version 1 has it but version 1.1 does, I logged in and checked myself.
wait are you talking about viewing someones equipment through the whisperbox? or through your friends list?
corbit15 is offline  
Old 10/15/2014, 18:31   #1428
 
zakkwilde_17's Avatar
 
elite*gold: 0
Join Date: Jul 2007
Posts: 137
Received Thanks: 4
Quote:
Originally Posted by corbit15 View Post
not sure if version 1 has it but version 1.1 does, I logged in and checked myself.
wait are you talking about viewing someones equipment through the whisperbox? or through your friends list?
Whisperbox and Friends check ar the same packet GeneralActionPacket 310. it work well when the target is on the screen x.x
zakkwilde_17 is offline  
Old 10/15/2014, 18:56   #1429
 
elite*gold: 0
Join Date: Oct 2008
Posts: 270
Received Thanks: 10
Quote:
Originally Posted by zakkwilde_17 View Post
Whisperbox and Friends check ar the same packet GeneralActionPacket 310. it work well when the target is on the screen x.x
oh I see what you mean. I just checked and albetros does that same thing haha. Your best bet would be to talk to ace since hes developing a live server from this base.

I'll take a look and see what I can do and ill post my fix if I get one. it wont be for this source though.
corbit15 is offline  
Old 10/16/2014, 00:11   #1430
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,376
Quote:
Originally Posted by corbit15 View Post
oh I see what you mean. I just checked and albetros does that same thing haha. Your best bet would be to talk to ace since hes developing a live server from this base.

I'll take a look and see what I can do and ill post my fix if I get one. it wont be for this source though.

The problem is that the client doesn't seem to send the ID for who is being viewed.

It was reported back during albetros and when we checked the client was sending its own ID rather than the target. I'm sure it's just a basic thing to work around but I never looked into it much back in the day
pro4never is offline  
Old 10/16/2014, 07:13   #1431
 
elite*gold: 0
Join Date: Oct 2008
Posts: 270
Received Thanks: 10
Quote:
Originally Posted by pro4never View Post
The problem is that the client doesn't seem to send the ID for who is being viewed.

It was reported back during albetros and when we checked the client was sending its own ID rather than the target. I'm sure it's just a basic thing to work around but I never looked into it much back in the day
Hm. Wonder why it does that. I'm not at home to look right now but that gives me something to go off of.
corbit15 is offline  
Old 10/16/2014, 20:52   #1432
 
zakkwilde_17's Avatar
 
elite*gold: 0
Join Date: Jul 2007
Posts: 137
Received Thanks: 4
Quote:
Originally Posted by corbit15 View Post
oh I see what you mean. I just checked and albetros does that same thing haha. Your best bet would be to talk to ace since hes developing a live server from this base.

I'll take a look and see what I can do and ill post my fix if I get one. it wont be for this source though.
Okay, I'll wait for what you can do for us
zakkwilde_17 is offline  
Old 10/16/2014, 21:56   #1433
 
elite*gold: 0
Join Date: Oct 2008
Posts: 270
Received Thanks: 10
Quote:
Originally Posted by zakkwilde_17 View Post
Okay, I'll wait for what you can do for us
Don't wait for me to find a fix for it. Chances are I won't have time since I work and go to college. Check it out yourself also. Have you tried breakpointing? And also read what pro posted on the previous page if you haven't already
corbit15 is offline  
Old 10/16/2014, 23:47   #1434
 
zakkwilde_17's Avatar
 
elite*gold: 0
Join Date: Jul 2007
Posts: 137
Received Thanks: 4
Quote:
Originally Posted by corbit15 View Post
Don't wait for me to find a fix for it. Chances are I won't have time since I work and go to college. Check it out yourself also. Have you tried breakpointing? And also read what pro posted on the previous page if you haven't already
yep, i'm breakpointing, it sends all informations of target, but when it return packet or send to screen, it fail... i dont know why x.x

----------------------------
EDIT

Here i got fix a problem with the observe. Before he was only observing characters who were on the same map as you. Now he seeks in all the characters that are online. Also added the string name spouse. But don't fix my problem u.u

Code:
                case DataAction.ObserveFriend:
                case DataAction.ObserveEquipment:
                    {
                        if (!PlayerManager.Players.ContainsKey(packet.Data1))
                            return;

                        Player target = PlayerManager.GetUser(packet.Data1);
                        client.Send(SpawnEntityPacket.Create(target));

                        target.SendMessage(client.Name + " is observing your gear carefully.", ChatType.System);

                        for (byte loc = 1; loc < 10; loc++)
                        {
                            Structures.ConquerItem toView;
                            if (target.Equipment.TryGetItemBySlot(loc, out toView))
                                client.Send(ItemInformationPacket.CreateObserveItem(toView, target.UID));
                        }

                        client.Send(StringsPacket.Create(target.UID, StringAction.QueryMate, target.Spouse));
                        
                        break;
                    }
zakkwilde_17 is offline  
Old 10/17/2014, 02:34   #1435
 
elite*gold: 0
Join Date: Feb 2006
Posts: 726
Received Thanks: 271
If the client isn't sending the correct target ID there might not be much you can do.
This is especially true in the case of the friends list.

Perhaps it might be something as simple as having the right value in a packet to have the client send the right ID, seems unlikely but possible.
Aceking is offline  
Old 10/17/2014, 09:26   #1436
 
elite*gold: 0
Join Date: Oct 2008
Posts: 270
Received Thanks: 10
Quote:
Originally Posted by zakkwilde_17 View Post
yep, i'm breakpointing, it sends all informations of target, but when it return packet or send to screen, it fail... i dont know why x.x

----------------------------
EDIT

Here i got fix a problem with the observe. Before he was only observing characters who were on the same map as you. Now he seeks in all the characters that are online. Also added the string name spouse. But don't fix my problem u.u

Code:
                case DataAction.ObserveFriend:
                case DataAction.ObserveEquipment:
                    {
                        if (!PlayerManager.Players.ContainsKey(packet.Data1))
                            return;

                        Player target = PlayerManager.GetUser(packet.Data1);
                        client.Send(SpawnEntityPacket.Create(target));

                        target.SendMessage(client.Name + " is observing your gear carefully.", ChatType.System);

                        for (byte loc = 1; loc < 10; loc++)
                        {
                            Structures.ConquerItem toView;
                            if (target.Equipment.TryGetItemBySlot(loc, out toView))
                                client.Send(ItemInformationPacket.CreateObserveItem(toView, target.UID));
                        }

                        client.Send(StringsPacket.Create(target.UID, StringAction.QueryMate, target.Spouse));
                        
                        break;
                    }
correct me if i'm wrong but I don't think for it to be looking for all the players online..
corbit15 is offline  
Old 10/17/2014, 17:56   #1437
 
zakkwilde_17's Avatar
 
elite*gold: 0
Join Date: Jul 2007
Posts: 137
Received Thanks: 4
Quote:
Originally Posted by corbit15 View Post
correct me if i'm wrong but I don't think for it to be looking for all the players online..
The PlayerManager.Player is a Dictionary, when a player do a login he is added to the Dictionary
zakkwilde_17 is offline  
Old 10/17/2014, 19:08   #1438
 
elite*gold: 0
Join Date: Oct 2008
Posts: 270
Received Thanks: 10
Quote:
Originally Posted by zakkwilde_17 View Post
The PlayerManager.Player is a Dictionary, when a player do a login he is added to the Dictionary
But why would the player need to see every online player's gear?
corbit15 is offline  
Old 10/17/2014, 19:34   #1439
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,376
Quote:
Originally Posted by corbit15 View Post
correct me if i'm wrong but I don't think for it to be looking for all the players online..
It is correct because this is inspectingn the gear of someone who whispered you. They can whisper from any map so you have to search all maps to find them.
pro4never is offline  
Old 10/17/2014, 19:54   #1440
 
elite*gold: 0
Join Date: Oct 2008
Posts: 270
Received Thanks: 10
Quote:
Originally Posted by pro4never View Post
It is correct because this is inspectingn the gear of someone who whispered you. They can whisper from any map so you have to search all maps to find them.
oh ok that's what I wasn't sure about. I thought he was saying that the client would be trying to look at everyone players gears at once.

#EDIT when you whispered someone was it showing your gear if they were off the map? or did it show the person you whispered?
corbit15 is offline  
Closed Thread


Similar Threads Similar Threads
[S] Shadow Warrior Classic Redux [B] EG
09/15/2013 - elite*gold Trading - 1 Replies
Topic regelt ! SWCR aus dem Weekly Bundle. Macht mir angebote.



All times are GMT +2. The time now is 04:02.


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.