custom commands

Results 1 to 10 of 10
  1. #1
    Account Upgraded | Title Enabled! killerzx is offline
    MemberRank
    Dec 2008 Join Date
    638Posts

    custom commands

    Did someone posted a custom command tutorial? O.O
    Well, I wanted to know how to make custom commands for the /messagebox <msghere>.

    this guy was explaining about how you do it but idk what he meant, he didn't put any addreas on ollybgd o-o.

    in the runnable,
    /admin_wall has two types.
    0 - normal message
    1 - popup message < [while in lobby][won't work ingame though, it will just be like ZChatOutput]

    to get it work, copy ChatCmd_AdminAnnounce function,
    and where the announce(not the chatcmd) function is being called,look for push 0 several times above it.
    change it to 1,
    and make a new command (ex; /admin_popup) that calls that new copy.
    that's what I did, and it works just fine.
    if you want to permanently delete /admin_Wall and change it to admin_popup
    don't copy the whole thing, just change push 0 to push 1.

    btw, I just woke up so if something doesn't sound right its because I'm sleepy.
    piccie :
    Spoiler:





    I have all my test things on the runnable.
    I drop a med and create an anti-hack thread LUL.
    I have admin commands like /slash, /showID, /showstageID, /goto <stage ID> and one of them is /admin_popup
    not too hard to understand.
    anyone get it?
    if you do, post it here and translate for him please thanks for helpin (:
    Last edited by killerzx; 16-03-10 at 07:47 AM.


  2. #2

    Re: custom commands

    Quote Originally Posted by killerzx View Post
    Did someone posted a custom command tutorial? O.O
    Well, I wanted to know how to make custom commands for the /messagebox <msghere>.

    this guy was explaining about how you do it but idk what he meant, he didn't put any addreas on ollybgd o-o.



    anyone get it?
    if you do, post it here and translate for him please thanks for helpin (:
    You're supposed to do that on your own.

  3. #3
    Account Upgraded | Title Enabled! killerzx is offline
    MemberRank
    Dec 2008 Join Date
    638Posts

    Re: custom commands

    Quote Originally Posted by Linear88 View Post
    You're supposed to do that on your own.
    i has no idea what to do lmao, can you post up tut more detials?

  4. #4
    Member Your_Mom is offline
    MemberRank
    Mar 2010 Join Date
    Where I want toLocation
    88Posts

    Re: custom commands

    Here's what I reversed, within 10 minutes of looking in ChatCmd_AdminAnnounce.
    1. A string is inputed (I.E: "/admin_announce ")
    2. An integer is inputed (Which is automatically 0 - Remember him talking bout PUSH 0?)
    3. Another string is inputed (I.E: "LOOL Hello World!")
    (By string, I mean char*/const char* ofc lol)

    It calls MMessenger::GetStr. I looked into it a bit, and found ZChat::InitCmds, which has a list of all the commands.
    On the part of Admin_Wall, it has this:
    Code:
    ;GunZ Old
    0042B162  |. 68 4C585B00    PUSH GunzOld.005B584C
    0042B167  |. 68 608C5B00    PUSH GunzOld.005B8C60
    0042B16C  |. 6A 01          PUSH 1
    0042B16E  |. 6A 01          PUSH 1
    0042B170  |. 6A FF          PUSH -1
    0042B172  |. 6A 08          PUSH 8
    0042B174  |. 68 F09B4200    PUSH GunzOld.00429BF0 ; ChatCmd_AdminAnnounce!
    0042B179  |. 68 548C5B00    PUSH GunzOld.005B8C54 ; |Arg2 = 005B8C54 ASCII "admin_wall"
    0042B17E  |. 6A 00          PUSH 0
    0042B180  |. 8BCE           MOV ECX,ESI 
    0042B182  |. E8 F9230000    CALL GunzOld.0042D580 ; ZChatCmdManager::AddCommand
    Enjoy. I hope to god you can do the rest yourself.
    Last edited by Your_Mom; 16-03-10 at 06:19 PM.

  5. #5
    Account Upgraded | Title Enabled! killerzx is offline
    MemberRank
    Dec 2008 Join Date
    638Posts

    Re: custom commands

    Quote Originally Posted by Your_Mom View Post
    Here's what I reversed, within 10 minutes of looking in ChatCmd_AdminAnnounce.
    1. A string is inputed (I.E: "/admin_announce ")
    2. An integer is inputed (Which is automatically 0 - Remember him talking bout PUSH 0?)
    3. Another string is inputed (I.E: "LOOL Hello World!")
    (By string, I mean char*/const char* ofc lol)

    It calls MMessenger::GetStr. I looked into it a bit, and found ZChat::InitCmds, which has a list of all the commands.
    On the part of Admin_Wall, it has this:
    Code:
    ;GunZ Old
    0042B162  |. 68 4C585B00    PUSH GunzOld.005B584C
    0042B167  |. 68 608C5B00    PUSH GunzOld.005B8C60
    0042B16C  |. 6A 01          PUSH 1
    0042B16E  |. 6A 01          PUSH 1
    0042B170  |. 6A FF          PUSH -1
    0042B172  |. 6A 08          PUSH 8
    0042B174  |. 68 F09B4200    PUSH GunzOld.00429BF0 ; ChatCmd_AdminAnnounce!
    0042B179  |. 68 548C5B00    PUSH GunzOld.005B8C54 ; |Arg2 = 005B8C54 ASCII "admin_wall"
    0042B17E  |. 6A 00          PUSH 0
    0042B180  |. 8BCE           MOV ECX,ESI 
    0042B182  |. E8 F9230000    CALL GunzOld.0042D580 ; ZChatCmdManager::AddCommand
    Enjoy. I hope to god you can do the rest yourself.
    so ur sayin theres more codes ? D: why not just give me the rest lol, thanks anyways

  6. #6
    Account Upgraded | Title Enabled! randy1234 is offline
    MemberRank
    Mar 2009 Join Date
    SingaporeLocation
    1,196Posts

    Re: custom commands

    Quote Originally Posted by killerzx View Post
    so ur sayin theres more codes ? D: why not just give me the rest lol, thanks anyways
    -_- hopeless

  7. #7
    Ā  Phoenix is offline
    ModeratorRank
    Mar 2009 Join Date
    6,890Posts
    Quote Originally Posted by randy1234 View Post
    -_- hopeless
    Let's see you have/know about them.
    Posted via Mobile Device

  8. #8

    Re: custom commands

    Quote Originally Posted by Your_Mom View Post
    Here's what I reversed, within 10 minutes of looking in ChatCmd_AdminAnnounce.
    1. A string is inputed (I.E: "/admin_announce ")
    2. An integer is inputed (Which is automatically 0 - Remember him talking bout PUSH 0?)
    3. Another string is inputed (I.E: "LOOL Hello World!")
    (By string, I mean char*/const char* ofc lol)

    It calls MMessenger::GetStr. I looked into it a bit, and found ZChat::InitCmds, which has a list of all the commands.
    On the part of Admin_Wall, it has this:
    Code:
    ;GunZ Old
    0042B162  |. 68 4C585B00    PUSH GunzOld.005B584C
    0042B167  |. 68 608C5B00    PUSH GunzOld.005B8C60
    0042B16C  |. 6A 01          PUSH 1
    0042B16E  |. 6A 01          PUSH 1
    0042B170  |. 6A FF          PUSH -1
    0042B172  |. 6A 08          PUSH 8
    0042B174  |. 68 F09B4200    PUSH GunzOld.00429BF0 ; ChatCmd_AdminAnnounce!
    0042B179  |. 68 548C5B00    PUSH GunzOld.005B8C54 ; |Arg2 = 005B8C54 ASCII "admin_wall"
    0042B17E  |. 6A 00          PUSH 0 ; |Arg1
     0042B180  |. 8BCE           MOV ECX,ESI 
    0042B182  |. E8 F9230000    CALL GunzOld.0042D580 ; ZChatCmdManager::AddCommand
    Enjoy. I hope to god you can do the rest yourself.
    You missed out on that one.

  9. #9
    Doggie And Rice. Military is offline
    MemberRank
    Jun 2009 Join Date
    Here and AboutLocation
    3,302Posts

    Re: custom commands

    at this moment I don't understand all of what's going on here.

  10. #10
    Account Upgraded | Title Enabled! killerzx is offline
    MemberRank
    Dec 2008 Join Date
    638Posts

    Re: custom commands

    Quote Originally Posted by Military View Post
    at this moment I don't understand all of what's going on here.
    i only understand how to follow the tuts if they explain carefully anddd copy and pasting the codes XD.



Advertisement