(Yet another) newbie in distress.... calling strings from within item_amount

flamin_scotsman

New member
As not to drive the price of a cocktailcrafting drink of my choice sky high by purchasing over a dozen every day, i decided it might be a good idea to dust off the old random(11) statement and use it with a few ifs to help spread the load on the economy =P But I hit one tiny snag - mafia wants a item not a string after item_amount( . Any ideas, anyone?

PS. here's the script to look/laugh at =P
 

Attachments

  • daily.ash
    8.3 KB · Views: 38

Ethelred

Member
Re: (Yet another) newbie in distress.... calling strings from within item_amoun

Replace the lines of the form:

string booze = $item[a little sump'm sump'm];

with

item booze = $item[a little sump'm sump'm];

That should fix the problem.

You might also change

cli_execute("drink 4 (booze)");

to

drink( 4, booze );

I'm not sure why you are enclosing booze in (), but I don't think it's necessary.
 
Top