Custom Popup box message

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

    Custom Popup box message

    hi, is there a way to change the /admin_wall and make it into a popup box?
    Like you type /admin_wall [mesg] and there will be that message on the popup box.


  2. #2
    igunz.net Dawson is offline
    LegendRank
    Feb 2010 Join Date
    ::1 (Canada BC)Location
    2,581Posts

    Re: Custom Popup box message

    There for sure is, but I honestly don't have a clue back when I worked on LG with Fisher he had used popup boxes for just about anything so I know its possible to force the admin wall messages to come back to the clients as a popup.

    Would involve a hook @ Matchserver though.

    Sorry that I can't be of more help I'll look into it and probably reply back with more details I just cant easily look into stuff anymore since I dont have my PC with all my gunz shit anymore lol

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

    Re: Custom Popup box message

    Quote Originally Posted by DawsonByrd View Post
    There for sure is, but I honestly don't have a clue back when I worked on LG with Fisher he had used popup boxes for just about anything so I know its possible to force the admin wall messages to come back to the clients as a popup.

    Would involve a hook @ Matchserver though.

    Sorry that I can't be of more help I'll look into it and probably reply back with more details I just cant easily look into stuff anymore since I dont have my PC with all my gunz shit anymore lol
    lol alright

  4. #4
    Wait wut PenguinGuy is offline
    MemberRank
    Apr 2010 Join Date
    United StatesLocation
    765Posts

    Re: Custom Popup box message

    Yes there is.
    ZPostAdminWall( MUID* uidAdmin const char* szMsg, int nType );
    if nType is 0, it's a message.
    if nType is 1, it's a pop up. (in-game it'll be a message)
    Last edited by PenguinGuy; 19-08-10 at 04:21 AM.

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

    Re: Custom Popup box message

    Quote Originally Posted by Your Master View Post
    Yes there is.
    ZPostAdminWall( const char* szMsg, int nType );
    if nType is 0, it's a message.
    if nType is 1, it's a pop up. (in-game it'll be a message)
    is that ollybgd or C++? D: I don't understand any of those lol I'm a noob at these stuff D=

  6. #6
    Wait wut PenguinGuy is offline
    MemberRank
    Apr 2010 Join Date
    United StatesLocation
    765Posts

    Re: Custom Popup box message

    Quote Originally Posted by killerzx View Post
    is that ollybgd or c++? D: I don't understand any of those lol i'm a noob at these stuff d=
    c++...

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

    Re: Custom Popup box message

    Quote Originally Posted by Your Master View Post
    c++...
    ohh..
    So i edit the Matchserver or Theduel.exe?

  8. #8
    Aristrum Mark is offline
    MemberRank
    Aug 2007 Join Date
    United KingdomLocation
    474Posts

    Re: Custom Popup box message

    Theduel.exe - you could change it in ASM also.

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

    Re: Custom Popup box message

    Quote Originally Posted by Aristrum View Post
    Theduel.exe - you could change it in ASM also.
    oh.. do you know the address for them?

  10. #10
    Wait wut PenguinGuy is offline
    MemberRank
    Apr 2010 Join Date
    United StatesLocation
    765Posts

    Re: Custom Popup box message

    Quote Originally Posted by killerzx View Post
    ohh..
    So i edit the Matchserver or Theduel.exe?
    That was for the client. But you can search in Inve's sources and do it for the server.

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

    Re: Custom Popup box message

    Quote Originally Posted by Your Master View Post
    That was for the client. But you can search in Inve's sources and do it for the server.
    I searched Inve's source it couldn't find any threads of it o.o

  12. #12
    Wait wut PenguinGuy is offline
    MemberRank
    Apr 2010 Join Date
    United StatesLocation
    765Posts

    Re: Custom Popup box message

    Quote Originally Posted by killerzx View Post
    I searched Inve's source it couldn't find any threads of it o.o
    http://forum.ragezone.com/f245/phail...-files-663378/

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

    Re: Custom Popup box message

    oh. thanks :)

  14. #14
    Veni, Vidi, Vici Arcelor is offline
    MemberRank
    Jan 2010 Join Date
    Delhi, IndiaLocation
    1,763Posts

    Re: Custom Popup box message

    Couldn't help noticing your sig /cough.

    Brandon made something similar, just ask him for it since you're obviously not capable of doing it <3.

  15. #15
    (。◕‿‿◕。) Nobody666 is offline
    MemberRank
    Oct 2008 Join Date
    1,773Posts

    Re: Custom Popup box message

    Quote Originally Posted by jewness12 View Post
    Eh... There's an /admin_wall function 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.

    Just something to help (though Penguin already said the answer)

    This is for a new command basis, but forget that and just do what he says on the /admin_wall part.

    To find where admin wall is, just go into the runnable, go into Search for > All referenced text strings, and search for admin_wall

  16. #16
    Wait wut PenguinGuy is offline
    MemberRank
    Apr 2010 Join Date
    United StatesLocation
    765Posts

    Re: Custom Popup box message

    Quote Originally Posted by Nobody666 View Post
    Just something to help (though Penguin already said the answer)

    This is for a new command basis, but forget that and just do what he says on the /admin_wall part.

    To find where admin wall is, just go into the runnable, go into Search for > All referenced text strings, and search for admin_wall
    You should probably explain a bit more than that to him...
    Code:
    0050DE73  |. 68 B09C5C00    PUSH GunzOld.005C9CB0                    ;  ASCII "Admin.Announce"
     0050DE78  |. 68 F5010000  PUSH 1F5
    0050DE7D  |. 8BC8           MOV ECX,EAX
    0050DE7F  |. E8 FC17FEFF    CALL GunzOld.004EF680
    0050DE84  |. 8BF8           MOV EDI,EAX
    0050DE86  |. EB 02          JMP SHORT GunzOld.0050DE8A
    0050DE88  |> 33FF           XOR EDI,EDI
    0050DE8A  |> 57             PUSH EDI                                 ; /Arg1
    0050DE8B  |. 8BCB           MOV ECX,EBX                              ; |
    0050DE8D  |. 897424 24      MOV DWORD PTR SS:[ESP+24],ESI            ; |
    0050DE91  |. E8 2AE0FEFF    CALL GunzOld.004FBEC0                    ; \GunzOld.004FBEC0
    0050DE96  |. 6A 48          PUSH 48
    0050DE98  |. E8 38290900    CALL GunzOld.005A07D5
    0050DE9D  |. 83C4 04        ADD ESP,4
    0050DEA0  |. 894424 14      MOV DWORD PTR SS:[ESP+14],EAX
    0050DEA4  |. 85C0           TEST EAX,EAX
    0050DEA6  |. C74424 20 C802>MOV DWORD PTR SS:[ESP+20],2C8
    0050DEAE  |. 74 10          JE SHORT GunzOld.0050DEC0
    0050DEB0  |. 68 A49C5C00    PUSH GunzOld.005C9CA4                   ;  ASCII "uidAdmin"
    0050DEB5  |. 6A 09          PUSH 9
    0050DEB7  |. 8BC8           MOV ECX,EAX
    0050DEB9  |. E8 0201FEFF    CALL GunzOld.004EDFC0
    0050DEBE  |. EB 02          JMP SHORT GunzOld.0050DEC2
    0050DEC0  |> 33C0           XOR EAX,EAX
    0050DEC2  |> 50             PUSH EAX
    0050DEC3  |. 8BCF           MOV ECX,EDI
    0050DEC5  |. 897424 24      MOV DWORD PTR SS:[ESP+24],ESI
    0050DEC9  |. E8 3220FEFF    CALL GunzOld.004EFF00
    0050DECE  |. 6A 48          PUSH 48
    0050DED0  |. E8 00290900    CALL GunzOld.005A07D5
    0050DED5  |. 83C4 04        ADD ESP,4
    0050DED8  |. 894424 14      MOV DWORD PTR SS:[ESP+14],EAX
    0050DEDC  |. 85C0           TEST EAX,EAX
    0050DEDE  |. C74424 20 C902>MOV DWORD PTR SS:[ESP+20],2C9
    0050DEE6  |. 74 10          JE SHORT GunzOld.0050DEF8
    0050DEE8  |. 68 14CE5C00    PUSH GunzOld.005CCE14                    ;  ASCII "Msg"
    0050DEED  |. 6A 04          PUSH 4
    0050DEEF  |. 8BC8           MOV ECX,EAX
    0050DEF1  |. E8 CA00FEFF    CALL GunzOld.004EDFC0
    0050DEF6  |. EB 02          JMP SHORT GunzOld.0050DEFA
    0050DEF8  |> 33C0           XOR EAX,EAX
    0050DEFA  |> 50             PUSH EAX
    0050DEFB  |. 8BCF           MOV ECX,EDI
    0050DEFD  |. 897424 24      MOV DWORD PTR SS:[ESP+24],ESI
    0050DF01  |. E8 FA1FFEFF    CALL GunzOld.004EFF00
    0050DF06  |. 6A 48          PUSH 48
    0050DF08  |. E8 C8280900    CALL GunzOld.005A07D5
    0050DF0D  |. 83C4 04        ADD ESP,4
    0050DF10  |. 894424 14      MOV DWORD PTR SS:[ESP+14],EAX
    0050DF14  |. 85C0           TEST EAX,EAX
    0050DF16  |. C74424 20 CA02>MOV DWORD PTR SS:[ESP+20],2CA
    0050DF1E  |. 74 10          JE SHORT GunzOld.0050DF30
    0050DF20  |. 68 9C9C5C00    PUSH GunzOld.005C9C9C                    ;  ASCII "MsgType"
    Hehe, forgot about getting the MUID (colored in red)
    The PacketID (also colored in red) is 0x1F5, so just find command "PUSH 1F5", scroll to the top of the function and you got your address.

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

    Re: Custom Popup box message

    Quote Originally Posted by Your Master View Post
    You should probably explain a bit more than that to him...
    Code:
    0050DE73  |. 68 B09C5C00    PUSH GunzOld.005C9CB0                    ;  ASCII "Admin.Announce"
     0050DE78  |. 68 F5010000  PUSH 1F5
    0050DE7D  |. 8BC8           MOV ECX,EAX
    0050DE7F  |. E8 FC17FEFF    CALL GunzOld.004EF680
    0050DE84  |. 8BF8           MOV EDI,EAX
    0050DE86  |. EB 02          JMP SHORT GunzOld.0050DE8A
    0050DE88  |> 33FF           XOR EDI,EDI
    0050DE8A  |> 57             PUSH EDI                                 ; /Arg1
    0050DE8B  |. 8BCB           MOV ECX,EBX                              ; |
    0050DE8D  |. 897424 24      MOV DWORD PTR SS:[ESP+24],ESI            ; |
    0050DE91  |. E8 2AE0FEFF    CALL GunzOld.004FBEC0                    ; \GunzOld.004FBEC0
    0050DE96  |. 6A 48          PUSH 48
    0050DE98  |. E8 38290900    CALL GunzOld.005A07D5
    0050DE9D  |. 83C4 04        ADD ESP,4
    0050DEA0  |. 894424 14      MOV DWORD PTR SS:[ESP+14],EAX
    0050DEA4  |. 85C0           TEST EAX,EAX
    0050DEA6  |. C74424 20 C802>MOV DWORD PTR SS:[ESP+20],2C8
    0050DEAE  |. 74 10          JE SHORT GunzOld.0050DEC0
    0050DEB0  |. 68 A49C5C00    PUSH GunzOld.005C9CA4                   ;  ASCII "uidAdmin"
    0050DEB5  |. 6A 09          PUSH 9
    0050DEB7  |. 8BC8           MOV ECX,EAX
    0050DEB9  |. E8 0201FEFF    CALL GunzOld.004EDFC0
    0050DEBE  |. EB 02          JMP SHORT GunzOld.0050DEC2
    0050DEC0  |> 33C0           XOR EAX,EAX
    0050DEC2  |> 50             PUSH EAX
    0050DEC3  |. 8BCF           MOV ECX,EDI
    0050DEC5  |. 897424 24      MOV DWORD PTR SS:[ESP+24],ESI
    0050DEC9  |. E8 3220FEFF    CALL GunzOld.004EFF00
    0050DECE  |. 6A 48          PUSH 48
    0050DED0  |. E8 00290900    CALL GunzOld.005A07D5
    0050DED5  |. 83C4 04        ADD ESP,4
    0050DED8  |. 894424 14      MOV DWORD PTR SS:[ESP+14],EAX
    0050DEDC  |. 85C0           TEST EAX,EAX
    0050DEDE  |. C74424 20 C902>MOV DWORD PTR SS:[ESP+20],2C9
    0050DEE6  |. 74 10          JE SHORT GunzOld.0050DEF8
    0050DEE8  |. 68 14CE5C00    PUSH GunzOld.005CCE14                    ;  ASCII "Msg"
    0050DEED  |. 6A 04          PUSH 4
    0050DEEF  |. 8BC8           MOV ECX,EAX
    0050DEF1  |. E8 CA00FEFF    CALL GunzOld.004EDFC0
    0050DEF6  |. EB 02          JMP SHORT GunzOld.0050DEFA
    0050DEF8  |> 33C0           XOR EAX,EAX
    0050DEFA  |> 50             PUSH EAX
    0050DEFB  |. 8BCF           MOV ECX,EDI
    0050DEFD  |. 897424 24      MOV DWORD PTR SS:[ESP+24],ESI
    0050DF01  |. E8 FA1FFEFF    CALL GunzOld.004EFF00
    0050DF06  |. 6A 48          PUSH 48
    0050DF08  |. E8 C8280900    CALL GunzOld.005A07D5
    0050DF0D  |. 83C4 04        ADD ESP,4
    0050DF10  |. 894424 14      MOV DWORD PTR SS:[ESP+14],EAX
    0050DF14  |. 85C0           TEST EAX,EAX
    0050DF16  |. C74424 20 CA02>MOV DWORD PTR SS:[ESP+20],2CA
    0050DF1E  |. 74 10          JE SHORT GunzOld.0050DF30
    0050DF20  |. 68 9C9C5C00    PUSH GunzOld.005C9C9C                    ;  ASCII "MsgType"
    Hehe, forgot about getting the MUID (colored in red)
    The PacketID (also colored in red) is 0x1F5, so just find command "PUSH 1F5", scroll to the top of the function and you got your address.
    so the red ones I edit in my runnable? o-O

    edit: so I did that and I still didn't get it lol
    edit2: ohh so 0050DE73 |. 68 B09C5C00 PUSH GunzOld.005C9CB0 ; ASCII "Admin.Announce" is the one im looking for right?
    so if its that, what do I do with it? o.o
    Last edited by killerzx; 19-08-10 at 05:57 PM.

  18. #18
    Wait wut PenguinGuy is offline
    MemberRank
    Apr 2010 Join Date
    United StatesLocation
    765Posts

    Re: Custom Popup box message

    Quote Originally Posted by killerzx View Post
    so the red ones I edit in my runnable? o-O

    edit: I can't put the "0050DEB0 |. 68 A49C5C00 PUSH GunzOld.005C9CA4 ; ASCII "uidAdmin"
    " in my runnable D: Maybe I don't got gunzold.exe ):
    You don't need to worry about that. Once OllyDbg has finished analyzing, scroll all the way up to the top, press "CTRL + F" and type "PUSH 1F5". That'll be ZPostAdminAnnounce's function.

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

    Re: Custom Popup box message

    Quote Originally Posted by Your Master View Post
    You don't need to worry about that. Once OllyDbg has finished analyzing, scroll all the way up to the top, press "CTRL + F" and type "PUSH 1F5". That'll be ZPostAdminAnnounce's function.
    oh ok :D Done that =)
    edit: what do I do after that one? :O
    Last edited by killerzx; 19-08-10 at 11:48 PM.



Advertisement