Thread: NPC's and ints

Results 1 to 3 of 3
  1. #1 NPC's and ints 
    Extreme Donator


    Join Date
    Mar 2009
    Posts
    1,461
    Thanks given
    111
    Thanks received
    184
    Rep Power
    79
    I'm trying to make it so when you kill an npc it takes

    Code:
    killer.waterfiends = 50;
    down to

    Code:
    killer.waterfiends = 49;
    This is what I have.

    Code:
    	if (id == 5361 && killer.waterfiends > 0) {
    	killer.getSkills().addXp(Skills.SLAYER, 6000);
    	killer.waterfiends = -1;
    	return;
    
    }
    Currently when I kill one it doesn't go down to 49. It goes to -1 is what I'm guessing. What do I put instead of:

    Code:
    	killer.waterfiends = -1;
    ?

    Thanks.
    Attached image
    Quote Originally Posted by MaxXi View Post
    Your combat is so awsome that i almost forgot its the combat matrix coded.
    Quote Originally Posted by twobrosplay View Post
    Try allowing the batch file through your firewall?
    Quote Originally Posted by SS_Alophonse View Post
    i have no life u say ha anything u say kid.i doubt u can even get a girlfriend
    i bet u cant even code anything.
    Reply With Quote  
     

  2. #2  
    Registered Member
    Sirloin's Avatar
    Join Date
    Feb 2012
    Age
    27
    Posts
    782
    Thanks given
    186
    Thanks received
    175
    Rep Power
    105
    Code:
    killer.waterfiends--;
    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    The internet's reject
    Andy's Avatar
    Join Date
    Jun 2007
    Age
    33
    Posts
    4,371
    Thanks given
    148
    Thanks received
    1,522
    Rep Power
    3133
    killer.waterfiends -= 1;
    killer.waterfiends--;
    What am I watching now?

    Reply With Quote  
     

  5. Thankful user:



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. Addin npc ints
    By gazndricky in forum Help
    Replies: 0
    Last Post: 09-26-2011, 01:35 PM
  2. [PI] npc ints help :(
    By storyscape in forum Help
    Replies: 5
    Last Post: 10-17-2010, 01:17 AM
  3. Renaming NPC INTS
    By Rainaka in forum Requests
    Replies: 10
    Last Post: 07-15-2010, 12:19 AM
  4. loading NPC ints again
    By mige5 in forum Help
    Replies: 0
    Last Post: 02-02-2010, 10:19 PM
  5. npc recolour ints
    By Bando in forum Help
    Replies: 0
    Last Post: 08-13-2009, 08:15 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
  •