Thread: Killcount

Results 1 to 3 of 3
  1. #1 Killcount 
    Registered Member
    Join Date
    Jul 2018
    Posts
    19
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    I am going to create a minigame for my rsps and this minigame needs a killcount. I need help with learning how to add a killcount only for a specific npc. can anyone help me out?
    Reply With Quote  
     

  2. #2  
    ¯\_(ツ)_/¯


    Join Date
    Jul 2014
    Posts
    1,803
    Thanks given
    928
    Thanks received
    550
    Rep Power
    299
    Look for where your server handles npc drops. When it drops the items, add a killcount to your player.
    Reply With Quote  
     

  3. #3  
    Extreme Donator


    Join Date
    Aug 2016
    Posts
    597
    Thanks given
    109
    Thanks received
    96
    Rep Power
    254
    So if you have a minigame attributes class, then you could set a kill counter in there so it's individualized versus for everyone otherwise in your minigame class you can just make a normal counter. private int counter = 0; and then you can make some getters and setters. What base are you using? For ruse you can go to NPCDeathTask and be like if(npc.getId() == THE_NPC_ID) MY_MINIGAME.setKillCount(getKillCount() + 1); or player.getMinigameAttributes().getMyMinigame().set KillCount(getKillCount() + 1);
    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. creating a "point" system[E.G. killcount, etc]
    By Rune Arc in forum Tutorials
    Replies: 23
    Last Post: 06-10-2009, 11:39 PM
  2. [508] Godwars killcount
    By Nikki in forum Configuration
    Replies: 16
    Last Post: 06-03-2009, 09:45 PM
  3. Killcount points
    By lukas265 in forum Help
    Replies: 12
    Last Post: 03-26-2009, 11:23 AM
  4. GodWars Killcount
    By Enjoi in forum Requests
    Replies: 11
    Last Post: 01-21-2009, 04:04 PM
  5. [RJ] Basic KillCounter (Barrows?)
    By Inside Sin in forum Tutorials
    Replies: 21
    Last Post: 05-26-2008, 12:24 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •