Thread: [Defiance] Custom Rank Problems

Results 1 to 4 of 4
  1. #1 [Defiance] Custom Rank Problems 
    Registered Member
    Join Date
    Feb 2008
    Posts
    400
    Thanks given
    10
    Thanks received
    11
    Rep Power
    26
    Alright, Well I made a rank named 'defiance' and it's not working I'm not sure what I did wrong here's what I've did.

    In Player.java:
    Code:
    public int defiance = 0;
    In Client.java:
    Code:
    					} else if (token.equals("character-defiance")) {
    						defiance = Integer.parseInt(token2);
    
    			characterfile.newLine();
    			characterfile.write("character-defiance = ", 0, 21);
    			characterfile.write(Integer.toString(defiance), 0, Integer.toString(defiance).length());
    			characterfile.newLine();
    
    if(defiance == 1){
    sM("Welcome back to Project Defiancy, "+playerName+".");
    sM("Thanks for donating, to Project Defiancy. We appreciate it!");
    sM("Unfortunately, Don't expect much in BETA, but expect more soon.");
    sM("The Home will be eventually changed to Varrock.");
    sM("Only 1 NPC has drops (Men) Drops have been deleted and will be remade.");
    }
    
    if (command.startsWith("food") && defiance == 1 && !inCombat) {
    addItem(385, 40);
    sM("You recieve 40 sharks.");
    }
    if (command.startsWith("darea") && defiance == 1 && !inCombat) {
    addItem(379, 20);
    triggerTele(2827, 2995, 0);
    sM("You teleport to the Defiance Area.");
    }
    
    
                    if (defiance == 1) {
                        titles = "[Defiance] ";
                    }
    Theirs everything I've added, the commands don't work the Welcome message doesn't show, Everything's right, but what's wrong? Lol :\.
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Feb 2008
    Posts
    400
    Thanks given
    10
    Thanks received
    11
    Rep Power
    26
    Help ,Please

    Sorry for double post but I need this :\
    Reply With Quote  
     

  3. #3  
    Registered Member
    Chiief's Avatar
    Join Date
    Jun 2010
    Posts
    1,546
    Thanks given
    69
    Thanks received
    238
    Rep Power
    611
    What do you mean its not working?
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Feb 2008
    Posts
    400
    Thanks given
    10
    Thanks received
    11
    Rep Power
    26
    Code:
    Theirs everything I've added, the commands don't work the Welcome message doesn't show, Everything's right, but what's wrong? Lol :\.
    Meaning: I Give myself Defiance - 1 in Character logs.. I relog. I log onto the server the Welcome message doesn't show
    Code:
    if(defiance == 1){
    sM("Welcome back to Project Defiancy, "+playerName+".");
    sM("Thanks for donating, to Project Defiancy. We appreciate it!");
    sM("Unfortunately, Don't expect much in BETA, but expect more soon.");
    sM("The Home will be eventually changed to Varrock.");
    sM("Only 1 NPC has drops (Men) Drops have been deleted and will be remade.");
    }
    It shows the regular one, which means that the rank is obviously not working..
    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
  •