[Help] Observe Equipments

08/01/2012 17:11 zakkwilde_17#1
Guys, i have this problem too... But in this topic she get the solution, and closed the topic

[Only registered and activated users can see links. Click Here To Register...]

[Only registered and activated users can see links. Click Here To Register...]

I don't understand where i can change the offset... someone can help me to fix it?
08/01/2012 17:31 shadowman123#2
you should send spawn packets of the observed to the observer
08/01/2012 17:56 zakkwilde_17#3
Quote:
Originally Posted by shadowman123 View Post
you should send spawn packets of the observed to the observer
ok... but where i can do that ? here ?

Code:
        static void ObserveEquipment(Data generalData, Client.GameState client)
        {
            Client.GameState pclient = null;
            if (ServerBase.Kernel.GamePool.TryGetValue(generalData.dwParam, out pclient))
            {
                //if (generalData.ID != 117)
                //{
                // client.Send(pclient.Entity.WindowSpawn());
                //    client.Send(new GamePackets.ObserveStats(pclient).ToArray());
                //    pclient.Entity.SetVisible();
                //}
                pclient.Send(new Message(client.Entity.Name + " is observing your gear carefully.", System.Drawing.Color.Red, Message.TopLeft));
                if (ServerBase.Kernel.GamePool.TryGetValue(generalData.dwParam, out pclient))
                {
                    client.Send(new GamePackets.ObserveStats(pclient).ToArray());
                    IConquerItem[] Equipment = pclient.Equipment.Objects;
                    foreach (ConquerItem item in Equipment)
                    {
                        if (item != null)
                        {
                            uint UID = item.UID;
                            item.UID = pclient.Entity.UID;
                            item.Mode = Game.Enums.ItemMode.View;
                            item.Send(client);
                            item.UID = UID;
                            //item.Mode = Game.Enums.ItemMode.Default;
                        }
                        if (item != null)
                        {
                            BoothItem Item = new BoothItem(true);
                            Item.Fill(item, pclient.Entity.UID);
                            Item.Send(client);
                            if (item.Purification.Available)
                            {
                                ItemAdding add = new ItemAdding(true);
                                add = new ItemAdding(true);
                                add.Append(item.Purification);
                                add.Send(client);
                            }
                        }
                    }
                    _String packet = new _String(true);
                    packet.Type = 16;
                    packet.UID = client.Entity.UID;
                    packet.TextsCount = 1;
                    packet.Texts = new List<string>() { pclient.Entity.Spouse };
                    client.Send(packet);
                    packet.Type = 10;
                    client.Send(packet);
                }
            }
        }
08/01/2012 18:08 shadowman123#4
WTF All these codes just for Observe gears ... anyways you should add it in this void btw y did u sent string effect of kind spouse to the observer ?
08/01/2012 18:22 zakkwilde_17#5
Quote:
Originally Posted by shadowman123 View Post
WTF All these codes just for Observe gears ... anyways you should add it in this void btw y did u sent string effect of kind spouse to the observer ?
I got this code ready... not changed anything... and still not have complete knowledge of this language code
08/01/2012 19:37 shadowman123#6
Quote:
Originally Posted by zakkwilde_17 View Post
I got this code ready... not changed anything... and still not have complete knowledge of this language code
so in order to fix your problem u should know how things go in the source ..
08/01/2012 21:09 zakkwilde_17#7
Quote:
Originally Posted by shadowman123 View Post
WTF All these codes just for Observe gears ... anyways you should add it in this void btw y did u sent string effect of kind spouse to the observer ?
Can you use the formal English please? I am Brazilian and not understand some abbreviations...

about my problem, I believe that if I send the information of observed to the observer, will work perfectly... The information of items are working very well
08/02/2012 00:04 InfamousNoone#8
Ah, let me just get my spoon and bib, just a moment...
08/03/2012 02:01 zakkwilde_17#9
someone