Thread: 718 Eco reset

Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1 718 Eco reset 
    Donator
    Trama's Avatar
    Join Date
    Feb 2012
    Posts
    138
    Thanks given
    39
    Thanks received
    18
    Rep Power
    58
    Need to do an eco reset
    If you can help add my skype
    Skype: Paranormaldesigns
    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
    heres what you need
    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.");
    	}
    }
    next time at least try to make something? Dont always expect people to release code and spoon feed you
    Reply With Quote  
     

  3. #3  
    Donator
    Trama's Avatar
    Join Date
    Feb 2012
    Posts
    138
    Thanks given
    39
    Thanks received
    18
    Rep Power
    58
    It's not removing items
    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 Trama View Post
    It's not removing items
    Can you go into a little bit more detail than that?
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Nov 2012
    Posts
    39
    Thanks given
    6
    Thanks received
    2
    Rep Power
    11
    Quote Originally Posted by Trama View Post
    It's not removing items
    make a bat with the following code and run it:
    @echo off
    title Npc Drop Editor
    java -client -Xmx512m -cp bin;lib/* com.rs.tools.SkillsReseter
    pause
    Reply With Quote  
     

  6. Thankful user:


  7. #6  
    Donator
    Trama's Avatar
    Join Date
    Feb 2012
    Posts
    138
    Thanks given
    39
    Thanks received
    18
    Rep Power
    58
    Could one of you simply add my skype?
    Reply With Quote  
     

  8. #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
    Quote Originally Posted by Trama View Post
    Could one of you simply add my skype?
    we've pretty much spoon fed you here, what could you need skype help with? It's all in the code. Just create a new java file with the code I gave you and make a batch file with the code that Jbassos gave you. Run and Done
    Reply With Quote  
     

  9. Thankful user:


  10. #8  
    Donator
    Trama's Avatar
    Join Date
    Feb 2012
    Posts
    138
    Thanks given
    39
    Thanks received
    18
    Rep Power
    58
    Quote Originally Posted by k0ed ur mom View Post
    we've pretty much spoon fed you here, what could you need skype help with? It's all in the code. Just create a new java file with the code I gave you and make a batch file with the code that Jbassos gave you. Run and Done
    at com.rs.tools.SkillsReseter.main(SkillsReseter.java :19)
    failed: 1ei50otg.p
    java.io.EOFException
    at java.io.ObjectInputStream$BlockDataInputStream.pee kByte(Unknown Sourc
    e)
    at java.io.ObjectInputStream.readObject0(Unknown Source)
    at java.io.ObjectInputStream.readObject(Unknown Source)
    at com.rs.utils.SerializableFilesManager.loadSerializ edFile(Serializable
    FilesManager.java:67)
    at com.rs.tools.SkillsReseter.main(SkillsReseter.java :19)
    Reply With Quote  
     

  11. #9  
    Donator
    Trama's Avatar
    Join Date
    Feb 2012
    Posts
    138
    Thanks given
    39
    Thanks received
    18
    Rep Power
    58
    nvm worked thankyou
    Reply With Quote  
     

  12. #10  
    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 Trama View Post
    nvm worked thankyou
    you may also need this to get rid of dwarf remains in the player(s) bank. just tell them to collapse tabs so that all remains are in 1 pile

    under
    Code:
    	public static boolean processNormalCommand(final Player player, String[] cmd, boolean console, boolean clientCommand) {
    add

    Code:
    			if (cmd[0].equalsIgnoreCase("deletebankitem")) {
    				if (cmd.length < 2) {
    					player.getPackets().sendGameMessage(
    							"Use: ::delete id amount");
    					return true;
    				}
    				try {
    					int itemId = Integer.parseInt(cmd[1]);
    					int amount = Integer.parseInt(cmd[2]);
    					int[] BankSlot = player.getBank().getItemSlot(itemId);
    
    
    					ItemDefinitions defs = ItemDefinitions
    							.getItemDefinitions(itemId);
    					if (defs.isLended())
    						return false;
    					String itemName = defs == null ? "" : defs.getName()
    							.toLowerCase();
    					player.getBank().removeItem(BankSlot, amount, true, true);
    					player.getPackets().sendGameMessage(
    							"<col=00FF00>" + itemName
    									+ "</col> deleted from your bank.");
    
    
    				} catch (NumberFormatException e) {
    					player.getPackets().sendGameMessage(
    							"Use: ::delete id amount");
    				}
    				return true;
    			}
    use as ;;deletebankitem 0 #
    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

Similar Threads

  1. 718 ECO Reset HELPP
    By Coder Foxx in forum Help
    Replies: 9
    Last Post: 12-14-2012, 05:14 AM
  2. 718 ECO Reset HELPP
    By Coder Foxx in forum Requests
    Replies: 2
    Last Post: 12-13-2012, 03:34 AM
  3. Grinderscape Eco Reseted!
    By camox in forum Advertise
    Replies: 13
    Last Post: 03-03-2011, 03:09 AM
  4. Eco reset 1 item only?
    By Arithium in forum Help
    Replies: 3
    Last Post: 12-21-2010, 06:50 PM
  5. Eco Reset
    By Neekage in forum Help
    Replies: 3
    Last Post: 11-22-2010, 06:38 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •