Thread: Requirements for yell command! helps stop advertising!

Page 1 of 6 123 ... LastLast
Results 1 to 10 of 53
  1. #1 Requirements for yell command! helps stop advertising! 
    Braiton
    Guest
    Tutorial description: making it so you need 70 woodcutting in order to use ::yell ingame, so when syi's come on.. they are just wasting their time.


    Length: short, but very useful.

    Difficulty: 1/10 or 2/10

    Assumed knowledge: Searching through client.java (Control F)

    Files Modified: client.java


    For the first step we are going to make a backup of client.java, this is so if you mess up you can easily fix the problem.. but i know this will work no doubt, i ripped it right out of my files.


    K lets begin.


    Open up client.java

    Search for :

    Code:
    (command.startsWith("yell")
    ---- NOTE: you can probably search for yell but... my way was the direct link.

    Now you'll see your yell command

    Replace it with this..

    Code:
    } else if (command.startsWith("yell") && command.length() > 5) {
    		if (playerLevel[8] > 70) {
    			PlayerHandler.messageToAll = playerName+ " - " +command.substring(5);	 
    
    			  } if (playerLevel[8] < 69) {
    				sendMessage("You need a Woodcutting level of 70 in order to use the yell command.");
    		}
    Now what this does is if your 70 woodcutting you can use the yell command..

    Then where it says if (playerLevel[8] < 69) { this means that if your lvl 69 woodcutting or under you can't use yell and a message will be sent saying you need a woodcutting level of 70 in order to use the yell command.

    NOTE: you can do this with any level, defence.. combat.. etc etc etc

    Here are a list of player levels that you can use for this.. Note: the 8 in the command is woodcutting


    LIST:
    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

    [end of the list]

    K if you want to do it with combat do a code like this

    if (combatlvl > 70) {

    or something along the lines of that.. it has to do with what voids and type of server source you have..


    And since people love server photography:



    If your 69 woodcutting or lower: you'll get this message:



    If your lvl 70 or above you'll be able to send the message perfectly.






    Hope i was helpful in this

    ~Braiton
    Reply With Quote  
     

  2. #2  
    Registered Member Rancid's Avatar
    Join Date
    Oct 2008
    Posts
    43
    Thanks given
    0
    Thanks received
    0
    Rep Power
    14
    Wow this is actually nice did you make?
    Reply With Quote  
     

  3. #3  
    Braiton
    Guest
    yes i did and thankyou.
    Reply With Quote  
     

  4. #4  
    Registered Member AcHoZeN™'s Avatar
    Join Date
    Oct 2008
    Posts
    684
    Thanks given
    0
    Thanks received
    7
    Rep Power
    47
    Quote Originally Posted by Rancid View Post
    Wow this is actually nice did you make?
    LOL this is way to simple.
    Reply With Quote  
     

  5. #5  
    Registered Member

    Join Date
    Nov 2007
    Posts
    1,087
    Thanks given
    4
    Thanks received
    28
    Rep Power
    624
    Quote Originally Posted by Xx Ice-CrEam Xx View Post
    LOL this is way to simple.
    But hes done it, so shut up.
    Reply With Quote  
     

  6. #6  
    Braiton
    Guest
    it may be simple, but its very good for ppl, and a lot of ppl use this.
    Reply With Quote  
     

  7. #7  
    Since '06

    Ayton's Avatar
    Join Date
    Dec 2006
    Age
    25
    Posts
    1,417
    Thanks given
    63
    Thanks received
    36
    Discord
    View profile
    Rep Power
    327
    Or make a timer for it
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  8. #8  
    Braiton
    Guest
    yeh.. timers work.. but thats annoying for ppl who play..you can make it like if(combat >= 10) then make it yell, and if not.. make it say " you need a combat level of 10 to use yell"
    Reply With Quote  
     

  9. #9  
    Registered Member
    [М]ęŋąċę©'s Avatar
    Join Date
    Apr 2008
    Posts
    409
    Thanks given
    8
    Thanks received
    2
    Rep Power
    133
    where are pildom's credits? he did make it you fucking noob leecher

    [Only registered and activated users can see links. ]
    Quote Originally Posted by Downfall™ View Post
    roflz.this is kinda stupid.syis are just retarded cause all i do is send a trojan to who ever uses it lolz its not hard 2 figure out whos doing it
    Reply With Quote  
     

  10. #10  
    Braiton
    Guest
    menace i've never even seen that before.. and i made this tut on silabs weeks ago.. so he must of leeched me..

    PROOF:

    [Only registered and activated users can see links. ]

    That kid u said i leeched off of.. he posted on november 5th i posted on november 1st on silabs.. look at the link above..

    i never leech you ass, false accusationer.. Next time do research before you are going to say someone leeched..
    Reply With Quote  
     

Page 1 of 6 123 ... LastLast

Thread Information
Users Browsing this Thread

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


User Tag List

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
  •