Difference between revisions of "NPCLoot data"

From Stoneshard wiki
Jump to navigation Jump to search
(Add refined template for NPCLootTable, with explanation.)
(Update infos & data patterns. New template, should work with all NPCs added.)
Line 25: Line 25:
|Junk = Other;
|Junk = Other;
|Herbs = Medicine;
|Herbs = Medicine;
"Reagents" = <!--TBD -> Most likely, food additives & ? -->;
"Reagents" = <!--TBD -> Most likely, food additives & Ingredients? -->;
|Books & Notes = Scrolls;
|Books & Notes = Scrolls;
|Tools & Traps = Tools;
|Tools & Traps = Tools;
Line 39: Line 39:
If a parameter is empty, for example: '''[[Bert]] does not Sell any Jewelry.'''<br>{{c|+|It can be left empty or omitted completely}}.<br>Here are two examples of NPCLoot data syntax;these two would produce the same result:
If a parameter is empty, for example: '''[[Bert]] does not Sell any Jewelry.'''<br>{{c|+|It can be left empty or omitted completely}}.<br>Here are two examples of NPCLoot data syntax;these two would produce the same result:


   <nowiki>|Bert = {{#switch:{{{2}}}
   <nowiki>
|Bert = {{#switch:{{{2}}}
   |Buys = Beverages;Armor;Books;Drugs;Food;Jewelry;Medicine;Potions;Tools;Weapons;Valuables
   |Buys = Beverages;Armor;Books;Drugs;Food;Jewelry;Medicine;Potions;Tools;Weapons;Valuables
   |Sells = Weapons;Armor;Jewelry;Medicine;Valuables;Food;Junk
   |Sells = Weapons;Armor;Jewelry;Medicine;Valuables;Food;Junk
Line 50: Line 51:
|#default = }}</nowiki>
|#default = }}</nowiki>


   <nowiki>|Bert = {{#switch:{{{2}}}
   <nowiki>
|Bert = {{#switch:{{{2}}}
   |Buys = Beverages;Armor;Books;Drugs;Food;Jewelry;Medicine;Potions;Tools;Weapons;Valuables
   |Buys = Beverages;Armor;Books;Drugs;Food;Jewelry;Medicine;Potions;Tools;Weapons;Valuables
   |Sells = Weapons;Armor;Jewelry;Medicine;Valuables;Food;Junk
   |Sells = Weapons;Armor;Jewelry;Medicine;Valuables;Food;Junk
Line 80: Line 82:
}}
}}
-->
-->
</noinclude><includeonly>{{#switch: {{{1}}}
All icons:
 
All;Armor;Consumables;Inventorystash;Jewelry;Loot;Medicine;Other;Potions;Reagents;Scrolls;Tools;Weapons;
 
{{stub}}</noinclude><includeonly>{{#switch: {{{1}}}
<!--
<!--
----- OSBROOK -----
----- OSBROOK -----
-->
-->
|Ormond = {{#switch: {{{2}}}
|Ormond = {{#switch: {{{2}}}
|Buys = Other
|Buys = Consumables;Jewelry;Tools;Other<!--Alcohol;Beverages;Food;Jewelry;Tools-->
|Food = Food
|Consumables = Sausage;Smoked Ham;Fatty Meat;Tough Meat;Tender Meat;Sinewy Meat;Raw Drumstick
|#default = }}
|#default = }}


|Jurg = {{#switch: {{{2}}}
|Jurg = {{#switch: {{{2}}}
|Buys = Armor;Beverages;Food;Reagents;Jewelry;Other;Materials;Valuables;Weapons
|Buys = Armor;Beverages;Consumables;Jewelry;Other;Reagents;Tools;Weapons<!--Alcohol;Ammo;Armor;Beverages;Food;Ingredients;Jewelry;Junk;Materials;Valuables;Weapons-->
|Sell = Weapons;Armor
|Sells = Weapons;Armor
|Weapons = Bows;Crossbows;Staves;Maces;Two-Handed_Maces;Ammo;Shields
|Weapons = Bows;Crossbows;Staves;Maces;Two-Handed_Maces<br>(Wood);Ammo
|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 98: Line 104:


|Margyt = {{#switch: {{{2}}}
|Margyt = {{#switch: {{{2}}}
|Buys =
|Buys = Other<!--TBC-->
|Sells = Food
|Sells = Consumables
|Food =
|Consumables = Cheese;Cooked Carp;Grape;Lentil Soup;Pancakes;Peasant Stew;Pinecap;Smoked Ham;TomatoDark Ale;Spirit
|#default = }}
|#default = }}


|Gina = {{#switch: {{{2}}}
|Gina = {{#switch: {{{2}}}
|Buys =
|Buys =
|Sells = Food
|Sells = Consumables
|Food =  
|Consumables =  
|#default = }}
|#default = }}


|Frid = {{#switch: {{{2}}}
|Frid = {{#switch: {{{2}}}
|Buys =
|Buys = Alcohol;Beverages;Drugs;Food;Ingredients;Jewelry;Junk;Medicine;Potions;Scrolls;Valuables
|Sells = Herbs;Medicine;Scrolls
|Sells = Consumables;Medicine;Scrolls
|Consumables =
|Medicine = Antitoxin;Bandage;Healing Salve;Herbal Extract;Leeches;Vivifying Essence;Splint;Soporific Sponge
|Reagents = Agrimony;Bogbean;Burdock;Horsetail;Mindwort;Peppermint;Poppy;Thyme
|Scrolls = Identification Scroll;Disenchantment Scroll
|BuysLimitation = "Selling Medicine and drugs to Frid will yield a better price than other merchants."
|#default = }}
|#default = }}


|Brukk = {{#switch: {{{2}}}
|Brukk = {{#switch: {{{2}}}
|Occupation = Innkeeper
|Buys = Consumables;Jewelry;Other
|Trader = 1
|Sells = Consumables
|Sells = Food;Drinks;Waterskin
|Consumables = Brandy;Dark Ale;Jug of Milk;Mead;Spirit;Waterskin;Bread;Cheese;Cooked Carp;Cooked Venison;Dumpling;Garlic;Goat Cheese;Lentil Soup;Pancakes;Peasant Stew;Roasted Drumstick;Sausage;Smoked Ham;Tomato;Roasted Fatty Meat;Flatbread;Pretzel
|#default = }}
|#default = }}


Line 127: Line 138:


|Bert = {{#switch:{{{2}}}
|Bert = {{#switch:{{{2}}}
|Buys = Beverages;Armor;Books;Drugs;Food;Jewelry;Medicine;Potions;Tools;Weapons;Valuables
|Buys = Armor;Books;Consumables;Jewelry;Loot;Medicine;Other;Potions;Tools;Weapons;
|Sells = Weapons;Armor;Jewelry;Medicine;Valuables;Food;Junk
|Sells = Weapons;Armor;Jewelry;Medicine;Valuables;Food;Junk
|Weapons = Training_Crossbow;
|Weapons = Training_Crossbow;
Line 148: Line 159:


|Jebar = {{#switch: {{{2}}}
|Jebar = {{#switch: {{{2}}}
|Occupation = Smith
|Buys = Armor;Weapons;Tools
|Trader = 1
|Sells = Armor;Tools;Weapons
|Repair = 1
|Armor = Shields;Headgear;Chestpieces;Gloves;Belts;Boots
|Sells = Weapons;Lockpicks;Traps
|Weapons = Swords;Maces;Axes;Daggers;Greatswords;Spears
|Consumables = Tools
|#default = }}
|#default = }}


|Hold = {{#switch: {{{2}}}
|Hold = {{#switch: {{{2}}}
|Occupation = Tailor
|Buys =
|Trader = 1
|Sells =
|Repair = 1
|Armor = Headgear;Gloves;Belts;Chestpieces;Boots
|Weapons = Quivers
|Other = Purse
|BuysLimitation = "Hold will pay more [[Crowns]] for tailored equipment than other merchants."
|#default = }}
|#default = }}
<!--
----- MANNSHIRE -----
-->


|Lynd = {{#switch: {{{2}}}
|Lynd = {{#switch: {{{2}}}
|Occupation = Apprentice
|Buys = Other;Tools;Weapons
|Trader = 1
|Sells = Other;Tools;Weapons
|Repair = 1
|Tools = Lockpicks;Repair_Kit
|Sells = Misc
|Other = Purse
|#default = }}
|#default = }}


|Dirk_(NPC) = {{#switch: {{{2}}}
|Dirk_(NPC) = {{#switch: {{{2}}}
|Occupation = Carpenter
|Buys =  
|Trader = 1
|Sells = Weapons;Armor
|Repair = 1
|Armor = Shields
|Sells = Maces;Staves;Shields;Bows;Xbows;Ammunition
|Weapons = Maces;Staves;Shields;Bows;Crossbows;Ammunition
|#default = }}
|#default = }}


|Knud = {{#switch: {{{2}}}
|Knud = {{#switch: {{{2}}}
|Occupation = Village Elder
|Buys =  
|Trader = 1
|Sells = Scrolls
|Sells = Maps
|Scrolls = Maps
|#default = }}
|#default = }}


|Agna = {{#switch: {{{2}}}
|Agna = {{#switch: {{{2}}}
|Occupation = Food Trader
|Buys =
|Trader = 1
|Sells = Consumables
|Sells = Milk;Cheese
|Consumables = Milk;Cheese
|#default = }}
|#default = }}


|Gunda = {{#switch: {{{2}}}
|Gunda = {{#switch: {{{2}}}
|Occupation = Food Trader
|Buys =
|Trader = 1
|Sells = Consumables
|Sells = Wine;Grapes
|Consumables = Wine;Grapes
|#default = }}
|#default = }}


|Weber Vir Lecri = {{#switch: {{{2}}}
|Weber Vir Lecri = {{#switch: {{{2}}}
|Occupation = Governor
|Sells = Scrolls
|Trader = 1
|Scrolls = Maps;Tools
|Sells = Maps;Tools
|#default = }}
|#default = }}


|Selma = {{#switch: {{{2}}}
|Selma = {{#switch: {{{2}}}
|Occupation = Hostess
|Buys =
|Trader = 1
|Sells = Consumables
|Sells = Food;Drinks;Waterskin
|Consumables = Bread;Pancakes;Roasted Fatty Meat;Roasted Drumstick;Peasant Stew;Lentil Soup;Smoked Ham;Sausage;Pretzel;Flatbread;Cooked Carp;Cheese;Brandy;Dark Ale;Mead;Waterskin
|#default = }}
|#default = }}


|Arenn = {{#switch: {{{2}}}
|Arenn = {{#switch: {{{2}}}
|Occupation = Innkeeper
|Buys =  
|Trader = 1
|Sells = Consumables
|Sells = Food;Drinks;Waterskin
|Consumables = Bread;Pancakes;Roasted Fatty Meat;Roasted Drumstick;Peasant Stew;Lentil Soup;Smoked Ham;Sausage;Pretzel;Flatbread;Cooked Carp;Cheese;Brandy;Dark Ale;Mead;Waterskin
|#default = }}
|#default = }}


|Gerlot = {{#switch: {{{2}}}
|Gerlot = {{#switch: {{{2}}}
|Occupation = Merchant
|Buys =
|Trader = 1
|Sells = Weapons;Armor;Jewelry;Medicine;Valuables;Food;Junk
|Sells = Weapons;Armor;Jewelry;Medicine;Valuables;Food;Junk
|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
|Jewelry = Exquisite Gold Ring;Pearl Necklace;Ruby Necklace;Silver Ring;Silver Amethyst Ring
|Medicine = Herbal Exctract
|Scrolls = Disenchantment Scroll;Identification Scroll;Enchantment Scroll;Axe Treatise I;Dagger Treatise I;Pyromantic Treatise I;Pyromantic Treatise III;Geomantic Treatise III;Sword Treatise I
|Weapons = Baselard;Felling Axe;Footman Mace;Hermit Staff;Metallic Staff;Priest Staff
|#default = }}
|#default = }}


|#default = NPC {{{1}}} does not exist in [[NPCLoot data]].}}</includeonly>
|#default = NPC {{{1}}} does not exist in [[NPCLoot data]].}}</includeonly>

Revision as of 23:14, 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 = Beverages;Armor;Books;Drugs;Food;Jewelry;Medicine;Potions;Tools;Weapons;Valuables
  |Sells = Weapons;Armor;Jewelry;Medicine;Valuables;Food;Junk
  |Weapons = Training_Crossbow
  |Armor = Travelling_Shoes
  |Beverages = Mannshire_Fortified
  |Food = Bread;Cheese;Morel
  |Medicine = Bandage;Healing Salve;Herbal Extract
  |Tools = Hammer;Pickaxe;Bedroll
|#default = }}
 
|Bert = {{#switch:{{{2}}}
  |Buys = Beverages;Armor;Books;Drugs;Food;Jewelry;Medicine;Potions;Tools;Weapons;Valuables
  |Sells = Weapons;Armor;Jewelry;Medicine;Valuables;Food;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 icons:

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.