Thread: How do i make custom yells? [742]

Results 1 to 2 of 2
  1. #1 How do i make custom yells? [742] 
    Registered Member
    Join Date
    Jul 2013
    Posts
    29
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    hey i was wondering how to make a custom yell for a certain person because in this source [rune-evo] i only have the file yellhandler.java and .class
    and it contains this


    code

    Code:
    package com.rs.game.player.content.custom;
    
    import com.rs.game.World;
    import com.rs.game.player.Player;
    
    public class YellHandler {
    	
    	public static boolean isValidText(Player player, String message) {
    		String[] invalid = { "<euro", "<img", "<img=", "<col", "<col=", "<shad", "<shad=", "<str>", "<u>" };
    		for (String s : invalid)
    			if (message.contains(s)) {
    				player.getPackets().sendGameMessage("You cannot add additional code to the message.");
    				return false;
    			}
    		return true;
    	}
    
    	public static void sendYell(Player player, String message) {
    		if (isValidText(player, message)) {
    			for (Player players : World.getPlayers()) {
    				if (players == null || !players.isRunning())
    					continue;
    				players.getPackets().sendGameMessage(""+RightsManager.getInfo(player, player.getRights())+": "+message+"");
    				}
    		}
    		return;
    	}
    	
    }




    also if i can get help making every player be able to yell that will be great thanks a lot hope someone can help me!
    Reply With Quote  
     

  2. #2  
    Donator

    Join Date
    Feb 2013
    Posts
    1,674
    Thanks given
    479
    Thanks received
    244
    Rep Power
    29
    This is in the wrong section, should be in 503+.
    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: 1
    Last Post: 05-24-2014, 08:52 AM
  2. How do i make Custom Items?
    By Xxp3restr in forum Help
    Replies: 1
    Last Post: 08-11-2012, 12:47 AM
  3. how do i add custom yells on matrix 704
    By lewis123456 in forum Tutorials
    Replies: 11
    Last Post: 04-02-2012, 06:32 PM
  4. how do i add custom yells on matrix 704
    By lewis123456 in forum Help
    Replies: 4
    Last Post: 03-19-2012, 05:18 AM
  5. How do I make custom npcs?
    By Underoath in forum Requests
    Replies: 4
    Last Post: 11-16-2009, 05:52 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
  •