Thread: [PI] Economy reset

Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1 [PI] Economy reset 
    Registered Member
    Join Date
    Jun 2010
    Age
    27
    Posts
    2,528
    Thanks given
    544
    Thanks received
    584
    Rep Power
    411
    Fixed.
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Jul 2010
    Posts
    72
    Thanks given
    0
    Thanks received
    1
    Rep Power
    14
    Like what do you need exactly just to remove all bank/inventory items?
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Jun 2010
    Age
    27
    Posts
    2,528
    Thanks given
    544
    Thanks received
    584
    Rep Power
    411
    Rmove all items
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Jun 2010
    Age
    27
    Posts
    2,528
    Thanks given
    544
    Thanks received
    584
    Rep Power
    411
    Bump please
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Apr 2010
    Posts
    309
    Thanks given
    0
    Thanks received
    3
    Rep Power
    2
    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 EconomyReset
    {

    private static File charDir = new File("Data/characters/");

    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();
    }
    }
    }
    Save as "EconomyReset.java"
    Then open up another Notepad and type in:
    @echo off
    title SoulSplit Eco Reset
    java EconomyReset
    pause
    Save as EceReset.bat
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Jun 2010
    Age
    27
    Posts
    2,528
    Thanks given
    544
    Thanks received
    584
    Rep Power
    411
    Quote Originally Posted by Razulo View Post
    Save as "EconomyReset.java"
    Then open up another Notepad and type in:

    Save as EceReset.bat
    Ty

    repped
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Dec 2009
    Posts
    39
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    how can u do that for (x86) i need that..
    Reply With Quote  
     

  8. #8  
    Registered Member
    Join Date
    Dec 2010
    Posts
    2
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Quote Originally Posted by Razulo View Post
    Save as "EconomyReset.java"
    Then open up another Notepad and type in:

    Save as EceReset.bat
    when u say save these as ecoreset.java and stuff, where do you save them at..? what part of the folder where?
    Reply With Quote  
     

  9. #9  
    Registered Member walid's Avatar
    Join Date
    Nov 2008
    Posts
    379
    Thanks given
    6
    Thanks received
    8
    Rep Power
    3
    Here is a tool:

    ServManager(SwVersion).jar
    Reply With Quote  
     

  10. #10  
    Registered Member
    Join Date
    Feb 2011
    Posts
    163
    Thanks given
    1
    Thanks received
    2
    Rep Power
    1
    ik this is reviving, i did this, but when i run the EcoReset.bat i get this

    Code:
    Exception in thread "main" java.lang.NoClassDefFoundError: EconomyReset
    Caused by: java.lang.ClassNotFoundException: EconomyReset
            at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
            at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    Could not find the main class: EconomyReset.  Program will exit.
    Press any key to continue . . .


    Looking for an experienced coder (pi) send me a PM if your interested
    Quote Originally Posted by anonymous View Post
    if your going to flame/spam/hate cooz im dumb/not help or just be an @$$ then i suggest you go f**k yourself... have a nice day
    Reply With Quote  
     

Page 1 of 2 12 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
  •