api.txt 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. table minercantile.stock
  2. table minercantile.stock.items
  3. items stock
  4. int minercantile.stock.money
  5. money stock
  6. table minercantile.shop
  7. function minercantile.shop.get_money()
  8. return found money
  9. function minercantile.shop.give_money(amount, bool)
  10. param amount:amount of money, bool:save file
  11. add money
  12. function minercantile.shop.take_money(amount, bool)
  13. param amount:amount of money, bool:save file
  14. remove money
  15. files
  16. minercantile_stock.txt
  17. table money and items
  18. minercantile_stock_base.txt
  19. table items defined by default
  20. wallets
  21. table minercantile.wallets[player]
  22. int money
  23. table transactions
  24. table minercantile.wallet
  25. function minercantile.wallet.load_wallet(name)
  26. load player's money
  27. function minercantile.wallet.save_wallet(name)
  28. save player's money
  29. function minercantile.wallet.get_money(name)
  30. return player's money
  31. function minercantile.wallet.give_money(name, amount, transaction)
  32. add money
  33. function minercantile.wallet.take_money(name, amount, transaction)
  34. remove money
  35. function minercantile.wallet.get_transactions(name)
  36. return player's transactions
  37. function minercantile.add_transactions(name, new_transaction)
  38. function minercantile.send_money(sender, receiver, amount)
  39. send money from sender to receiver