Thread: Recreating the game that I loved (2011 Recreation Server)

Page 18 of 36 FirstFirst ... 8161718192028 ... LastLast
Results 171 to 180 of 358
  1. #171  
    Registered Member
    Ebp90's Avatar
    Join Date
    Apr 2018
    Posts
    238
    Thanks given
    18
    Thanks received
    158
    Rep Power
    878
    In the last week or so I decided to finally redo my drop system. So I wanted to quickly go through what I have done.

    I thought it would be nice to load the NPC drops that I could from a JSON on startup, so that I don't have 500 classes of NPC drops.

    Code:
    {
        "Names": [
          "6203"
        ],
        "Worldlist": "Zamorak Boss",
        "Charm Drops": {
          "Charm Amount": 1,
          "12163": 18,
          "12160": 1,
          "12159": 4,
          "12159": 12
        },
        "Tables Used": {
          "GodwarsRdt": 8,
          "GodwarsGem": 2,
          "BossShardTable": 1,
          "ZamorakHilt": 1
        },
        "Drops": [
          {
            "itemId": 5626,
            "amount": 295,
            "rollAmount": 5,
            "chance": 8
          },
          {
            "itemId": 5302,
            "amount": 3,
            "chance": 8
          },
          [
            8,
            {
              "itemId": 145,
              "amount": 3
            },
            {
              "itemId": 157,
              "amount": 3
            }
          ],
          [
            8,
            {
              "itemId": 3026,
              "amount": 3
            },
            {
              "itemId": 189,
              "amount": 3
            }
          ],
          {
            "itemId": 1333,
            "chance": 8
          },
          {
            "itemId": 1123,
            "chance": 8
          },
          {
            "itemId": 1079,
            "chance": 7
          },
          {
            "itemId": 5698,
            "chance": 2
          },
          {
            "itemId": 2486,
            "amount": 10,
            "chance": 8
          },
          {
            "itemId": 560,
            "amount": 120,
            "rollAmount": 5,
            "chance": 8
          },
          {
            "itemId": 565,
            "amount": 80,
            "rollAmount": 10,
            "chance": 8
          },
          {
            "itemId": 11716
          },
          {
            "itemId": 11736
          },
          {
            "itemId": 995,
            "amount": 19500,
            "rollAmount": 500,
            "chance": 32
          }
        ]
      },
    I am going to break down each part:

    Code:
      "Names": [
          "6203"
        ],
    Here is a Json Array of all of the names OR npcIds that use this drop table. Since I also use this to load tables like the RDT, names such as "RareDropTable" could also go here.

    Code:
    "Worldlist": "Zamorak Boss",
    I keep track of the players in certain areas that need to be kept track of, such as the Zamorak Godwars boss room in a Map<String, List<Player>>. This way, I can check if an NPC's drop table has a Worldlist in its object and then when the NPC dies I can then get the player list from that map and then message all the players the drop.

    Code:
    "Rolls": 3;
    Although not included in K'ril's table, I can specify the amount of rolls of the drop table when the NPC dies. If it is not included the default value would be 1 roll.

    Code:
    "Drop Roll": 255;
    Again not included in K'ril's table, I can specify the range that the drop rolls. So if it is 255, it would roll 0 - 255. This is because some drop tables may only have 128 possible drops but according to Jagex something could be 1/255, so I need to specify this. If this doesn't exist it just gets the size of the list of items and rolls that - 1.

    Code:
    "Charm Drops": {
          "Charm Amount": 1,
          "12163": 18,
          "12160": 1,
          "12159": 4,
          "12159": 12
        },
    In this object I can define the drop chance out of 100 for each charm and the amount dropped. If the amount dropped is 1 I won't include it to save space. If this exists, each charm gets put into an array equal to the number of chances it has. When the NPC dies, it will roll 0 - 99 and if it hits the index / is not greater than or equal to the length of the array, it will drop the charm it lands on.

    Code:
    "Tables Used": {
          "GodwarsRdt": 8,
          "GodwarsGem": 2,
          "BossShardTable": 1,
          "ZamorakHilt": 1
        },
    Here, I list all of the drop tables the NPC can access with their name and chance. They are put into an array chance number of times along with the drops that I will explain below. When the NPC dies and rolls its drop table, if it gets a string from the Object[] of possible drops, it will then access that drop table from the Hashmap of drop tables, then pick a drop from that.

    Code:
     {
            "itemId": 565,
            "amount": 80,
            "rollAmount": 10,
            "chance": 8
          },
    Lastly, we have an item drop. It has 4 possible things:
    • The itemId, which always needs to be included.
    • The amount, which if 1 I don't include it as I assume the default is 1.
    • The rollAmount, which is the max quantity the drop can be. So if you could get between 20-200 feathers in a drop, this would be 180. If it doesn't exist I assume -1.
    • The chance, which is the amount of times the item gets put into the possible drops array. If it is 1 I don't include it and assume by default it is 1.


    Code:
    [
            8,
            {
              "itemId": 145,
              "amount": 3
            },
            {
              "itemId": 157,
              "amount": 3
            }
          ],
    For drops that drop two or more different items at once, I use a Json Array. The first number is the chance for this drop. Then I list each item in the drop.

    I then put a new ItemDrop(itemId, amount, rollAmount) into the list chance number of times.

    I put the 100% drops in the NPC Definitions Json, because not all NPCs have a drop table but do have 100% drops, so that way I don't have to make a drop table for every NPC even if it just has 100% drops.

    I am somewhat new to JSONS so please stop me if I am doing something the wrong way or you think I could be doing it better.
    Reply With Quote  
     

  2. #172  
    #1 Interface Services

    Herb's Avatar
    Join Date
    Nov 2015
    Posts
    587
    Thanks given
    181
    Thanks received
    705
    Rep Power
    4387
    Aye the progress is being lit fam!
    Keep up the good work
    Spoiler for signature:
    Reply With Quote  
     

  3. #173  
    Registered Member
    Optimum's Avatar
    Join Date
    Apr 2012
    Posts
    3,570
    Thanks given
    871
    Thanks received
    1,745
    Rep Power
    5000
    good job, good luck with finishing this

    Quote Originally Posted by DownGrade View Post
    Don't let these no life creeps get to you, its always the same on here. They'd rather spend hours upon hours in the rune-server spam section then getting laid! ha ha!Its honestly pathetic i haven't seen so many lowlifes in my life its actually insane i wish that this section would just vanish its probably the only way to get these people out of the community...
    PLEASE BE AWARE OF IMPOSTERS MY DISCORD ID: 362240000760348683
    Reply With Quote  
     

  4. #174  
    Registered Member
    TnN_'s Avatar
    Join Date
    May 2014
    Posts
    252
    Thanks given
    324
    Thanks received
    115
    Rep Power
    507
    You should really consider open source, I really wish this community was similar to the WoW private server community where open sourcing is quite common. It's like the complete opposite on this side of the private server community. It would be really cool to actually get a full remake of RuneScape eventually and I don't ever see that happening cause everyone decides to close source projects. Amazing work though!
    Reply With Quote  
     

  5. #175  
    Registered Member
    Ebp90's Avatar
    Join Date
    Apr 2018
    Posts
    238
    Thanks given
    18
    Thanks received
    158
    Rep Power
    878
    Quote Originally Posted by Torv View Post
    You should really consider open source, I really wish this community was similar to the WoW private server community where open sourcing is quite common. It's like the complete opposite on this side of the private server community. It would be really cool to actually get a full remake of RuneScape eventually and I don't ever see that happening cause everyone decides to close source projects. Amazing work though!
    Because in this community, people would just steal the last TWO years of my free time that I have worked hard on and host it for money.
    Reply With Quote  
     


  6. #176  
    Community Veteran

    mige5's Avatar
    Join Date
    Aug 2008
    Posts
    5,528
    Thanks given
    573
    Thanks received
    1,410
    Rep Power
    2114
    Quote Originally Posted by GeneralReposti View Post
    Because in this community, people would just steal the last TWO years of my free time that I have worked hard on and host it for money.
    This.
    Number of page #1 releases with most views & posts: (Updated: 2023)
    RS2 server section: 1
    RS2 client section: 2
    Reply With Quote  
     

  7. #177  
    Registered Member

    Join Date
    Dec 2009
    Posts
    774
    Thanks given
    367
    Thanks received
    455
    Rep Power
    927
    Quote Originally Posted by GeneralReposti View Post
    Because in this community, people would just steal the last TWO years of my free time that I have worked hard on and host it for money.
    Good. The guy above you is most likely one of the biggest leaker/stealer in this community.
    link removed
    Reply With Quote  
     

  8. #178  
    Registered Member
    Ebp90's Avatar
    Join Date
    Apr 2018
    Posts
    238
    Thanks given
    18
    Thanks received
    158
    Rep Power
    878
    Quote Originally Posted by Admiral Slee View Post
    Good. The guy above you is most likely one of the biggest leaker/stealer in this community.
    I've just been told what he has done to you, sorry man.
    Reply With Quote  
     

  9. #179  
    Registered Member

    Join Date
    Nov 2019
    Posts
    177
    Thanks given
    0
    Thanks received
    134
    Rep Power
    389
    Those quests wow! Keep it up lad
    Reply With Quote  
     

  10. Thankful user:


  11. #180  
    Registered Member

    Join Date
    Dec 2009
    Posts
    774
    Thanks given
    367
    Thanks received
    455
    Rep Power
    927
    Quote Originally Posted by GeneralReposti View Post
    I've just been told what he has done to you, sorry man.
    Don't mind me . Wish you further luck with this!
    link removed
    Reply With Quote  
     

Page 18 of 36 FirstFirst ... 8161718192028 ... 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. Replies: 8
    Last Post: 03-02-2014, 03:56 PM
  2. #Rune-Force 639 - Recreating the Magic
    By Somebodyy in forum Advertise
    Replies: 22
    Last Post: 03-01-2012, 02:23 PM
  3. #Rune-Force 639 - Recreating the Magic
    By .alycia in forum Advertise
    Replies: 110
    Last Post: 02-26-2012, 04:17 AM
  4. Recreating the old runescape 2006-2007 forums
    By fl3x in forum Website Development
    Replies: 5
    Last Post: 05-05-2011, 11:23 AM
  5. Replies: 14
    Last Post: 04-13-2010, 09:26 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
  •