Thread: adding total killed kill count!

Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15
  1. #11  
    Registered Member
    Join Date
    Apr 2012
    Posts
    21
    Thanks given
    0
    Thanks received
    2
    Rep Power
    32
    i have send link to the file as it to long to send in code
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  2. #12  
    RuneCasino


    Join Date
    Jul 2007
    Posts
    1,618
    Thanks given
    169
    Thanks received
    222
    Rep Power
    326
    Can you tell me the exact message that the green dragon one says?
    Reply With Quote  
     

  3. #13  
    Registered Member
    Join Date
    Apr 2012
    Posts
    21
    Thanks given
    0
    Thanks received
    2
    Rep Power
    32
    Quote Originally Posted by Armo View Post
    Can you tell me the exact message that the green dragon one says?
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  4. #14  
    Success is the worst teacher

    Santa Hat's Avatar
    Join Date
    Oct 2012
    Age
    24
    Posts
    3,337
    Thanks given
    801
    Thanks received
    1,185
    Rep Power
    189
    I think it may have something to do with the name of the npc being incorrect

    Code:
    protected void increaseKillStatistics(Player killer, String name) {
    System.out.println("name: " + name);
    		if (killer.increaseKillStatistics(name, false) != -1) {
    			killer.sendMessage("You've killed a total of " + Colors.red + killer.increaseKillStatistics(name, true) + ""
    					+ "</col> x " + Colors.red + name + "'s</col>.", true);
    		}
    		int amount = killer.increaseKillStatistics(name, false);
    		if (amount % 100 == 0 && amount != 0) {
    			World.sendWorldMessage(Colors.gold + "<img=6> [Kill Count] </col>" + Colors.red
    					+ Utils.formatPlayerNameForDisplay(killer.getDisplayName()) + "</col> has reached " + amount + " "
    					+ Colors.red + Utils.formatPlayerNameForDisplay(name) + " </col>kills milestone! " + "<img=6>",
    					false);
    		}
    Try add the print line to the method, see what it prints out when you kill the slime.

    Also can you share the "getKillStatistics" method in the player class

    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  5. #15  
    Registered Member
    Join Date
    Apr 2012
    Posts
    21
    Thanks given
    0
    Thanks received
    2
    Rep Power
    32
    Quote Originally Posted by Santa Hat View Post
    I think it may have something to do with the name of the npc being incorrect

    Code:
    protected void increaseKillStatistics(Player killer, String name) {
    System.out.println("name: " + name);
    		if (killer.increaseKillStatistics(name, false) != -1) {
    			killer.sendMessage("You've killed a total of " + Colors.red + killer.increaseKillStatistics(name, true) + ""
    					+ "</col> x " + Colors.red + name + "'s</col>.", true);
    		}
    		int amount = killer.increaseKillStatistics(name, false);
    		if (amount % 100 == 0 && amount != 0) {
    			World.sendWorldMessage(Colors.gold + "<img=6> [Kill Count] </col>" + Colors.red
    					+ Utils.formatPlayerNameForDisplay(killer.getDisplayName()) + "</col> has reached " + amount + " "
    					+ Colors.red + Utils.formatPlayerNameForDisplay(name) + " </col>kills milestone! " + "<img=6>",
    					false);
    		}
    Try add the print line to the method, see what it prints out when you kill the slime.

    Also can you share the "getKillStatistics" method in the player class
    i got it working nicely now it was becuz that npc had no drop table i added drop table and it worked [Only registered and activated users can see links. ]
    Reply With Quote  
     

Page 2 of 2 FirstFirst 12

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. [PI] adding xp when killing a player
    By Toxicx in forum Help
    Replies: 2
    Last Post: 12-07-2013, 11:11 PM
  2. Players total/average combat counting
    By Bubletan in forum Help
    Replies: 0
    Last Post: 08-31-2012, 10:05 PM
  3. adding total level to my 602 skilltab
    By OodlesOfNoodles in forum Help
    Replies: 0
    Last Post: 01-23-2012, 12:12 PM
  4. adding xp to kills and teleports
    By Pirate in forum Help
    Replies: 2
    Last Post: 09-06-2011, 07:30 PM
  5. [PI]Adding exp for killing a player
    By Ed17 in forum Help
    Replies: 4
    Last Post: 07-22-2011, 07:13 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
  •