GM Commands, [QUESTION].

04/26/2013 11:56 Qynchou#46
Quote:
Originally Posted by tufa_m2000 View Post
If i want make teleport to some one offline what i do ?????????????????
Check their coordinates in the DB
04/26/2013 19:39 pushipu#47
But where are all this commands located? I have searched in Gameserver and other server exe but couldn't find them, just wonder if we can change commands name (shorter).
04/26/2013 21:25 Kape7#48
Quote:
Originally Posted by pushipu View Post
But where are all this commands located? I have searched in Gameserver and other server exe but couldn't find them, just wonder if we can change commands name (shorter).
Command names are hardcoded on the sro_client.exe, with an hex editor you can change them.
04/26/2013 23:55 pushipu#49
Yeah found them now with olly
Code:
CPU Disasm
Address   Hex dump          Command                                  Comments
00558EE6  |.  68 C88CD800   PUSH OFFSET 00D88CC8                     ; /Arg1 = UNICODE "MakeItem"
00558EEB  |.  E8 9059F2FF   CALL 0047E880                            ; \sro_client.0047E880
00558EF0  |.  8BCE          MOV ECX,ESI
00558EF2  |.  E8 B9CEFFFF   CALL 00555DB0
00558EF7  |.  B8 B0855400   MOV EAX,005485B0
00558EFC  |.  33C9          XOR ECX,ECX
00558EFE  |.  51            PUSH ECX
00558EFF  |.  50            PUSH EAX
00558F00  |.  83EC 1C       SUB ESP,1C
00558F03  |.  8BCC          MOV ECX,ESP
00558F05  |.  896424 30     MOV DWORD PTR SS:[ESP+30],ESP
But I'm sure that changing comment UNICODE "MakeItem" is not what I need :) Can you give me a hint?
thx

***
I think this is where I have to go PUSH OFFSET 00D88CC8
will update later if I success :))

Update
Yeah it was there, now I can shorter all this movetouser etc :))))
It's bad that can't edit them on server side, to avoid some commands for GMs but I think is is not possible cuz you just can check packet it send to server and edit your sro_client to work.
05/03/2013 00:20 azmarialee#50
is it possible to teleport to a certain unique? like i want to teleport to a spawned White Knight or Princess Miyene?

thanks!
05/03/2013 00:24 PortalDark#51
Quote:
Originally Posted by azmarialee View Post
is it possible to teleport to a certain unique? like i want to teleport to a spawned White Knight or Princess Miyene?

thanks!
no
as they spawn randomly, the client is not able to know where the unique is unless you get near to it
05/03/2013 00:38 Qynchou#52
Quote:
Originally Posted by PortalDark View Post
no
as they spawn randomly, the client is not able to know where the unique is unless you get near to it
What if you crack character display/draw range distance? Theyre adjustable in the client which means their range should technically be possible to change.
05/03/2013 00:56 azmarialee#53
Thanks PortalDark. Appreciate it.

Qynchou: how to do it? pk2 editor?

Sorry for having alot of questions. Im a newbie GM.
It would be helpful for me if anyone of the masters here can provide some tutorial or a reference of GM commands and their parameters and description what they are for.
I cant seem to find one on the net. I found a list of command with there description but a guide with a sample parameter i cant.
I hope someone can help me with this.

Thanks again for answering masters. :)
05/03/2013 00:57 PortalDark#54
Quote:
Originally Posted by Qynchou View Post
What if you crack character display/draw range distance? Theyre adjustable in the client which means their range should technically be possible to change.
the distance/draw only works for "structures"
even if you extend the range, the only thing you will get(depending of your pc perf) is an extended map
make the lowest draw/distance, and compare to the highest with NPCs, the results are the same. The structures are static on the client, while the server manages the position of nearby objects, like NPC and certain gates
05/03/2013 01:41 Qynchou#55
Quote:
Originally Posted by PortalDark View Post
the distance/draw only works for "structures"
even if you extend the range, the only thing you will get(depending of your pc perf) is an extended map
make the lowest draw/distance, and compare to the highest with NPCs, the results are the same. The structures are static on the client, while the server manages the position of nearby objects, like NPC and certain gates
Structures and terrain right? Still, it would look really awesome to have twice the draw distance, adds a lot more depth to the game.
05/03/2013 03:53 PortalDark#56
Quote:
Originally Posted by Qynchou View Post
Structures and terrain right? Still, it would look really awesome to have twice the draw distance, adds a lot more depth to the game.
indeed
however, you have to consider the PC specs
not everyone has a good PC and my old Dual core 2gb ram pc didn't handle a lot of draw distance
05/03/2013 05:07 Kape7#57
Quote:
Originally Posted by azmarialee View Post
is it possible to teleport to a certain unique? like i want to teleport to a spawned White Knight or Princess Miyene?

thanks!
/movetonpc <mob codename>

For single-uniques work fine, for normal mobs and multiple-uniques is a bit messy.
05/03/2013 05:31 PortalDark#58
Quote:
Originally Posted by Synx7 View Post
/movetonpc <mob codename>

For single-uniques work fine, for normal mobs and multiple-uniques is a bit messy.
dammit, never imagined that -.-
09/05/2013 13:11 danyfalta122#59
how can iget someone to the place where i standing on it?
09/05/2013 13:43 pushipu#60
Quote:
Originally Posted by danyfalta122 View Post
how can iget someone to the place where i standing on it?
/recalluser NAME_of_player (case sensitive)