Trouble with buying

grazepoop

New member
Hi everyone,

I'm at work on a script to automatically make superadvanced cocktails, but I'm stuck on this piece of code (attatched).

My method: I generally make a piece at a time, test it to see if it works, then add it into the big one. I'm having problems with this piece. I always get the statement: "Desired purchase quantity not reached (wanted x, got 0)" The thing is, x is always correct!

It seems to me that the buy function only works with actual numbers, not integer variables, although it does recognize the number...

Any thoughts?
 

Attachments

  • strawberry.ash
    243 bytes · Views: 57

kain

Member
it worked for me (well, I had to tweak it as the only char I could test with doesn't have any perm'd skills and thus no ice cubes).

Do you have the filthy hippy outfit? Are you outside of ronin? Have you allowed Mafia (in the preferences) to purchase from NPC stores?
 

grazepoop

New member
kain,

Thank you so much for your reply.

I was working on a very lengthy workaround when I realized that the reason it wasn't working is that I didn't have any meat.

Man, I feel stupid!

Guess that's how you learn...
 
Top