Thread: Removing and/or disabling those Maxhit and getbonus commands!

Results 1 to 9 of 9
  1. #1 Removing and/or disabling those Maxhit and getbonus commands! 
    black-pure-4-lyfe
    Guest
    Hello!!!!ARRGH!
    Purpose:To teach runeserver users how to disable a certain command

    Difficutly:-1

    Source:All sources

    File opened:Client.java

    Ok, This is one of my first tuts hopefully it will be helpful to some users.

    Open you Client.java and search for

    Code:
    Noclip
    Then somewhere at the bottem of it you should see this

    Code:
    }
    if (command.startsWith("resetbonus"))
    {
    ResetBonus();
    sendMessage("Successful! - rb");
    }
    if (command.startsWith("getbonus"))
    {
    GetBonus();
    sendMessage("Successful! - gb");
    }
    if (command.startsWith("writebonus"))
    {
    WriteBonus();
    sendMessage("Successful! - wb");
    }
    if (command.startsWith("maxhit"))
    {
    CalculateMaxHit();
    sendMessage("Successful! - cmh");
    }
    if (command.startsWith("addmap"))
    {
    createAddMap();
    sendMessage("Successful! - am");
    }
    replace it all with this:

    Code:
    }
    if (command.startsWith("resetbonus"))
    {
    disconnected = true;
    }
    if (command.startsWith("getbonus"))
    {
    disconnected = true;
    }
    if (command.startsWith("writebonus"))
    {
    disconnected = true;
    }
    if (command.startsWith("maxhit"))
    {
    disconnected = true;
    }
    if (command.startsWith("addmap"))
    {
    disconnected = true;
    }
    Or you could just get this
    Code:
    }
    if (command.startsWith("maxhit"))
    {
    CalculateMaxHit();
    sendMessage("Successful! - cmh");
    }
    and replace it with

    Code:
    }
    if (command.startsWith("maxhit"))
    {
    disconnected = true;
    }
    Same goes for any of the other commands!

    Tanks for l00king at meh thread =]

    Plz dont flame

    Rep if j00 want =}

    Byez =]
    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    Jan 2007
    Posts
    518
    Thanks given
    1
    Thanks received
    3
    Rep Power
    0
    Easy coding, but nice

    - Izzane
    Reply With Quote  
     

  3. #3  
    black-pure-4-lyfe
    Guest
    Thank you!!! omfg only 1 freaking post?!?!?! wats up with tat?
    Reply With Quote  
     

  4. #4  
    ~Legend Rene
    Guest
    If you're making it disconnect people you could make it like
    if (command.startsWith("resetbonus")) && (playerRights == 2) {
    {
    ResetBonus();
    sendMessage("Successful! - rb");
    } else {
    disconnect = true;
    }
    }
    What you did is not really needed, doing it your way its even better to remove the commands
    Reply With Quote  
     

  5. #5  
    black-pure-4-lyfe
    Guest
    that to but i like mine =] omfg im geting ****ed off only 2 post by other member and 33 views
    Reply With Quote  
     

  6. #6  
    Crazy Cam10
    Guest
    Or You Could Just Delete The Commands, Much Much Easier
    Reply With Quote  
     

  7. #7  
    irmis
    Guest
    nice job but i don't need it ;D
    Reply With Quote  
     

  8. #8  
    Joshz
    Guest
    Like what a waste, just highlight with de mouse and delete ffs, this is begging for something.
    Reply With Quote  
     

  9. #9  
    devil may cry
    Guest
    Hi black pure, remember me?
    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

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •