Hello and welcome to our community! Is this your first visit?
Register
Results 1 to 5 of 5
  1. #1
    Bronze Member
    Join Date
    Apr 2012
    Posts
    5
    Time on
    57 m
    Thanked 1 time in 1 post
    Mentioned
    0 times
    RS events
    0

    [PI] Drop System

    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:
    Code:
    Only the registered members can see the link. Register here
    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!

    Add this boolean within your NPCHandler class.

    Code:
    Only the registered members can see the link. Register here
    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!

    But, just for the hell of it, here's my RareDropTable system as well.

    NPCHandler class import this.

    Code:
    Only the registered members can see the link. Register here
    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!

    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.

  2. The following RuneLocus members thank Skiire for making this post:

    Wookka (April 12th, 2012)

  3. #2
    Bronze Member
    Join Date
    Sep 2011
    Posts
    21
    Time on
    12 h 36 m
    Thanked 0 times
    in 0 posts
    Mentioned
    0 times
    RS events
    0
    There is no
    Code:
    Only the registered members can see the link. Register here
    in my NPCHandler

    Netheir is
    Code:
    Only the registered members can see the link. Register here
    Help?

  4. #3
    Bronze Member
    Join Date
    Apr 2012
    Posts
    5
    Time on
    57 m
    Thanked 1 time in 1 post
    Mentioned
    0 times
    RS events
    0
    Quote Originally Posted by LeBron James Only the registered members can see the link. Register here
    There is no
    Code:
    Only the registered members can see the link. Register here
    in my NPCHandler

    Netheir is
    Code:
    Only the registered members can see the link. Register here
    Help?
    Declare the first.

    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.

  5. #4
    Bronze Member
    Join Date
    Jul 2010
    Posts
    4
    Time on
    11 h 35 m
    Thanked 0 times
    in 0 posts
    Mentioned
    0 times
    RS events
    0
    Nice will use this !

  6. #5
    Bronze Member
    Join Date
    Nov 2011
    Posts
    5
    Time on
    2 h 45 m
    Thanked 0 times
    in 0 posts
    Mentioned
    0 times
    RS events
    0
    Very cool


 

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •