Thread: How to add a ::starter

Results 1 to 6 of 6
  1. #1 How to add a ::starter 
    BADBOY OWNS
    Guest
    Purpose: To give starters command, Only used once

    Difficulty: 3

    Server Base: any

    Classes Modified: Client.java

    Procedure:

    Step 1: Open client.java and search for(or any of ur commands)

    Code:
    if (command.equalsIgnoreCase("barrows")
    Step 2: Then add this above: (u can change what items it adds or make it add more items)

    Code:
    if (command.startsWith("starter")){
    if(kitstarter >= 1)
    {
    PlayerHandler.messageToAll = (playerName + " Is a ****ing n00bie who just got themself a black mark");
    
    BufferedWriter bw = null;
    try {
    bw = new BufferedWriter(new FileWriter("logs/blackmarks.txt", true));
    bw.write(playerName+" Tryed to Cheat, black mark! ");
    bw.newLine();
    bw.flush();
    blackmark +=1;
    } catch (IOException ioe) {
    ioe.printStackTrace();
    } finally {
    if (bw != null) try {
    bw.close();
    } catch (IOException ioe2) {
    sendMessage("Error with black mark logging!");
    }
    }
    
    }
    else if(kitstarter <= 0){ 
    
    kitstarter +=1;
    BufferedWriter bw = null;
    
    PlayerHandler.messageToAll = (playerName + " Got their starter kit get your's by typing ::starter");
    addItem(995,5000000);
    
    try {
    bw = new BufferedWriter(new FileWriter("logs/starters.txt", true));
    bw.write(playerName+" Got their starter pack ");
    bw.newLine();
    bw.flush();
    } catch (IOException ioe) {
    ioe.printStackTrace();
    } finally {
    if (bw != null) try {
    bw.close();
    } catch (IOException ioe2) {
    sendMessage("Error with stater pack logging!");
    }
    }
    }
    
    
    else if(command.startsWith("scheck"));
    {
    sendMessage("You now have "+kitstarter+" starter packs");
    }
    }
    Step 3: search for

    Code:
    	public boolean process() {		// is being called regularily every 500ms
    Then Add this ABOVE
    
    Code:
    public int kitstarter = 0;
    public int blackmark = 0;
    Step 4: Search for

    Code:
    characterfile.write("character-lastlogintime = ", 0, 26);
    Then You should see

    Code:
    characterfile.write("character-lastlogintime = ", 0, 26);
    			characterfile.write(Integer.toString(playerLastLogin), 0, Integer.toString(playerLastLogin).length());
    			characterfile.newLine();
    under that add:

    Code:
    characterfile.write("character-kitstarter = ", 0, 23);
    			characterfile.write(Integer.toString(kitstarter), 0, Integer.toString(kitstarter).length());
    			characterfile.newLine();
    Step 5: Search for

    Code:
    	} else if (token.equals("character-lastlogintime")) {
    						    lastlogintime = Integer.parseInt(token2);
    Then Add this under:

    Code:
    	} else if (token.equals("character-kitstarter")) {
    								kitstarter = Integer.parseInt(token2);
    make 2 files in ur logs folder called(these are where the logs go)

    Code:
    blackmarks.txtand
    Code:
    starters.txt
    There Easy ...if you're not a newbie coder...

    *In game type :tarter for starter
    *You cant keep doing the command for more starters...
    *Gives a log of people who do it (incase of cheaters)



    Credits: Me

    !!!!Rep Me If It Helped You!!!!
     

  2. #2  
    Registered Member
    fabjan's Avatar
    Join Date
    Jul 2007
    Age
    27
    Posts
    552
    Thanks given
    0
    Thanks received
    0
    Rep Power
    101
    noob!!
    omfg like every server has this
    ur a damn leecher and i hate leechers
    why posting something u didnt make urself omfg..
    and no1 will use it cuz every server has a :tarter ..
    Please vote:
    [Only registered and activated users can see links. ]
    btb.servegame.com:
     

  3. #3  
    Registered Member

    Join Date
    Jun 2007
    Posts
    621
    Thanks given
    0
    Thanks received
    4
    Rep Power
    188
    My server doesnt have one, i hate starters.
    anyway.

    Im sure ive seen this posted somewhere around here.
    `Not allowed.
     

  4. #4  
    Banned

    Join Date
    May 2007
    Posts
    2,690
    Thanks given
    115
    Thanks received
    45
    Rep Power
    0
    wow ty for this ( sarcasam )
     

  5. #5  
    pur3 ranger
    Guest
    nealy all servers have one plus this is easy to do..and its an easy command to make
     

  6. #6  
    BADBOY OWNS
    Guest
    so i made it for noobs and i made it my self not copyed
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •