diff --git a/services/item.lua b/services/item.lua index cbac891..6bf9222 100644 --- a/services/item.lua +++ b/services/item.lua @@ -1 +1,13 @@ --- Item service \ No newline at end of file +-- Item service + +-- on purchase, check if has item, if not `kristify.pay(addrs, price, {message = disp not in stock})` and return a string error +-- if it has item, drop it. +local function onPurchase(params, kristify, addrs, price, disp) + +end + + +-- returns the stock of params.id. +local function getStock(params) + +end \ No newline at end of file diff --git a/services/link.lua b/services/link.lua index 5754563..c93300e 100644 --- a/services/link.lua +++ b/services/link.lua @@ -1 +1,10 @@ --- Link service \ No newline at end of file +-- Link service + +local function onPurchase(params, kristify) + kristify.popup(params.link, 10) + return true +end + +local function getStock(params) + return " ∞ " +end \ No newline at end of file