Trigger automacro at exp% question

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

Moderator: Moderators

panthervfs
Noob
Noob
Posts: 9
Joined: 24 Jan 2014, 18:01
Noob?: Yes

Trigger automacro at exp% question

#1 Post by panthervfs »

I am wondering if there is a way to have an automacro trigger when say a characters experience is 60%.

So for example, say a character is out lvling, his base is 70, and his experience now reaches 60% after killing a monster.

I want an automacro to trigger to make the character go do something. I can't think of a trigger to do this?

I'm looking for something like this I guess

Code: Select all

automacro experience {
     experience 60%
     call {
          do stuff
     }
}

Any suggestions?
c4c1n6kr3m1
The Way Of Human
The Way Of Human
Posts: 150
Joined: 24 Mar 2012, 04:13
Noob?: Yes

Re: Trigger automacro at exp% question

#2 Post by c4c1n6kr3m1 »

try this

Code: Select all

automacro testsub {
   eval (100 * $::char->{exp} / $::char->{exp_max} ) >= 60
   run-once 1
   call {
			do quit
   }
}
panthervfs
Noob
Noob
Posts: 9
Joined: 24 Jan 2014, 18:01
Noob?: Yes

Re: Trigger automacro at exp% question

#3 Post by panthervfs »

Thank you =D
It works like a charm.