This is the only way I could do it but I particularly dont like the line w/ the windows but can't think of a better way to do it ... is there by chance one statement which would summarize all that ?
Code: Select all
Sub MySneakHide
/if (@sneakhide==1 && !${Me.Casting.ID}) {
/if (${Window[BankWnd].Open}==0 && ${Window[BazaarWnd].Open}==0 && ${Window[BigBankWnd].Open}==0 && ${Window[GiveWnd].Open}==0 && ${Window[LootWnd].Open}==0 && ${Window[MerchantWnd].Open}==0 && ${Window[TradeskillWnd].Open}==0 && ${Window[TradeWnd].Open}==0) {
/if (${Me.AbilityReady[Sneak]} && !${Me.Sneaking}) /doability "Sneak"
/if (${Me.AbilityReady[Hide]}) /doability "Hide"
}
}
/return

