mredge73
Member
Can anyone help me with the zapgroups.txt file. I want to load it into a map that I can use in an ash script. It is not a tab spaced list like every other list in the data folder so I don't really know how to go about loading it into a map where I can make use of it.
Here is how I load the list concoctions.txt; I want to do something similar for the zapgroups.txt :
Here is how I load the list concoctions.txt; I want to do something similar for the zapgroups.txt :
Code:
[COLOR=DarkSlateBlue]record
{
string type;
item basic;
item garnish;
}[item] Ingrediants;
file_to_map("concoctions.txt", Ingrediants);[/COLOR]
item BreakDown=$item[ pink pony ];
item Base1=Ingrediants[BreakDown].basic;
item Garnish1=Ingrediants[BreakDown].garnish;
int cost1= historical_price(Base1)+historical_price(Garnish1)+(historical_price($item[bartender-in-the-box])/90);
print("Breakdown of "+BreakDown+" which is a "+Ingrediants[BreakDown].type);
print(Base1,"blue");
print(Garnish1,"blue");
print(cost1,"blue");