Thread: custom yells in 742 please

Results 1 to 5 of 5
  1. #1 custom yells in 742 please 
    Registered Member
    Join Date
    Jul 2013
    Posts
    33
    Thanks given
    0
    Thanks received
    3
    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(""+RightsMana ger.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

    Josh''s Avatar
    Join Date
    Jul 2012
    Age
    26
    Posts
    2,036
    Thanks given
    1,119
    Thanks received
    520
    Rep Power
    192
    Try commands.java
    Reply With Quote  
     

  3. #3  
    Let the games begin!

    Angeloflife's Avatar
    Join Date
    Jul 2013
    Age
    26
    Posts
    754
    Thanks given
    21
    Thanks received
    147
    Rep Power
    83
    Isnt there a file called regular player.java?
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Jul 2013
    Posts
    33
    Thanks given
    0
    Thanks received
    3
    Rep Power
    11
    yes there is a file called regular players. but it only for reg players and they cant yell...
    Reply With Quote  
     

  5. #5  
    Let the games begin!

    Angeloflife's Avatar
    Join Date
    Jul 2013
    Age
    26
    Posts
    754
    Thanks given
    21
    Thanks received
    147
    Rep Power
    83
    sorry my bad.
    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. How do i make custom yells? [742]
    By elysian str123 in forum Help
    Replies: 1
    Last Post: 07-27-2013, 10:17 PM
  2. 742+ custom items/npcs HELP PLEASE
    By candy1000102 in forum Help
    Replies: 4
    Last Post: 03-29-2013, 10:00 PM
  3. Loading Custom Skys in your client! XD
    By Harry in forum Tutorials
    Replies: 65
    Last Post: 04-05-2010, 04:47 AM
  4. My CUSTOM Sprites in MS Paint!
    By Imlostru in forum Graphics
    Replies: 13
    Last Post: 12-17-2007, 04:42 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
  •