Thread: How to eco reset a 718?

Results 1 to 8 of 8
  1. #1 How to eco reset a 718? 
    Registered Member
    Join Date
    Mar 2013
    Posts
    69
    Thanks given
    1
    Thanks received
    1
    Rep Power
    11
    Hey Rune-Server,

    Just coming out of beta soon and i was wondering how to do an eco reset for my players who have helped me test,
    they want to keep their skill levels.

    thank you!
    Reply With Quote  
     

  2. #2  
    Owner of Virtus
    k0ed ur mom's Avatar
    Join Date
    Jun 2012
    Age
    34
    Posts
    540
    Thanks given
    20
    Thanks received
    46
    Rep Power
    11
    please read other threads before posting cause im pretty sure i released this not even 24 hours ago in the help section.
    anyways
    Code:
    package com.rs.tools;
    
    import java.io.File;
    import java.io.IOException;
    
    import com.rs.utils.Utils;
    import com.rs.game.item.Item;
    import com.rs.game.player.Player;
    import com.rs.game.player.Skills;
    import com.rs.game.player.content.MoneyPouch;
    import com.rs.utils.SerializableFilesManager;
    
    public class SkillsReseter {
    
    	public static void main(String[] args) throws ClassNotFoundException,
    			IOException {		
    		File[] chars = new File("data/playersaves/characters").listFiles();
    		for (File acc : chars) {
    			try {
    				Player player = (Player) SerializableFilesManager
    						.loadSerializedFile(acc);
    				for (int i = 0; i < 25353; i++) {
    					player.getBank().removeItem(i);
    				}
    				for (int i = 0; i < 25353; i++) {
    					player.getInventory().getItems()
    							.removeAll(new Item(i, Integer.MAX_VALUE));
    				}
    				for (int i = 0; i < 25353; i++) {
    					player.getEquipment().getItems()
    							.removeAll(new Item(i, Integer.MAX_VALUE));
    				}
    				player.setCoins(0);
    				player.reseted = 1;
    				SerializableFilesManager.storeSerializableClass(player, acc);
    			} catch (Throwable e) {
    				e.printStackTrace();
    				System.out.println("failed: " + acc.getName());
    			}
    		}
    		System.out.println("Done.");
    	}
    }
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Mar 2013
    Posts
    69
    Thanks given
    1
    Thanks received
    1
    Rep Power
    11
    Quote Originally Posted by k0ed ur mom View Post
    please read other threads before posting cause im pretty sure i released this not even 24 hours ago in the help section.
    anyways
    Code:
    package com.rs.tools;
    
    import java.io.File;
    import java.io.IOException;
    
    import com.rs.utils.Utils;
    import com.rs.game.item.Item;
    import com.rs.game.player.Player;
    import com.rs.game.player.Skills;
    import com.rs.game.player.content.MoneyPouch;
    import com.rs.utils.SerializableFilesManager;
    
    public class SkillsReseter {
    
    	public static void main(String[] args) throws ClassNotFoundException,
    			IOException {		
    		File[] chars = new File("data/playersaves/characters").listFiles();
    		for (File acc : chars) {
    			try {
    				Player player = (Player) SerializableFilesManager
    						.loadSerializedFile(acc);
    				for (int i = 0; i < 25353; i++) {
    					player.getBank().removeItem(i);
    				}
    				for (int i = 0; i < 25353; i++) {
    					player.getInventory().getItems()
    							.removeAll(new Item(i, Integer.MAX_VALUE));
    				}
    				for (int i = 0; i < 25353; i++) {
    					player.getEquipment().getItems()
    							.removeAll(new Item(i, Integer.MAX_VALUE));
    				}
    				player.setCoins(0);
    				player.reseted = 1;
    				SerializableFilesManager.storeSerializableClass(player, acc);
    			} catch (Throwable e) {
    				e.printStackTrace();
    				System.out.println("failed: " + acc.getName());
    			}
    		}
    		System.out.println("Done.");
    	}
    }
    i tried that... and sorry i did not see your post earlier.

    Error: Could not find or load main class com.rs.tools.SkillsReseter
    Press any key to continue . . .
    Reply With Quote  
     

  4. #4  
    Owner of Virtus
    k0ed ur mom's Avatar
    Join Date
    Jun 2012
    Age
    34
    Posts
    540
    Thanks given
    20
    Thanks received
    46
    Rep Power
    11
    Quote Originally Posted by iiJordan View Post
    i tried that... and sorry i did not see your post earlier.


    Press any key to continue . . .
    did you compile?
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Mar 2013
    Posts
    69
    Thanks given
    1
    Thanks received
    1
    Rep Power
    11
    Quote Originally Posted by k0ed ur mom View Post
    did you compile?
    eco reset compiler
    EconomyReset.java:20: error: method resetEcoChar in class EconomyReset cannot be
    applied to given types;
    resetEcoChar(charFiles);
    ^
    required: File
    found: File[]
    reason: actual argument File[] cannot be converted to File by method invocatio
    n conversion
    Note: EconomyReset.java uses or overrides a deprecated API.
    Note: Recompile with -Xlinteprecation for details.
    1 error
    Press any key to continue . . .
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    May 2011
    Age
    29
    Posts
    2,246
    Thanks given
    2,469
    Thanks received
    1,120
    Rep Power
    943
    [Java] package com.rs.tools; import java.io.File; import java.io.IOException; import - Pastebin.com

    You'll not have a few of the methods, use your head and it shouldn't be hard to figure out.
    Reply With Quote  
     

  7. #7  
    Owner of Virtus
    k0ed ur mom's Avatar
    Join Date
    Jun 2012
    Age
    34
    Posts
    540
    Thanks given
    20
    Thanks received
    46
    Rep Power
    11
    Not sure how you managed to get an error, just a copy/paste. Works fine for me and the guy i helped yesterday. Use an IDE
    Reply With Quote  
     

  8. #8  
    Registered Member Coookie's Avatar
    Join Date
    May 2012
    Posts
    547
    Thanks given
    21
    Thanks received
    38
    Rep Power
    14
    damn i just need an eco reset, not fully reset. only items i want to be reset, not skills.
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

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


User Tag List

Similar Threads

  1. Replies: 9
    Last Post: 06-03-2015, 09:42 PM
  2. How To Make Upgraded Weapons (718)
    By Paradox- in forum Tutorials
    Replies: 68
    Last Post: 01-07-2014, 03:40 PM
  3. how to change item bonuses 718
    By Nimesh89 in forum Help
    Replies: 2
    Last Post: 04-15-2013, 08:58 PM
  4. How To Eco Reset Items On [PI] ?
    By Learth in forum Help
    Replies: 1
    Last Post: 09-29-2011, 09:30 PM
  5. How to make ur sevrer reset with a command
    By Rickii in forum Tutorials
    Replies: 56
    Last Post: 12-14-2007, 08:58 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •