Thread: XP For Killing an NPC

Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1 XP For Killing an NPC 
    Banned
    Join Date
    Nov 2012
    Posts
    165
    Thanks given
    56
    Thanks received
    23
    Rep Power
    0
    I've been trying this for about an hour an a half, let explain what I mean.

    Basicly lets say you kill a RockCrab, you would get like 1000 XP, for Dung.

    I cannot find out how to do this, please help me

    +REPP
    Reply With Quote  
     

  2. #2  
    Father Of Lies


    Join Date
    May 2012
    Age
    26
    Posts
    1,216
    Thanks given
    267
    Thanks received
    289
    Rep Power
    242
    Which framework are you using man?
    Reply With Quote  
     

  3. #3  
    Banned
    Join Date
    Nov 2012
    Posts
    165
    Thanks given
    56
    Thanks received
    23
    Rep Power
    0
    Matrix, 718 sir.
    Reply With Quote  
     

  4. #4  
    Father Of Lies


    Join Date
    May 2012
    Age
    26
    Posts
    1,216
    Thanks given
    267
    Thanks received
    289
    Rep Power
    242
    Well, obviously, do you know of the method that is called when NPC's die? Post the npchandling class', and I will take a look.
    Reply With Quote  
     

  5. #5  
    Banned
    Join Date
    Nov 2012
    Posts
    165
    Thanks given
    56
    Thanks received
    23
    Rep Power
    0
    I've tried man, if you could please take a look and explain if you get it.
    Reply With Quote  
     

  6. #6  
    Father Of Lies


    Join Date
    May 2012
    Age
    26
    Posts
    1,216
    Thanks given
    267
    Thanks received
    289
    Rep Power
    242
    Sure, just post 'em.
    Reply With Quote  
     

  7. #7  
    The Emperor of the Sands

    Azir's Avatar
    Join Date
    Nov 2008
    Posts
    2,466
    Thanks given
    8
    Thanks received
    487
    Rep Power
    117
    under public void drop() {

    if (getId() == rockcranhere) {
    player.xp method 2 lazy to look for it
    then switch player with killer.
    }
    ez as that npc.java


    Reply With Quote  
     

  8. #8  
    Banned
    Join Date
    Nov 2012
    Posts
    165
    Thanks given
    56
    Thanks received
    23
    Rep Power
    0
    Quote Originally Posted by King J Scape View Post
    under Public drop() {

    if (getId() == rockcranhere) {
    player.xp method 2 lazy to look for it
    then switch player with killer.
    }
    ez as that
    Cause this really helps, I wouldn't be posting if I known somone would put "switch this to this because im lazy" post the real code..
    Reply With Quote  
     

  9. #9  
    Registered Member
    Join Date
    May 2011
    Age
    29
    Posts
    2,246
    Thanks given
    2,469
    Thanks received
    1,120
    Rep Power
    943
    Quote Originally Posted by Wick View Post
    Cause this really helps, I wouldn't be posting if I known somone would put "switch this to this because im lazy" post the real code..
    How about you use your brain and figure it out, he's given enough information for anyone with common sense to know what to do.
    Reply With Quote  
     

  10. #10  
    EpicMemer

    Join Date
    Oct 2011
    Posts
    221
    Thanks given
    32
    Thanks received
    27
    Rep Power
    4
    In npc.java in the drop method add this:
    Code:
    if (getId() == id) {
    player.getSkills().addXp(Skills.ATTACK, 1000);
    
    }
    Reply With Quote  
     

Page 1 of 2 12 LastLast

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. help npc killing
    By fuzzball109 in forum Help
    Replies: 3
    Last Post: 09-27-2010, 03:20 PM
  2. This is killing me, please help me!
    By Matt0wn3r in forum Help
    Replies: 6
    Last Post: 09-18-2010, 02:44 PM
  3. Killing with same ip
    By PrataKosong in forum Help
    Replies: 5
    Last Post: 08-29-2010, 01:25 AM
  4. Did You Ever Think Of Killing someone
    By Kyle in forum Voting
    Replies: 39
    Last Post: 05-16-2010, 07:21 PM
  5. After killing jad...
    By 'Craig in forum Help
    Replies: 2
    Last Post: 04-17-2009, 07:26 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
  •