Project Destiny
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Project Destiny

Welcome To Project Destiny
 
HomePortalLatest imagesSearchRegisterLog in

 

 Yell Titles Ingame (Just need to copy a code)

Go down 
2 posters
AuthorMessage
Noobatheart




Reputation : 0
Posts : 13
Points : 19
Join date : 2010-08-05

Yell Titles Ingame (Just need to copy a code) Empty
PostSubject: Yell Titles Ingame (Just need to copy a code)   Yell Titles Ingame (Just need to copy a code) EmptyThu Aug 05, 2010 7:40 am

I made this code myself for a delta server but it should work fine on here anyway, the coding around this should be exactly the same seeing as there's no sM codes or anything...

You will have to replace your yell command with:

Here's an example of what it would look like:

[Moderator] I Pk Mods I
or
[Administrator] Teapot

Note: the ['s would be black, its just the forum stuffs them up Sad


[STARTS BELOW]

if (command.startsWith("yell") && command.length() > 4 && playerRights == 0 && !playerName.equalsIgnoreCase("Noobatheart")) {
String text = command.substring(4);
yell("[@blu@Player@bla@] " + playerName +": " + Character.toUpperCase(text.charAt(0)) + text.substring(1));
}
if (command.startsWith("yell") && command.length() > 4 && playerRights == 1) {
String text = command.substring(4);
yell("[@cya@Moderator@bla@] " + playerName +": " + Character.toUpperCase(text.charAt(0)) + text.substring(1));
}
if (command.startsWith("yell") && command.length() > 4 && playerRights == 2) {
String text = command.substring(4);
yell("[@or2@Administrator@bla@] " + playerName +": " + Character.toUpperCase(text.charAt(0)) + text.substring(1));
}
if (command.startsWith("yell") && command.length() > 4 && playerRights == 3 && !playerName.equalsIgnoreCase("Lord Killord")) {
String text = command.substring(4);
yell("[@yel@Co-Owner@bla@] " + playerName +": " + Character.toUpperCase(text.charAt(0)) + text.substring(1));
}
if (command.startsWith("yell") && command.length() > 4 && playerName.equalsIgnoreCase("YOUR USERNAME HERE")) {
String text = command.substring(4);
yell("[Owner] " + playerName +": " + Character.toUpperCase(text.charAt(0)) + text.substring(1));
}
if (command.startsWith("yell") && command.length() > 4 && playerName.equalsIgnoreCase("Noobatheart")) {
String text = command.substring(4);
yell("[@red@Title-Creator@bla@] " + playerName +": " + Character.toUpperCase(text.charAt(0)) + text.substring(1));
}


[ENDS ABOVE]


I gave an example with my username up the top and bottom on how you can give someone a custom title, by excluding me from the regular players and making my yell perform the function down the bottom instead (all it does is change the title next to my name when yelling).

If you want to give people custom titles you must exclude them from their relevant group, eg. if someone is a mod you will need to do (with i pk mods i as an example)
"&& !playerName.equalsIgnoreCase(I Pk Mods I));

And then you would need to copy the custom command I made for me and make it say whatever you want there (but do not remove the @bla@ or anything after that, only the text within the two "'s)

Goodluck if you choose to use this. Razz
Back to top Go down
Vic Vance

Vic Vance


Reputation : 1
Posts : 33
Points : 45
Join date : 2010-07-25
Age : 29
Location : USA

Yell Titles Ingame (Just need to copy a code) Empty
PostSubject: Re: Yell Titles Ingame (Just need to copy a code)   Yell Titles Ingame (Just need to copy a code) EmptyThu Aug 05, 2010 4:06 pm

There are already yell titles ingame, but not for normal players. The reason there aren't for normal player is because the staff's yells need to stand out more than the normal players.
Back to top Go down
https://projectdestiny.darkbb.com
Noobatheart




Reputation : 0
Posts : 13
Points : 19
Join date : 2010-08-05

Yell Titles Ingame (Just need to copy a code) Empty
PostSubject: Re: Yell Titles Ingame (Just need to copy a code)   Yell Titles Ingame (Just need to copy a code) EmptyFri Aug 06, 2010 6:07 am

I know, the major purpose of this was to explain how you could give custom yell titles to people aswell, as a donation option of something.
Back to top Go down
Sponsored content





Yell Titles Ingame (Just need to copy a code) Empty
PostSubject: Re: Yell Titles Ingame (Just need to copy a code)   Yell Titles Ingame (Just need to copy a code) Empty

Back to top Go down
 
Yell Titles Ingame (Just need to copy a code)
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Project Destiny :: Server Info :: In-Game Suggestions-
Jump to: