Thread: Kill count isnt increasing properly

Results 1 to 3 of 3
  1. #1 Kill count isnt increasing properly 
    Registered Member Andrew's Avatar
    Join Date
    Nov 2008
    Posts
    2,890
    Thanks given
    612
    Thanks received
    207
    Rep Power
    551
    resolved
    Reply With Quote  
     

  2. #2  
    need java lessons
    Eclipse's Avatar
    Join Date
    Aug 2012
    Posts
    4,436
    Thanks given
    686
    Thanks received
    898
    Rep Power
    490
    Nvm.

    Quote Originally Posted by jerryrocks317 View Post
    i am 14 and have my own laptop im on almost 24/7 currently creating rsps lol so please get off my thread lol
    Reply With Quote  
     

  3. #3  
    Banned

    Join Date
    Dec 2011
    Posts
    967
    Thanks given
    234
    Thanks received
    208
    Rep Power
    0
    Yes, because you basically stating that if the array != null, then the KC will increase, which is wrong, you want to make it that if any NPC inside the array is the one being killed, then it gives you whatever rewards.

    In a nutshell, your basically saying this

    Code:
    int[] thisArray = {5, 2};
    if (thisArray != null)
    doMethod()
    And the array will never be null because it is given a proper set of values.

    You want it to loop through a set of given NPC Ids, most likely you want the IDs of all bandos NPCs, and call it like

    Code:
    int[] bandosNpc = {###, ###, ###};
    for (int j : bandosNpc) {
    if (j != null) {
    if (npc == j)
    appendRewards();
    }
    }
    If you want it to be an integer, you can basically do it like

    Code:
    int npcId = (int)mob;
    I'm not sure if that'll work, I'm sure theres something that already has the NPCs ID
    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. Kill count
    By Ishana in forum Tutorials
    Replies: 20
    Last Post: 11-21-2009, 05:10 PM
  2. God wars kill count
    By Ishana in forum Requests
    Replies: 2
    Last Post: 12-26-2008, 05:00 PM
  3. kill count frame
    By Kelvin in forum Configuration
    Replies: 28
    Last Post: 05-21-2008, 03:29 AM
  4. Teaching NPC Kill Counts
    By Newb 2341 in forum Tutorials
    Replies: 1
    Last Post: 12-20-2007, 02:55 PM
  5. Teaching NPC Kill Counts
    By Newb 2341 in forum Tutorials
    Replies: 4
    Last Post: 09-06-2007, 06:01 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
  •