GhettoTrucker
Member
So I'm working on a few scripts, trying to get back into the swing of things. I can't seem to find a good compilation and documentation of all the ASH functions and CLI commands available in mafia. The wiki is confusing at best, so...
First, does mafia have the capability to send chat messages and kmails, and respond to proposed trades?
I've looked at zLib and see some functions to send kmails, but is there an easy way to parse through them.
I know there is a chat_reply() function, but is there a way to send an uninitiated message in PM or open chat? (ie. a clan informational/welcome bot)
I've also looked at the tradeaway.ash script, but i'm having some issues working through parts of it.
Second, i've looked at "value.ash" and looked into the mall_price() and historical_price() functions, but is there already a place to get the information available on the wiki marketplace page? ie. the other data such as "quantity", up/down %, etc.. I'm sure it wouldn't be to hard to make a scraper and parse it into a map file, but I would prefer not to duplicate someone's work.
Hopefully this can all come together to be something useful for the community. Thanks so much!
First, does mafia have the capability to send chat messages and kmails, and respond to proposed trades?
I've looked at zLib and see some functions to send kmails, but is there an easy way to parse through them.
I know there is a chat_reply() function, but is there a way to send an uninitiated message in PM or open chat? (ie. a clan informational/welcome bot)
I've also looked at the tradeaway.ash script, but i'm having some issues working through parts of it.
Second, i've looked at "value.ash" and looked into the mall_price() and historical_price() functions, but is there already a place to get the information available on the wiki marketplace page? ie. the other data such as "quantity", up/down %, etc.. I'm sure it wouldn't be to hard to make a scraper and parse it into a map file, but I would prefer not to duplicate someone's work.
Hopefully this can all come together to be something useful for the community. Thanks so much!