|
You last visited: Today at 19:37
Advertisement
[Help] How i type string as Ascii
Discussion on [Help] How i type string as Ascii within the SRO Private Server forum part of the Silkroad Online category.
06/04/2015, 14:04
|
#1
|
elite*gold: 0
Join Date: Feb 2013
Posts: 65
Received Thanks: 37
|
[Help] How i type string as Ascii
hi epvp ,
i want to know how i can type an encrypted string as Ascii when i send packets.
for example :
Packet packet = new Packet(0x70B1, true);
packet.WriteUInt16(0x0A);
packet.WriteAscii("[Ramy]'s Stall"); <------- i mean this string
Agent.Send(packet);
Original opcode is :
[C -> S][70B1]
0A 00 ................
52 61 6D 79 20 53 61 69 65 64 [Ramy]'s.Stall......
Screen shot :
http://www7.0zz0.com/2015/06/04/15/304679232.jpg
#Fixed
Here is the solution :
Packet packet = new Packet(0x70B1, true);
packet.WriteUInt16(0x0A); <------- remove this line .. this means Text Length.
packet.WriteAscii("[Ramy]'s Stall");
Agent.Send(packet);
#Close
|
|
|
06/04/2015, 14:08
|
#2
|
elite*gold: 0
Join Date: Nov 2007
Posts: 959
Received Thanks: 602
|
to be honest with you,the problem is that you're sending incorrect length of the string.. 0x0A --> 10
[Ramy]'s Stall is 14 characters,so it should be 0x0E hope that solves the problem ^_^
edit: I'm also not sure if that packet is supposed to be encrypted
|
|
|
06/04/2015, 14:15
|
#3
|
elite*gold: 500
Join Date: Jul 2009
Posts: 262
Received Thanks: 541
|
Packet packet = new Packet(0x70B1, true);
packet.WriteAscii("[Ramy]'s Stall");
Agent.Send(packet);
0x0A = length of your string.
You dont need to write it as an integer you have to start your writeascii here already.
The code above should work
|
|
|
06/06/2015, 13:37
|
#4
|
elite*gold: 26
Join Date: Apr 2012
Posts: 23,018
Received Thanks: 3,060
|
#closed
|
|
|
|
Similar Threads
|
[Help] How i type string as Ascii
06/06/2015 - SRO Coding Corner - 1 Replies
hi epvp ,
i want to know how i can type an encrypted string as Ascii when i send packets.
for example :
Packet packet = new Packet(0x70B1, true);
packet.WriteUInt16(0x0A);
packet.WriteAscii("'s Stall"); <------- i mean this string
Agent.Send(packet);
Original opcode is :
|
[Visual Basic] [Problem] String auslesen/String zufällig wählen
05/06/2012 - General Coding - 4 Replies
Code:
#include <GUIConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Name Generator", 236, 299, 815, 246)
$Input1 = GUICtrlCreateInput("Username", 24, 72, 185, 21)
$Input2 = GUICtrlCreateInput("Username", 24, 104, 185, 21)
$Input3 = GUICtrlCreateInput("Username", 24, 136, 185, 21)
$Input4 = GUICtrlCreateInput("Username", 24, 168, 185, 21)
$Input5 = GUICtrlCreateInput("Username", 24, 200, 185, 21)
|
Ascii String für ASM
03/09/2012 - C/C++ - 0 Replies
Hallo Leute,
ich bin gerade dabei das Chatfenster meines Opferspiels zu beschreiben und habe soweit die Funktion auch gefunden nur habe ich gerade überhaupt keinen Plan wie ich in C++ einen ASCII-String deklariere damit ich ihn später im __asm an die Funktion übergeben kann.
kann mir vlt jemand auf die Sprünge helfen?
EDIT: bin ich recht der Annahme das ich einfach einen INT erstellen muss mit der Länge des gesamten Strings und die einzelnen HEX werte da drin speichere und den peer PUSH...
|
[Resource] ASCII String & Byte Array Converter
11/14/2010 - CO2 PServer Guides & Releases - 9 Replies
#deleted
|
All times are GMT +2. The time now is 19:37.
|
|