Thread: *Economy Rebooter* [Awesome!]

Page 1 of 6 123 ... LastLast
Results 1 to 10 of 54
  1. #1 *Economy Rebooter* [Awesome!] 
    Lexii
    Guest
    Ok so i asked this really gr8 helper for this and he made it :]
    99% to TeleNubby for making it
    1% to me for the idea (i asked if i could have 1% :])
    i used it and its gr8 for resetting items incase there are dupers or its really easy to get items on your server

    Note: This program will delete each characters equipped items, inventory items, and banked items. Please tell me if you need that changed or if this doesnt work. THIS IS TESTED! TESTED BY Lexi :]

    Run it by creating a new batch file with:
    Code:
    @echo off
    javac EconomyBoost.java
    java EconomyBoost
    pause
    I Named Mine EconomyRebooter.bat

    You'll have to change one line in the source code yourself. It's the first File object and it is the path of your characters folder. Also:
    MAKE SURE THIS PROGRAM IS IN THE SAME DIRECTORY AS YOUR SERVER
    AND
    MAKE SURE TO BACKUP YOUR CHARACTER FILES BEFORE RUNNING THIS (just Incase...even tho its tested by lex)

    The source code for EconomyBoost.java - make sure it is named that!
    Code:
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.DataInputStream;
    import java.io.BufferedWriter;
    import java.io.FileWriter;
    
    public class EconomyBoost
    {
    
    	/* ONLY CHANGE THE FOLLOWING LINE IF YOUR CHARACTERS FOLDER IS DIFFERENT */
    	private static File charDir = new File("./characters/");
    
    	/* DO NOT EDIT THE FOLLOWING TWO METHODS */
    	public static void main(String[] args)
    	{
    		if(charDir.exists() && charDir.isDirectory())
    		{
    			File[] charFiles = charDir.listFiles();
    			for(int i = 0; i < charFiles.length; i++)
    			{
    				resetEcoChar(charFiles[i]);
    				System.out.println("Reset player economy levels for... "+charFiles[i].toString());
    			}
    		}
    	}
    
    	private static void resetEcoChar(File charFile)
    	{
    		try
    		{
    			String cheatStatus, tempData, tempAdd = ""; int curEquip = 0, curItem = 0, curBank = 0;
    			File tempCharFile = new File(charDir.toString()+"ECOBOOST$TEMP");
    			DataInputStream fileStream = new DataInputStream(new FileInputStream(charFile));
    			BufferedWriter tempOut = new BufferedWriter(new FileWriter(tempCharFile));
    			while((tempData = fileStream.readLine()) != null)
    			{
    				if((!tempData.trim().startsWith("character-item =")) && (!tempData.trim().startsWith("character-bank =")))
    				{
    					tempAdd = tempData.trim();
    					if(tempData.trim().startsWith("character-equip =")) 
    					{
    						tempAdd = "character-equip = "+curEquip+"\t-1\t0";
    						curEquip++;
    					}
    					tempOut.write(tempAdd); tempOut.newLine();
    				}
    			}
    			fileStream.close(); tempOut.close();
    			charFile.delete();
    			tempCharFile.renameTo(charFile);
    		}
    		catch(Exception e) { e.printStackTrace(); }
    	}
    }
    99% to TeleNubby
    1% to Lexi (i Also Fixed Up The Tutorial :])

    *TIP*
    this may take a few mins depending on how many characters u have.
    it took me about 5min+ to do around 8000 members :] (i have a fairly large server)
    good luck! :]

    plz do not leach this
    Post If You Use It :]
    Last edited by Lexii; 03-02-2008 at 01:38 AM. Reason: *Tip*
     

  2. #2  
    Registered Member
    fabjan's Avatar
    Join Date
    Jul 2007
    Age
    27
    Posts
    552
    Thanks given
    0
    Thanks received
    0
    Rep Power
    101
    pretty nice, even though you didnt make it, i will rep you cuz ur hawt

    edit: too much rep given this 24 hours.. please wait
    Please vote:
    [Only registered and activated users can see links. ]
    btb.servegame.com:
     

  3. #3  
    Since '06

    Ayton's Avatar
    Join Date
    Dec 2006
    Age
    25
    Posts
    1,417
    Thanks given
    63
    Thanks received
    36
    Discord
    View profile
    Rep Power
    327
    Nice! Very handy
    R3p ++
    [Only registered and activated users can see links. ]
     

  4. #4  
    Registered Member
    Your Name's Avatar
    Join Date
    Oct 2007
    Age
    29
    Posts
    1,442
    Thanks given
    0
    Thanks received
    4
    Rep Power
    172
    ill rep her then lol nice
    [Only registered and activated users can see links. ]



    MoparScape name = Doodooss
     

  5. #5  
    Lexii
    Guest
    im glad u guys like it :]
     

  6. #6  
    mr s' sock
    Guest
    I remmember like 2 years ago Atteke made something like this for his server.

    i dont know how.

    but it changed the percentage of rare drops on monsters, trawler fish gains, and some more things
     

  7. #7  
    Lexii
    Guest
    Quote Originally Posted by mr s' sock View Post
    I remmember like 2 years ago Atteke made something like this for his server.

    i dont know how.

    but it changed the percentage of rare drops on monsters, trawler fish gains, and some more things
    uhm...so how would that do what this thing does?
    and if ur suggesting its leached...i guarantee its not :]
     

  8. #8  
    Registered Member

    Join Date
    Jan 2008
    Posts
    2,345
    Thanks given
    20
    Thanks received
    575
    Rep Power
    1202
    This looks pretty nice, good to use when your tired of the dupers with so much stuff.


    And i added it to my serv=))

    it works 2, i tested it=0
     

  9. #9  
    Registered Member
    Join Date
    Nov 2007
    Posts
    21
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    I get this error when I apply the stuff like you have it
    Code:
    Exception in thread "main" java.lang.NoClassDefFoundError: /javac/exe
    Caused by: java.lang.ClassNotFoundException: .javac.exe
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    Exception in thread "main" java.lang.NoClassDefFoundError: /java/exe
    Caused by: java.lang.ClassNotFoundException: .java.exe
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    Press any key to continue . . .
    can someone please help me....
     

  10. #10  
    Lexii
    Guest
    illuzion
    make sure u are naming all the files right and they are in your server folder
    try repeating all the steps and starting over
     

Page 1 of 6 123 ... LastLast

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
  •