Mudlib pockets
Documentation for the body-pockets functions for the mudlib in /std/body/pockets.c.
Functions
- varargs int add_material(mixed m, int c)
int add_material(mixed m) Adds a material (object) to the pouch and detroys it from inventory. If m is a string, it’s added directly under that ID. The function returns 1 on success or 0 on failure.
-
int has_material(string m, int count)
int has_material(string m, int count) Checks for count material from the pouch if available (return 1), otherwise return 0. Material could also be in inventory, which is also checked.
-
int remove_material(string m, int count)
int remove_material(string m, int count) Removes count material from the pouch if available (return 1), otherwise it does nothing (return 0).
-
int query_amt_money(string type)
This is the functin to call to query the amount of a certain type of currency you have.
-
float query_amt_currency(string currency)
This is the functin to call to query the sum of the types of a currency you have.
-
void add_money(string type, float amount)
This is the function to call to add money to a person
-
void subtract_money(string type, int amount)
This is the function to call to substract money from a person
-
mapping query_money()
This function will return the complete money mapping
File generated by Lima 1.1a4 reStructured Text daemon.