Thread: 718 / 723 Basic Command

Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1 718 / 723 Basic Command 
    Registered Member
    Join Date
    Sep 2012
    Posts
    17
    Thanks given
    0
    Thanks received
    3
    Rep Power
    11
    How to start a command : *Note* This is for people who are new to coding

    if (cmd[0].equalsIgnoreCase("COMMAND NAME") && (player.getRights() == 7)) {
    - (change the player rights for different
    people to acess the command)
    - Or for no rights -
    if(cmd[0].equalsIgnoreCase("COMMAND NAME")) {
    to make people force talk in the whole server / source (doesn't work for npcs)
    -
    for (Player p : World.getPlayers()) {
    if (player != null) {
    player.setNextForceTalk(new ForceTalk("THE TEXT YOU WANT!"));
    Make a command make someone do an Animation

    player.setNextAnimation(new Animation(858));
    -
    Make a command teleport you somewhere

    Magic.sendNormalTeleportSpell(player, 0, 0, new WorldTile(3555, 9947, 0));
    -

    To make a command only work for one person :

    if(cmd[0].equalsIgnoreCase("COMMAND NAME")) {
    if(player.getUsername().equalsIgnoreCase("YOUR NAME"))
    -

    To make a message when you use a command :

    player.getPackets().sendGameMessage(
    "<col=ff000><img=4>Welcome to Ganodermic Beasts!");
    -

    And if you want to make a command, to lower your health, you can do :

    player.applyHit(new Hit(player, 998, HitLook.REGULAR_DAMAGE));
    (change 998 for the damage done)

    How to make a command show an interface

    player.getInterfaceManager().sendInterface(Inter ID);
    -

    *Note* This is my first post, and i'll be making more helpful guides.
    Reply With Quote  
     

  2. Thankful users:


  3. #2  
    Registered Member Lord's Avatar
    Join Date
    Jul 2012
    Posts
    603
    Thanks given
    5
    Thanks received
    20
    Rep Power
    10
    thanks for this even tho everybody knows it
    you should of added interfaces
    Reply With Quote  
     

  4. #3  
    Banned
    Join Date
    Jun 2012
    Age
    28
    Posts
    709
    Thanks given
    521
    Thanks received
    87
    Rep Power
    0
    718 classic matrix has cases in commands.

    Will help out the newbs i suppose :/
    Reply With Quote  
     

  5. #4  
    Community Veteran


    Join Date
    Dec 2008
    Posts
    4,263
    Thanks given
    405
    Thanks received
    436
    Rep Power
    1674
    Half the things you showed wouldn't even work lol.

    Code:
    vfor (Player p : World.getPlayers()) {
    if (player != null) {
    player.setNextForceTalk(new ForceTalk("THE TEXT YOU WANT!"));
    Would only work for the player executing the command
    Reply With Quote  
     

  6. Thankful user:


  7. #5  
    Registered Member
    Join Date
    Sep 2012
    Posts
    17
    Thanks given
    0
    Thanks received
    3
    Rep Power
    11
    Quote Originally Posted by 2^31-1 View Post
    Half the things you showed wouldn't even work lol.

    Code:
    vfor (Player p : World.getPlayers()) {
    if (player != null) {
    player.setNextForceTalk(new ForceTalk("THE TEXT YOU WANT!"));
    Would only work for the player executing the command
    Oh, thank you for the feed back, and sorry, I'm new to coding, and wanted to try to help people.
    Reply With Quote  
     

  8. #6  
    Donator
    Mr Sandman's Avatar
    Join Date
    Oct 2011
    Posts
    657
    Thanks given
    176
    Thanks received
    26
    Rep Power
    38
    useful for beginners
    Reply With Quote  
     

  9. #7  
    Registered Member
    Join Date
    Sep 2012
    Posts
    17
    Thanks given
    0
    Thanks received
    3
    Rep Power
    11
    Quote Originally Posted by knight60two View Post
    useful for beginners
    Thank you, that is what this is ment to be, I tried.
    Reply With Quote  
     

  10. #8  
    Banned

    Join Date
    Mar 2010
    Posts
    1,092
    Thanks given
    214
    Thanks received
    117
    Rep Power
    0
    Uhm, I don't even think it'll help beginners? This is for people who NEVER - EVER, touched a RuneScape Private server in they're life! They would have to be a complete noob to not know this.
    Reply With Quote  
     

  11. #9  
    Registered Member
    Join Date
    Dec 2012
    Posts
    32
    Thanks given
    27
    Thanks received
    0
    Rep Power
    11
    where's the set skill command?
    john

    www.elite-rsps.rpgwars.net

    still in devolopment

    john
    Reply With Quote  
     

  12. #10  
    Donator

    Join Date
    Feb 2012
    Posts
    240
    Thanks given
    13
    Thanks received
    9
    Rep Power
    11
    The command won't be any different in 667, 718 or 723+ unless they aredone by cases. So this is 667 or 718 not 718 / 723 xD

    667 - 718 are very similar.
    Reply With Quote  
     

Page 1 of 2 12 LastLast

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. Selling RuneApple 718-723
    By Extinctionx in forum Selling
    Replies: 9
    Last Post: 09-03-2012, 09:39 AM
Tags for this Thread

View Tag Cloud

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