Thread: Afk command help

Results 1 to 4 of 4
  1. #1 Afk command help 
    There's only 1Day2Die
    1Day2Die's Avatar
    Join Date
    Oct 2012
    Posts
    467
    Thanks given
    22
    Thanks received
    33
    Rep Power
    8
    so i want to add an ::afk command.

    And it shouldwork like, if u type ::afk your character automaticly writes a message like all 5 seconds "im afk, dont write to me" or something.

    I dont know how to make him repeat the sentence:L

    that's what i have so far

    if (playerCommand.startsWith("afk")) {
    c.forcedText = "I'm AFK, don't talk to me";
    c.forcedChatUpdateRequired = true;
    c.updateRequired = true;
    }
    Attached image

    Quote Originally Posted by Charlie' View Post
    ^ to the assholes (...) above that hate on people when they don't know something, remember little kids you once didn't know shit so get off your high horse.
    Reply With Quote  
     

  2. #2  
    Banned
    Join Date
    Jan 2013
    Posts
    94
    Thanks given
    0
    Thanks received
    1
    Rep Power
    0
    Quote Originally Posted by Bridpkz Dennis View Post
    so i want to add an ::afk command.

    And it shouldwork like, if u type ::afk your character automaticly writes a message like all 5 seconds "im afk, dont write to me" or something.

    I dont know how to make him repeat the sentence:L

    that's what i have so far
    Use this. It won't send the message 5 times a second, but it will make you sit on a chair with zzz coming out of you to make you look like you're afk.

    Code:
            if (playerCommand.equalsIgnoreCase("afk"))
            {
                if (c.inWild())
                {
                    c.sendMessage("You cannot use this in the wilderness11.");
                    return;
                }
                c.forcedText = "I'm AFK, don't talk to me";
                c.forcedChatUpdateRequired = true;
                c.updateRequired = true; 
                c.startAnimation(1353);
                c.updateRequired = true;
                c.appearanceUpdateRequired = true;
                c.sendMessage("You now relax");
                c.sendMessage("Type in ::afkoff to undo it");
            }
    
            if (playerCommand.equalsIgnoreCase("afkoff"))
            {
                if (c.inWild())
                {
                    c.sendMessage("You cannot use this in the wilderness12.");
                    return;
                }
                c.forcedText = "I'm back!";
                c.forcedChatUpdateRequired = true;
                c.updateRequired = true; 
                c.startAnimation(6);
                c.updateRequired = true;
                c.appearanceUpdateRequired = true;
                c.sendMessage("You wake up.");
            }
    Reply With Quote  
     

  3. #3  
    There's only 1Day2Die
    1Day2Die's Avatar
    Join Date
    Oct 2012
    Posts
    467
    Thanks given
    22
    Thanks received
    33
    Rep Power
    8
    thanks, but i could code that myown, thats the problem :L
    Attached image

    Quote Originally Posted by Charlie' View Post
    ^ to the assholes (...) above that hate on people when they don't know something, remember little kids you once didn't know shit so get off your high horse.
    Reply With Quote  
     

  4. #4  
    Development Services √

    Oogle's Avatar
    Join Date
    Apr 2012
    Age
    25
    Posts
    3,976
    Thanks given
    650
    Thanks received
    516
    Rep Power
    483
    I wouldn't have this at all.

    Dont have useless commands such as these they are no use tbh.


    Attached image

    Attached image
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Replies: 50
    Last Post: 04-17-2014, 02:19 PM
  2. Replies: 3
    Last Post: 07-02-2011, 01:57 AM
  3. Replies: 4
    Last Post: 12-21-2010, 09:36 PM
  4. Replies: 4
    Last Post: 12-19-2010, 11:46 PM
  5. Replies: 4
    Last Post: 02-13-2009, 12:32 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •