Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Silkroad Online > SRO Private Server
You last visited: Today at 19:04

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

Advertisement



How to send S->C Value and object packet to client ???

Discussion on How to send S->C Value and object packet to client ??? within the SRO Private Server forum part of the Silkroad Online category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Sep 2015
Posts: 150
Received Thanks: 6
Exclamation How to send S->C Value and object packet to client ???

Hey guys,
I'm having this issue which is when i send a S->C packet to client it appears only as an object without value ... meaning is when i am inside and send it it appears just like a shape ( client sided only ) but after restarting char it disappears.
so how to send it full with value and its object ???
Kardil is offline  
Old 03/31/2016, 04:30   #2

 
sarkoplata's Avatar
 
elite*gold: 166
Join Date: Apr 2009
Posts: 2,339
Received Thanks: 2,661
there is no such thing, if you want that to be a REAL item you have to write it to gameserver's memory or write it to database and gs will get it the next time you spawn
sarkoplata is offline  
Old 03/31/2016, 05:37   #3
 
elite*gold: 0
Join Date: Sep 2015
Posts: 150
Received Thanks: 6
then how to send packet to specific player ???
Kardil is offline  
Old 03/31/2016, 09:45   #4

 
sarkoplata's Avatar
 
elite*gold: 166
Join Date: Apr 2009
Posts: 2,339
Received Thanks: 2,661
On your server filter (whatever youre using) you must keep a list of the online characters and when youre going to send a packet to that specific player just bring it from the list using linq. To demonstrate:

OnUserLogin -> UserList.Add(this);
OnUserExit -> UserList.Remove(this)

To retreive write a simple linq function and find that user's sockets so you can send the packet
FindUser(UserList, "testchar").clientsocket.Send(mypacket);

Hope that clears your mind
sarkoplata is offline  
Old 03/31/2016, 23:39   #5
 
elite*gold: 0
Join Date: Sep 2015
Posts: 150
Received Thanks: 6
Quote:
Originally Posted by sarkoplata View Post
On your server filter (whatever youre using) you must keep a list of the online characters and when youre going to send a packet to that specific player just bring it from the list using linq. To demonstrate:

OnUserLogin -> UserList.Add(this);
OnUserExit -> UserList.Remove(this)

To retreive write a simple linq function and find that user's sockets so you can send the packet
FindUser(UserList, "testchar").clientsocket.Send(mypacket);

Hope that clears your mind
I think i can make the list but the socket thing has a send but not for packets, so ????
Kardil is offline  
Old 04/01/2016, 00:20   #6

 
sarkoplata's Avatar
 
elite*gold: 166
Join Date: Apr 2009
Posts: 2,339
Received Thanks: 2,661
nah you wont send directly from the socket, you'll send through the security object
assuming you're with the drew api cuz its like standart right now
sarkoplata is offline  
Old 04/01/2016, 00:58   #7
 
elite*gold: 0
Join Date: Sep 2015
Posts: 150
Received Thanks: 6
Quote:
Originally Posted by sarkoplata View Post
nah you wont send directly from the socket, you'll send through the security object
assuming you're with the drew api cuz its like standart right now
i knew you would say that ^^ , i need to know how to connect socket with the security assuming using filter for packets
Kardil is offline  
Old 04/01/2016, 15:43   #8

 
KingDollar's Avatar
 
elite*gold: 1117
Join Date: Dec 2013
Posts: 858
Received Thanks: 806
or well just create a packet handler
KingDollar is offline  
Old 04/01/2016, 19:31   #9
 
elite*gold: 0
Join Date: Sep 2015
Posts: 150
Received Thanks: 6
is packet handler like filter which analyse incoming and outgoing packets ???
I have that , what i need is to send from this filter a packet to specific player like sending welcome message to the one who has just logged in . got it ?
Kardil is offline  
Old 04/01/2016, 22:15   #10

 
KingDollar's Avatar
 
elite*gold: 1117
Join Date: Dec 2013
Posts: 858
Received Thanks: 806
it's depends on your filter code
just handle load character msg and send packet with private notice
KingDollar is offline  
Old 04/01/2016, 22:41   #11
 
elite*gold: 0
Join Date: Sep 2015
Posts: 150
Received Thanks: 6
Quote:
Originally Posted by Alexiuns* View Post
it's depends on your filter code
just handle load character msg and send packet with private notice
that seems familiar with what i am doing !
but explain ???
sending msg to that player and when i detect its response from server i send the packet i want ???
Kardil is offline  
Old 04/02/2016, 00:34   #12

 
KingDollar's Avatar
 
elite*gold: 1117
Join Date: Dec 2013
Posts: 858
Received Thanks: 806
Quote:
Originally Posted by Kardil View Post
that seems familiar with what i am doing !
but explain ???
sending msg to that player and when i detect its response from server i send the packet i want ???
ye as example

if packet.Opcode = 0x3305
{
Packet notice_to_char = new Packet(0x3026);
notice.WriteUInt8(7);
notice.WriteAscii("Welcome msg");
SendPacketToClient(notice_to_char);
}
KingDollar is offline  
Old 04/02/2016, 01:13   #13
 
elite*gold: 0
Join Date: Sep 2015
Posts: 150
Received Thanks: 6
Quote:
Originally Posted by Alexiuns* View Post
ye as example

if packet.Opcode = 0x3305
{
Packet notice_to_char = new Packet(0x3026);
notice.WriteUInt8(7);
notice.WriteAscii("Welcome msg");
SendPacketToClient(notice_to_char);
}
where is the player here in this packet ???
Kardil is offline  
Old 04/02/2016, 01:21   #14

 
KingDollar's Avatar
 
elite*gold: 1117
Join Date: Dec 2013
Posts: 858
Received Thanks: 806
Quote:
Originally Posted by Kardil View Post
where is the player here in this packet ???
charcter load packet is 0x3305 packet and you can get charname while character select
KingDollar is offline  
Old 04/02/2016, 01:57   #15
 
elite*gold: 0
Join Date: Sep 2015
Posts: 150
Received Thanks: 6
Quote:
Originally Posted by Alexiuns* View Post
charcter load packet is 0x3305 packet and you can get charname while character select
that's right ,from here i can save charname and send wlc msg
but that's for logging , i need to send the packet after some time
Kardil is offline  
Reply


Similar Threads Similar Threads
Packet Editor Got me botjailed and client disconnected when send same packet
10/11/2015 - CO2 Programming - 1 Replies
#Request Closed : I hate conquer encryptions Fangy its based bot http://prntscr.com/8q2211



All times are GMT +1. The time now is 19:06.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.