Difference between revisions of "Merchant Documentation"

From Legends of Aria Admin and Modding Wiki
Jump to: navigation, search
(Table Definitions)
Line 5: Line 5:
 
! table name !! table data !! description  
 
! table name !! table data !! description  
 
|-
 
|-
| buy_list || {<itemtemplate>,<name>,<cost>,<stackable> || itemtemplate - 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.
+
| 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.
 
|-
 
|-
| Example || Example || Example
+
| 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.
 
|-
 
|-
| Example || Example || Example
+
| 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.
 
|}
 
|}

Revision as of 08:44, 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.