Difference between revisions of "NPCLoot data"

From Stoneshard wiki
Jump to navigation Jump to search
(Removed spaces in Items names.)
m
 
(One intermediate revision by the same user not shown)
Line 41: Line 41:
   <nowiki>
   <nowiki>
|Bert = {{#switch:{{{2}}}
|Bert = {{#switch:{{{2}}}
   |Buys = Beverages;Armor;Books;Drugs;Food;Jewelry;Medicine;Potions;Tools;Weapons;Valuables
   |Buys = Armor;Books;Consumables;Drugs;Food;Jewelry;Medicine;Potions;Tools;Weapons;Valuables
   |Sells = Weapons;Armor;Jewelry;Medicine;Valuables;Food;Junk
   |Sells = Weapons;Armor;Jewelry;Medicine;Valuables;Food;Junk
   |Weapons = Training_Crossbow
   |Weapons = Training_Crossbow
   |Armor = Travelling_Shoes
   |Armor = Travelling_Shoes
   |Beverages = Mannshire_Fortified
   |Consumables = Bread;Cheese;Morel;Mannshire_Fortified
  |Food = Bread;Cheese;Morel
   |Medicine = Bandage;Healing Salve;Herbal_Extract
   |Medicine = Bandage;Healing Salve;Herbal_Extract
   |Tools = Hammer;Pickaxe;Bedroll
   |Tools = Hammer;Pickaxe;Bedroll
Line 53: Line 52:
   <nowiki>
   <nowiki>
|Bert = {{#switch:{{{2}}}
|Bert = {{#switch:{{{2}}}
   |Buys = Beverages;Armor;Books;Drugs;Food;Jewelry;Medicine;Potions;Tools;Weapons;Valuables
   |Buys = Armor;Consumables;Scrolls;Jewelry;Medicine;Potions;Tools;Weapons;Valuables
   |Sells = Weapons;Armor;Jewelry;Medicine;Valuables;Food;Junk
   |Sells = Weapons;Armor;Consumables;Jewelry;Medicine;Valuables;Junk
   |Weapons = Training_Crossbow
   |Weapons = Training_Crossbow
   |Armor = Travelling_Shoes
   |Armor = Travelling_Shoes
Line 82: Line 81:
}}
}}
-->
-->
All icons:
All category icons in alphabetical order:


All;Armor;Consumables;Inventorystash;Jewelry;Loot;Medicine;Other;Potions;Reagents;Scrolls;Tools;Weapons;
All;Armor;Consumables;Inventorystash;Jewelry;Loot;Medicine;Other;Potions;Reagents;Scrolls;Tools;Weapons;
Line 96: Line 95:


|Jurg = {{#switch: {{{2}}}
|Jurg = {{#switch: {{{2}}}
|Buys = Armor;Beverages;Consumables;Jewelry;Other;Reagents;Tools;Weapons<!--Alcohol;Ammo;Armor;Beverages;Food;Ingredients;Jewelry;Junk;Materials;Valuables;Weapons-->
|Buys = Armor;Consumables;Jewelry;Other;Reagents;Tools;Weapons<!--Alcohol;Ammunition;Armor;Beverages;Food;Ingredients;Jewelry;Junk;Materials;Valuables;Weapons-->
|Sells = Weapons;Armor
|Sells = Weapons;Armor
|Weapons = Bows;Crossbows;Staves;Maces;Two-Handed_Maces<br>(Wood);Ammo
|Weapons = Bows;Crossbows;Staves;Maces;Two-Handed_Maces<br>(Wood);Ammunition
|Armor = Shields
|Armor = Shields
|BuysLimitation = "Jurg will pay more [[Crowns]] for wooden items than other merchants."
|BuysLimitation = "Jurg will pay more [[Crowns]] for wooden items than other merchants."
Line 116: Line 115:


|Frid = {{#switch: {{{2}}}
|Frid = {{#switch: {{{2}}}
|Buys = Alcohol;Beverages;Drugs;Food;Ingredients;Jewelry;Junk;Medicine;Potions;Scrolls;Valuables
|Buys = Consumables;Reagents;Jewelry;Other;Medicine;Potions;Scrolls;Valuables
|Sells = Consumables;Medicine;Scrolls
|Sells = Consumables;Medicine;Scrolls
|Consumables =
|Consumables =
Line 132: Line 131:


|Osbrook Female Innkeeper = {{#switch: {{{2}}}
|Osbrook Female Innkeeper = {{#switch: {{{2}}}
|Occupation = Hostess
|Buys =  
|Trader = 1
|Sells = Consumables
|Sells = Food;Drinks;Waterskin
|Consumables = Waterskin
|#default = }}
|#default = }}


|Bert = {{#switch:{{{2}}}
|Bert = {{#switch:{{{2}}}
|Buys = Armor;Books;Consumables;Jewelry;Loot;Medicine;Other;Potions;Tools;Weapons;
|Buys = Armor;Scrolls;Consumables;Jewelry;Loot;Medicine;Other;Potions;Tools;Weapons
|Sells = Weapons;Armor;Jewelry;Medicine;Valuables;Food;Junk
|Sells = Weapons;Armor;Jewelry;Medicine;Valuables;Consumables;Other;Scrolls
|Weapons = Training_Crossbow;
|Weapons = Training_Crossbow
|Armor = Travelling_Shoes;
|Armor = Travelling_Shoes
|Jewelry = <!--TODO-->
|Jewelry = <!--TODO-->
|Books & Notes = <!--TODO -> Use "|Scrolls" instead.-->
|Books & Notes = <!--TODO -> Use "|Scrolls" instead.-->
Line 153: Line 152:


|Alan = {{#switch: {{{2}}}
|Alan = {{#switch: {{{2}}}
|Occupation = Miller
|Buys =  
|Trader = 1
|Sells = Consumables
|Sells = Food
|Consumables =
|#default = }}
|#default = }}


Line 230: Line 229:
|Gerlot = {{#switch: {{{2}}}
|Gerlot = {{#switch: {{{2}}}
|Buys =
|Buys =
|Sells = Weapons;Armor;Jewelry;Medicine;Valuables;Food;Junk
|Sells = Weapons;Armor;Jewelry;Medicine;Valuables;Consumables;Other;Scrolls
|Armor = Geomancer_Cowl;Geomancer_Mantle;Magistrate_Mail;Mail_Gloves;Joust Shield;Long shield
|Armor = Geomancer_Cowl;Geomancer_Mantle;Magistrate_Mail;Mail_Gloves;Joust Shield;Long shield
|Consumables = Dumpling;Mead;Pancakes;Potato;Roasted_Drumstick;Sausage;Dark_Ale;Jug_of_Milk;Mannshire_Fortified;Spirit;Waterskin
|Consumables = Dumpling;Mead;Pancakes;Potato;Roasted_Drumstick;Sausage;Dark_Ale;Jug_of_Milk;Mannshire_Fortified;Spirit;Waterskin

Latest revision as of 23:35, 27 January 2025


This article is a stub. You can help Stoneshard wiki by expanding it.

Page for all Stoneshard NPC Loot data. [TEST]

---

NPCLoot data is maintained manually (for now).

This template is a standalone from the Friendly data template and data, which was used to gather some of the data from each NPC, along with the extra data added in their own pages.

Update Data

The idea here, is to centralize only what the NPCs trade. Buying and selling prices are not needed, as they are already in the determined data pages.

To adapt to the official. The template {{NPCLootTable/row}}, uses the following categories, only for sub-categories:

  • Unfortunately, this needs to be changed manually, for every NPC. This is where Friendly NPC and NPCLoot data differ from each other.
  • This would require a "complete" rewrite of the NPCs infos, to compell with the game icon categories.
 
|SubCategories = {{switch:{{#var:IconCategory}}
|Food = Consumables;
|Beverages = Consumables;
|Drinks = Consumables;
|Wateskin = Consumables;
"Loot" = <!--TBD -> Most likely, the difference between Jewelry and Valuables-->;
|Junk = Other;
|Herbs = Medicine;
"Reagents" = <!--TBD -> Most likely, food additives & Ingredients? -->;
|Books & Notes = Scrolls;
|Tools & Traps = Tools;
|Misc = Other;
#default = All}} <!--When icon not found.-->

  • I could not think of a better way to do this icon verification, without a proper loop or a better way to handle the data. So i will leave this as is, and change manually, as needed.
  • The thing is, manually cchanging this table, requires you to go to the NPC page, and verify the items listed there and their categories, then update the NPCLoot data page, with the correct categories.

You can base it on the "old" NPC page, and list the types of items he sells like this:

If a parameter is empty, for example: Bert does not Sell any Jewelry.
It can be left empty or omitted completely.
Here are two examples of NPCLoot data syntax;these two would produce the same result:

 
|Bert = {{#switch:{{{2}}}
  |Buys = Armor;Books;Consumables;Drugs;Food;Jewelry;Medicine;Potions;Tools;Weapons;Valuables
  |Sells = Weapons;Armor;Jewelry;Medicine;Valuables;Food;Junk
  |Weapons = Training_Crossbow
  |Armor = Travelling_Shoes
  |Consumables = Bread;Cheese;Morel;Mannshire_Fortified
  |Medicine = Bandage;Healing Salve;Herbal_Extract
  |Tools = Hammer;Pickaxe;Bedroll
|#default = }}
 
|Bert = {{#switch:{{{2}}}
  |Buys = Armor;Consumables;Scrolls;Jewelry;Medicine;Potions;Tools;Weapons;Valuables
  |Sells = Weapons;Armor;Consumables;Jewelry;Medicine;Valuables;Junk
  |Weapons = Training_Crossbow
  |Armor = Travelling_Shoes
  |Jewelry = 
  |Beverages = Mannshire_Fortified
  |Food = Bread;Cheese;Morel
  |Medicine = Bandage;Healing Salve;Herbal_Extract
  |Tools = Hammer;Pickaxe;Bedroll
|#default = }}

Used by:

All category icons in alphabetical order:

All;Armor;Consumables;Inventorystash;Jewelry;Loot;Medicine;Other;Potions;Reagents;Scrolls;Tools;Weapons;


This article is a stub. You can help Stoneshard wiki by expanding it.