Thread: How to Dump Data from Clients! [OSRS - Zulrah]

Page 3 of 5 FirstFirst 12345 LastLast
Results 21 to 30 of 48
  1. #21  
    Banned
    Join Date
    Dec 2015
    Posts
    240
    Thanks given
    66
    Thanks received
    42
    Rep Power
    0
    nice
     

  2. #22  
    Donator
    Groot's Avatar
    Join Date
    Mar 2016
    Posts
    64
    Thanks given
    66
    Thanks received
    14
    Rep Power
    21
    need this to be finished. ty sir....
     

  3. #23  
    Registered Member

    Join Date
    Jul 2007
    Age
    32
    Posts
    466
    Thanks given
    90
    Thanks received
    52
    Rep Power
    87
    Really nice done but Im looking for map tutorial part
     

  4. #24  
    Super Donator

    StanDev's Avatar
    Join Date
    Apr 2014
    Posts
    660
    Thanks given
    82
    Thanks received
    255
    Rep Power
    592
    Hmm you kinda copied my style.... But I guess that's a good thing.
     

  5. Thankful user:


  6. #25  
    Registered Member Arth's Avatar
    Join Date
    May 2011
    Posts
    751
    Thanks given
    29
    Thanks received
    39
    Rep Power
    9
    Quote Originally Posted by icebrick View Post
    Hmm you kinda copied my style.... But I guess that's a good thing.
    Thanks for not minding... Call it... Err... Inspiration?
    Spoiler for Dont Click Me!:
     

  7. #26  
    Registered Member
    Join Date
    Nov 2015
    Posts
    173
    Thanks given
    6
    Thanks received
    2
    Rep Power
    11
    What can i put instead of
    Code:
    public static void dump() {
    		File f = new File("npc.txt");
    		System.out.println("Dumping Npc..");
    		String[] variableNames = new String[] { "models", "name", "description", "squaresNeeded", "standAnim",
    				"walkAnim", "runAnim", "turn180AnimIndex", "turn90CWAnimIndex", "turn90CCWAnimIndex", "actions",
    				"destColours", "originalColours", "npcHeadModels", "drawMinimapDot", "combatLevel", "sizeXZ", "sizeY",
    				"hasRenderPriority", "lightning", "shadow", "headIcon", "degreesToTurn", "varbitId", "varSettingsId",
    				"childrenIDs", "clickable" };
    		try {
    			f.createNewFile();
    			BufferedWriter bf = new BufferedWriter(new FileWriter(f));
    			for (int index = 0; index < totalNPCs; index++) {
    				EntityDef def = forID(index);
    				String models = Arrays.toString(def.anIntArray94);
    				String name = def.name;
    				String description = def.description + "";
    				String squaresNeeded = def.aByte68 + "";
    				String standAnim = def.standAnim + "";
    				String walkAnim = def.walkAnim + "";
    				String runAnim = def.walkAnim + "";
    				String turn180AnimIndex = def.anInt58 + "";
    				String turn90CWAnimIndex = def.anInt83 + "";
    				String turn90CCWAnimIndex = def.anInt55 + "";
    				String actions = Arrays.toString(def.actions);
    				String destColours = Arrays.toString(def.anIntArray76);
    				String originalColours = Arrays.toString(def.anIntArray70);
    				String npcHeadModels = Arrays.toString(def.anIntArray73);
    				String drawMinimapDot = def.aBoolean87 + "";
    				String combatLevel = def.combatLevel + "";
    				String sizeXZ = def.anInt91 + "";
    				String sizeY = def.anInt86 + "";
    				String hasRenderPriority = def.aBoolean93 + "";
    				String lightning = def.anInt85 + "";
    				String shadow = def.anInt92 + "";
    				String headIcon = def.anInt75 + "";
    				String degreesToTurn = def.anInt79 + "";
    				String varbitId = def.anInt57 + "";
    				String varSettingsId = def.anInt59 + "";
    				String childrenIDs = Arrays.toString(def.childrenIDs);
    				String clickable = def.aBoolean84 + "";
    
    				String[] variables = new String[] { models, name, description, squaresNeeded, standAnim, walkAnim,
    						runAnim, turn180AnimIndex, turn90CWAnimIndex, turn90CCWAnimIndex, actions, destColours,
    						originalColours, npcHeadModels, drawMinimapDot, combatLevel, sizeXZ, sizeY, hasRenderPriority,
    						lightning, shadow, headIcon, degreesToTurn, varbitId, varSettingsId, childrenIDs, clickable };
    				bf.write("case " + index + ":");
    				bf.newLine();
    				for (int i = 0; i < variables.length; i++) {
    					bf.write("npc." + variableNames[i] + " = " + variables[i] + ";");
    					bf.newLine();
    				}
    				bf.write("break;");
    				bf.newLine();
    				bf.newLine();
    			}
    			bf.close();
    		} catch (IOException e) {
    			e.printStackTrace();
    		}
    		System.out.println("Dumping Complete!");
    	}
    Code:
     totalNPCs;
    im getting an error from it?
     

  8. #27  
    Registered Member Arth's Avatar
    Join Date
    May 2011
    Posts
    751
    Thanks given
    29
    Thanks received
    39
    Rep Power
    9
    Quote Originally Posted by JHUSS View Post
    What can i put instead of
    Code:
    public static void dump() {
    		File f = new File("npc.txt");
    		System.out.println("Dumping Npc..");
    		String[] variableNames = new String[] { "models", "name", "description", "squaresNeeded", "standAnim",
    				"walkAnim", "runAnim", "turn180AnimIndex", "turn90CWAnimIndex", "turn90CCWAnimIndex", "actions",
    				"destColours", "originalColours", "npcHeadModels", "drawMinimapDot", "combatLevel", "sizeXZ", "sizeY",
    				"hasRenderPriority", "lightning", "shadow", "headIcon", "degreesToTurn", "varbitId", "varSettingsId",
    				"childrenIDs", "clickable" };
    		try {
    			f.createNewFile();
    			BufferedWriter bf = new BufferedWriter(new FileWriter(f));
    			for (int index = 0; index < totalNPCs; index++) {
    				EntityDef def = forID(index);
    				String models = Arrays.toString(def.anIntArray94);
    				String name = def.name;
    				String description = def.description + "";
    				String squaresNeeded = def.aByte68 + "";
    				String standAnim = def.standAnim + "";
    				String walkAnim = def.walkAnim + "";
    				String runAnim = def.walkAnim + "";
    				String turn180AnimIndex = def.anInt58 + "";
    				String turn90CWAnimIndex = def.anInt83 + "";
    				String turn90CCWAnimIndex = def.anInt55 + "";
    				String actions = Arrays.toString(def.actions);
    				String destColours = Arrays.toString(def.anIntArray76);
    				String originalColours = Arrays.toString(def.anIntArray70);
    				String npcHeadModels = Arrays.toString(def.anIntArray73);
    				String drawMinimapDot = def.aBoolean87 + "";
    				String combatLevel = def.combatLevel + "";
    				String sizeXZ = def.anInt91 + "";
    				String sizeY = def.anInt86 + "";
    				String hasRenderPriority = def.aBoolean93 + "";
    				String lightning = def.anInt85 + "";
    				String shadow = def.anInt92 + "";
    				String headIcon = def.anInt75 + "";
    				String degreesToTurn = def.anInt79 + "";
    				String varbitId = def.anInt57 + "";
    				String varSettingsId = def.anInt59 + "";
    				String childrenIDs = Arrays.toString(def.childrenIDs);
    				String clickable = def.aBoolean84 + "";
    
    				String[] variables = new String[] { models, name, description, squaresNeeded, standAnim, walkAnim,
    						runAnim, turn180AnimIndex, turn90CWAnimIndex, turn90CCWAnimIndex, actions, destColours,
    						originalColours, npcHeadModels, drawMinimapDot, combatLevel, sizeXZ, sizeY, hasRenderPriority,
    						lightning, shadow, headIcon, degreesToTurn, varbitId, varSettingsId, childrenIDs, clickable };
    				bf.write("case " + index + ":");
    				bf.newLine();
    				for (int i = 0; i < variables.length; i++) {
    					bf.write("npc." + variableNames[i] + " = " + variables[i] + ";");
    					bf.newLine();
    				}
    				bf.write("break;");
    				bf.newLine();
    				bf.newLine();
    			}
    			bf.close();
    		} catch (IOException e) {
    			e.printStackTrace();
    		}
    		System.out.println("Dumping Complete!");
    	}
    Code:
     totalNPCs;
    im getting an error from it?
    Make a static variable for the size of the array.
    Spoiler for Dont Click Me!:
     

  9. #28  
    Registered Member
    Join Date
    Nov 2015
    Posts
    173
    Thanks given
    6
    Thanks received
    2
    Rep Power
    11
    Quote Originally Posted by Arth View Post
    Make a static variable for the size of the array.
    What do you mean mate? not sure how to

    Asin this?
    Code:
    int totalNPCs =
     

  10. #29  
    Registered Member Arth's Avatar
    Join Date
    May 2011
    Posts
    751
    Thanks given
    29
    Thanks received
    39
    Rep Power
    9
    Quote Originally Posted by JHUSS View Post
    What do you mean mate? not sure how to

    Asin this?
    Code:
    int totalNPCs =
    Yes make it static
    Spoiler for Dont Click Me!:
     

  11. #30  
    Registered Member
    Join Date
    Nov 2015
    Posts
    173
    Thanks given
    6
    Thanks received
    2
    Rep Power
    11
    Quote Originally Posted by Arth View Post
    Yes make it static
    I did and it removed the error but when it dumps the data it gives me a blank NPC.txt file, should it be int totalNPCs = 0? or a diff number?
     

Page 3 of 5 FirstFirst 12345 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. How to send data from server to client
    By Kakapo in forum Help
    Replies: 2
    Last Post: 03-01-2012, 05:07 AM
  2. How to dump info from clients (items, npcs, and objects)
    By Anthony-| in forum Informative Threads
    Replies: 46
    Last Post: 03-10-2011, 04:44 PM
  3. How to dump GFX from runescape?
    By Underoath in forum Requests
    Replies: 6
    Last Post: 08-25-2009, 11:49 AM
  4. Replies: 2
    Last Post: 05-07-2009, 10:49 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
  •