[C->S]7074..

07/02/2011 18:31 lvszoc#1
Hi again, ^^

Pick opcode 7074
Code:
[C -> S][7074]
01                                                ................
01                                                ................
01                                                ................
40 2C 1A 00                                       @,..............
I parse SingleSpawnPacket 3015... parse the gold's id and i sent a 7074 packet to server, but char don't pick gold :S

3015 Parse Code
Code:
case 0x3015://SingleSpawn
                        uint model = oku.ReadUInt32();
                        string type = Character.FindSpawnType(model);
if (type.Contains("SN_ITEM_ETC_GOLD"))
                        {
                            //Gold
                            oku.ReadByte();
                            uint id = oku.ReadUInt32();

                            Packet topla = new Packet(0x7074);
                            topla.WriteUInt8(1);
                            topla.WriteUInt8(2);
                            topla.WriteUInt8(1);
                            topla.WriteUInt32(id);
                            ag_remote_security.Send(topla);
                        }
07/02/2011 18:47 chea77er#2
Quote:
Originally Posted by lvszoc View Post
Hi again, ^^

Pick opcode 7074
Code:
[C -> S][7074]
01                                                ................
01                                                ................
01                                                ................
40 2C 1A 00                                       @,..............
I parse SingleSpawnPacket 3015... parse the gold's id and i sent a 7074 packet to server, but char don't pick gold :S

3015 Parse Code
Code:
case 0x3015://SingleSpawn
                        uint model = oku.ReadUInt32();
                        string type = Character.FindSpawnType(model);
if (type.Contains("SN_ITEM_ETC_GOLD"))
                        {
                            //Gold
                            oku.ReadByte();
                            uint id = oku.ReadUInt32();

                            Packet topla = new Packet(0x7074);
                            topla.WriteUInt8(1);
                            topla.WriteUInt8(2);
                            topla.WriteUInt8(1);
                            topla.WriteUInt32(id);
                            ag_remote_security.Send(topla);
                        }
I don't know your program, but it seems you're using Silkroad Security API from pushedx. You just let handle your packet in the security class. But you have to send them with your socket as well. ag_remote_socket.send(ag_security.GetPacketToSend( )));

...
07/02/2011 18:51 lvszoc#3
Quote:
Originally Posted by chea77er View Post
I don't know your program, but it seems you're using Silkroad Security API from pushedx. You just let handle your packet in the security class. But you have to send them with your socket as well. ag_remote_socket.send(ag_security.GetPacketToSend( )));

...
Code:
private void listBox2_SelectedIndexChanged(object sender, EventArgs e)
        {
            try
            {
                Character.attacking_mob = (UInt32)listBox2.SelectedItem;
                Packet p = new Packet(0x7074);
                p.WriteUInt8(1);
                p.WriteUInt8(1);
                p.WriteUInt8(1);
                p.WriteUInt32(Character.attacking_mob);
                ag_remote_security.Send(p);
            }
            catch { }    
        }
this code works ^^ but item picking don't work:S
07/02/2011 19:26 lvszoc#4
I solved
i get wrong item id ^^

/Req. To Close