Merchant Documentation

From Legends of Aria Admin and Modding Wiki
Revision as of 08:51, 19 June 2018 by Gizmo (talk | contribs) (Misc Object Variables)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

back to Project Phoenix#Merchants

Table Definitions

table name table data description
buy_list {<template>,<name>,<cost>,<stackable>} template - the template to buy off the player
name - the display name
cost - cost of the item exmp: 10c
stackable - a true/false value.
stock_data_list {<template>,<name>,<sellprice>,<maxstock>,<stackable>} template - the template to sell to the player
name - the display name
sellprice - the price to sell
maxstock - the max amount to stock of the item on restock
stackable - a true/false value.
current_stock_list <template>,<display name>,<sell price>,<current_stock_count>,<max_stock_count>,<stackable> template - the template to sell to the player
display name - the display name
sell price - the price to sell the item at
current_stock_count - the amount left in stock of the item
max_stock_count - the max stock the item can have
stackable - a true/false value.

Misc Object Variables

Variable Name Type Description
CanDoRepairs bool true/false shows the repair option on the merchants dynamic window.
Currency_Type string the vendor will use any object with the objvar tag <ResourceType> instead of coins
restock_delay number a value in seconds in how often you want the vendor to restock