[317] Adding Commands ++

Page 1 of 2 12 LastLast
Results 1 to 15 of 19
  1. #1
    Apprentice Roger is offline
    MemberRank
    Apr 2008 Join Date
    16Posts

    [317] Adding Commands ++

    Level: 2/10
    Base: Devo v7
    Tut by: Roger
    Need: Complier


    First open up CLIENT.JAVA

    Search for
    if (command.star
    (Get the 3rd Choice)

    You should see something that looks like this!
    if (command.equalsIgnoreCase("prem")) {
    sendMessage("Premium can be sold by Roger or Layton");
    }
    (Differ of corase)
    After the
    }
    Hit enter!
    Then write this..
    if (command.equalsIgnoreCase("COMMAND HERE")) {
    What it means is if someone types that command with caps or not it will work BUT
    You will have to make it work, all we have is just the name of the command..
    Look at list below to see what you want your command to do..

    To make it admin only.. do this!

    if (command.equalsIgnoreCase("COMMAND HERE") && (playerRights < 2)) {
    =====================================================
    CODES THAT DO STUFF




    sendMessage("WHAT YOU WANT TO SAY HERE");
    Does: Sends a message on the chat box

    yell("SAY WHAT YOU WANT HERE");
    Does: Yells to everyone

    server.trading = false;
    Does: Disable's Trade

    server.dueling = false;
    Does: Disable's Dueling

    teleportToX = X COORDS;
    teleportToY = Y COORDS;
    Does: Teleports you

    stillgfx(GFX ID HERE, absY, absX);
    Does: Spawns a GFX on you

    heightLevel = 0;
    Does: You go to that height level

    if (premium)
    Does: If they are perm they can use this command

    disconnected = true;
    Does: Disconnects you

    writeLog(connectedFrom, "ipbans");
    Does: IP Bans Them - add Dissconnected aswell

    PlayerHandler.kickNick = command.substring(11);
    Does: Also kicks them

    addSkillXP(SKILL XP, SKILL ID);
    Does: Adds skill Xp to a certain skill

    server.pking = false;
    Does: Disables PK

    server.pking = true;
    Does: Enables PK

    pGender = 1;
    appearanceUpdateRequired = true;
    Does: Changes your gender to Female

    pGender = 0;
    appearanceUpdateRequired = true;
    Does: Changes you to a male

    sendMessage("Max = " + playerMaxHit);
    Does: Tells you your max hit

    removeAllItems();
    Does: Removes all your items

    addItem(ITEM ID, AMOUNT);
    Does: Adds item

    openUpBank();
    Does: Open up your bank


  2. #2
    The World Is Yours PixelPro is offline
    MemberRank
    Jun 2007 Join Date
    UKLocation
    3,252Posts

    Re: Adding Commands ++

    Thanks for this tutorial, now I understand it all. =D

    Best tutorial yet. =]

  3. #3
    Member YourMaster is offline
    MemberRank
    Apr 2008 Join Date
    The Netherlands :)Location
    59Posts

    Re: Adding Commands ++

    Can you help my where can i find CLIENT.JAVA ?

  4. #4
    There's no RL just AFK -fedexer- is offline
    MemberRank
    May 2006 Join Date
    ScotlandLocation
    1,632Posts

    Re: Adding Commands ++

    Quote Originally Posted by YourMaster View Post
    Can you help my where can i find CLIENT.JAVA ?
    Seriously don't ask this in every single thread, or you will be in for a shock soon enough.

    @Roger: I suggest that you specify which variables and methods are available in certain sources, as if you do not people may try to use the methods you have detailed and get errors, and likely start complaining.l

  5. #5
    Account Upgraded | Title Enabled! Ultimatum is offline
    MemberRank
    Feb 2008 Join Date
    EnglandLocation
    334Posts

    Re: Adding Commands ++

    or you create you own methods

  6. #6
    There's no RL just AFK -fedexer- is offline
    MemberRank
    May 2006 Join Date
    ScotlandLocation
    1,632Posts

    Re: Adding Commands ++

    Quote Originally Posted by Ultimatum View Post
    or you create you own methods
    You think someone that is reading a tutorial about making a command can seriously make their own methods?

  7. #7
    Account Upgraded | Title Enabled! Ultimatum is offline
    MemberRank
    Feb 2008 Join Date
    EnglandLocation
    334Posts

    Re: Adding Commands ++

    Ye im reading them just to get my head around runescape xD. Still id need need to make a scratch source i suppose just to learn what varibles are being used for what since some the the varibles what they say they are they actually arnt...

  8. #8
    Apprentice no-plonkers is offline
    MemberRank
    Jun 2008 Join Date
    6Posts

    Re: Adding Commands ++

    Quote Originally Posted by YourMaster View Post
    Can you help my where can i find CLIENT.JAVA ?
    How the hell cant u find client.java??? Btw nice guide this should help some noobs.

  9. #9
    Apprentice roy8102 is offline
    MemberRank
    Apr 2008 Join Date
    HollandLocation
    14Posts

    Re: [Tut] Adding Commands ++

    uhmm... now ... go to ur scape and pess ctrl+f and search client.java

  10. #10
    RestyleGamerZ FTW Mambo is offline
    MemberRank
    Mar 2008 Join Date
    The NetherlandsLocation
    821Posts

    Re: [Tut] Adding Commands ++

    Does this work for a MySQL server too???

  11. #11
    Apprentice cleansweep3 is offline
    MemberRank
    Sep 2008 Join Date
    10Posts

    Re: [Tut] Adding Commands ++

    can someone help me with the give item command??

    That the command is: Item ID, Amount

    So that i can choose wich item i want and how much of them, and that i dont need to change the command to get another item

  12. #12
    Member T3h J0k3r is offline
    MemberRank
    Aug 2008 Join Date
    54Posts

    Re: [Tut] Adding Commands ++

    i linked this to my friend it really helped him btw nice

  13. #13
    Valued Member xDima is offline
    MemberRank
    Apr 2008 Join Date
    Local Disk (C:)Location
    127Posts

    Re: [Tut] Adding Commands ++

    Thank man, this is really helpful.

  14. #14
    Account Upgraded | Title Enabled! tj960 is offline
    MemberRank
    Feb 2007 Join Date
    United Kingdom (England)Location
    209Posts

    Re: [Tut] Adding Commands ++

    This is a good tutorial =] will help teh' noobies.

  15. #15
    Apprentice dt-knight is offline
    MemberRank
    May 2008 Join Date
    14Posts

    Re: [Tut] Adding Commands ++

    thank you verry much !



Page 1 of 2 12 LastLast

Advertisement