Difference between revisions of "Merchant Documentation"

From Legends of Aria Admin and Modding Wiki
Jump to: navigation, search
(Misc Object Variables)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
back to [[Project Phoenix#Merchants]]
 
back to [[Project Phoenix#Merchants]]
==Introduction==
 
 
==Table Definitions==
 
==Table Definitions==
 +
{| class="wikitable"
 +
|-
 +
! table name !! table data !! description
 +
|-
 +
| buy_list || {<template>,<name>,<cost>,<stackable>} || template - the template to buy off the player<br>name - the display name<br>cost - cost of the item exmp: 10c<br>stackable - a true/false value.
 +
|-
 +
| stock_data_list || {<template>,<name>,<sellprice>,<maxstock>,<stackable>} || template - the template to sell to the player<br>name - the display name<br>sellprice - the price to sell<br>maxstock - the max amount to stock of the item on restock<br>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<br>display name - the display name<br>sell price - the price to sell the item at<br>current_stock_count - the amount left in stock of the item<br>max_stock_count - the max stock the item can have<br>stackable - a true/false value.
 +
|}
 +
==Misc Object Variables==
 +
{| class="wikitable"
 +
|-
 +
! 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
 +
|}

Latest revision as of 08:51, 19 June 2018

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