- $.lastPlayerName - name of the last player that triggered the automacro.
- $.lastPlayerPos - triggered player position. '''Ex''': x, y map_name
- $.lastPlayerLevel - level of the last player that triggered the automacro.
- $.lastPlayerJob - job of the last player that triggered the automacro.
New feature for automacro 'player':Implemented set variables
Moderator: Moderators
-
- Halfway to Eternity
- Posts: 398
- Joined: 08 Jun 2012, 15:42
- Noob?: No
- Location: Brazil
New feature for automacro 'player':Implemented set variables
Implemented in revision 8484
-
- Plain Yogurt
- Posts: 58
- Joined: 18 Sep 2009, 01:28
- Noob?: Yes
Re: New feature for automacro 'player':Implemented set variables
Can you give an example how to use $.lastPlayerName?
-
- Been there done that!
- Posts: 133
- Joined: 09 Oct 2009, 01:43
- Noob?: No
Re: New feature for automacro 'player':Implemented set variables
Code: Select all
automacro namename {
player /(.*)/
timeout 3
call {
log I saw $.lastPlayerName at $.lastPlayerPos
}
}
macro log I saw PlayerName at 100 100 mapname
Strange though, I never had any value when using $.lastPlayerName
-
- Plain Yogurt
- Posts: 58
- Joined: 18 Sep 2009, 01:28
- Noob?: Yes
Re: New feature for automacro 'player':Implemented set variables
Any value, as in no name comes out in the log? If so, me too, actually it doesn't seem to work at all.