Thread: [PI] selectedSkill

Results 1 to 6 of 6
  1. #1 [PI] selectedSkill 
    Registered Member Joseph69's Avatar
    Join Date
    Sep 2012
    Posts
    293
    Thanks given
    45
    Thanks received
    20
    Rep Power
    56
    Does anyone have this method? I would really appreciate it if someone could send it to me.

    "selectedSkill "

    Thanks.
    Reply With Quote  
     

  2. #2  
    Registered Member Joseph69's Avatar
    Join Date
    Sep 2012
    Posts
    293
    Thanks given
    45
    Thanks received
    20
    Rep Power
    56
    Anyone have this method? Or know anything that I can replace it with?
    Reply With Quote  
     

  3. #3  
    Taking all OSGP donations at this time

    Deri's Avatar
    Join Date
    Apr 2014
    Age
    30
    Posts
    381
    Thanks given
    274
    Thanks received
    251
    Rep Power
    5000
    What is the method supposed to do?
    Reply With Quote  
     

  4. #4  
    Registered Member Joseph69's Avatar
    Join Date
    Sep 2012
    Posts
    293
    Thanks given
    45
    Thanks received
    20
    Rep Power
    56
    Quote Originally Posted by Derivative View Post
    What is the method supposed to do?
    Well i have this class but I don't got the 'selectedSkill' method.

    Code:
    package server.game.content;
    
    import server.game.entity.player.Client;
    
    
    public class ExperienceLamp {
    
    	final static int MULTIPLIER = 25;
    	
    	final static String[] name = 
    		{"Attack", "Defence", "Strength", "Hitpoints", "Ranged",
    		 "Prayer", "Magic", "Cooking", "Woodcutting", "Fletching",
    		 "Fishing", "Firemaking", "Crafting", "Smithing", "Mining",
    		 "Herblore", "Agility", "Thieving", "Slayer", "Farming",
    		 "Runecrafting"};
    	
    	public static void buttonClick(Client c, int button) {
    		if(c.getItems().playerHasItem(2528)) {
    			if(button != 20) {
    				c.getPA().setConfig(261, button);
    				c.getPA().sendFrame126("You have chosen: "+getSkillName(getSkillId(button - 1))+".",2810);
    				//c.getPA().sendFrame126((c.playerLevel[getSkillId(button - 1)] * 10) * MULTIPLIER+" - "+getSkillName(getSkillId(button - 1))+" Experience",2810);
    				//c.selectedSkill  = button - 1;
    			} else {
    				//if(c.selectedSkill != 1) {
    					c.getItems().deleteItem(2528,1);
    					c.getPA().closeAllWindows();
    					//showItem(c, 2528, "You recieve "+(c.playerLevel[c.selectedSkill] * 10) * MULTIPLIER+" "+getSkillName(getSkillId(c.selectedSkill))+" experience.");
    					//c.getPA().addSkillXP((c.playerLevel[c.selectedSkill] * 10) * MULTIPLIER, getSkillId(c.selectedSkill));
    					//c.selectedSkill = -1;
    				}
    			}
    		//} else {
    			//c.getPA().closeAllWindows();
    		}
    	//}
    	
    	public static void showInterface(Client c) {
    		//c.selectedSkill = -1;
    		c.getPA().setConfig(261, 0);
    		c.getPA().showInterface(2808);
    		c.getPA().sendFrame126("Choose the stat you wish to be advanced!",2810);
    	}
    	
    	private static int getSkillId(int button) {
    		switch(button) {
    		case 0://Attack
    			return 0;
    		case 1://Strength
    			return 2;
    		case 2://Range
    			return 4;
    		case 3://Mage
    			return 6;
    		case 4://Def
    			return 1;
    		case 5://HP
    			return 3;
    		case 6://Prayer
    			return 5;
    		case 7://Agility
    			return 16;
    		case 8://herblore
    			return 15;
    		case 9://Thieving
    			return 17;
    		case 10://Crafting
    			return 12;
    		case 11://RC
    			return 20;
    		case 12://SLAY
    			return 14;
    		case 13://FARM
    			return 13;
    		case 14://mining
    			return 10;
    		case 15://smith
    			return 7;
    		case 16://fish
    			return 11;
    		case 17://Cook
    			return 8;
    		case 18://Fm
    			return 9;
    		case 19://WC
    			return 18;
    		case 20://Fletch
    			return 19;
    		}
    		return -1;
    	}
    	
    	public static String getSkillName(int i) {
    		return name[i];
    	}
    	
    	public static void showItem(Client c, int item, String s1) {
    		c.getPA().sendFrame246(11860, 150, item);
    		c.getPA().sendFrame126(s1, 11861);
    		c.getPA().sendFrame164(11859);
    		c.nextChat = 0;
    	}
    	
    }
    Reply With Quote  
     

  5. #5  
    Taking all OSGP donations at this time

    Deri's Avatar
    Join Date
    Apr 2014
    Age
    30
    Posts
    381
    Thanks given
    274
    Thanks received
    251
    Rep Power
    5000
    Selectedskill is just an int. Just create it as an int in Client class and program it to read the skill in the Experiencelamp class
    Reply With Quote  
     

  6. Thankful user:


  7. #6  
    Registered Member Joseph69's Avatar
    Join Date
    Sep 2012
    Posts
    293
    Thanks given
    45
    Thanks received
    20
    Rep Power
    56
    Quote Originally Posted by Derivative View Post
    Selectedskill is just an int. Just create it as an int in Client class and program it to read the skill in the Experiencelamp class
    Thanks buddy, I don't know how I didn't get that lol.
    Reply With Quote  
     


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. Replies: 24
    Last Post: 05-11-2010, 11:57 AM
  2. Pi: π
    By Colby in forum Chat
    Replies: 7
    Last Post: 10-23-2009, 04:41 AM
  3. Some pi error??????
    By Oh my gawd in forum Help
    Replies: 20
    Last Post: 05-08-2009, 03:19 PM
  4. player item pi
    By Ishana in forum Help
    Replies: 4
    Last Post: 05-06-2009, 09:17 PM
  5. PI day!!!!!
    By HvSxTornado in forum Chat
    Replies: 5
    Last Post: 03-15-2009, 11:36 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
  •