The script should get the item from this text file Pricelist and return the line that word is contained on.
Eg. user types !price Abyssal whip and the bot will search the text file and return line one of the text file "Abyssal whip: 2.9-3.2Mil" as a notice to the user... So it's like:
<@Hamish> !price Abyssal whip
-ClanBot- Abyssal whip: 2.9-3.2Mil
Also, if it helps at all, here is the MIRC version:
Code: Select all
on *:TEXT:!price*:#:{
.notice $nick *** [7 $upper($$2-) ]: $read(prices.txt, s, $$2- $+ :)
}
}