Buying cooking implements

Banana Lord

Member
Code:
//Buy cooking implements
foreach implement in $items[Dramatic™ range, Queue Du Coq cocktailcrafting kit]
	if(item_amount(implement) == 0)
		retrieve_item(1, implement);

Two questions:
  1. What's the best way to make sure that I don't already have a given "implement" in my campground?
  2. I haven't tested this code yet, so could someone tell me if the "tm" in dramatic range will cause any problems, and if so, how do I fix it?

Many thanks! :-)
 
Code:
//Buy cooking implements
foreach implement in $items[Dramatic™ range, Queue Du Coq cocktailcrafting kit]
	if(item_amount(implement) == 0 && !(get_campground() contains implement) )
		retrieve_item(1, implement);
 
Back
Top