Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:StoreTraderGold

Template page
Revision as of 22:50, 31 August 2023 by Sky (talk | contribs) (Make it work without cargo.)


Looks up trader gold value. Accomplishes this by looking their number of gold piles in two very cursed embedded arrays (one for lower, one for upper). Finally, multiply depending on the trader's wealth.

This is a very elementary template and should probably not be used directly.

param 1 = The level of the trader.

param 2 = (allowed values=poor,modest,wealthy,extremelyrich). The wealth level of the trader.

upper = Whether to get the upper amount of gold. If empty, will get lower amount.

Examples:

  • lv1 Poor trader sgiykd gave 200 ~ 675 gold.
  • lv5 Normal trader should have 360 ~ 1215 gold.
  • lv12 Extremely Rich trader should have 3840 ~ 8640 gold.