Thread: [REQ] How would I dump Item/npc definitions in json from cache?

Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1 [REQ] How would I dump Item/npc definitions in json from cache? 
    Registered Member
    Join Date
    Jan 2011
    Posts
    195
    Thanks given
    12
    Thanks received
    14
    Rep Power
    22
    As the titel says,

    I've read somewhere that there are ways to dump those json forms from the cache.
    Does someone have any idea what the methods are?
    Reply With Quote  
     

  2. #2  
    Registered Member
    Stanaveli's Avatar
    Join Date
    Aug 2014
    Posts
    1,490
    Thanks given
    184
    Thanks received
    653
    Rep Power
    1338
    Can't dump everything, you can only dump information such as the noted form of an item etc etc.

    Just look in your ItemDefinition.java or however you have it named in your client.
    Keep your head up.



    Reply With Quote  
     

  3. #3  
    Waddup

    Stan's Avatar
    Join Date
    Apr 2016
    Posts
    376
    Thanks given
    110
    Thanks received
    394
    Rep Power
    521
    Stuff like the following is dumpable in the cache. Simply write it to JSON/XML when loading it in at your EntityDef/ItemDef class in your client.

    Code:
    case 21028:
    	type.cost = 55000;
    	type.femaleModel0 = 32670;
    	type.femaleOffset = 6;
    	type.interfaceOptions = new String[] { null, "Wield", null, null, null };
    	type.inventoryModel = 32796;
    	type.maleModel0 = 32670;
    	type.members = true;
    	type.name = "Dragon harpoon";
    	type.notedID = 21029;
    	type.stockMarket = true;
    	type.xan2d = 600;
    	type.xOffset2d = 2;
    	type.yan2d = 54;
    	type.yOffset2d = 2;
    	type.zan2d = 1953;
    	type.zoom2d = 1347;
    	type.anInt1879 = 21030;
    break;
    If your definitions require fields like bonusses, GE price, slot number etc. a cache dumper will not suffice. For that you'll need a dumper that retrieves the data from the wiki page for that item/NPC aswell.
    Reply With Quote  
     

  4. #4  
    Registered Member
    Stanaveli's Avatar
    Join Date
    Aug 2014
    Posts
    1,490
    Thanks given
    184
    Thanks received
    653
    Rep Power
    1338
    Quote Originally Posted by Stan_ View Post
    Stuff like the following is dumpable in the cache. Simply write it to JSON/XML when loading it in at your EntityDef/ItemDef class in your client.

    Code:
    case 21028:
    	type.cost = 55000;
    	type.femaleModel0 = 32670;
    	type.femaleOffset = 6;
    	type.interfaceOptions = new String[] { null, "Wield", null, null, null };
    	type.inventoryModel = 32796;
    	type.maleModel0 = 32670;
    	type.members = true;
    	type.name = "Dragon harpoon";
    	type.notedID = 21029;
    	type.stockMarket = true;
    	type.xan2d = 600;
    	type.xOffset2d = 2;
    	type.yan2d = 54;
    	type.yOffset2d = 2;
    	type.zan2d = 1953;
    	type.zoom2d = 1347;
    	type.anInt1879 = 21030;
    break;
    If your definitions require fields like bonusses, GE price, slot number etc. a cache dumper will not suffice. For that you'll need a dumper that retrieves the data from the wiki page for that item/NPC aswell.
    Not sure why exactly you'd want to dump the zoom of an item?

    Also it's not good practise to dump item values from cache either. I recently dumped ags for 1.25m when in fact the cost on the wiki is higher (about 31m and I know this value is a average buy value by players)
    Keep your head up.



    Reply With Quote  
     

  5. #5  
    Respected Member


    George's Avatar
    Join Date
    Mar 2009
    Posts
    7,099
    Thanks given
    2,226
    Thanks received
    3,146
    Rep Power
    5000
    Quote Originally Posted by Papito a neeff View Post
    Not sure why exactly you'd want to dump the zoom of an item?

    Also it's not good practise to dump item values from cache either. I recently dumped ags for 1.25m when in fact the cost on the wiki is higher (about 31m and I know this value is a average buy value by players)
    The value in the cache is either to determine the value for when your items are dropped during combat or a base value for the shop prices. The price you're seeing on wikipedia is the grand-exchange price, which varies, depending on demand.
    Attached image

    Spoiler for Spoilers!:
    Attached image
    Attached image
    Attached image
    Attached image
    Reply With Quote  
     

  6. Thankful users:


  7. #6  
    🎶 As you're falling down 🎶


    uint32_t's Avatar
    Join Date
    Feb 2015
    Posts
    1,396
    Thanks given
    6,177
    Thanks received
    776
    Rep Power
    5000
    Quote Originally Posted by Idiot Bird View Post
    The value in the cache is either to determine the value for when your items are dropped during combat or a base value for the shop prices. The price you're seeing on wikipedia is the grand-exchange price, which varies, depending on demand.
    Exactly. It would not make sense to store the GE values in the cache since GE values vary so much.
    Quote Originally Posted by Idiot Bird View Post
    Quote Originally Posted by Velocity View Post
    lol np mate looks like the community brought ur rep down to ur IQ
    Not too sure about that, it's at 0 . It would have to go minus to even be remotely close to his IQ.
    Reply With Quote  
     

  8. #7  
    Waddup

    Stan's Avatar
    Join Date
    Apr 2016
    Posts
    376
    Thanks given
    110
    Thanks received
    394
    Rep Power
    521
    Quote Originally Posted by Papito a neeff View Post
    Not sure why exactly you'd want to dump the zoom of an item?

    Also it's not good practise to dump item values from cache either. I recently dumped ags for 1.25m when in fact the cost on the wiki is higher (about 31m and I know this value is a average buy value by players)
    I didn't mention that you should. Just gave a list of all the information the cache has of an item.
    Reply With Quote  
     

  9. #8  
    Registered Member
    Join Date
    Jan 2011
    Posts
    195
    Thanks given
    12
    Thanks received
    14
    Rep Power
    22
    Quote Originally Posted by Stan_ View Post
    Stuff like the following is dumpable in the cache. Simply write it to JSON/XML when loading it in at your EntityDef/ItemDef class in your client.

    Code:
    case 21028:
    	type.cost = 55000;
    	type.femaleModel0 = 32670;
    	type.femaleOffset = 6;
    	type.interfaceOptions = new String[] { null, "Wield", null, null, null };
    	type.inventoryModel = 32796;
    	type.maleModel0 = 32670;
    	type.members = true;
    	type.name = "Dragon harpoon";
    	type.notedID = 21029;
    	type.stockMarket = true;
    	type.xan2d = 600;
    	type.xOffset2d = 2;
    	type.yan2d = 54;
    	type.yOffset2d = 2;
    	type.zan2d = 1953;
    	type.zoom2d = 1347;
    	type.anInt1879 = 21030;
    break;
    If your definitions require fields like bonusses, GE price, slot number etc. a cache dumper will not suffice. For that you'll need a dumper that retrieves the data from the wiki page for that item/NPC aswell.
    Ah yes, I know how to dump those values, with a tool provided here on the forum.
    But I was searhing for the server sided configs. Much like those:
    Code:
    "id": 4151,
        "name": "Abyssal whip",
        "desc": "A weapon from the abyss.",
        "value": 16000000,
        "dropValue": 0,
        "bonus": [
          0,
          82,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          82,
          0
        ],
        "slot": 3,
        "fullmask": false,
        "stackable": false,
        "noteable": false,
        "tradable": true,
        "wearable": true,
        "showBeard": true,
        "members": true,
        "twoHanded": false,
        "requirements": [
          70,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0
        ]
      },
    Reply With Quote  
     

  10. #9  
    Registered Member
    Join Date
    Oct 2015
    Posts
    136
    Thanks given
    3
    Thanks received
    7
    Rep Power
    11
    You can't dump values stored in the server by using a client.
    Reply With Quote  
     

  11. #10  
    Registered Member
    Stanaveli's Avatar
    Join Date
    Aug 2014
    Posts
    1,490
    Thanks given
    184
    Thanks received
    653
    Rep Power
    1338
    Quote Originally Posted by Idiot Bird View Post
    The value in the cache is either to determine the value for when your items are dropped during combat or a base value for the shop prices. The price you're seeing on wikipedia is the grand-exchange price, which varies, depending on demand.
    The price checker, i'm not entirely sure but doesn't it calculates the value by the grand exchange value and not the base value of an item?

    Only reason I find the value in the cache useful is because you can calculate the high / low alch prices from.
    Keep your head up.



    Reply With Quote  
     

Page 1 of 2 12 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: 2
    Last Post: 02-22-2017, 08:47 PM
  2. 194 Npc Definitions (pulled directly from cache)
    By minigame in forum Configuration
    Replies: 2
    Last Post: 08-18-2015, 02:00 AM
  3. Replies: 0
    Last Post: 08-08-2014, 12:13 PM
  4. Dumping item/npc definitions from site?
    By relex lawl in forum Help
    Replies: 3
    Last Post: 10-03-2012, 07:06 AM
  5. How would I destruct an NPC?
    By Paketa in forum Help
    Replies: 7
    Last Post: 02-19-2009, 02:41 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •