Guide to change what an emote does!

Discussion in 'Archives' started by MCR__Ftw, Apr 19, 2008.

Guide to change what an emote does!
  1. Unread #1 - Apr 19, 2008 at 11:44 AM
  2. MCR__Ftw
    Joined:
    Mar 19, 2007
    Posts:
    1,084
    Referrals:
    0
    Sythe Gold:
    0

    MCR__Ftw Guru
    $5 USD Donor

    Guide to change what an emote does!

    Alright this is a fairly simple guide, since there aren't many guides here I thought I'd post one.

    Step 1: Find the emote you want to change. Go in texthandler.java and press crtl+f. Now type in what the emote says. Once you find it you'll be able to change it to whatever you want. You can also make it different colors by adding @gre@ in front of it along with many other colors.

    For example I'll search for the "yes" emote. So I'd go in texthandler.java and press ctrl+f and type in
    Code:
    "yes"
    Then I'd replace it with whatever I'd want, for example barrows, and I wanted to make it a cyan color. So where it says yes, I'd delete the yes and put
    Code:
    @cya@barrows
    Don't delete the quotation marks.

    Step 2: Now that you've changed what the text says, you'll want to change what it does. Now go in client.java, and hit ctrl+f and type in
    Code:
    case ###
    Now the ###'s represent the case number. To find the case number hover over the emote you're changing and it should say case ### I'll use case 168 for example. Now here's what it should look like (or something close to it).
    Code:
                case 168:
                    if (teleblock == true) { // Made by musicmad441
                        sendMessage("A magical force stops you from teleporting."); 
                    } else {
                        customCommand("home"); // made by Musicmad441
                    }
                    break;
    Now you see where it says customCommand("home")? Now you're going to want to change the home part, so it knows which command to activate. So if you want it to teleport you to barrows you'd put barrows, or whatever you named your command. You could also put in any other command you have.

    Now if you don't have a command I'll show you have to make one.

    Go in client.java and search for
    Code:
    command.startsWith
    Now once you have find that you're going to want to press enter after the "{" and then copy and paste this
    Code:
            } else if (command.equalsIgnoreCase("commandnameyouwant")) {
                if (teleblock == true) {
                    sendMessage("A magical force stops you from teleporting."); // made by Musicmad441
                } else {
                    teleportToX = yourxcords;
                    teleportToY = yourycords;
                    sendMessage("You teleport to wherever!.");
                } 
    Now that's for the teleporting, of course though you're going to want to change where it says commandnameyouwant, and yourxcords, etc. If you want it to add items you're going to want to add
    Code:
             if (command.equalsIgnoreCase("starter")) {	
                if (starter == 0) {
    addItem(995, 100000000);
    addItem(392, 50000000);
    addItem(554, 2000);
    addItem(555, 2000);
    addItem(4278, 2000);
    addItem(556, 2000);
    addItem(557, 2000);
    addItem(558, 2000);
    addItem(559, 2000);
    addItem(561, 2000);
    addItem(562, 2000);
    addItem(563, 2000);
    addItem(2415, 1);
    addItem(4675, 1);
    addItem(4151, 1);
    addItem(853, 1);
    addItem(861, 1);
    addItem(892, 8000);
                    sendMessage("You Have Started Your Adventure..lulz lame!");
                    starter = 1;
                    savemoreinfo();
                    savechar();
                } else if (starter == 1) {
                    sendMessage("Sorry.");
                    PlayerHandler.messageToAll = (playerName
                            + " Is a noob and is trying to get a extra starter!! :p");
    
                }
            } 
    that's just what my starter looks like. just change the first number to the item id you want. Now that should be it, if you have any questsion post here. :]
     
< Anyone else offended? | Buying A Nice Skiller (Doesnt Have To Have 99) :) >

Users viewing this thread
1 guest


 
 
Adblock breaks this site