Thread: Yell not letting me use crowns....

Results 1 to 3 of 3
  1. #1 Yell not letting me use crowns.... 
    Registered Member Frankie's Avatar
    Join Date
    Feb 2013
    Posts
    569
    Thanks given
    10
    Thanks received
    16
    Rep Power
    12
    Mod crowns not showing in yell


    Spoiler for Client.java *client sided*:
    private void drawChatArea()
    {
    aRSImageProducer_1166.initDrawingArea();
    Texture.anIntArray1472 = anIntArray1180;
    chatBack.drawBackground(0, 0);
    if(messagePromptRaised)
    {
    chatTextDrawingArea.drawText(0, aString1121, 40, 239);
    chatTextDrawingArea.drawText(128, promptInput + "*", 60, 239);
    } else
    if(inputDialogState == 1)
    {
    chatTextDrawingArea.drawText(0, "Enter amount:", 40, 239);
    chatTextDrawingArea.drawText(128, amountOrNameInput + "*", 60, 239);
    } else
    if(inputDialogState == 2)
    {
    chatTextDrawingArea.drawText(0, "Enter name:", 40, 239);
    chatTextDrawingArea.drawText(128, amountOrNameInput + "*", 60, 239);
    } else
    if(aString844 != null)
    {
    chatTextDrawingArea.drawText(0, aString844, 40, 239);
    chatTextDrawingArea.drawText(128, "Click to continue", 60, 239);
    } else
    if(backDialogID != -1)
    drawInterface(0, 0, RSInterface.interfaceCache[backDialogID], 0);
    else
    if(dialogID != -1)
    {
    drawInterface(0, 0, RSInterface.interfaceCache[dialogID], 0);
    } else
    {
    TextDrawingArea textDrawingArea = aTextDrawingArea_1271;
    int j = 0;
    DrawingArea.setDrawingArea(77, 0, 463, 0);
    for(int k = 0; k < 100; k++)
    if(chatMessages[k] != null)
    {
    int l = chatTypes[k];
    int i1 = (70 - j * 14) + anInt1089;
    String s1 = chatNames[k];
    byte byte0 = 0;
    if(s1 != null && s1.startsWith("@[email protected]"))
    {
    s1 = s1.substring(5);
    byte0 = 1;
    }
    if(s1 != null && s1.startsWith("@[email protected]"))
    {
    s1 = s1.substring(5);
    byte0 = 2;
    }
    if(l == 0)
    {
    if(i1 > 0 && i1 < 110)
    textDrawingArea.method389(false, 4, 0, chatMessages[k], i1);
    j++;
    }
    if((l == 1 || l == 2) && (l == 1 || publicChatMode == 0 || publicChatMode == 1 && isFriendOrSelf(s1)))
    {
    if(i1 > 0 && i1 < 110)
    {
    int j1 = 4;
    if(byte0 == 1)
    {
    modIcons[0].drawBackground(j1, i1 - 12);
    j1 += 14;
    }
    if(byte0 == 2)
    {
    modIcons[1].drawBackground(j1, i1 - 12);
    j1 += 14;
    }
    textDrawingArea.method385(0, s1 + ":", i1, j1);
    j1 += textDrawingArea.getTextWidth(s1) + 8;
    textDrawingArea.method385(255, chatMessages[k], i1, j1);
    }
    j++;
    }
    if((l == 3 || l == 7) && splitPrivateChat == 0 && (l == 7 || privateChatMode == 0 || privateChatMode == 1 && isFriendOrSelf(s1)))
    {
    if(i1 > 0 && i1 < 110)
    {
    int k1 = 4;
    textDrawingArea.method385(0, "From", i1, k1);
    k1 += textDrawingArea.getTextWidth("From ");
    if(byte0 == 1)
    {
    modIcons[0].drawBackground(k1, i1 - 12);
    k1 += 14;
    }
    if(byte0 == 2)
    {
    modIcons[1].drawBackground(k1, i1 - 12);
    k1 += 14;
    }
    textDrawingArea.method385(0, s1 + ":", i1, k1);
    k1 += textDrawingArea.getTextWidth(s1) + 8;
    textDrawingArea.method385(0x800000, chatMessages[k], i1, k1);
    }
    j++;
    }
    if(l == 4 && (tradeMode == 0 || tradeMode == 1 && isFriendOrSelf(s1)))
    {
    if(i1 > 0 && i1 < 110)
    textDrawingArea.method385(0x800080, s1 + " " + chatMessages[k], i1, 4);
    j++;
    }
    if(l == 5 && splitPrivateChat == 0 && privateChatMode < 2)
    {
    if(i1 > 0 && i1 < 110)
    textDrawingArea.method385(0x800000, chatMessages[k], i1, 4);
    j++;
    }
    if(l == 6 && splitPrivateChat == 0 && privateChatMode < 2)
    {
    if(i1 > 0 && i1 < 110)
    {
    textDrawingArea.method385(0, "To " + s1 + ":", i1, 4);
    textDrawingArea.method385(0x800000, chatMessages[k], i1, 12 + textDrawingArea.getTextWidth("To " + s1));
    }
    j++;
    }
    if(l == 8 && (tradeMode == 0 || tradeMode == 1 && isFriendOrSelf(s1)))
    {
    if(i1 > 0 && i1 < 110)
    textDrawingArea.method385(0x7e3200, s1 + " " + chatMessages[k], i1, 4);
    j++;
    }
    }

    DrawingArea.defaultDrawingAreaSize();
    anInt1211 = j * 14 + 7;
    if(anInt1211 < 78)
    anInt1211 = 78;
    drawScrollbar(77, anInt1211 - anInt1089 - 77, 0, 463, anInt1211);
    String s;
    if(myPlayer != null && myPlayer.name != null)
    s = myPlayer.name;
    else
    s = TextClass.fixName(myUsername);
    textDrawingArea.method385(0, s + ":", 90, 4);
    textDrawingArea.method385(255, inputString + "*", 90, 6 + textDrawingArea.getTextWidth(s + ": "));
    DrawingArea.method339(77, 0, 479, 0);
    }
    if(menuOpen && menuScreenArea == 2)
    drawMenu();
    aRSImageProducer_1166.drawGraphics(357, super.graphics, 17);
    aRSImageProducer_1165.initDrawingArea();
    Texture.anIntArray1472 = anIntArray1182;
    }

    Spoiler for Commands.java *yell command*:
    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.playerRights == 2 && c.membership == true) {
    c2.sendMessage("@[email protected][Admin]@[email protected]@[email protected]"+ Misc.optimizeText(c.playerName) +": "
    + Misc.optimizeText(playerCommand.substring(5)) +"");
    }
    }
    }
    Reply With Quote  
     

  2. #2  
    MOB
    MOB is offline
    Project Drop-Zone Owner & The BLOOD Gang Always Banging RED

    MOB's Avatar
    Join Date
    May 2013
    Age
    24
    Posts
    3,010
    Thanks given
    5
    Thanks received
    936
    Rep Power
    183
    In your yell method you need to add the img of the crowns
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  3. #3  
    私はちょうど何が重要か

    Jae`'s Avatar
    Join Date
    Mar 2012
    Posts
    1,496
    Thanks given
    236
    Thanks received
    248
    Rep Power
    79
    Code:
    f (c.playerRights == 2 && c.membership == true) {
    c2.sendMessage("@[email protected][Admin]@[email protected]@[email protected]"+ Misc.optimizeText(c.playerName) +": "
    + Misc.optimizeText(playerCommand.substring(5)) +""
    Edit that.
    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: 5
    Last Post: 02-29-2012, 07:17 PM
  2. [Bug/Glitch] Will not let me update my thread
    By Darkane in forum Defects
    Replies: 0
    Last Post: 10-09-2011, 09:46 AM
  3. Replies: 3
    Last Post: 03-20-2011, 01:46 PM
  4. Replies: 13
    Last Post: 11-17-2010, 07:12 AM
  5. letting someone use my SMF
    By Hybridô in forum RS2 Server
    Replies: 3
    Last Post: 03-22-2008, 12:33 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
  •