Thread: yelltag with color and icons

Results 1 to 3 of 3
  1. #1 yelltag with color and icons 
    Chow down on these noodles
    OodlesOfNoodles's Avatar
    Join Date
    May 2011
    Posts
    1,819
    Thanks given
    235
    Thanks received
    91
    Rep Power
    55
    ok i just followed this tut: http://www.rune-server.org/runescape...ll-system.html

    but i want colors and icons for staff and different donors, like my old yell system:
    if (playerCommand.startsWith("yell")) {
    for (int j = 0; j < Server.playerHandler.players.length; j++) {
    if (Server.playerHandler.players[j] != null) {
    Client c2 = (Client)Server.playerHandler.players[j];


    if (c.isDonator == 1 && (c.playerRights == 4)){
    c2.sendMessage("<shad=6081134>[Donator]</col><img=0>"+ Misc.optimizeText(c.playerName) +": "
    + Misc.optimizeText(playerCommand.substring(5)) +"");
    }else if (c.playerRights == 1){
    c2.sendMessage("<shad=4081134>[Mod]</col><img=1>"+ Misc.optimizeText(c.playerName) +": "
    + Misc.optimizeText(playerCommand.substring(5)) +"");
    }else if (c.playerRights == 2){
    c2.sendMessage("<shad=6581134>[Admin]</col><img=2>"+ Misc.optimizeText(c.playerName) +": "
    + Misc.optimizeText(playerCommand.substring(5)) +"");
    }else if (c.playerRights == 3){
    c2.sendMessage("<shad=15695415>[Owner]</col><img=2>"+ Misc.optimizeText(c.playerName) +": "
    + Misc.optimizeText(playerCommand.substring(5)) +"");
    }else if (c.totalLevel() <= 499){
    c.sendMessage("You must be a donator or have a total lvl of 500 to use this command!");
    }else if (c.playerRights == 5){
    c2.sendMessage("<shad=3000000>[SuperDonator]</col><img=3>"+ Misc.optimizeText(c.playerName) +": "
    + Misc.optimizeText(playerCommand.substring(5)) +"");
    }else if (c.playerRights == 6){
    c2.sendMessage("<shad=3408000>[RoyalDonator]</col><img=4>"+ Misc.optimizeText(c.playerName) +": "
    + Misc.optimizeText(playerCommand.substring(5)) +"");
    }else if (c.totalLevel() >= 500){
    c2.sendMessage((c.playerName) +": "
    + Misc.optimizeText(playerCommand.substring(5)) +"");
    }
    ive been trying to think of a way to add it in but im clueless as to getting this far O_o
    if you can help in any way id appreciate it thx
    Reply With Quote  
     

  2. #2  
    q.q


    Join Date
    Dec 2010
    Posts
    6,519
    Thanks given
    1,072
    Thanks received
    3,535
    Rep Power
    4752
    replace things like

    @gre@ to <shad=4081134>
    Reply With Quote  
     

  3. #3  
    Chow down on these noodles
    OodlesOfNoodles's Avatar
    Join Date
    May 2011
    Posts
    1,819
    Thanks given
    235
    Thanks received
    91
    Rep Power
    55
    aha i did this
    else if (c.playerRights == 1)
    c.yellTag = "<shad=15695415><img=0>["+newYellTag+"]";
    else if (c.playerRights == 2)
    c.yellTag = "<shad=6581134><img=1>["+newYellTag+"]";
    else if (c.playerRights == 3)
    c.yellTag = "<shad=15695415><img=2>["+newYellTag+"]";
    else if (c.playerRights == 4)
    c.yellTag = "<shad=6081134><img=3>["+newYellTag+"]";
    else if (c.playerRights == 5)
    c.yellTag = "<shad=3000000><img=4>["+newYellTag+"]";
    else if (c.playerRights == 6)
    c.yellTag = "<shad=3408000><img=5>["+newYellTag+"]";
    c.sendMessage("Sucesffully changed your yell tag to: "+c.yellTag);
    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. [PI] Yelltag
    By Mr House in forum Tutorials
    Replies: 23
    Last Post: 09-05-2012, 11:57 AM
  2. Money Color and Chat color mabye?
    By Organic in forum Help
    Replies: 4
    Last Post: 10-07-2010, 05:12 PM
  3. Changing Loading Bar color & Flames color!
    By Ninja Cat in forum Tutorials
    Replies: 14
    Last Post: 12-22-2008, 11:54 AM
  4. Prayer Icons/ PK Skull Icons
    By Mrquarter in forum Tutorials
    Replies: 12
    Last Post: 09-05-2008, 05:59 PM
  5. Replies: 0
    Last Post: 02-07-2008, 07:48 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
  •