JSON REST API Data Fetch Types - JasXSL/GoThongs GitHub Wiki
These are asset types supported by GetAssetData. Linkage allows you to set the field as an object to get a related object.
user
| Field | Type | Linkage | Description |
|---|---|---|---|
| id | integer | User's GoThongs ID | |
| charkey | string | The user's SL UUID | |
| gold | integer | Character gold represented in copper | |
| flags | integer | Character flags. 0x1 = Claimed starter thong. 0x2 = Audio muted. | |
| active_thong | integer | user_thong | ID of user's active user_thong asset |
| land | integer | land | ID of the land asset the user is currently at on the world map. |
| quest | integer | quest | ID of the quest asset the user is currently on. |
| quest_data | array | An object of {data:(var)data_set_by_quest_developer, cell_data:(int)cell_completed, (int)cell_deaths, (int)cell_kills} cell_data contains an array of arrays representing each cell in the quest | |
| completed_quests | array | quest | Array of quest asset ids for quests the user has completed |
| coop_partner | integer | user | ID of the user asset for the host of the user's party. Can be the user themselves. |
| languages | integer | A bitwise combination of languages known. | |
| essence | integer | Amount of essence the user has | |
| difficulty | integer | Difficulty between 0 and 4 | |
| thongsmiths_available | array | thong | An array of thong asset IDs of thongs available for crafting today |
| thongsmiths_last_gen | integer | A timestamp of when the thongsmiths were last generated on the user | |
| weapon_scale | float | A float representing the scale of the user's weapon | |
| weapon_mainhand_offset | string | A vector string of the weapon main hand position offset for the user. | |
| weapon_back_mainhand_offset | string | A vector string of the weapon main hand position offset while sheathed for the user. | |
| weapon_offhand_offset | string | A vector string of the weapon offhand position offset for the user. | |
| weapon_back_offhand_offset | string | A vector string of the weapon offhand position offset while sheathed for the user. | |
| weapon_mainhand_offset_rot | string | A rotation string of the weapon main hand offset for the user. | |
| weapon_back_mainhand_offset_rot | string | A rotation string of the weapon main hand offset while sheathed for the user. | |
| weapon_offhand_offset_rot | string | A rotation string of the weapon offhand offset for the user. | |
| weapon_back_offhand_offset_rot | string | A rotation string of the weapon offhand offset while sheathed for the user. | |
| reagents_common | integer | Nr Common Manaflower held by the user | |
| reagents_uncommon | integer | Nr Shimmering Eggs held by the user | |
| reagents_rare | integer | Nr Infused Tentacles held by the user | |
| reagents_epic | integer | Nr Thuul Crystals held by the user | |
| active_book | integer | book | id of the book asset last read by the user |
| created | integer | A unix timestamp of when the user signed up | |
| updated | string | A string timestamp of when the user was last updated | |
| inventory | array | user_thong | An array of user_thong IDs of all thongs the user has in their inventory |
| weapons | array | user_weapon | An array of user_weapon IDs of all weapons the user has unlocked |
| books_read | array | book | An array of book asset IDs of all books the user has read |
| party | array | user | An array of user asset IDs of the users in the user's party |
| dotr_quests | array | dotr_quest | An array of dotr_quest IDs of the user's currently active Defenders of the Realm quests. |
| enchants | array | user_enchant | An array of user_enchant IDs of the users held enchants |
thong
| Field | Type | Linkage | Description |
|---|---|---|---|
| id | integer | A unique ID for the class | |
| name | string | Name of the class | |
| flags | integer | Bitwise combination of 0x1 = public, 0x2 = deleted, 0x8 = no_weapons, 0x10 = no_thongsmith | |
| rarity | float | A float representation of how common it is. 100 common, 25 is uncommon, 5 rare, 1 very rare and 0 legendary | |
| abil0 | integer | spell | An ID of a spell asset in the bottom slot (button 5) |
| abil1 | integer | spell | An ID of a spell asset in the first slot (button 1) |
| abil2 | integer | spell | An ID of a spell asset in the second slot (button 2) |
| abil3 | integer | spell | An ID of a spell asset in the third slot (button 3) |
| abil4 | integer | spell | An ID of a spell asset in the fourth slot (button 4) |
| image | string | A URL or file name to the thong icon. | |
| texture | string | A second life texture key of the icon above. | |
| gcd | float | The global cooldown of the class. | |
| description | string | Class description | |
| creator | integer | GoT ID of the creator of the class | |
| mod | integer | ID of the mod of the class | |
| default_weapon | integer | weapon | ID of a weapon asset this class starts with |
weapon
| Field | Type | Linkage | Description |
|---|---|---|---|
| id | integer | Unique ID of the weapon | |
| name | string | Name of the weapon | |
| creator | integer | GoT ID of the user who made the weapon | |
| mod | integer | ID of the mod this weapon belongs to | |
| mainhand | string | Name of object attached to main hand | |
| offhand | string | Name of object attached to off hand | |
| created | integer | Unix timestamp of creation date | |
| updated | string | Timestamp of last updated date | |
| stats | array | A GoT passives array active while the weapon is equipped | |
| flags | integer | A bitwise combination 0x1 = deleted, 0x2 = public, 0x4 = stock_weapon, 0x8 = no_unsheathe, 0x10 = dotr_reward | |
| icon | string | A URL or file name of the weapon's icon | |
| description | string | Description of the weapon's effects | |
| anim_set | integer | Animation set used. 0 = fists, 1 = two handed, 2 = one handed, 3 = dual wield slashing, 4 = dual wield thrusting | |
| mainhand_slot | integer | An attachment point. See http://wiki.secondlife.com/wiki/LlAttachToAvatar for acceptable slots. | |
| offhand_slot | integer | An attachment point. See http://wiki.secondlife.com/wiki/LlAttachToAvatar for acceptable slots. | |
| mainhand_back_pos | string | A vector string offset for the weapon's main hand back position. | |
| offhand_back_pos | string | A vector string offset for the weapon's offhand back position. | |
| mainhand_back_rot | string | A rotation string offset for the weapon's main hand back rotation. | |
| offhand_back_rot | string | A rotation string offset for the weapon's offhand back rotation. | |
| acquire_description | string | A vector string offset for the weapon's main hand back position. | |
| hit_sounds | array | Contains an array of sound UUIDs of sounds that play when attacking with the weapon. |
book
| Field | Type | Linkage | Description |
|---|---|---|---|
| id | integer | A unique ID for this book. | |
| name | string | A unique name used in the in world object description to open the book. | |
| displayname | string | Name displayed in library | |
| flags | integer | A bitwise combination. 0x1 = Public, 0x2 = Collectible | |
| pages | array | An array of strings, each representing one page of the book. | |
| creator | integer | GoT ID of the user that created this book. | |
| mod | integer | ID of the mod that added this book. |
quest
| Field | Type | Linkage | Description |
|---|---|---|---|
| id | integer | Unique ID of quest. | |
| name | string | Name of quest. | |
| flags | integer | A bitwise combination. 0x1 = public, 0x2 = no_abandon(only the first quest has access), 0x4 = challenge_mode, 0x10 = main story(only official mods) | |
| description | string | Quest giver text. | |
| completion_description | string | Text said by the questgiver if visited after finishing the quest | |
| questgiver_icon | string | URL or file of any quest giver icon. (Person that shows up when you click the quest start in world) | |
| cells | array | A nested array with [(str)object_name, (str)load_bar_description, (int)nr_monsters(unused)] | |
| difficulty | integer | Between 0 and 4. Unused. | |
| completion_set_land | integer | land | A land asset ID to teleport the player to after finishing the quest. |
| creator | integer | A GoT ID of the quest creator. | |
| mod | integer | ID of the mod that added this quest. | |
| weapon_reward | integer | weapon | ID of a weapon asset to unlock after handing the quest id. Or 0 if none. |
| minplayers | integer | Minimum players for this quest. | |
| maxplayers | integer | Maximum players for this quest. |
dotr_quest
| Field | Type | Linkage | Description |
|---|---|---|---|
| id | integer | A unique ID of the quest. | |
| dungeon | integer | quest | An ID of the quest asset needed to complete this challenge. |
| reward_type | integer | Type of reward to give. 0 = Essence, 1 = Weapon, 2 = Reagents | |
| reward_data | array | Varies depending on type. Essence: [(int)essence], Weapon: [(int)weapon_id], Reagents: [(int)rarity, (int)amount] | |
| date | integer | Unix timestamp of when the contract was first offered. | |
| claimed | integer | The user has completed the dungeon and collected the reward. | |
| completed | integer | The user has completed the dungeon. | |
| user | integer | GoT ID of the user who has this contract |
spell
| Field | Type | Linkage | Description |
|---|---|---|---|
| id | integer | Unique id for this spell. | |
| name | string | Name of this spell | |
| flags | integer | Bitwise flags: 0x1 = Deleted | |
| texture | string | Texture UUID to go on the ability | |
| fxwrapper | array | A GoT FX wrapper to send to the target (see the custom spell tutorial) | |
| description | string | Spell description | |
| mana | integer | Points of mana to consume. | |
| cooldown | float | Seconds for spell to recharge. | |
| target_flags | integer | Targets of this spell. See the custom spell tutorial. | |
| range | integer | Range of spell in meters. | |
| casttime | float | Time to cast the spell in seconds. | |
| fx | array | Array of cast visuals. See the custom spell tutorial. | |
| selfcast | array | An FX wrapper to add to the caster. | |
| creator | integer | A GoT ID of the creator | |
| mod | integer | ID of the mod the added the spell. |
land
| Field | Type | Linkage | Description |
|---|---|---|---|
| id | integer | A unique ID | |
| name | string | Name of the land | |
| flags | integer | A bitwise combination: 0x1 = Public, 0x2 = Deleted | |
| image | string | A URL or file name of an image to use as the background. | |
| landmarks | array | An array of landmark objects: {id:(str)mapUnique_id, icon:(int)icon_id, name:(str)name, goto_land:(int)land, givequest:(int)give_quest, service:(int)offer_service, x:position_x, y:position_y, creator:(Int)creator, mod:(int)mod} Offer service can be one of the following: 1 = thongsmithing, 2 = shop, 3 = enchanter, 4 = unused, 5 = dotr | |
| subof | integer | land | A land asset ID which is the parent of this location |
| creator | integer | A GoT ID of the creator of this land | |
| mod | integer | ID of the mod that added this land. | |
| extends | integer | land | ID of a land asset this land extends. |
user_weapon
| Field | Type | Linkage | Description |
|---|---|---|---|
| id | integer | A unique id of this weapon asset. | |
| weapon | integer | weapon | ID of the weapon asset. |
| flags | integer | A bitwise combination: 0x1 = Seen, 0x2 = Deleted |
user_thong
| Field | Type | Linkage | Description |
|---|---|---|---|
| id | integer | A unique ID | |
| thong | integer | thong | The thong asset (class). |
| flags | integer | A bitwise combination: | |
| level | integer | 0x1 = no_trade (unused), 0x2=no_delete, 0x4 = deleted, 0x8 = enhanced (unused), 0x10 = seen | |
| experience | integer | Current experience points | |
| weapon | integer | weapon | ID of the weapon asset used |
| enchants | array | enchant | Array of IDs of enchant assets applied to this thong. |
user_enchants
| Field | Type | Linkage | Description |
|---|---|---|---|
| id | integer | a unique id | |
| user | integer | GoT ID of the user who owns this enchant | |
| enchant | integer | ID of the enchant asset | |
| seen | integer | Asset has been seen in inventory, if not set, it's new | |
| quantity | integer | Nr of these enchants are in the inventory |
enchant
| Field | Type | Linkage | Description |
|---|---|---|---|
| id | integer | A unique ID | |
| name | string | Name of the enchant | |
| description | string | Enchant effect description | |
| mod | integer | ID of the mod this enchant is from | |
| creator | integer | GoT ID of the user who created this. | |
| passives | array | An array of passives to apply while this enchant is socketed in the active thong. | |
| rarity | integer | A rarity between 0 and 4 | |
| icon | string | A URL or file name of the icon. | |
| flags | integer | A bitwise combination: 0x1 = Public, 0x2 = Not researchable |