Basic AFK system. [1.5]

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

    Basic AFK system. [1.5]

    ZCharacter.h, line 788,
    hit enter and paste this.
    Code:
    int LastKeyTime;
    ZGameInput.cpp, Line 83,
    hit enter and paste this,
    Code:
    ZGetGame()->m_pMyCharacter->LastKeyTime = timeGetTime();
    ZGame.cpp, line 739,
    hit enter and paste this.
    Code:
    	if(ZGetGame()->m_pMyCharacter->LastKeyTime + 300000 < timeGetTime())
    		ZApplication::GetGameInterface()->ReserveLeaveBattle();
    This isn't tested, have fun. All it does, is simply kick you out of the room after 5 minutes of no action.
    Coded by me, half-assed.

    Cheers.
    Last edited by Vusion; 29-04-12 at 06:04 PM.


  2. #2
    Good Guy George qet123 is offline
    MemberRank
    Apr 2009 Join Date
    DesertLocation
    1,432Posts

    Re: Basic AFK system. [1.5]

    First of all thanks, second thing I suggest for people to make the time less than 3 minutes on DuelMatch!

  3. #3
    Valued Member ZeidForce is offline
    MemberRank
    Nov 2009 Join Date
    C:\Puerto Rico\Location
    133Posts

    Re: Basic AFK system. [1.5]

    Thanks for all, this is good because people how are in TDM in other team, and there is someone AFK, the other team dont want to kick him because they win EXP, and this is the solution

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

    Re: Basic AFK system. [1.5]

    Quote Originally Posted by qet123 View Post
    First of all thanks, second thing I suggest for people to make the time less than 3 minutes on DuelMatch!
    Code:
    	if(ZGetGame()->m_pMyCharacter->LastKeyTime + ((ZGetGame()->GetMatch()->GetMatchType() != MMATCH_GAMETYPE_DUEL || ZGetGame()->GetMatch()->GetMatchType() != MMATCH_GAMETYPE_DUELTOURNAMENT) ? 300000 : 180000) < timeGetTime())
    		ZApplication::GetGameInterface()->ReserveLeaveBattle();
    Last edited by Vusion; 20-04-12 at 12:15 AM.

  5. #5
    Account Upgraded | Title Enabled! BG-Nero is offline
    MemberRank
    Feb 2012 Join Date
    GermanyLocation
    285Posts

    Re: Basic AFK system. [1.5]

    Thanks!
    If i see those awesome releases i am really starting to think of 1.5...

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

    Re: Basic AFK system. [1.5]

    Will improve it a bit when I get time to. I do realize that throwing it in the OnDamaged is a bad idea, but I couldn't think of a constantly used void..
    Posted via Mobile Device

  7. #7
    Member Miguelbkn is offline
    MemberRank
    Feb 2010 Join Date
    Santiago, ChileLocation
    95Posts

    Re: Basic AFK system. [1.5]

    Awesome release!!! Thanks vusion <3.
    I can't give thanks via mobile :S
    Posted via Mobile Device

  8. #8
    Hakuna Matata bulli10 is offline
    MemberRank
    Feb 2011 Join Date
    697Posts

    Re: Basic AFK system. [1.5]

    Good Job hhh no more free exp

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

    Re: Basic AFK system. [1.5]

    Edited it to automatically check without needing to shoot the afk person!

    Thanks to Mark.

  10. #10
    Ecchi addicted adz28 is offline
    MemberRank
    Nov 2008 Join Date
    IkebukuroLocation
    524Posts

    Re: Basic AFK system. [1.5]

    Automatically shows the "You will left bla bla" when you enter a room (Without 5 minutes elapsed), and don't quits.
    Last edited by adz28; 19-04-12 at 03:28 PM.

  11. #11
    Account Upgraded | Title Enabled! ForceGFX is offline
    MemberRank
    Jan 2012 Join Date
    The NetherlandsLocation
    412Posts

    Re: Basic AFK system. [1.5]

    At least zchatout some text if somebody is kicked for being afk

  12. #12
    Good Guy George qet123 is offline
    MemberRank
    Apr 2009 Join Date
    DesertLocation
    1,432Posts

    Re: Basic AFK system. [1.5]

    Quote Originally Posted by ForceGFX View Post
    At least zchatout some text if somebody is kicked for being afk
    It's bugged... I will update soon the right code.

  13. #13
    Proficient Member Mr_Troy is offline
    MemberRank
    Jun 2007 Join Date
    172Posts

    Re: Basic AFK system. [1.5]

    Quote Originally Posted by qet123 View Post
    It's bugged... I will update soon the right code.
    how long is that gonna take you? a week? it's kinda simple.

    also Vusion your code is 100% flawed, you do know that the waiting time is only 300 milliseconds? or in the case of duel match it is 180 milliseconds.

    And you claim to be a good dev, roflmfao

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

    Re: Basic AFK system. [1.5]

    Quote Originally Posted by Mr_Troy View Post
    how long is that gonna take you? a week? it's kinda simple.

    also Vusion your code is 100% flawed, you do know that the waiting time is only 300 milliseconds? or in the case of duel match it is 180 milliseconds.

    And you claim to be a good dev, roflmfao
    says you.

    thanks for pointing me out to that, I'll have it fixed in a bit.

    And what have you done? An FPS counter?

    For god's sakes, you can't even manage to get Duel Tournament working.

    Updated codes.

    Quote Originally Posted by ForceGFX View Post
    At least zchatout some text if somebody is kicked for being afk
    It's a /basic/ AFK system.

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

    Re: Basic AFK system. [1.5]

    Quote Originally Posted by Vusion View Post
    says you.

    thanks for pointing me out to that, I'll have it fixed in a bit.

    And what have you done? An FPS counter?

    For god's sakes, you can't even manage to get Duel Tournament working.

    Updated codes.



    It's a /basic/ AFK system.
    and if you doing H&S event ?



Page 1 of 2 12 LastLast

Advertisement