*oh yea make sure to have spellcast.inc from the snippets forum
Code: Select all
|PetToys.mac
|/mac PetToys [fire|cold|magic] [pet|<target>]
#include spellcast.inc
sub main
/declare WepType string outer
|-----------------------------------
|determine fire cold or magic
/if (!${Param0.Equal[fire]}&&!${Param0.Equal[cold]}&&!${Param0.Equal[magic]}) {
/echo Did not select weapon type...defaulting to cold.
/varset WepType "Blade of The Kedge"
}
/if (${Param0.Equal[fire]}) {
/varset WepType "Fist of Ixiblat"
}
/if (${Param0.Equal[cold]}) {
/varset WepType "Blade of The Kedge"
}
/if (${Param0.Equal[magic]}) {
/varset WepType "Blade of Walnan"
}
|-----------------------------------
|give to pet or current target?
/if (${Param1.Equal[pet]}) {
/target ${Me.Pet}
/goto :target
}
/if (${Param1.Equal[target]}) /goto :target
/if (${Defined[Param1]}) {
/target ${Param1}
/if (!${Defined[Param1]}&&!{Target.ID}) {
/echo Error getting target ending macro.
/endmacro
}
:target
/call MakeToys
/call GiveToPet
/echo have a nice day!
/return
|-----------------------------
|Have to memspells before beginning to cast
|because you canot mem spells with items in your hand
|-----------------------------
sub MakeToys
/echo memming spells
/memspell 6 "Muzzle of Mardu"
/delay 3s
/memspell 7 "Girdle of Magi'Kot"
/delay 3s
/memspell 8 ${WepType}
/delay 3s
/echo casting pet toys
/call cast "Muzzle of Mardu"
/call cast "Girdle of Magi'Kot"
/call cast ${WepType}
/call cast ${WepType}
/return
|-----------------------------
sub GiveToPet
/echo Giving ${Target} their pet toys!
/click left target
/delay 1s
/click left target
/delay 1s
/click left target
/delay 1s
/click left target
/if (${Target.Type.Equal[NPC]}) {
/notify GiveWnd GVW_Give_Button leftmouseup
} else {
/notify TradeWnd TRDW_Trade_Button leftmouseup
/return

