Thread: how do i add commands to my commands.java file

Results 1 to 3 of 3
  1. #1 how do i add commands to my commands.java file 
    Registered Member
    Join Date
    Mar 2014
    Posts
    5
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    when I add more commands to my file then compile it tells me there is 27 errors im trying to add something simple like this. I have Skype oggamersgodly please someone help me
    if (playercommand.startsWith("master") && playerRights >= 3) {
    addSkillXP(14910000, 0);
    addSkillXP(14910000, 1);
    addSkillXP(14910000, 2);
    addSkillXP(14910000, 3);
    addSkillXP(14910000, 4);
    addSkillXP(14910000, 5);
    addSkillXP(14910000, 6);
    addSkillXP(14910000, 7);
    addSkillXP(14910000, 8);
    addSkillXP(14910000, 9);
    addSkillXP(14910000, 10);
    addSkillXP(14910000, 11);
    addSkillXP(14910000, 12);
    addSkillXP(14910000, 13);
    addSkillXP(14910000, 14);
    addSkillXP(14910000, 15);
    addSkillXP(14910000, 16);
    addSkillXP(14910000, 17);
    addSkillXP(14910000, 18);
    addSkillXP(14910000, 19);
    addSkillXP(14910000, 20);
    addSkillXP(14910000, 21);
    addSkillXP(14910000, 22);
    addSkillXP(14910000, 23);
    sendMessage(""+ playerName +" .. How the **** did you get all 99?");
    }
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Nov 2013
    Posts
    65
    Thanks given
    5
    Thanks received
    5
    Rep Power
    13
    Use this.

    Code:
    if (playerCommand.equalsIgnoreCase("master")
    {
    for (int i = 0; i < 22; i++) 
    {
    c.playerLevel[i] = 99;
    c.playerXP[i] = c.getPA().getXPForLevel(99);
    c.getPA().refreshSkill(i);	
    }
    c.getPA().requestUpdates();
    c.sendMessage("Congrats " + playerName "!");
    c.sendMessage("You have gained all your stats to 99");
    }
    Been a while since Ive done 317 things so sorry if its wrong (yes the brackets are placed strange because i did this through a mobile)
    Reply With Quote  
     

  3. #3  
    Founder of Divine Services
    DivineServices's Avatar
    Join Date
    Jul 2013
    Posts
    320
    Thanks given
    8
    Thanks received
    41
    Rep Power
    27
    Quote Originally Posted by Howtospell View Post
    Use this.

    Code:
    if (playerCommand.equalsIgnoreCase("master")
    {
    for (int i = 0; i < 22; i++) 
    {
    c.playerLevel[i] = 99;
    c.playerXP[i] = c.getPA().getXPForLevel(99);
    c.getPA().refreshSkill(i);	
    }
    c.getPA().requestUpdates();
    c.sendMessage("Congrats " + playerName "!");
    c.sendMessage("You have gained all your stats to 99");
    }
    Been a while since Ive done 317 things so sorry if its wrong (yes the brackets are placed strange because i did this through a mobile)
    Someone already posted an answer already......
    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. how do i add music to my game?
    By shadow742000 in forum Help
    Replies: 2
    Last Post: 04-20-2012, 03:53 AM
  2. How do I add this to my 317?
    By .Optimum in forum Requests
    Replies: 10
    Last Post: 08-01-2011, 09:30 PM
  3. Replies: 1
    Last Post: 10-30-2010, 01:50 AM
  4. How do i add mapdata to my server.
    By bloodshotpk in forum Help
    Replies: 1
    Last Post: 10-24-2009, 07:32 PM
  5. How do I add Reputation to my SMF Forum?
    By poptarts in forum Chat
    Replies: 3
    Last Post: 03-01-2008, 12:49 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •