This is a wiki for a reason. Anyone can contribute. If you see something that is inaccurate or can be improved, don't ask that it be fixed--just improve it.
[ Disclaimer, Create new user --- Wiki markup help, Install P99 ]

Difference between revisions of "Zones.json"

From Project 1999 Wiki
Jump to: navigation, search
 
(One intermediate revision by one user not shown)
Line 14: Line 14:
 
**** Params - All object fields
 
**** Params - All object fields
 
**** Response - Objects that match
 
**** Response - Objects that match
** Item details (already in table, so why not)
 
 
** Future bug fixes:
 
** Future bug fixes:
 
** Fix unique cases where scraper doesn't work right
 
** Fix unique cases where scraper doesn't work right
Line 23: Line 22:
 
* Repo - https://github.com/pastram-i/eqatlas_api
 
* Repo - https://github.com/pastram-i/eqatlas_api
  
 +
'''current version:'''
 +
 +
https://github.com/pastram-i/eqatlas_api/blob/master/app/src/zones.json
 
----
 
----
  
 
'''Schema:'''
 
'''Schema:'''
<code>
+
<pre>
{
+
 
         "The Arena": {
+
[
             "Continent": "Antonica",
+
    {
             "Type": "Outdoors",
+
         "string": { #zone name
             "URL Name": "The Arena",
+
             "Continent": "string",
             "Friendly Name (If different)": null,
+
             "Type": "string",
             "Name in /who": "arena/arena2",
+
             "URL Name": "string",
             "Full URL": "https://wiki.project1999.com/The_Arena",
+
             "Friendly Name (If different)": "string" | null,
             "Inactive": false,
+
             "Name in /who": "string",
             "46+": false,
+
             "Full URL": "string",
             "Key Required": false,
+
             "Inactive": bool,
             "Adjacent Zones": "Lake Rathetear",
+
             "46+": bool,
             "Ocean Connections": [],
+
             "Key Required": bool,
             "1 Way Connections": [],
+
             "Adjacent Zones": [
             "Firepot Port": false,
+
                {
             "Shaman Port": false,
+
                    "name" : "string",
             "Druid Port": false,
+
                    "link" : "string"
             "Wizard Port": false,
+
                },
             "Level of Monsters": "n/a",
+
            ],
             "Types of Monsters": "n/a",
+
             "Ocean Connections": [
             "Notable NPCs": "n/a",
+
                {
             "Unique Items": [],
+
                    "name" : "string",
 +
                    "link" : "string"
 +
                },
 +
            ],
 +
             "1 Way Connections": [
 +
                {
 +
                    "name" : "string",
 +
                    "link" : "string"
 +
                },
 +
            ],
 +
             "Firepot Port": bool,
 +
             "Shaman Port": bool,
 +
             "Druid Port": bool,
 +
             "Wizard Port": bool,
 +
             "Level of Monsters": [
 +
                (int, int, "string"), #(Bottom, Top, Extra text)
 +
            ], #Some zones have >1, list is needed
 +
             "Types of Monsters": [
 +
                "string",
 +
            ],
 +
             "Notable NPCs": [
 +
                {
 +
                    "name" : "string",
 +
                    "link" : "string"
 +
                },
 +
            ],
 +
             "Unique Items": [
 +
                {
 +
                    "name" : "string",
 +
                    "link" : "string",
 +
                    "details" : [
 +
                        "string", #line-by-line breakdown of item window
 +
                    ]
 +
                },
 +
            ],
 
             "ZEM Value": "n/a",
 
             "ZEM Value": "n/a",
             "Succor/Evacuate": [],
+
             "Succor/Evacuate": (int, int, "string"), #(Bottom, Top, Extra text)
             "Zone Spawn Timer": "n/a",
+
             "Zone Spawn Timer": int, #Minute as fraction (ie 1:30 = 1.5)
             "Related Quests": [],
+
             "Related Quests": [
             "Guilds": [],
+
                {
             "City Races": [],
+
                    "name" : "string",
             "Tradeskill Facilities": [],
+
                    "link" : "string"
             "Player Guides": []
+
                },
 +
            ],
 +
             "Guilds": [
 +
                {
 +
                    "name" : "string",
 +
                    "link" : "string"
 +
                },
 +
            ],
 +
             "City Races": [
 +
                {
 +
                    "name" : "string",
 +
                    "link" : "string"
 +
                },
 +
            ],
 +
             "Tradeskill Facilities": [
 +
                {
 +
                    "name" : "string",
 +
                    "link" : "string"
 +
                },
 +
            ],
 +
             "Player Guides": [
 +
                {
 +
                    "name" : "string",
 +
                    "link" : "string"
 +
                },
 +
            ]
 
         }
 
         }
 
     },
 
     },
</code>
+
]
 
+
</pre>
----
+
 
+
'''current version:'''
+
https://github.com/pastram-i/eqatlas_api/blob/master/app/src/zones.json
+

Latest revision as of 20:17, 23 March 2023

Notes

current version:

https://github.com/pastram-i/eqatlas_api/blob/master/app/src/zones.json


Schema:


[
    {
        "string": { #zone name
            "Continent": "string",
            "Type": "string",
            "URL Name": "string",
            "Friendly Name (If different)": "string" | null,
            "Name in /who": "string",
            "Full URL": "string",
            "Inactive": bool,
            "46+": bool,
            "Key Required": bool,
            "Adjacent Zones": [
                {
                    "name" : "string",
                    "link" : "string"
                },
            ],
            "Ocean Connections": [
                {
                    "name" : "string",
                    "link" : "string"
                },
            ],
            "1 Way Connections": [
                {
                    "name" : "string",
                    "link" : "string"
                },
            ],
            "Firepot Port": bool,
            "Shaman Port": bool,
            "Druid Port": bool,
            "Wizard Port": bool,
            "Level of Monsters": [
                (int, int, "string"), #(Bottom, Top, Extra text)
            ], #Some zones have >1, list is needed
            "Types of Monsters": [
                "string",
            ],
            "Notable NPCs": [
                {
                    "name" : "string",
                    "link" : "string"
                },
            ],
            "Unique Items": [
                {
                    "name" : "string",
                    "link" : "string",
                    "details" : [
                        "string", #line-by-line breakdown of item window
                    ]
                },
            ],
            "ZEM Value": "n/a",
            "Succor/Evacuate": (int, int, "string"), #(Bottom, Top, Extra text)
            "Zone Spawn Timer": int, #Minute as fraction (ie 1:30 = 1.5)
            "Related Quests": [
                {
                    "name" : "string",
                    "link" : "string"
                },
            ],
            "Guilds": [
                {
                    "name" : "string",
                    "link" : "string"
                },
            ],
            "City Races": [
                {
                    "name" : "string",
                    "link" : "string"
                },
            ],
            "Tradeskill Facilities": [
                {
                    "name" : "string",
                    "link" : "string"
                },
            ],
            "Player Guides": [
                {
                    "name" : "string",
                    "link" : "string"
                },
            ]
        }
    },
]