Chat command - Teleport

Page 1 of 2 12 LastLast
Results 1 to 15 of 30
  1. #1
    Hi, I'm Omar! Vusion is offline
    MemberRank
    Jan 2011 Join Date
    HereLocation
    1,658Posts

    Chat command - Teleport

    ZChat_Cmds.cpp Ln 95.
    Code:
    void ChatCmd_AdminTeleport(const char* line, const int argc, char **const argv);
    ZChat_Cmds.cpp Ln 190.
    Code:
        _CC_AC("admin_teleport",                            &ChatCmd_AdminTeleport,                            CCF_ADMIN|CCF_GAME, ARGVNoMin, 1, true, "/admin_teleport <player>", "");
    ZChat_Cmds.cpp Ln 1172
    Code:
    void ChatCmd_AdminTeleport(const char* line, const int argc, char **const argv)
    {
    	if (argc < 2)
    	{
    		ZChatOutput("Usage: /admin_teleport <player>", ZChat::CMT_SYSTEM);
    		return;
    	}
    
    	if(!ZGetMyInfo()->IsAdminGrade())
    		return;
    	
    	for (ZCharacterManager::iterator itor = ZGetCharacterManager()->begin(); itor != ZGetCharacterManager()->end(); ++itor)
    	{
    		ZCharacter* pCharacter = (ZCharacter*)(*itor).second;
    		char* szPlayerName = argv[1];
    
    		if(strcmp(pCharacter->GetUserName(), szPlayerName) == 0)
    		{
    			ZGetGame()->m_pMyCharacter->SetPosition(pCharacter->GetPosition());
    			break;
    		}
    	}
    }
    Last edited by Vusion; 16-01-13 at 10:28 PM.


  2. #2
    Developer / Patch Finder Tankado is offline
    MemberRank
    Oct 2011 Join Date
    The NetherlandsLocation
    451Posts

    Re: Chat command - Teleport

    fine, your see your own mistake, there is no packet or check from other player coordinate.
    only it will set your own position

    succes with post the full zpost function.

  3. #3
    Hi, I'm Omar! Vusion is offline
    MemberRank
    Jan 2011 Join Date
    HereLocation
    1,658Posts

    Re: Chat command - Teleport

    Quote Originally Posted by SeaTroll View Post
    fine, your see your own mistake, there is no packet or check from other player coordinate.
    only it will set your own position

    succes with post the full zpost function.
    I did do a mistake, but it wasn't about packets.

  4. #4
    Developer / Patch Finder Tankado is offline
    MemberRank
    Oct 2011 Join Date
    The NetherlandsLocation
    451Posts

    Re: Chat command - Teleport

    OK Sorry...
    Last edited by Tankado; 15-01-13 at 09:10 PM.

  5. #5
    Hi, I'm Omar! Vusion is offline
    MemberRank
    Jan 2011 Join Date
    HereLocation
    1,658Posts

    Re: Chat command - Teleport

    Quote Originally Posted by SeaTroll View Post
    your mistake is:

    PHP Code:
        ZGetGame()->m_pMyCharacter->SetPosition(pCharacter->GetPosition()); 
    that coded set your possition again.

    you need someting like

    pTargetPlayer by send MC_MATCH_ADMINTELEPORT

    good luck
    ZCharacterManager, you fool.

  6. #6
    Intelligent DoucheBag jur13n is offline
    MemberRank
    Jan 2008 Join Date
    Zwolle,Location
    1,946Posts

    Re: Chat command - Teleport

    Quote Originally Posted by SeaTroll View Post
    your mistake is:

    PHP Code:
        ZGetGame()->m_pMyCharacter->SetPosition(pCharacter->GetPosition()); 
    that coded set your possition again.

    you need someting like

    PHP Code:

    TargetP 
    argv[1];
    ZPostAdminTeleport(OwnerP,TargetP);

    MUID TargetPlayerID;
    pCommand->GetParameter(&TargetPlayerID0MPT_UID);
    ZObjectpTargetPlayerZGetObjectManager()->GetObject(targetUID);    
    ZGetGame()->m_pMyCharacter->SetPosition(pTargetPlayer->GetPosition()); 
    this still a example,
    dont use it, it's not correct for using it.

    good luck
    Your a dumbass,
    why rewriting a function if the function already exists?

    there was nothing wrong with the line..
    just learn to read in between brackets

  7. #7
    Praise the Sun! Solaire is offline
    MemberRank
    Dec 2007 Join Date
    Undead BurgLocation
    2,862Posts

    Re: Chat command - Teleport

    Quote Originally Posted by SeaTroll View Post
    your mistake is:

    PHP Code:
        ZGetGame()->m_pMyCharacter->SetPosition(pCharacter->GetPosition()); 
    that coded set your possition again.

    you need someting like

    PHP Code:

    TargetP 
    argv[1];
    ZPostAdminTeleport(OwnerP,TargetP);

    MUID TargetPlayerID;
    pCommand->GetParameter(&TargetPlayerID0MPT_UID);
    ZObjectpTargetPlayerZGetObjectManager()->GetObject(targetUID);    
    ZGetGame()->m_pMyCharacter->SetPosition(pTargetPlayer->GetPosition()); 
    this still a example,
    dont use it, it's not correct for using it.

    good luck
    Take your stuff (this is a joke as you don't have any) and just leave. You don't need a packet for this, though it would be more safe. Either create your own release or just hang yourself, don't bash into other people's thread.

    That being said, leave.

  8. #8
    Developer / Patch Finder Tankado is offline
    MemberRank
    Oct 2011 Join Date
    The NetherlandsLocation
    451Posts

    Re: Chat command - Teleport

    oke, ok..
    i'm a dumbass.

    nextime i dont tell anything....

  9. #9
    Valued Member etropulus is offline
    MemberRank
    Jun 2012 Join Date
    118Posts

    Re: Chat command - Teleport

    Teleport all players for my position ?

  10. #10
    Hi, I'm Omar! Vusion is offline
    MemberRank
    Jan 2011 Join Date
    HereLocation
    1,658Posts

    Re: Chat command - Teleport

    Quote Originally Posted by etropulus View Post
    Teleport all players for my position ?
    Now that requires packets, but no this just teleports you, the admin, to the player.

  11. #11
    Currently Stoned ! Ronny786 is offline
    MemberRank
    Dec 2011 Join Date
    Lost WorldLocation
    984Posts

    Re: Chat command - Teleport

    nice one ! thumbs up .. lets have anniversary for omar joining RZ before 2 years xD

    off topic : nowadays pretty bored and getting mad, dont mind guys.. + sorry for bad english.

  12. #12
    Hi, I'm Omar! Vusion is offline
    MemberRank
    Jan 2011 Join Date
    HereLocation
    1,658Posts

    Re: Chat command - Teleport

    Quote Originally Posted by Ronny786 View Post
    nice one ! thumbs up .. lets have anniversary for omar joining RZ before 2 years xD

    off topic : nowadays pretty bored and getting mad, dont mind guys.. + sorry for bad english.
    I actually had a different account back in 2010, so yeah 3 years.

  13. #13
    I am THE DON Joe9099 is offline
    MemberRank
    Jan 2007 Join Date
    England, UkLocation
    3,655Posts

    Re: Chat command - Teleport

    Correct me if im wrong, there use to be hacks that did this?
    SeaTroll, if im right by that statement, does that mean the hackers had to edit the server sided source of IJJI to use the hack?

    BOOMBOMOBBOOMBMBOM

    Nice command

  14. #14
    Fuck Army. sahar042 is offline
    MemberRank
    Jul 2009 Join Date
    833Posts

    Re: Chat command - Teleport

    Quote Originally Posted by Joe9099 View Post
    Correct me if im wrong, there use to be hacks that did this?
    SeaTroll, if im right by that statement, does that mean the hackers had to edit the server sided source of IJJI to use the hack?

    BOOMBOMOBBOOMBMBOM

    Nice command
    This isn't good to put this command as admin, Omar released it without protection...
    I mean if someone only put CCF_ADMIN on the command i will not help because someone can do "PUSH 0F" and then normal player can use it, so... to protect it you need to make that matchserver will check (IsAdminGrade), And then it will be good command for admin.
    Anyway good release Omar! :)
    Last edited by sahar042; 16-01-13 at 02:35 PM.

  15. #15
    Account Upgraded | Title Enabled! Wish Q is offline
    MemberRank
    Jul 2012 Join Date
    LiveScoreLocation
    456Posts

    Re: Chat command - Teleport

    Quote Originally Posted by sahar042 View Post
    This isn't good to put this command as admin, Omar released it without protection...
    I mean if someone only put CCF_ADMIN on the command i will not help because someone can do "PUSH 0F" and then normal player can use it, so... to protect it you need to make that matchserver will check (IsAdminGrade), And then it will be good command for admin.
    Anyway good release Omar! :)
    nice talk but u wont do anything only exploit servers all day.



Page 1 of 2 12 LastLast

Advertisement