this changes to avatar only after you lose avatar so until you put on avatar weapon for the first time, it doesnt do anything, since the event needs to trigger. theres some buff redundancy checking, to avoid the macro switching unnecessarily from bad triggers (player text 'the avatar departs?!
please note this method avoids bag lag by assuming and replacing your weapons in a base inventory slot
Code: Select all
|kavatar.mac -- koad
|avatar switching/events
|edit defines for your weapons
#define AVATARWEAPON "Ancient Prismatic Warsword"
#define NORMALWEAPON "Blade of Strategy"
| primary or secondary
#define WEAPONSLOT secondary
#event avatarfade "The Avatar departs."
#event avatarproc "Your body screams with the power of an Avatar."
sub Event_avatarfade
/if n $char(buff,"Avatar")==0 /call equipavatar
/return
sub Event_avatarproc
/if n $char(buff,"Avatar")>0 /call equipnormal
/return
sub equipavatar
/press i
/finditem "AVATARWEAPON"
/delay 2
/click left WEAPONSLOT
/autoinv
/press i
/return
sub equipnormal
/press i
/finditem "NORMALWEAPON"
/delay 2
/click left WEAPONSLOT
/autoinv
/press i
/returnor if you want, you can add this code and this macro will stand alone and switch weapons for you. this is setup to put on primal if you dont have avatar to start
Code: Select all
sub main
/if n $char(buff,"Avatar")==0 /call equipavatar
:main
/doevents
/delay 1
/goto :main
/return


