JohnnyRamrod
New member
Folks, I'm not a scripter or dev. I'm just keen to get a bit of help on something I think might be simple. I do occasionally hack a script if i understand enough of it to try. That's about it. To me it's like trying to read a book in French after doing 1 year of high school classes. ![Smile :) :)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
I have created a VERY basic script though, in order to handle a couple of potion creation activities i want to do when i'm farming, (and then just use a mood to trigger them as needed). it's just to set things up a bit more easily.
I got a start by reading the mafia readme on things like basic and advanced scripting. That at least meant i could easily work out how to buy something i wanted - eg.
or do a check for qty i have of something and buy the difference - eg.
Then my complete lack of genuine understanding kicks in and confuses me. I (naively) assumed if obvious things like 'buy' work, then i could use something like 'make' or 'cook', or 'acquire' or other things that work in the CLI. Alas i was wrong. What I can't easily find is a list of the key things i can call.
For example, I'd like the script to make cranberry cordial. I know how to check to see if i've got the components, and get them if i don't. But how do i then actually make the cordials? I clearly can't add a line like
because i found out the hard way that doesn't work... I'm guessing it's not that simple given the 'make' CLI command does a whole lot of stuff like check for ingredients etc. Can someone point me in the right direction?
I'm VERY aware of my scripting limitations, and therefore i do want to keep this pretty simple. But i figure SURELY i can learn a bit more than i know now, right? I'm happy to read to learn, just not really finding resources or script samples that are helpful. Not looking for someone to write me the script or anything that lame. Just not really sure what to actually do.
Anyway, thanks for reading - any constructive help would be greatly appreciated!
I have created a VERY basic script though, in order to handle a couple of potion creation activities i want to do when i'm farming, (and then just use a mood to trigger them as needed). it's just to set things up a bit more easily.
I got a start by reading the mafia readme on things like basic and advanced scripting. That at least meant i could easily work out how to buy something i wanted - eg.
Code:
buy( 11, $item[Delectable Catalyst] );
or do a check for qty i have of something and buy the difference - eg.
Code:
if ( item_amount( $item[Knob Goblin nasal spray] ) < 33 )
{
buy( 33 - item_amount( $item[Knob Goblin nasal spray] ), $item[Knob Goblin nasal spray] );
}
For example, I'd like the script to make cranberry cordial. I know how to check to see if i've got the components, and get them if i don't. But how do i then actually make the cordials? I clearly can't add a line like
Code:
make( 6, $item[Cranberry Cordial] );
because i found out the hard way that doesn't work... I'm guessing it's not that simple given the 'make' CLI command does a whole lot of stuff like check for ingredients etc. Can someone point me in the right direction?
I'm VERY aware of my scripting limitations, and therefore i do want to keep this pretty simple. But i figure SURELY i can learn a bit more than i know now, right? I'm happy to read to learn, just not really finding resources or script samples that are helpful. Not looking for someone to write me the script or anything that lame. Just not really sure what to actually do.
Anyway, thanks for reading - any constructive help would be greatly appreciated!