Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 00:10

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

Advertisement



Question Sending Custom Dioleges to Client

Discussion on Question Sending Custom Dioleges to Client within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 20
Join Date: Jan 2008
Posts: 2,338
Received Thanks: 490
Question Sending Custom Dioleges to Client

Is it possible to Send the Datapacket /RemoteCommand (116)/ to the Client To open a Box wif custom text in it?
~Yuki~ is offline  
Old 03/15/2010, 14:07   #2


 
KraHen's Avatar
 
elite*gold: 0
Join Date: Jul 2006
Posts: 2,216
Received Thanks: 794
You mean a messagebox?
KraHen is offline  
Old 03/15/2010, 15:11   #3


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
That wasnt something i ever tried, and when you look at the way the packet is layed out i cant imagine that you could, experiment i guess?
Korvacs is offline  
Old 03/15/2010, 18:13   #4
 
hunterman01's Avatar
 
elite*gold: 20
Join Date: Dec 2006
Posts: 945
Received Thanks: 175
I actually thought about this

I suggest take a look at the error code of the Socket talisment's code
hunterman01 is offline  
Old 03/15/2010, 18:24   #5


 
KraHen's Avatar
 
elite*gold: 0
Join Date: Jul 2006
Posts: 2,216
Received Thanks: 794
I saw something at the packet wiki, maybe it`s what you search for?

In the general data packet enum :
// stuff
Dialog = 126,
// more stuff
KraHen is offline  
Old 03/15/2010, 18:42   #6


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
Dialog is for things like warehouse windows, crafting windows, etc. Not message boxes, again the packet structure doesnt have space for a string.
Korvacs is offline  
Thanks
1 User
Old 03/15/2010, 18:53   #7
 
elite*gold: 20
Join Date: Jan 2008
Posts: 2,338
Received Thanks: 490
Thanks, so ill just find a Dialogebox tht i dont need and add my text cleintside to it hah

#Edit

Korvacs: Datatype 116 Offset 2 (crafting)

Could yo help me code that?
~Yuki~ is offline  
Old 03/15/2010, 19:01   #8


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
Its an unused system, so no one knows how it was designed to work, experiement with it if you like.
Korvacs is offline  
Old 03/15/2010, 19:05   #9


 
KraHen's Avatar
 
elite*gold: 0
Join Date: Jul 2006
Posts: 2,216
Received Thanks: 794
The auth packet has a string in it, which tells you when your pass is invalid, etc. Could it be used ingame? I can`t try it out now, I don`t have a client on my PC and my connection is hella slow.
KraHen is offline  
Old 03/15/2010, 20:46   #10
 
elite*gold: 20
Join Date: Jan 2008
Posts: 2,338
Received Thanks: 490
ima try that but i dont think i can send the authpacket to the client again wit an effect

#Edit: not working but meh...
~Yuki~ is offline  
Old 03/16/2010, 02:22   #11
 
hunterman01's Avatar
 
elite*gold: 20
Join Date: Dec 2006
Posts: 945
Received Thanks: 175
The crafting is what is used in chinese co

I honestly have no clue what it does cause they never implemented it into english co : /
hunterman01 is offline  
Old 03/16/2010, 02:23   #12
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
Quote:
Originally Posted by hunterman01 View Post
The crafting is what is used in chinese co

I honestly have no clue what it does cause they never implemented it into english co : /
What does crafting do?
Arcо is offline  
Old 03/16/2010, 02:57   #13
 
elite*gold: 0
Join Date: Aug 2009
Posts: 930
Received Thanks: 448
noone knows.. emme attempted at fixing it.. but its never been used.. i tested it alot.. it takes the items you enter.. and combine their strength to power the main item.. pretty much like compo.. cept you use ref/uni/eli/sup to make your main item +quality
.Guru is offline  
Old 03/16/2010, 02:58   #14
 
xScott's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 322
Received Thanks: 63
Quote:
Originally Posted by .Arco View Post
What does crafting do?
Wasnt the crafting thing where put gems in something and it gives u a chance to get a +1 stone or something, like talismans but with gems/gears and stuff.
xScott is offline  
Old 03/16/2010, 07:26   #15
 
_Emme_'s Avatar
 
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,162
I've done the crafting, although I changed it so it didn't actually craft (whatever it is supposed to do), I made it an seller instead. What happens when you press the Craft button, I even think the chinese people spelled it wrong, like Cratf, it will loop through all item UID's in the window.

So basically what you need to do is read from the window and find the item from its UID.




Quote:
public static void HandleCraftingPacket(BasePacket Packet, GameClient Client)
{
Int32[] item;
uint reward = 0;
for (int i = 0; i < BitConverter.ToInt16(Packet.Buffer, 10); i++)
{
item = new Int32[BitConverter.ToInt16(Packet.Buffer, 10)];
item[i] = BitConverter.ToInt32(Packet.Buffer, 12 + (i * 4));
ItemDataPacket Item = Client.GetInventoryItemByUID((uint)item[i]);
if (Item.ID != 0)
{
reward += Kernel.ItemData[Item.ID].GoldPrice / 3;
Client.RemoveInventory((uint)item[i]);
}
}
Client.Send(new ChatPacket("You've sold items for " + reward + " silvers!", ChatType.TopLeft));
Client.Money += reward;
}
That's how I did it, experiment with it and I'm sure you nail it.

For the sending custom text, it is possible, atleast for logging in. I'm using a popup box (MessageBox) for banned accounts, which has my own text in it, not changed in StrRes.


Goodluck!
_Emme_ is offline  
Thanks
2 Users
Reply


Similar Threads Similar Threads
swsro2 question regarding srokey sending keys
06/07/2010 - SRO Private Server - 10 Replies
ok i bought 2 keys from srokey, and i haven't recieved any keys in the mail i dont know what to do i want to play..
[Question] Sending job info to server.
08/18/2009 - CO2 Private Server - 2 Replies
Hey, Using hybrid's rev 3: case "@job": { byte NewJob = byte.Parse(args); Client.Job = NewJob; Client.Send(PacketBuilder.CharacterInfo(Client)); break;
Sending to client
04/20/2009 - RO Guides & Templates - 2 Replies
So i'v been trying to figure this out on my own, but i can't find any information about this. What i want to do is hook RPE into a process but instead of sending a packet to the server this process is connected to i want to send a packet to the client. So i can trick the client into activating a certain something which is actually doesn't have. And seeing how there is ZERO (function reference) documentation on howto write custom filters i just posted this :P All i need to do is send...
question packet sending
07/14/2008 - Dekaron - 22 Replies
Where can I find tut about packet sending I wish to learn about it.



All times are GMT +1. The time now is 00:13.


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.