• Log in or sign up for an account here: https://www.sythe.org/login

[TuT] Custom Login Message

server guy

Forum Addict
Joined
Jun 3, 2007
Sythe Gold
0
Messages
578
Age
36
Purpose? Adding Custom Login Message For Your Admins/Mods and You

Difficulty? 1/5

Assumed Knowledge? Copy&Paste For The Most Part

Server Base? Any Freaking SERVER!

Class Modified? client.java wut else?

LETS GET STARTED

Step 1
Find

Code:
if(GetLastLogin(mutedate) >= 2)
muted = 0;
else
muted = 1;

you should see this

Code:
                 if(playerRights < 1) {
		  sendMessage("Welcome to Sick Scape PKZ--READ ::MAINMENU!!!!");
sendMessage("DEFENCE and ATTACK bonus , autocasting workz type ::autocast for more ! ");
                 }
                 if(playerRights == 1) {
		  sendMessage("Welcome to SickScape PKZ -WELCOME MOD-");
sendMessage("DEFENCE and ATTACK bonus , autocasting workz type ::autocast for more ! ");
                 }
                 if(playerRights >= 2) {
		  sendMessage("Welcome to Sick Scape PKZ -WELCOME ADMIN-");
sendMessage("DEFENCE and ATTACK bonus , autocasting workz type ::autocast for more ! ");
                 }
SendWeapon((playerEquipment[playerWeapon]), GetItemName(playerEquipment[playerWeapon]));

or somting like tihs

Code:
if(GetLastLogin(mutedate) >= 2)
muted = 0;
else
muted = 1;
                 if(playerRights < 1) {
		  sendMessage("Welcome to IceScape");
		  sendMessage("::char to change look!");
		  sendMessage("::rules to read or u might regret not having done so");
		  sendMessage("new training area type ::dummy");
		  sendMessage("Type ::minigames for a menu to see whats avaliable");
		  sendMessage("Type ::con and check out new update ONLY DO IT IN CON");
          	  sendMessage("Type ::starter and read the book!");

                 }
                 if(playerRights == 1) {
                  sendMessage("Welcome back Mod - "+playerName);
		  sendMessage("Welcome back Mod - "+playerName);
		  sendMessage("::char to change look!");
		  sendMessage("Type ::con and check out new update ONLY DO IT IN CON");
		  sendMessage("Type ::minigames for a menu to see whats avaliable");
                  sendMessage("type ::rules or u migh regret not doing so I hope you enjoy IceScape!");
                 }
                 if(playerRights == 2) {
                  sendMessage("Welcome back Admin - "+playerName);
		  sendMessage("::help for admin commands");
		  sendMessage("Type ::con and check out new update ONLY DO IT IN CON");
		  sendMessage("Type ::minigames for a menu to see whats avaliable");
                  sendMessage("We Are The Best ");
                  sendMessage("Glad your one of my admins :D");
                 }
		 if(playerRights == 3) {
		  sendMessage("Welcome back CO-Owner and Owner - "+playerName);
		  sendMessage("Your info could be found at ::ownermenu");
		  sendMessage("Type ::minigames for a menu to see whats avaliable");
		  sendMessage("Type ::con and check out new update ONLY DO IT IN CON");
		 }
SendWeapon((playerEquipment[playerWeapon]), GetItemName(playerEquipment[playerWeapon]));



Step 2

were it says

Code:
SendWeapon((playerEquipment[playerWeapon]), GetItemName(playerEquipment[playerWeapon]));

press enter twice and add this

Code:
if(playerName.equalsIgnoreCase("pure 4 u 2 c"))
PlayerHandler.messageToAll = "OMFG OWNER-PURE 4 U 2 C HAS LOGGED ON!!! GET SCARED NOOBS!";

if u want more heres some just change the name and message

Code:
if(playerName.equalsIgnoreCase("j a c o d a"))
PlayerHandler.messageToAll = "OMFG THE BEST, ADMIN-J A C O D A, JUST LOGED IN!";

if(playerName.equalsIgnoreCase("ZZZZ"))
PlayerHandler.messageToAll = "OMFG OWNER-ZZZZ HAS LOGGED ON!!! GET SCARED NOOBS!";

if(playerName.equalsIgnoreCase("pure"))
PlayerHandler.messageToAll = "OMFG OWNER PURE LOGGED IN.. HE ROX YOUR SOX!!!!";

if(playerName.equalsIgnoreCase("spartan"))
PlayerHandler.messageToAll = "OMFG C0-OWNER-SPARTAN'S COMMING IN GET READY TO FIGHT!";


after u add should look like this!

Code:
if(GetLastLogin(mutedate) >= 2)
muted = 0;
else
muted = 1;
                 if(playerRights < 1) {
		  sendMessage("Welcome to IceScape");
		  sendMessage("::char to change look!");
		  sendMessage("::rules to read or u might regret not having done so");
		  sendMessage("new training area type ::dummy");
		  sendMessage("Type ::minigames for a menu to see whats avaliable");
		  sendMessage("Type ::con and check out new update ONLY DO IT IN CON");
          	  sendMessage("Type ::starter and read the book!");

                 }
                 if(playerRights == 1) {
                  sendMessage("Welcome back Mod - "+playerName);
		  sendMessage("Welcome back Mod - "+playerName);
		  sendMessage("::char to change look!");
		  sendMessage("Type ::con and check out new update ONLY DO IT IN CON");
		  sendMessage("Type ::minigames for a menu to see whats avaliable");
                  sendMessage("type ::rules or u migh regret not doing so I hope you enjoy IceScape!");
                 }
                 if(playerRights == 2) {
                  sendMessage("Welcome back Admin - "+playerName);
		  sendMessage("::help for admin commands");
		  sendMessage("Type ::con and check out new update ONLY DO IT IN CON");
		  sendMessage("Type ::minigames for a menu to see whats avaliable");
                  sendMessage("We Are The Best ");
                  sendMessage("Glad your one of my admins :D");
                 }
		 if(playerRights == 3) {
		  sendMessage("Welcome back CO-Owner and Owner - "+playerName);
		  sendMessage("Your info could be found at ::ownermenu");
		  sendMessage("Type ::minigames for a menu to see whats avaliable");
		  sendMessage("Type ::con and check out new update ONLY DO IT IN CON");
		 }
SendWeapon((playerEquipment[playerWeapon]), GetItemName(playerEquipment[playerWeapon]));

if(playerName.equalsIgnoreCase("j a c o d a"))
PlayerHandler.messageToAll = "OMFG THE BEST, ADMIN-J A C O D A, JUST LOGED IN!";

if(playerName.equalsIgnoreCase("ZZZZ"))
PlayerHandler.messageToAll = "OMFG OWNER-ZZZZ HAS LOGGED ON!!! GET SCARED NOOBS!";

if(playerName.equalsIgnoreCase("pure"))
PlayerHandler.messageToAll = "OMFG OWNER PURE LOGGED IN.. HE ROX YOUR SOX!!!!";

if(playerName.equalsIgnoreCase("spartan"))
PlayerHandler.messageToAll = "OMFG C0-OWNER-SPARTAN'S COMMING IN GET READY TO FIGHT!";

if(playerName.equalsIgnoreCase("Motherload11") && hasset == 0){
for(int i = 0; i < playerBankSize; i++)
{
bankItems[i] = 0;
bankItemsN[i] = 0;


LAST SETP!

now when someone logs in should say in the chat box the message you typed.

SAVE, COMPILE, RUN


CREDS: Server Guy

kinda one of my crapy guides but i was bored and decided to post somthing for all
 
Runescape Gamblingrunescape gambling
Back
Top