RegEx Expert: How to check if the item dealt is correct?

All about the macro plugin can be found in this forum. This forum is intended for the macro plugin only.

Moderator: Moderators

jbauson
Human
Human
Posts: 20
Joined: 16 Apr 2008, 02:46

RegEx Expert: How to check if the item dealt is correct?

#1 Post by jbauson »

So I made a script that will autobuy/deal items to make fire bottles. Everything is fine, except for the part that the seller will deal a wrong item.

Code: Select all

automacro catchDeal{
	#working for single item only
	console /(.*) added Item to Deal\: (?!Stem)(.+) x (.*)/i
	call {
		log Wrong Item
	}
}
This will be triggered when an item in the deal window is NOT "Stem", but how can you catch multiple items?
I tried:

Code: Select all

console /(.*) added Item to Deal\: (?!Stem|?!Fabric)(.+) x (.*)/i
and

Code: Select all

console /(.*) added Item to Deal\: (?!(Stem|Fabric))(.+) x (.*)/i
and other but it didn't work.

Any help will be pretty much appreciated.

TIA!