Thread: [pi] different experience modes easy,medium,hard and extreme

Page 1 of 2 12 LastLast
Results 1 to 10 of 18
  1. #1 [pi] different experience modes easy,medium,hard and extreme 
    Registered Member
    Join Date
    Nov 2011
    Posts
    4
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    [size=14pt]Different modes[/size]

    Well what are we exactly adding is Different exp modes.
    - Easy 5K xp rate
    - medium 500xp rate hit higher then easy
    - Hard 50 xp rate, hit higher then easy and medium + infinity prayer
    - Extreme 10 xp rate, hit higher then easy,medium,hard + infinity prayer

    Now let's start.
    First we are going to add that the mode will save if u click it.
    We going to add the save method in playersave.java
    First search for
    Code:
    						p.playerRights = Integer.parseInt(token2);
    And add this under
    Code:
    } else if (token.equals("easyMode")) {
    	p.easyMode = Boolean.parseBoolean(token2);
    } else if (token.equals("mediumMode")) {
    	p.mediumMode = Boolean.parseBoolean(token2);
    } else if (token.equals("hardMode")) {
    	p.hardMode = Boolean.parseBoolean(token2);
    } else if (token.equals("extremeMode")) {
    	p.extremeMode = Boolean.parseBoolean(token2);
    } else if (token.equals("finishTut")) {
    	p.finishedTut = Boolean.parseBoolean(token2);
    Now search for
    Code:
    			characterfile.write("character-rights = ", 0, 19);
    under the newline add this.
    Code:
       characterfile.write("easyMode = ", 0, 11);
    	    characterfile.write(Boolean.toString(p.easyMode), 0, Boolean.toString(p.easyMode).length());
                characterfile.newLine();
                characterfile.write("mediumMode = ", 0, 13);
    	    characterfile.write(Boolean.toString(p.mediumMode), 0, Boolean.toString(p.mediumMode).length());
                characterfile.newLine();
                characterfile.write("hardMode = ", 0, 11);
    	    characterfile.write(Boolean.toString(p.hardMode), 0, Boolean.toString(p.hardMode).length());
                characterfile.newLine();
                characterfile.write("extremeMode = ", 0, 14);
    	    characterfile.write(Boolean.toString(p.extremeMode), 0, Boolean.toString(p.extremeMode).length());
                characterfile.newLine();
    	    characterfile.write("finishTut = ", 0, 12);
    	    characterfile.write(Boolean.toString(p.finishedTut), 0, Boolean.toString(p.finishedTut).length());
                characterfile.newLine();
    The Finishedtut will make the player can't walk when selecting you will see it later this code.
    This code will make 4 lines in you're character map like
    Easymode = false
    mediumMode = false
    HardMode = false
    ExtremeMode = False
    When you select a code when u login the false of the mode that u chosed gonna be = true
    Save and close.
    Now we gonna decleare the Finnishtut and the modes in player.java
    If u don't do this u will get errors.
    This part is needed so it can read the codes.
    Go to player.java and add these
    Code:
    public boolean finishedTut;
    public boolean easyMode, mediumMode, hardMode, extremeMode;
    save and close.
    Now we are going to add that hard mode and extreme mode doesn't lose prayer only by smithing or soulsplit

    ok search in client.java for this.
    This will make it so dialogue 850 ( the dialogue with the options) shows up you can't walk
    And the declaring os easymode || MediumMode above prayerdrain
    Will be that easymode and mediumode prayer goes down like normal and hard and extreme would get infinity prayer.
    search for
    Code:
    			getPA().handleWeaponStyle();
    above it add
    Code:
    				if (!finishedTut) {	
    				getDH().sendDialogues(850, -1);
    				}
    Code:
    getFishing().FishingProcess();
    and under that add this
    Code:
    if (easyMode || mediumMode)
    So it would look like this
    Code:
    		getFishing().FishingProcess();
    		if (easyMode || mediumMode)
    			getCombat().handlePrayerDrain();
    Save and close
    Now we are adding the dialogue on login so where u can chose you're options
    go to dialoguehandler.java and add this
    Code:
    case 850:
    	sendOption4("Easy Mode 5000 xp rate", "Medium Mode 500 xp rate", "Hard Mode 50 xp rate", "Extreme Mode 10 xp rate");
    c.dialogueAction = 850;
    break;
    save and close
    Now we gonna add so you can click on the rates and it will save.
    go to clickingbuttons.java and search for
    c.finishedTut = true;
    This means that when u click the option it will change in you character map to true so you able to walk.
    Code:
    case 9178
    add this under it
    Code:
    	if (c.dialogueAction == 850) {
    if (System.currentTimeMillis() - c.lastButton > 600) {
    		c.easyMode = true;
    c.finishedTut = true;
    c.getPA().removeAllWindows();
    c.lastButton = System.currentTimeMillis();
    }
    }
    then search for
    Code:
    case 9179
    add this under it
    Code:
    if (c.dialogueAction == 850) {
    if (System.currentTimeMillis() - c.lastButton > 600) {
    		c.mediumMode = true;
    c.finishedTut = true;
    c.getPA().removeAllWindows();
    c.lastButton = System.currentTimeMillis();
    }
    }
    then search for
    Code:
     case 9180
    add this under it
    Code:
    if (c.dialogueAction == 850) {
    if (System.currentTimeMillis() - c.lastButton > 600) {
    		c.hardMode = true;
    c.finishedTut = true;
    c.getPA().removeAllWindows();
    c.lastButton = System.currentTimeMillis();
    }
    }
    Then search for
    Code:
    case 9181
    under it add this
    Code:
    if (c.dialogueAction == 850) {
    if (System.currentTimeMillis() - c.lastButton > 600) {
    		c.extremeMode = true;
    c.finishedTut = true;
    c.getPA().removeAllWindows();
    c.lastButton = System.currentTimeMillis();
    }
    }
    save and close
    i explain the code.
    (c.dialogueAction == 850) {
    This means what dialogue will come up so it's 850.
    now we gonna add the different experience rate.
    Go to combatassistant.java and add this above
    Code:
    slayerreq
    Code:
    	private int combatExp() {
    	int amount = 0;
    	if (c.easyMode) {
    		amount = 5000;
    	} else if (c.mediumMode) {
    		amount = 500;
    	} else if (c.hardMode) {
    		amount = 50;
    	} else if (c.extremeMode) {
    		amount = 10;
    	}
    		return amount;
    	}
    The amount is the experience that u will get each hit.
    you can change it if you want.

    Now we gonna add that each mode hit a little bit better.

    Search in combatassistant.java for
    Code:
    		if(c.prayerActive[25]) {
    			strength += (int)(lvlForXP * .23);
    		}
    add under that add this
    Code:
    		if (c.easyMode) {
    			strength += (int) (lvlForXP * .03);
    		} else if (c.mediumMode) {
    			strength += (int) (lvlForXP * .06);
    		} else if (c.hardMode) {
    			strength += (int) (lvlForXP * .09);
    		} else if (c.extremeMode) {
    			strength += (int) (lvlForXP * .12);
    		}
    lvlforxp means how much higher you will hit by the mode that you have selected easy to change.
    save and close
    Now for the last part go to walking.java
    This will make so you can't walk when you select the mode.
    Add this in walking.java
    Code:
    		if (!c.finishedTut) {
    			c.sendMessage("You must first select a difficulty mode.");
    return; 
    }
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Jan 2010
    Posts
    466
    Thanks given
    259
    Thanks received
    77
    Rep Power
    43
    No.

    Code:
    } else if (token.equals("difficulty")) {
    	p.difficulty = Boolean.parseBoolean(token2);
    Code:
       characterfile.write("difficulty = ", 0, 13);
    	    characterfile.write(Boolean.toString(p.difficulty), 0, Boolean.toString(p.difficulty).length());
                characterfile.newLine();
    Code:
    switch (difficulty) {
    
    case 0:
    strength += (int) (lvlForXP * .03);
    break;
    
    case 1:
    strength += (int) (lvlForXP * .06);
    break;
    
    case 2:
    strength += (int) (lvlForXP * .09);
    break;
    
    case 3:
    strength += (int) (lvlForXP * .12);
    break;
    
    }

    etc, etc, etc, etc.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Jun 2011
    Posts
    384
    Thanks given
    27
    Thanks received
    15
    Rep Power
    11
    Already been release and this is fucking easy.
    Reply With Quote  
     

  4. #4  
    Registered Member

    Join Date
    Sep 2011
    Posts
    5,121
    Thanks given
    1,333
    Thanks received
    1,795
    Rep Power
    1731
    I believe this has already been released. Good job though.
    Retired from RSPS. Please don't message me for services, sales or help. Apologies.
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    May 2011
    Posts
    5
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    i need help putting this on my server
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Oct 2010
    Posts
    560
    Thanks given
    85
    Thanks received
    21
    Rep Power
    16
    Quote Originally Posted by javier503 View Post
    i need help putting this on my server
    to easy, you should do that on your own

    Spoiler for Rs3 Account:
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Jul 2012
    Posts
    114
    Thanks given
    27
    Thanks received
    17
    Rep Power
    11
    Quote Originally Posted by 2extreme4u View Post
    Already been release and this is fucking easy.
    You can talk, 95% of your threads are help threads.

    *Looks good man, the more the merrier.
    Reply With Quote  
     

  8. #8  
    Registered Member Glock's Avatar
    Join Date
    Aug 2012
    Age
    27
    Posts
    141
    Thanks given
    71
    Thanks received
    6
    Rep Power
    17
    looks good. thank you.
    Reply With Quote  
     

  9. #9  
    Donator


    Join Date
    May 2012
    Age
    26
    Posts
    2,473
    Thanks given
    400
    Thanks received
    279
    Rep Power
    131
    well when they choose extreme or whatever they stay at the normal xp...
    please help as soon as possible.
    also extreme and medium.. doesnt show up near thier name could u add that?
    it would be awesome
    Reply With Quote  
     

  10. #10  
    Registered Member
    Join Date
    Jun 2013
    Posts
    4
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Fail, Dont work..
    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. Creativescape easy and hard question
    By team b0 in forum Help
    Replies: 14
    Last Post: 06-20-2010, 03:16 PM
  2. Replies: 19
    Last Post: 01-19-2010, 01:10 AM
  3. Easy medium hard train
    By Shoes in forum Help
    Replies: 0
    Last Post: 12-05-2009, 10:29 PM
  4. [Easy/Medium]Command Request
    By Memoryz in forum Help
    Replies: 7
    Last Post: 07-17-2009, 12:49 AM
  5. Replies: 5
    Last Post: 05-09-2009, 11:06 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •