Thread: Making All Commands [Explained]

Results 1 to 9 of 9
  1. #1 Making All Commands [Explained] 
    Registered Member
    JakobWolthers's Avatar
    Join Date
    Aug 2007
    Age
    26
    Posts
    616
    Thanks given
    16
    Thanks received
    3
    Rep Power
    84
    Purpose: i make this tut for all new coders, so exp. coders don't flame me

    Difficulty: -1 (Too easy)

    Assumed Knowledge: C+P (Copy and Paste)

    Server Base: Testscape (works on all sources)

    Classes Modified: Client.java

    Procedure:

    Step 1: First off all open client.java and hit CTRL+F (search) and type imgay
    and you should see something like this
    Code:
    command.replaceAll("no-ip", "imgay");
    command.replaceAll("servegame", "imgay");
    command.trim();
    there you can add all your commands below
    Code:
    command.replaceAll("no-ip", "imgay");
    command.replaceAll("servegame", "imgay");
    command.trim();
    Step 2: There is different types of portals
    Teleport portals:
    this portals teleport you to another place

    XP portals:
    this type portals give you Xp

    Item Portals:
    this type portals give you items

    Step 3:
    First off all i will show you the codes to the portals and explain later

    the basically code to teleport portals is:
    Code:
    case [PORTAL ID]:
    teleportToX = [COORD X]
    teleportToY= [COORD Y]
    break;
    [PORTAL ID] is the id for the portal you choose

    [COORD X] is the X coords to the place you like to teleport to

    [COORD Y] is the Y coords to the place you like to teleport to

    XP Portal:
    Code:
    case [PORTAL ID]:
    addSkillXP((987*playerLevel[6]), 6);
    break;
    [PORTAL ID] is the id for the portal you choose

    [6] is which skill you get 987xp in ([6] is for magic)

    Here is the playerLevel List:
    Code:
    playerLevel[0] = Attack
    playerLevel[1] = Defence
    playerLevel[2] = Strength
    playerLevel[3] = Hitpoints
    playerLevel[4] = Range
    playerLevel[5] = Prayer
    playerLevel[6] = Magic
    playerLevel[7] = Cooking
    playerLevel[8] = WoodCutting
    playerLevel[9] = Fletching
    playerLevel[10] = Fishing
    playerLevel[11] = Firemaking
    playerLevel[12] = Crafting
    playerLevel[13] = Smithing
    playerLevel[14] = Mining
    playerLevel[15] = Herblore
    playerLevel[16] = Agility
    playerLevel[17] = Thieving
    playerLevel[18] = Slayer
    playerLevel[19] = Farming
    playerLevel[20] = Runecrafting
    Here is code to the Item Portal:

    case [PORTAL ID]:
    addItem(####,1);
    break;

    [PORTAL ID] is the id for the portal you have choosen

    [####] stand for the item ID of the item the portals give you when u click

    [1] stands for the amount of the item

    Here comes the Item and Object list for portals

    Here is the Item list:
    Code:
    Look in Attachment
    Here is the ID's for the portals:
    Code:
    Look in attachment
    Step 4:
    Close and save and then compile
    post any errors

    NOTE: if i see some1 leech this i remove and plz post comments

    PM for the password to attachment
    Credits: 100% me
    [Only registered and activated users can see links. ]
     

  2. #2  
    Registered Member
    AlexMason's Avatar
    Join Date
    Aug 2007
    Age
    25
    Posts
    1,199
    Thanks given
    17
    Thanks received
    26
    Rep Power
    98
    I'm sorry but your attempt to teach people to make commands has failed please correct it or learn some more ways of programing because this just looks like a sloppy tutorial or how to add portals

     

  3. #3  
    Registered Member
    JakobWolthers's Avatar
    Join Date
    Aug 2007
    Age
    26
    Posts
    616
    Thanks given
    16
    Thanks received
    3
    Rep Power
    84
    it's a guide how to make portals to do something
    [Only registered and activated users can see links. ]
     

  4. #4  
    Registered Member
    Join Date
    Jul 2007
    Posts
    358
    Thanks given
    0
    Thanks received
    0
    Rep Power
    26
    Nice (too short)
    ~Violated Removed
     

  5. #5  
    Registered Member
    fabjan's Avatar
    Join Date
    Jul 2007
    Age
    25
    Posts
    552
    Thanks given
    0
    Thanks received
    0
    Rep Power
    101
    u sayd this is for beginning coders so exp coders dont flame me..
    i dont agree with that sentence in a few ways
    first of all, if you dont want ppl flame at you, don't give them a reason then..
    second, you are still a noob at coding, how are you supposed to teach other noobs something.. you just confuse them

    about ur tut:
    there are no such things as teleport portals, xp portals and item portals
    they are just objects which can be given a certain reaction when you for example click on them..
    please go code a couple of months on your own, learn things and try to pass those information you gained to the community, but only when you're absolutely sure it is true, and dont come up with xp portals and item portals cuz we aren't at the elementary school, are we..?

    ~fabjan

    p.s. if you need any help with something, u can pm me, because the text above is supportive and not to flame your not really good tutorial..
    Please vote:
    [Only registered and activated users can see links. ]
    btb.servegame.com:
     

  6. #6  
    Jordzeh
    Guest
    Mod close this, ive made a thread exsactly like this..
     

  7. #7  
    Registered Member
    JakobWolthers's Avatar
    Join Date
    Aug 2007
    Age
    26
    Posts
    616
    Thanks given
    16
    Thanks received
    3
    Rep Power
    84
    Veteran:
    ok Veteran show prof.... today i make this because i was bored. so i don't leech from you

    Fabjan:

    i know i'm not so good to english so i know it but i tried
    [Only registered and activated users can see links. ]
     

  8. #8  
    Registered Member
    Etnies's Avatar
    Join Date
    Nov 2007
    Age
    23
    Posts
    710
    Thanks given
    11
    Thanks received
    29
    Rep Power
    118
    Good job on it.. Don't worry its pretty harsh here for commands
    ~Etnies
    -Removed
     

  9. #9  
    Registered Member
    JakobWolthers's Avatar
    Join Date
    Aug 2007
    Age
    26
    Posts
    616
    Thanks given
    16
    Thanks received
    3
    Rep Power
    84
    ty 4 all comments
    [Only registered and activated users can see links. ]
     


Thread Information
Users Browsing this Thread

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

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