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
    23
    Thanks given
    1
    Thanks received
    2
    Rep Power
    44
    i have send link to the file as it to long to send in code
    https://easyupload.io/1moq5v
    Reply With Quote  
     

  2. #12  
    RuneCasino


    Join Date
    Jul 2007
    Posts
    1,647
    Thanks given
    175
    Thanks received
    257
    Rep Power
    358
    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
    23
    Thanks given
    1
    Thanks received
    2
    Rep Power
    44
    Quote Originally Posted by Armo View Post
    Can you tell me the exact message that the green dragon one says?
    https://gyazo.com/c90fe06f21ad053930e2b2b1955b0dd7
    Reply With Quote  
     

  4. #14  
    Success is the worst teacher

    Santa Hat's Avatar
    Join Date
    Oct 2012
    Age
    27
    Posts
    3,334
    Thanks given
    807
    Thanks received
    1,185
    Rep Power
    190
    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


    Reply With Quote  
     

  5. #15  
    Registered Member
    Join Date
    Apr 2012
    Posts
    23
    Thanks given
    1
    Thanks received
    2
    Rep Power
    44
    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 https://gyazo.com/740a6ce8d2a0b53f56fd42a5758ed35e
    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
  •