Change Start-Message on ChatBox in Silkroad

10/29/2011 19:42 vitalka#1
I want to change the Start-Message in Silkroad with my own Message(Clientsided).

This here is the place in Ollydbg:

Code:
0077F5E3    E8 F83A0100                 CALL sro_clie.007930E0
0077F5E8    68 3C10D900                 PUSH sro_clie.00D9103C                                ; UNICODE "UIIT_STT_STARTING_MSG"
0077F5ED    B9 4883EB00                 MOV ECX,sro_clie.00EB8348
0077F5F2    E8 89B41300                 CALL sro_clie.008BAA80
0077F5F7    8378 18 08                  CMP DWORD PTR DS:[EAX+18],8
0077F5FB    72 05                       JB SHORT sro_clie.0077F602
0077F5FD    8B40 04                     MOV EAX,DWORD PTR DS:[EAX+4]
0077F600    EB 03                       JMP SHORT sro_clie.0077F605
0077F602    83C0 04                     ADD EAX,4
0077F605    50                          PUSH EAX
0077F606    6A 01                       PUSH 1
0077F608    68 9BC9DBFF                 PUSH FFDBC99B
0077F60D    68 FF000000                 PUSH 0FF
0077F612    57                          PUSH EDI
0077F613    E8 58BCFEFF                 CALL sro_clie.0076B270
0077F618    83C4 14                     ADD ESP,14
0077F61B    6A FF                       PUSH -1
0077F61D    8BCF                        MOV ECX,EDI
I need to recreate this part:
0077F605 50 PUSH EAX ;Stringmessage
0077F606 6A 01 PUSH 1 ;Textsize
0077F608 68 9BC9DBFF PUSH FFDBC99B ;Textcolor
0077F60D 68 FF000000 PUSH 0FF ; dont know
0077F612 57 PUSH EDI ; dont know

For what are the 2 last command lines?
10/29/2011 20:03 Schickl#2
So about which welcome message are you talking?
Most can be changed via pk2 editing
10/29/2011 20:14 vitalka#3
yes i know but i want to edit it clientsided. I want to edit the first text in the ChatBox(Welcome to SilkRoad Online Blablabla).
10/29/2011 22:08 x*Manu*x#4
Quote:
Originally Posted by vitalka View Post
yes i know but i want to edit it clientsided. I want to edit the first text in the ChatBox(Welcome to SilkRoad Online Blablabla).
i dont know how to edit by olly but you can edit the start message media.pk2/server_dep/silkroad/textdata/textui
10/29/2011 22:33 angalacon#5
@Vitalka
Just an idea; Check same places from different clients, Every clients starting message edited by server owner. Compare with each other. Probably is not a variable.
and out of topic; please answer my private message ^^
10/29/2011 23:10 Schickl#6
The Message is in the pk2 file.
You can find it, just like Manu said, in Media.pk2\server_dep\silkroad\textdata\textuisyste m.txt and in the file search for "UIIT_STT_STARTING_MSG"
Has nothing to do with the server, but i get what you wanna say and agree
10/29/2011 23:15 PortalDark#7
dont know why making su much if text is on Media.pk2
but good work
10/30/2011 16:53 vitalka#8
i found a solution, can be closed...
10/30/2011 20:56 Nezekan#9
it's generally accepted that you share your solution when people on this forum helped you. it's just a small thing to do, and it can help people later on :)
11/03/2011 09:07 lesderid#10
Quote:
Originally Posted by vitalka View Post
yes i know but i want to edit it clientsided. I want to edit the first text in the ChatBox(Welcome to SilkRoad Online Blablabla).
Umm... Since when are PK2s not client-sided?
11/03/2011 14:37 vitalka#11
The sro_client looks for the text in media.pk2. I wanted to do this directly with the client.

Its simple. You need only to look step by step very is the push for the text and when the text will written in the register, then you need to replace it with YOUR Text (only MOV your address with the UNICODE text into the right register) and SRO will show you your text on the ChatBox.
11/04/2011 08:56 lesderid#12
Quote:
Originally Posted by vitalka View Post
The sro_client looks for the text in media.pk2. I wanted to do this directly with the client.

Its simple. You need only to look step by step very is the push for the text and when the text will written in the register, then you need to replace it with YOUR Text (only MOV your address with the UNICODE text into the right register) and SRO will show you your text on the ChatBox.
That's a really bad way to do it. Just look for a pointer that points to your message (I'd hardcode it tbqh) and use it to change the value of your message.
11/04/2011 21:41 vitalka#13
Sorry maybe you missunderstood me(my english^^), i dont replace the text. I Push my text on a other place...
11/11/2011 15:46 lesderid#14
Quote:
Originally Posted by vitalka View Post
Sorry maybe you missunderstood me(my english^^), i dont replace the text. I Push my text on a other place...
Umm, you said "I want to change the Start-Message in Silkroad with my own Message(Clientsided)."
That means replacing the text, doesn't it?
11/11/2011 16:08 vitalka#15
have fun lol, hope you will understand it now :P