Self Defense Macro: Tweaking what I borrowed

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

Moderator: Moderators

saberunit
Noob
Noob
Posts: 1
Joined: 18 Apr 2012, 17:52
Noob?: Yes

Self Defense Macro: Tweaking what I borrowed

#1 Post by saberunit »

Hi,

I'm new to macros and plugins, but I do have a couple of borrowed ones taken from the forums (thank you!). After watching the said macros work, especially the self defense macros and other utility plugins I realized that I enjoy tweaking macros and plugins, much like tweaking my configs for each of my character to use.

Which is why I started studying macros, and I have been tweaking the said macros below for my RK.

By studying, meaning cannibalizing the copied macros and pasting together what strings I understood works.

So here is my current study macro, I haven't tested this yet but the idea is to have my character cast Spiral Pierce once when a player attacks or casts a spell at me and then loops back so my character defends herself with spiral pierce spam, which on our server (pRO new iris) normally kills under geared people who think bots won't bite back. :)

automacro pkattack{
console /Player (.*) \((\d+)\) attacks you.*/i
call {
do sm 397 5 $.lastMatch2
do kill $.lastMatch2
release pkattack
}
}

automacro pkmagic {
console /Player (.*) \((\d+)\) uses (.*) on you - Dmg.*/i
call {
do sm 397 5 $.lastMatch2
do kill $.lastMatch2
release pkmagic
}
}

What I want to know if does this macro work? I am probably going to find out later since i'll be testing it as soon as my character returns for autostorage, and is there a way to make this macro work so that it ignores friendly buffs from players? I have a macro for my slave that overrules this pk macro taken from this site too and I wanted to expand it to include friendly people that buffs my RK when it solos on pk maps.

thank you.