|
|
Well you see on the source for rune-evo there is no actual admin rank, the admin rank is the owner rank, so I tried making an owner rank, I made it but i cant change the sign next to the players name with owner, I used to be able to using floatbuffer.java in the client files, but this matrix client doesnt have that, can anyone tell me how to do that?
And also can someone give me an example of what i need to write in the custom titles part to get a custom title? Thanks.
Erm mate i followed what it says but the part with this:
Add these codes in worldpacketsdecoder
Code:
else if (player.getTemporaryAttributtes().get("titlecolor" ) == Boolean.TRUE) {
if(value.length() != 6) {
player.getDialogueManager().startDialogue("SimpleM essage", "The HEX yell color you wanted to pick cannot be longer and shorter then 6.");
} else if(Utils.containsInvalidCharacter(value) || value.contains("_")) {
player.getDialogueManager().startDialogue("SimpleM essage", "The requested title color can only contain numeric and regular characters.");
} else {
player.settitlecolor(value);
player.getAppearence().setTitle(900);
player.getDialogueManager().startDialogue("SimpleM essage", "Your title color has been changed to <col="+player.getTitleColor()+">"+player.getTitleC olor()+"</col>.");
}
player.getTemporaryAttributtes().put("titlecolor", Boolean.FALSE);
}
else if (player.getTemporaryAttributtes().get("customtitle ") == Boolean.TRUE) {
if(value.length() > 8) {
player.getDialogueManager().startDialogue("SimpleM essage", "Titles are limted to eight characters due to spam.");
} else if(Utils.containsInvalidCharacter(value) || value.contains("_") ||
value.contains("0") ||
value.contains("1") ||
value.contains("2") ||
value.contains("3") ||
value.contains("4") ||
value.contains("5") ||
value.contains("6") ||
value.contains("7") ||
value.contains("8") ||
value.contains("9") ||
value.contains("9") ||
value.toLowerCase().contains("owner") ||
value.toLowerCase().contains("admin") ||
value.toLowerCase().contains("mod") ||
value.contains("10")) {
player.getDialogueManager().startDialogue("SimpleM essage", "You have entered invaild characters or word.");
player.getAppearence().setTitle(0);
} else {
player.setTitle(value);
player.getAppearence().setTitle(900);
player.getDialogueManager().startDialogue("SimpleM essage", "Your title has been changed to " + player.getTitle() + ".");
}
player.getTemporaryAttributtes().put("customTitle" , Boolean.FALSE);
}
Add this title in appearance.java
Code:
title == 900 ? "<col="+ player.getTitleColor()+">" + player.getTitle() + " </col>" :
doesnt work... Is there a specific place to put them? and do i put anything before or after them to make them work?
| « 667 Item on ground help? | 614 Help » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |