Jump to content

Search the Community

Showing results for tags 'drops'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • RuneLocus
    • News & Announcements
    • Information Booth
    • Website Support
    • Introductions
    • Chat
    • Forum Games
  • RuneScape Development
    • RSPS General
    • RuneScape Private Server (RS2)
    • RuneScape Private Server (503+)
    • RuneScape Private Server (EoC 742+)
  • Other
    • Digital Art
    • Gaming
    • Webdevelopment
    • Computers
  • Marketplace
    • RuneScape Market
    • RSPS Market
    • Others Market
    • Freelance Middleman Services
  • Super Secret Club's Topics

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Found 104 results

  1. terrel8125

    [PI] Drops

    Right, ok, well my npcdrops.tsm looks like this [url]http://prntscr.com/xr29q[/url] but when ever i try and edit this i always get this error in my runserver: [url]http://prntscr.com/xr2bz[/url] how do i edit the drops without this error????
  2. The title says all. I want to change what they drop and the percentage at which the item(s) are dropped. Thanks!!
  3. I have tried for hours... but I just cannot get this. How do you unpack packedDrops.d????!!!! Please someone help me? Or atleast how do you change what NPC's drop? I have been really trying for hours and I just cannot get it! :mad:
  4. Hello, I just coded the Polypore Dungeon. But, the only problem is, the Ganodermic Beasts don't drop any Ganodermic Items/Polypore items. I don't have a method to pack/unpack drops, so is there any other way I can make Ganodermic Beasts drop Ganodermic armour? I've also tried a drop editor, but every single one ends up with an error. I really need this! Thanks!!!!! :)
  5. I REALLY need this because this is the method to pack unpacked drops! And it went well. Except for one error! If anyone could fix this, I would be so appreciative! <3 Here is the error that I am getting: [CODE]Compiling BronzeGod 724, please wait... src\com\rs\utils\NPCDrops.java:65: error: constructor Drop in class Drop cannot be applied to given types; npcDrops.put(itemId, new Drop(rate, minAmount, maxAmount, rare)); ^ required: int,double,int,int,boolean found: int,int,int,int reason: actual and formal argument lists differ in length 1 error[/CODE] Here is my NPCDrops.java: [CODE]package com.rs.utils; import java.io.RandomAccessFile; import java.nio.ByteBuffer; import java.io.BufferedReader; import java.nio.channels.FileChannel; import java.nio.channels.FileChannel.MapMode; import java.util.ArrayList; import java.util.HashMap; import java.util.LinkedHashMap; import java.util.Map; import java.io.DataOutputStream; import java.io.File; import java.io.FileOutputStream; import java.io.FileReader; import com.rs.game.npc.Drop;; public class NPCDrops { private final static String PACKED_PATH = "data/npcs/packedDrops.d"; private static HashMap<Integer, Drop[]> npcDrops; public static Drop[] getDrops(int npcId) { return npcDrops.get(npcId); } public static void init() { if (new File(PACKED_PATH).exists()) loadPackedNPCDrops(); else loadUnpackedDrops(); } private static void loadUnpackedDrops() { int count = 0; Logger.log("NPCdrops", "Packing npc drops..."); try { DataOutputStream out = new DataOutputStream(new FileOutputStream( PACKED_PATH)); BufferedReader in = new BufferedReader(new FileReader( "data/npcs/unpackedDrops.txt")); while (true) { String line = in.readLine(); count++; if (line == null) break; if (line.startsWith("//")) continue; String[] splitedLine = line.split(" - ", 2); if (splitedLine.length != 2) throw new RuntimeException( "Invalid NPC drop line: " + count + ", " + line); String[] splitedLine2 = splitedLine[1].split(" ", 0); int npcId = Integer.parseInt(splitedLine[0]); int itemId = Integer.parseInt(splitedLine2[0]); int rate = Integer.parseInt(splitedLine2[1]); int minAmount = Integer.parseInt(splitedLine2[2]); int maxAmount = Integer.parseInt(splitedLine2[3]); int rare = Integer.parseInt(splitedLine2[4]); out.writeShort(itemId); out.writeShort(rate); out.writeShort(minAmount); out.writeShort(maxAmount); out.writeShort(rare); npcDrops.put(itemId, new Drop(rate, minAmount, maxAmount, rare)); } in.close(); out.close(); } catch (Throwable e) { Logger.handle(e); } } private static void loadPackedNPCDrops() { try { RandomAccessFile in = new RandomAccessFile(PACKED_PATH, "r"); FileChannel channel = in.getChannel(); ByteBuffer buffer = channel.map(MapMode.READ_ONLY, 0, channel.size()); int dropSize = buffer.getShort() & 0xffff; npcDrops = new HashMap<Integer, Drop[]>(dropSize); for (int i = 0; i < dropSize; i++) { int npcId = buffer.getShort() & 0xffff; Drop[] drops = new Drop[buffer.getShort() & 0xffff]; for (int d = 0; d < drops.length; d++) { if (buffer.get() == 0) drops[d] = new Drop(buffer.getShort() & 0xffff, buffer.getDouble(), buffer.getInt(), buffer.getInt(), false); else drops[d] = new Drop(0, 0, 0, 0, true); } npcDrops.put(npcId, drops); } channel.close(); in.close(); } catch (Throwable e) { Logger.handle(e); } } public HashMap<Integer, Drop[]> getDropMap() { return npcDrops; } }[/CODE] Seriously.. if anyone can help me with this... I will be so appreciative it will actually be scary.. >.> :D
  6. I just wrote a new method to pack NPC drops. But the problem is that I keep getting this one damn error! :p The error is in NPCDrops.java. ERROR: [CODE]Compiling BronzeGod 724, please wait... src\com\rs\utils\NPCDrops.java:20: error: cannot find symbol loadPackedDrops(); ^ symbol: method loadPackedDrops() location: class NPCDrops 1 error [/CODE] NPCDrops.java [CODE]package com.rs.utils; import java.io.RandomAccessFile; import java.io.File; import java.nio.ByteBuffer; import java.nio.channels.FileChannel; import java.nio.channels.FileChannel.MapMode; import java.util.HashMap; import com.rs.game.npc.Drop; public class NPCDrops { private final static String PACKED_PATH = "data/npcs/packedDrops.d"; private static final String UNPACKED_PATH = "data/npcs/unpackedDrops.txt"; private static HashMap<Integer, Drop[]> npcDrops; public static void init() { if (new File(PACKED_PATH).exists()) loadPackedDrops(); else loadUnpackedDrops(); } public static Drop[] getDrops(int npcId) { return npcDrops.get(npcId); } private static void loadUnpackedDrops() { Logger.log("NPCDrops", "Packing drops..."); try { RandomAccessFile in = new RandomAccessFile(PACKED_PATH, "r"); FileChannel channel = in.getChannel(); ByteBuffer buffer = channel.map(MapMode.READ_ONLY, 0, channel.size()); int dropSize = buffer.getShort() & 0xffff; npcDrops = new HashMap<Integer, Drop[]>(dropSize); for (int i = 0; i < dropSize; i++) { int npcId = buffer.getShort() & 0xffff; Drop[] drops = new Drop[buffer.getShort() & 0xffff]; for (int d = 0; d < drops.length; d++) { if (buffer.get() == 0) drops[d] = new Drop(buffer.getShort() & 0xffff, buffer.getDouble(), buffer.getInt(), buffer.getInt(), false); else drops[d] = new Drop(0, 0, 0, 0, true); } npcDrops.put(npcId, drops); } channel.close(); in.close(); } catch (Throwable e) { Logger.handle(e); } } public HashMap<Integer, Drop[]> getDropMap() { return npcDrops; } } [/CODE] I think I'm missing an import. Not sure, though. If I am, could you direct me towards what it is? Thanks :D
  7. ok just gona start by saying i need help please:) when i click the corner of items tht are in my first 2 inv slots it drops them was just wondering if anyone knows how to solve this problem cause when i put server online dont want people trying to brid and dropping there items by mistake instead of switching please get back to me as soon as possible. if u can help me post here or add me on skype: pvm-barry thanks. willing to pay 5m rsgp<if this is not aloud please tell me here is a pic [ATTACH=CONFIG]7027[/ATTACH] thts what happens when i hover over corner of item then it only show 1 option when right clicked [ATTACH=CONFIG]7028[/ATTACH]
  8. Base: Matrix Source (Revised) Revision:718 loading 724 The Problem: Please don't flame. -I would like to change NPC's drops, although I don't know how. I know this sounds awful in some way but please help me. Information & Media: I've tried to find a tutorial/some kind of help. I'm guessing the "dropeditor.java" has been deleted or purposely removed. If they're "packed" I have no clue to unpack them. Please respond below, I'd be happy to be contacted on MSN/Skype.
  9. I'm currently having some issues with editing NPC drops. This is the only type of file I have this issue with, so I'll try to explain in detail. The file names (if this helps) are packedDrops.d and unpackedNPCDrops.txt. With any unpacked and packed file, usually you just edit the unpacked version of it, save whatever changes you made, then delete the original packed file. However, when I do this with the drops, it never makes a new packedDrops.d like it is supposed to. I know I haven't given as much detail as is properly needed, but I don't know how else to explain the issue. I've looked for drop editors, and also tried creating a new drop system without much success. If you feel like helping, please add my skype "eastbayerday" Any assistance is greatly appreciated.
  10. I downed a server called "impozzes" and i was wondering how do i change the drops on npcs? i opened up the npc drop.cfg file in the source and i tried to make a dust devil drop all nex items (as a test) but the dust devil just kept dropping rune. heres a pic of what the file looks like:[ATTACH=CONFIG]6512[/ATTACH]
  11. im using the zenith 728 source and ive been searching how to change drops/drop rates on NPCS and i just cant figure this out im stumped lol i know how but i just cant find the correct folder?? any ideas?
  12. Hey, so when I try to select more than one drop to delete, then hit "delete selected drop" it only deletes one. Also, when I select an npc ID and hit "Remove NPC Drop," the program kind of freezes for a moment, then unfreezes but nothing has happened? Is this just because it's impossible to remove more than one drop at a time? I'd love to be able to delete multiple drops at once (or all drops if I can, so I can manually add them how I want.)
  13. Hey, So I've heard this is a common 667/7** error, but I never have found the cause of it, or the fix to it. When killing an NPC, if you're moving as it dies, you get no drop what-so-ever. Also if this NPC is your Slayer task, you get no Slayer EXP for the kill either. It's just basically extremely annoying standing still after every kill, especially when the NPC itself moves, and you follow. PS: Also, when I have a moving NPC with a shop, and I try to open up the shop from a far distance, and the NPC moves, my character stops where the shop previously was, resulting in a chatbox message "You cannot reach that." Perhaps those connect? Thanks for any help.
  14. Push

    How to add NPC drops..

    I've got no clue how to do this. I'm a newbie to 719s. I'm not asking anyone to spoonfeed me, but as much help as you're willing to give would be greatly appreciated.
  15. i got 667/*** server when i drop coins or anything it dont show for other players how to fix that? thanks,
  16. What is RS

    Help with drops

    My drop editor is fine, the only issue is, when you move after npc has died, the drop won't appear. You have to stand still for the drop to appear, otherwise it won't. Any conclusions on this would be helpful.
  17. Hey guys I need help. In this thread [url]http://www.runelocus.com/forums/showthread.php?67540-Unpacked-NPCDrops-Matrix[/url] it says you remove the packedrops file and it'll pack the new one once you run the server. I did that and it simply said it couldn't find the drops (so it didn't pack them) Can anyone help me out here :(
  18. I've been trying to get help with this for days now, I have gotten absolutely no help. From what I understand drops.bin is basically the packed drops file, and normally you need to edit the unpacked drops and delete the packed drops so it updates. But for whatever reason the sources don't have a way to do this, so the drops are stuck. I've been searching every forum and all over Google, but no one has an answer. There's something about a drop editor, which makes no sense to me. If someone could explain how to actually use it that would be great. Would someone PLEASE explain how to edit the drops. Don't tell me to edit the NPCDrops to make it pack/unpack/whatever. I don't know how to do that, and no one has told me how. The source is NRS3 or something, but from I've seen EVERY source is exactly like this. They obviously edited the drops some way, so how? Thanks.
  19. Lore

    667 Packing Drops

    I need help with NPC drops, they can't be packed or unpacked. I would like to edit them, I've tried quite a bit but I'm thinking there is more than just changing some file names. If you can help me pack the drops, or edit the drops in some other way that would be great. NPCDrops.java [CODE]package com.rs.utils; import java.io.BufferedReader; import java.io.DataOutputStream; import java.io.File; import java.io.FileOutputStream; import java.io.FileReader; import java.io.IOException; import java.io.RandomAccessFile; import java.nio.ByteBuffer; import java.nio.channels.FileChannel; import java.nio.channels.FileChannel.MapMode; import java.util.HashMap; import com.rs.game.item.Item; import com.rs.game.player.Player; import com.rs.game.player.content.Shop; public class ShopsHandler { private static final HashMap<Integer, Shop> handledShops = new HashMap<Integer, Shop>(); private static final String PACKED_PATH = "data/items/packedShops.s"; private static final String UNPACKED_PATH = "data/items/unpackedShops.txt"; public static void init() { if (new File(PACKED_PATH).exists()) loadPackedShops(); else loadUnpackedShops(); } private static void loadUnpackedShops() { Logger.log("ShopsHandler", "Packing shops..."); try { BufferedReader in = new BufferedReader( new FileReader(UNPACKED_PATH)); DataOutputStream out = new DataOutputStream(new FileOutputStream( PACKED_PATH)); while (true) { String line = in.readLine(); if (line == null) break; if (line.startsWith("//")) continue; String[] splitedLine = line.split(" - ", 3); if (splitedLine.length != 3) throw new RuntimeException("Invalid list for shop line: " + line); String[] splitedInform = splitedLine[0].split(" ", 3); if (splitedInform.length != 3) throw new RuntimeException("Invalid list for shop line: " + line); String[] splitedItems = splitedLine[2].split(" "); int key = Integer.valueOf(splitedInform[0]); int money = Integer.valueOf(splitedInform[1]); boolean generalStore = Boolean.valueOf(splitedInform[2]); Item[] items = new Item[splitedItems.length / 2]; int count = 0; for (int i = 0; i < items.length; i++) items[i] = new Item(Integer.valueOf(splitedItems[count++]), Integer.valueOf(splitedItems[count++])); out.writeInt(key); writeAlexString(out, splitedLine[1]); out.writeShort(money); out.writeBoolean(generalStore); out.writeByte(items.length); for (Item item : items) { out.writeShort(item.getId()); out.writeInt(item.getAmount()); } addShop(key, new Shop(splitedLine[1], money, items, generalStore)); } in.close(); out.close(); } catch (Throwable e) { Logger.handle(e); } } private static void loadPackedShops() { try { RandomAccessFile in = new RandomAccessFile(PACKED_PATH, "r"); FileChannel channel = in.getChannel(); ByteBuffer buffer = channel.map(MapMode.READ_ONLY, 0, channel.size()); while (buffer.hasRemaining()) { int key = buffer.getInt(); String name = readAlexString(buffer); int money = buffer.getShort() & 0xffff; boolean generalStore = buffer.get() == 1; Item[] items = new Item[buffer.get() & 0xff]; for (int i = 0; i < items.length; i++) items[i] = new Item(buffer.getShort() & 0xffff, buffer.getInt()); addShop(key, new Shop(name, money, items, generalStore)); } channel.close(); in.close(); } catch (Throwable e) { Logger.handle(e); } } public static String readAlexString(ByteBuffer buffer) { int count = buffer.get() & 0xfff; byte[] bytes = new byte[count]; buffer.get(bytes, 0, count); return new String(bytes); } public static void writeAlexString(DataOutputStream out, String string) throws IOException { byte[] bytes = string.getBytes(); out.writeByte(bytes.length); out.write(bytes); } public static void restoreShops() { for (Shop shop : handledShops.values()) shop.restoreItems(); } public static boolean openShop(Player player, int key) { Shop shop = getShop(key); if (shop == null) return false; shop.addPlayer(player); return true; } public static Shop getShop(int key) { return handledShops.get(key); } public static void addShop(int key, Shop shop) { handledShops.put(key, shop); } } [/CODE] Here's NPCDropLoader.java not sure if there's anything wrong with it. (There's 2 of them, I think identical, not sure though.) [CODE] public NPCDropLoader() { try { dropFile = new RandomAccessFile("data/npcs/packedDrops.s", "r"); } catch (FileNotFoundException e) { Logger.log("NPCDropLoader","No drop file!"); } } public void load() { Logger.log("NPCDropLoader","Loading drops..."); try { FileChannel channel = dropFile.getChannel(); if (channel.size() > 0) { ByteBuffer buffer = channel.map(MapMode.READ_ONLY, 0, channel.size()); ArrayList<Drop> drops = null; int dropSize = buffer.getShort(); for (int i = 0; i < dropSize; i++) { int npcId = buffer.getShort(); short dropAmt = buffer.getShort(); drops = new ArrayList<Drop>(dropAmt); for (int x = 0; x < dropAmt; x++) { drops.add(new Drop(buffer.getShort(), buffer.getDouble(), buffer.getInt())); } dropMap.put(npcId, drops); } } } catch (IOException e) { e.printStackTrace(); } Logger.log("NPCDropLoader","Loaded " + dropMap.size() + " drops"); }[/CODE] And finally the error. This goes away if I put back the original drops.bin, but I can't edit the drops in that so I don't know what to do about that. [CODE] [NPCDropLoader] No drop file! [NPCDropLoader] Loading drops... Exception in thread "main" java.lang.NullPointerException at com.rs.game.npc.NPCDropLoader.load(NPCDropLoader.java:35) at com.rs.game.World.init(World.java:87) at com.rs.Launcher.main(Launcher.java:111) [/CODE] Any help is appreciated.
  20. So I woke up this morning and started to work on learning how to pack/unpack NPC drops. I think I'm looking in the right areas, but I still don't understand. It's been about 8 hours of work now, and I just spent the last hour or so searching for answers. So I'm in NPCDropLoader.java and NPCDrops.java In NPCDrops I have this. [code] private final static String PACKED_PATH = "data/npcs/drops.d";[/code] I've changed that around a bit, but I think that's what it was originally. Should this be changed at all? I was trying to copy the other packed files by making a .ncd just seeing if it would work. Now for the NPCDropLoader I have a lot of confusing stuff in here. [code]package com.rs.utils; import java.io.RandomAccessFile; import java.nio.ByteBuffer; import java.nio.channels.FileChannel; import java.nio.channels.FileChannel.MapMode; import java.util.HashMap; import com.rs.game.npc.Drop; public class NPCDrops { //private final static String PACKED_PATH = "data/npcs/packedDrops.d"; private final static String PACKED_PATH = "data/npcs/packedDrops.ncd"; private final static String UNPACKED_PATH = "data/npcs/unpackedDrops.ncd"; private static HashMap<Integer, Drop[]> npcDrops; public static final void init() { loadPackedNPCDrops(); } public static Drop[] getDrops(int npcId) { return npcDrops.get(npcId); } private static void loadPackedNPCDrops() { try { RandomAccessFile in = new RandomAccessFile(PACKED_PATH, "r"); FileChannel channel = in.getChannel(); ByteBuffer buffer = channel.map(MapMode.READ_ONLY, 0, channel.size()); int dropSize = buffer.getShort() & 0xffff; npcDrops = new HashMap<Integer, Drop[]>(dropSize); for (int i = 0; i < dropSize; i++) { int npcId = buffer.getShort() & 0xffff; Drop[] drops = new Drop[buffer.getShort() & 0xffff]; for (int d = 0; d < drops.length; d++) { if (buffer.get() == 0) drops[d] = new Drop(buffer.getShort() & 0xffff, buffer.getDouble(), buffer.getInt(), buffer.getInt(), false); else drops[d] = new Drop(0, 0, 0, 0, true); } npcDrops.put(npcId, drops); } channel.close(); in.close(); } catch (Throwable e) { Logger.handle(e); } } public static final void loadNPCDrops(int regionId) { File file = new File("data/npcs/packedDrops/" + regionId + ".ns"); if (!file.exists()) return; try { RandomAccessFile in = new RandomAccessFile(file, "r"); FileChannel channel = in.getChannel(); ByteBuffer buffer = channel.map(MapMode.READ_ONLY, 0, channel.size()); while (buffer.hasRemaining()) { int npcId = buffer.getShort() & 0xffff; int plane = buffer.get() & 0xff; int x = buffer.getShort() & 0xffff; int y = buffer.getShort() & 0xffff; boolean hashExtraInformation = buffer.get() == 1; int mapAreaNameHash = -1; boolean canBeAttackFromOutOfArea = true; if (hashExtraInformation) { mapAreaNameHash = buffer.getInt(); canBeAttackFromOutOfArea = buffer.get() == 1; } World.spawnNPC(npcId, new WorldTile(x, y, plane), mapAreaNameHash, canBeAttackFromOutOfArea); } channel.close(); in.close(); } catch (Throwable e) { Logger.handle(e); } } public HashMap<Integer, Drop[]> getDropMap() { return npcDrops; } }[/code] I've been adding stuff from NPCSpawns.java to try and copy how it packs and unpacks. It's obviously just a direct copy with some names changed, I really don't know what to do with it. :p You can also see the .ncd attempts, I don't know if the .d is necessary or just the problem. I have a .txt file I downloaded somewhere (deleted all drops from it except one), I called it unpackedDrops.txt because that's what everything else was. This is just NPCSpawns.java (the thing I'm basing my ideas off of). [code]package com.rs.utils; import java.io.BufferedReader; import java.io.DataOutputStream; import java.io.File; import java.io.FileOutputStream; import java.io.FileReader; import java.io.RandomAccessFile; import java.nio.ByteBuffer; import java.nio.channels.FileChannel; import java.nio.channels.FileChannel.MapMode; import com.rs.game.World; import com.rs.game.WorldTile; public final class NPCSpawns { public static final void init() { if (!new File("data/npcs/packedSpawns").exists()) packNPCSpawns(); } public static final void packNPCSpawns() { Logger.log("NPCSpawns", "Packing npc spawns..."); if (!new File("data/npcs/packedSpawns").mkdir()) throw new RuntimeException( "Couldn't create packedSpawns directory."); try { BufferedReader in = new BufferedReader(new FileReader( "data/npcs/unpackedSpawnsList.txt")); while (true) { String line = in.readLine(); if (line == null) break; if (line.startsWith("//")) continue; String[] splitedLine = line.split(" - ", 2); if (splitedLine.length != 2) throw new RuntimeException("Invalid NPC Spawn line: " + line); int npcId = Integer.parseInt(splitedLine[0]); String[] splitedLine2 = splitedLine[1].split(" ", 5); if (splitedLine2.length != 3 && splitedLine2.length != 5) throw new RuntimeException("Invalid NPC Spawn line: " + line); WorldTile tile = new WorldTile( Integer.parseInt(splitedLine2[0]), Integer.parseInt(splitedLine2[1]), Integer.parseInt(splitedLine2[2])); int mapAreaNameHash = -1; boolean canBeAttackFromOutOfArea = true; if (splitedLine2.length == 5) { mapAreaNameHash = Utils.getNameHash(splitedLine2[3]); canBeAttackFromOutOfArea = Boolean .parseBoolean(splitedLine2[4]); } addNPCSpawn(npcId, tile.getRegionId(), tile, mapAreaNameHash, canBeAttackFromOutOfArea); } in.close(); } catch (Throwable e) { Logger.handle(e); } } public static final void loadNPCSpawns(int regionId) { File file = new File("data/npcs/packedSpawns/" + regionId + ".ns"); if (!file.exists()) return; try { RandomAccessFile in = new RandomAccessFile(file, "r"); FileChannel channel = in.getChannel(); ByteBuffer buffer = channel.map(MapMode.READ_ONLY, 0, channel.size()); while (buffer.hasRemaining()) { int npcId = buffer.getShort() & 0xffff; int plane = buffer.get() & 0xff; int x = buffer.getShort() & 0xffff; int y = buffer.getShort() & 0xffff; boolean hashExtraInformation = buffer.get() == 1; int mapAreaNameHash = -1; boolean canBeAttackFromOutOfArea = true; if (hashExtraInformation) { mapAreaNameHash = buffer.getInt(); canBeAttackFromOutOfArea = buffer.get() == 1; } World.spawnNPC(npcId, new WorldTile(x, y, plane), mapAreaNameHash, canBeAttackFromOutOfArea); } channel.close(); in.close(); } catch (Throwable e) { Logger.handle(e); } } private static final void addNPCSpawn(int npcId, int regionId, WorldTile tile, int mapAreaNameHash, boolean canBeAttackFromOutOfArea) { try { DataOutputStream out = new DataOutputStream(new FileOutputStream( "data/npcs/packedSpawns/" + regionId + ".ns", true)); out.writeShort(npcId); out.writeByte(tile.getPlane()); out.writeShort(tile.getX()); out.writeShort(tile.getY()); out.writeBoolean(mapAreaNameHash != -1); if (mapAreaNameHash != -1) { out.writeInt(mapAreaNameHash); out.writeBoolean(canBeAttackFromOutOfArea); } out.flush(); out.close(); } catch (Throwable e) { Logger.handle(e); } } private NPCSpawns() { } } [/code] I heard there's a way to hardcode drops, but I can't find any way to do that. Also something about a GUI, which I have the files for but there's nothing to run them with. Not really sure what that's about. Source is NRS3server 667. I don't really expect anyone to help me (every thread I've seen has no one helping), but I figured I'd have one up while I continue trying to figure this out.
  21. Source: Project Insanity How do I enable my NPC drops because whenever I kill an npc that drops something 100%, it doesnt appear. I was thinking it might be in the "dropitem" or npchandler but if you know for sure where it's at, it be helpful.I just dont know where exactly to change so it enables NPC drop. I'll supply you with whatever file you need...
  22. I've been searching around throughout like 5 different files trying to find General Graardor so I could edit his drops and I've had no luck finding his NPC Id. I've looked at dropEditor.java, NPCDrops.java, and NPC.java and nothing is coming up. Does anyone know how to do this?
  23. infallible

    [PI] Bone Drops

    right, this is a 317 Project Insanity base, Deception revision: Hello, The solution to this problem has eluded me for nigh on a year and a bit now. *NOTHING* drops bones. I have the switch statement (public int boneDrop) already coded into the NpcHandler, the switch statement is on line 1813 of my NpcHandler, and I don't believe the class or method is called upon anywhere other than there. I'm thinking maybe I'm missing something in, say, server.java? I don't know, I'm pretty new to this whole thing.... so please, what's the solution? everything I've checked seems to be in order, I haven't got any idea what I've missed. I'll show you any files you need to see in a reply.
×