Help with macro to pm monsterID.

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

Moderator: Moderators

Message
Author
kachaw
Noob
Noob
Posts: 2
Joined: 15 May 2011, 13:31
Noob?: No

Help with macro to pm monsterID.

#1 Post by kachaw »

Can someone help me with my macro?

I'd like my bot1 to PM bot2 the #.

This is what's displayed on the console

Monster Chonchon (#) attacks Player HelpMe (#)

and here's what I've done so far

Code: Select all

automacro test {
	console /Monster (.*) \((\d+)\) attacks Player HelpMe /
	call {
$yes = $.lastMatch2
do pm HelpMe $yes
 }
}
maybe I've got the regular expressions wrong because it doesn't seem to do anything. :oops:

Any ideas? :roll:

EternalHarvest
Developers
Developers
Posts: 1798
Joined: 05 Dec 2008, 05:42
Noob?: Yes

Re: Help with macro to pm monsterID.

#2 Post by EternalHarvest »

These binIDs wouldn't be the same in different OpenKore instances.

User avatar
help_us
Testers Team
Testers Team
Posts: 106
Joined: 04 Apr 2008, 21:53
Noob?: No
Location: Asia
Contact:

Re: Help with macro to pm monsterID.

#3 Post by help_us »

Code: Select all

Commit by ya4ept :: r7721 /plugins/macro/trunk/Macro/ (Data.pm Parser.pm Utilities.pm):
Enable Special Keyword @monster(monsterName|monsterID)
Returns monster ID (see console command "ml"). If monster is not found, it returns -1. 
this one didnt help?
Image
Image

kachaw
Noob
Noob
Posts: 2
Joined: 15 May 2011, 13:31
Noob?: No

Re: Help with macro to pm monsterID.

#4 Post by kachaw »

Well, that got me there, thanks :D :P

Post Reply