Thread: ~.-NPC Slain Message-.~

Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 25
  1. #11  
    Member Market Banned Market Banned

    Zee Best's Avatar
    Join Date
    Feb 2007
    Age
    29
    Posts
    3,036
    Thanks given
    24
    Thanks received
    210
    Rep Power
    1171
    Aww you had to tell everyone

    now every server will have it so ill remove mine and ill be better dan those nubs

    at least add an anti leech


    [Only registered and activated users can see links. ]
     

  2. #12  
    Legend Rene
    Guest
    If we just change the handler we can make it for any npc we want hmm?
     

  3. #13  
    steve20007
    Guest
    Nice But Tho, Cant You Use Switches?
    Code:
    import java.io.*;
    
    public class NPCKillHandler {
    
    	public void npcID(int npcIdd, int playerId)
    	{
    	client p = (client) server.playerHandler.players[playerId];
    	switch (npcIdd){
    		case 2060:
    			p.npckName = "Slash Bash";
    			break;
    		case 1615:
    			p.npckName = "Abyssal Demon";
    			break;
    		default:
    			break;
    	}
    	}
    
    	public void npcKilled(int playerId, int npcId)
    	{
    	client p = (client) server.playerHandler.players[playerId];
    	npcID(npcId, playerId);
    	if(NpcID != -1) {
    	PlayerHandler.messageToAll = p.npckName+" has been slain by "+p.playerName+"(Lvl "+p.combat+").";
       	}
    	}
    
    	public void npcKilledd(int npcId)
    	{
    	npcKilled(playerIdd, npcId);
    	}
    
    	public int playerIdd = 0;
    	public int NpcID = 0;
    }
    Could Work. And Neater Code
     

  4. #14  
    xx me xx
    Guest
    Works Fine For Me ^_^
     

  5. #15  
    TeleNubby
    Guest
    Yes, you could use swithes. This is just a simple version for all those noobs, its only capable of doing NPCs messages for NPCs you include in the handler, and you can improve this by a lot if you're not a noob. ^_^ Thanks for the comments.
     

  6. #16  
    t r o j a n
    Guest
    wtf?! this didnt work for me?
    no errors on compile, but when i kill an npc, it doesn't give the message.
    yes! i did add the npc id's and names to NPCKillHandler.java
     

  7. #17  
    TeleNubby
    Guest
    I've updated the handler maybe you have the wrong one, re-download it, either that or you added the NPC IDs wrong, because it DOES work.
     

  8. #18  
    TeleNubby
    Guest
    I realized there was some kind of bug that messed up a little. Just fixed that.
     

  9. #19  
    Exodust
    Guest
    I did all what the tutorial said, i get no error in compiling but umm..It doesent work.
     

  10. #20  
    Registered Member $esame st's Avatar
    Join Date
    Aug 2007
    Posts
    93
    Thanks given
    0
    Thanks received
    0
    Rep Power
    39
    thanks this helps quite a bit i will rep+ you for thinking of something smart to add to servers instead of something like "full drunkness!"
    Elite Series Coder
    RSBot Scripter
    RSBot Full Member
    Likes Boobs
     

Page 2 of 3 FirstFirst 123 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. Welcome message. PI
    By thim slug in forum Help
    Replies: 5
    Last Post: 12-13-2010, 09:41 AM
  2. PI (I think) Welcome message?
    By Barinade in forum Help
    Replies: 0
    Last Post: 12-11-2010, 10:48 PM
  3. [PI] Repeating message/Timed message
    By Vegas in forum Help
    Replies: 7
    Last Post: 10-17-2010, 12:01 PM
  4. Welcome message
    By VichiQue in forum Help
    Replies: 4
    Last Post: 11-11-2008, 10:10 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
  •