[TuT] Custom Login Message

Discussion in 'Archives' started by server guy, Jun 3, 2007.

[TuT] Custom Login Message
  1. Unread #1 - Jun 3, 2007 at 4:14 AM
  2. server guy
    Joined:
    Jun 3, 2007
    Posts:
    578
    Referrals:
    1
    Sythe Gold:
    0

    server guy Forum Addict

    [TuT] Custom Login Message

    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
     
  3. Unread #2 - Jun 3, 2007 at 4:17 AM
  4. machinehunte
    Joined:
    Feb 11, 2007
    Posts:
    205
    Referrals:
    1
    Sythe Gold:
    0

    machinehunte Active Member

    [TuT] Custom Login Message

    kinda confusing but good ty
     
  5. Unread #3 - Jun 3, 2007 at 4:22 AM
  6. server guy
    Joined:
    Jun 3, 2007
    Posts:
    578
    Referrals:
    1
    Sythe Gold:
    0

    server guy Forum Addict

    [TuT] Custom Login Message

    thnx for the reply and post any errors your get or questions and ill be happy to help anyone
     
< buying a char | Sellin lvl 84 wit 87 mage 99 fletch 94 wc and 81 range!!!!!! >

Users viewing this thread
1 guest


 
 
Adblock breaks this site