Register for your free account! | Forgot your password?

You last visited: Today at 22:57

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

Advertisement



[C->S]7074..

Discussion on [C->S]7074.. within the SRO Coding Corner forum part of the Silkroad Online category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: May 2009
Posts: 19
Received Thanks: 2
[C->S]7074..

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);
                        }
lvszoc is offline  
Old 07/02/2011, 18:47   #2
 
chea77er's Avatar
 
elite*gold: 12
Join Date: Oct 2009
Posts: 290
Received Thanks: 194
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( )));

...
chea77er is offline  
Old 07/02/2011, 18:51   #3
 
elite*gold: 0
Join Date: May 2009
Posts: 19
Received Thanks: 2
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
lvszoc is offline  
Old 07/02/2011, 19:26   #4
 
elite*gold: 0
Join Date: May 2009
Posts: 19
Received Thanks: 2
I solved
i get wrong item id ^^

/Req. To Close
lvszoc is offline  
Reply




All times are GMT +1. The time now is 22:57.


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.