Thread: [pi] making npcs give points on kill

Results 1 to 6 of 6
  1. #1 [pi] making npcs give points on kill 
    Get On My Level

    ItsGoml's Avatar
    Join Date
    Dec 2010
    Posts
    643
    Thanks given
    11
    Thanks received
    79
    Rep Power
    391
    Hi just wondering how to make a npc give a certaint amount of points when u kill it. Thanks!
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Dec 2010
    Posts
    536
    Thanks given
    61
    Thanks received
    25
    Rep Power
    4
    search it on the forums.
    There's been an achievement system released a few weeks ago, it's on the first 3 pages..
    Reply With Quote  
     

  3. #3  
    Get On My Level

    ItsGoml's Avatar
    Join Date
    Dec 2010
    Posts
    643
    Thanks given
    11
    Thanks received
    79
    Rep Power
    391
    Quote Originally Posted by Say Wut? View Post
    search it on the forums.
    There's been an achievement system released a few weeks ago, it's on the first 3 pages..
    thanks but thats not what i was looking for. Im just looking for a way to give some kid points when he kills an npc.
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Dec 2010
    Posts
    536
    Thanks given
    61
    Thanks received
    25
    Rep Power
    4
    Oh, thought that system would give you points for killng one
    o,o
    Just look for the gwd monsters, that give u killcount when you kill them.
    Then make new token in playerSave.
    and make it save to that variable :0
    Reply With Quote  
     

  5. #5  
    Banned imsuperman05's Avatar
    Join Date
    May 2011
    Posts
    410
    Thanks given
    21
    Thanks received
    25
    Rep Power
    0
    c.method_here += 1; npchandler.java under
    Code:
    	public void dropItems(int i) {
    		int npc = 0;
    		//long start = System.currentTimeMillis();
    		Client c = (Client)Server.playerHandler.players[npcs[i].killedBy];
    		if(c != null) {
    here add something like this if (npcs[i].npcType == 912)
    				c.Method_here += 1;
    Reply With Quote  
     

  6. #6  
    Banned

    Join Date
    Mar 2011
    Posts
    4,062
    Thanks given
    194
    Thanks received
    689
    Rep Power
    0
    Quote Originally Posted by imsuperman05 View Post
    c.method_here += 1; npchandler.java under
    Code:
    	public void dropItems(int i) {
    		int npc = 0;
    		//long start = System.currentTimeMillis();
    		Client c = (Client)Server.playerHandler.players[npcs[i].killedBy];
    		if(c != null) {
    here add something like this if (npcs[i].npcType == 912)
    				c.Method_here += 1;
    What if he rewrote the drop system?

    simple way to do it is just do something like

    Code:
    if (Server.npcHandler.npcs[i].isDead && Server.npcHandler.npcs[i].npcType == ####) { //Replace #### with npc ID
    		c.#### += 1;   //Replace #### with name of your points i.e. slayerPoints
    }
    in CombatAssistant under Attacking Npcs
    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. Replies: 19
    Last Post: 08-13-2011, 09:50 PM
  2. [PI] PK points per kill
    By Killznodie in forum Help
    Replies: 5
    Last Post: 04-14-2011, 11:19 PM
  3. Replies: 13
    Last Post: 01-07-2011, 07:43 AM
  4. Replies: 11
    Last Post: 08-30-2009, 10:42 PM
  5. Making Npcs give (atk, str, def, hp, range) XP
    By volcanic fox™ in forum Tutorials
    Replies: 6
    Last Post: 05-22-2007, 05:23 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
  •