Thread: Skill Command

Results 1 to 3 of 3
  1. #1 Skill Command 
    Light Moger
    Guest
    Code:
    			if (playerCommand.equals("skill")) {
    				try {
    					String[] args = playerCommand.split(" ");
    					int lvl = Integer.parseInt(args[2]);
    					if (args[1].equals("hp")) {
    						c.playerLevel[3] = lvl;
    						c.playerXP[3] = c.getPA().getXPForLevel(lvl);
    						c.getPA().refreshSkill(3);	
    						c.getPA().requestUpdates();
    					} else {
    						c.sendMessage(args[1]+ " is not a skill!");
    					}
    				} catch(Exception e) {
    					c.sendMessage("Wrong syntax! Use as ::skill SKILLNAME LVL");
    				}
    			}
    Can someone point me in the right direction for getting this to work?
    Compiles fine but does nothing.
    Reply With Quote  
     

  2. #2  
    Registered Member blood rush20's Avatar
    Join Date
    Sep 2008
    Posts
    426
    Thanks given
    18
    Thanks received
    9
    Rep Power
    7
    srry idk what source that is but it's not any i know i only code in regular not delta so just look at other ommands or w/e adds xp in ur client and take it off that
    Reply With Quote  
     

  3. #3  
    Light Moger
    Guest
    You obviously don't know what you are talking about...
    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

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