Trying to add a rightclick buff to Natural Beastlord Hunter
Posted: Sat Jan 29, 2005 4:12 pm
I'm trying to add this right click NBH so I can use my clicky chest haste.
This works by itself:
But then I add it to the end of NBH (I renamed Sub Main to Sub Haste), and I use this to call it in Sub Downtimework:
It seems to either skip over this call, or when it does go to haste, does not do anything.
Any ideas? (I know this could be cleaned up A LOT since I'm just using this to right click a specific item). I've also tried to change swap.mac to swap.inc and call it that way, but no luck.
Matt
This works by itself:
Code: Select all
Sub Main
/declare t string local
/varset t ${Me.Buff["Celerity"]}
/if ( ${t.Equal[NULL]} ) {
/if ( !${Target.ID}!=${Me.ID} ) {
/target ${Me.Name}
}
/call rightclick "tunic of the khati sha"
}
/return
Sub RightClick(ItemName)
/if (!${Defined[ItemName]}) /call DisplayError "RightClickItem;No Parameter"
/declare ItemLoc int local ${FindItem[=${ItemName}].InvSlot.ID}
/if (!${ItemLoc}) /call DisplayError "RightClickItem;Error, ${ItemName} not found in inventory."
/if (${InvSlot[${ItemLoc}].Pack.ID}) /return
|If the item is inside a pack just exit. Nothing happens if you click them.
/itemnotify ${ItemLoc} rightmouseup
/delay 2
:WaitForCast
/if (${Me.Casting.ID}) /goto :WaitForCast
/return
Code: Select all
/call Haste
/if ( ${Macro.Return}==0 ) /return 0
Any ideas? (I know this could be cleaned up A LOT since I'm just using this to right click a specific item). I've also tried to change swap.mac to swap.inc and call it that way, but no luck.
Matt