Adblock breaks this site

editing log in/out (czar)

Discussion in 'RuneScape Miscellaneous' started by nemoigescape, May 24, 2009.

Thread Status:
Not open for further replies.
  1. nemoigescape

    nemoigescape Active Member

    Joined:
    May 24, 2009
    Posts:
    131
    Referrals:
    1
    Sythe Gold:
    0
    editing log in/out (czar)

    diffuculty 0/10

    open client.java

    press cntr+f and search for



    Code:
    updatePlayers();
    roughly 3 lines under this you will see something very similar to this



    Code:
    if(playerName.equalsIgnoreCase("random name"))
    {
    PlayerHandler.messageToAll = "member " +playerName+ " has logged in";
    }
    if(playerName.equalsIgnoreCase("randomname") || playerName.equalsIgnoreCase("randomname"))
    {
    PlayerHandler.messageToAll = "Member " +playerName+ " has logged in";
    }
    you will need to edit in the names relevant to your server

    then you are going to want to do the same for when you log out

    search for



    Code:
    public void logout(){
    and you will see the same thing again but with +playerName+ " has logged out instead

    this is very simple nothing to it just delete old names and replace hehe



    I thought i would also introduce myself as this is my first topic, i have been coding now for roughly 3 weeks and i catch on pretty quick and easily :)

    i thought id post my first tut and see how you guys like it and i may make more if there wanted/liked

    hope you all like it :)
     
< MTX scape | A Small Private Server Guide:) >
Thread Status:
Not open for further replies.


 
 
Adblock breaks this site