I appreciate your help, but does not seem to be working. I put:

on *:start: {
hmake Prices 100
if ($isfile(Prices.hsh)) { hload Prices Prices.hsh }
}

on *:TEXT:*are left at the new price.:#Markets: {
if (!$hget(Prices)) { hmake Prices 100 }
hadd Prices $1 $3 $5 $7 $9
hsave Prices Prices.hsh
}

on *:text:!Troops &:#Markets: {
var %item = $2
tokenize 32 $hget(Prices,%item)
msg $chan %item went $1 to $2 from $3 and $4 are left at the new price.
}


I assume for each item I would change the trigger? eg: troops, turrets, tanks, blah blah.

edit I even tried to put each item after the on :TEXT: * to each item

Edit 2: Oh I see, I need to !prices xyz, could it be made to just use each item name? like jets, turrets, food, yadda yadda?

Thanks again

Last edited by danzigrules; 10/01/07 09:51 PM.