Wookka (April 12th, 2012)
Prologue:
Well, I've given up hope on my emulation-remix because of my horrible choice in choosing, arguably the worst base in existence, project insanity. I'm a perfectionist and I cannot stand the way anything was done in Project Insanity... I've had to re-write every class I've looked at so far and it's just too much of a project and I refuse to waste more time on it. So, because one of the things I hated the MOST about Project Insanity was the drop system, here's my alternative. All code is explained within itself directly, if I need to further explain anything, please ask. This is also my first "spoon-feed."
Within your NPCHandler:
Still within your NPCHandler class search:Code:Only the registered members can see the link. Register here
Within that method add this:Code:Only the registered members can see the link. Register here
Do not forget to create that (npc_drops.cfg) file!Code:Only the registered members can see the link. Register here
Add this boolean within your NPCHandler class.
Add this below the above boolean.Code:Only the registered members can see the link. Register here
Finally, add:Code:Only the registered members can see the link. Register here
Last, but not least, add these within your Misc class.Code:Only the registered members can see the link. Register here
There you go!Code:Only the registered members can see the link. Register here
But, just for the hell of it, here's my RareDropTable system as well.
NPCHandler class import this.
Still within NPCHandler search this:Code:Only the registered members can see the link. Register here
Within that method add this.Code:Only the registered members can see the link. Register here
Now create a new file called RareDropTable.java.Code:Only the registered members can see the link. Register here
And... Because I'm feeling generous, here's a start to NPC drops for the #377 revision. Some NPC's are missing drops for those servers that are packing their 317 clients with this newer revision garbage, so you'll have to redo that. I tried my best to stick to pure #377 items!Code:Only the registered members can see the link. Register here
P.S. This is your "npc_drops.cfg"
Only the registered members can see the link. Register here
Please note that this is not completely accurate to RuneScape's drop system, if anyone can come up with a better or more precise formula, let me know. I was content with what I came up with, but it's lacking. Also, if I've forgotten any other necessary tidbits of code, let me know as well, I implemented this quite a while back and no longer have access to my IDE (call-hierachy) so I had to search manually using notepad.
Last edited by Skiire; April 15th, 2012 at 16:29.
Wookka (April 12th, 2012)
Declare the first.Originally Posted by LeBron James Only the registered members can see the link. Register here
Find out which method your server uses as intialize() so far I've seen NPCHandler() which does the same functions. It's up to your server though.
Nice will use this !
Very cool