Thread Tools Display Modes
01-11-06, 10:18 AM   #1
ronphillpe
A Kobold Labourer
Join Date: Jan 2006
Posts: 1
DAB OnEvent Script

I just switched to DAB from Flexbar, to try something new for my rogue. So far, I have gotten everything to work that I had with Flexbar, except a couple of scripts.

I had a script that would run a macro to equip my dagger when I gain stealth and another to run the same macro on lose stealth.

Scripts:
runmacro On='GainAura' Target='stealth' macro='Dagger Macro'
runmacro On='LoseAura' Target='stealth' macro=Dagger Macro'

Macro:
/script PickupInventoryItem(16);if(CursorHasItem()) then
PickupContainerItem(2,1);end

I'm just having trouble converting this over to work with DAB. After searching the forums most threads recommend downloading a WeaponSwap mod but I'd like to try to figure this out. I must be overlooking something. Any suggestions would be appreciated.

Thanks
  Reply With Quote
01-11-06, 01:30 PM   #2
Mabewi
A Murloc Raider
Join Date: Jan 2006
Posts: 4
I also used Flexbar before I switched to discord and I am also have not figured out how to do this scripting stuff yet.
Yes, I read the readme but it didnīt help me in this regard. But thatīs maybe due to the fact, that I am a scripting noob. Any tips would be greatly appreciated.

mfg
Mabewi
  Reply With Quote
01-11-06, 10:04 PM   #3
Lozareth
An Onyxian Warder
 
Lozareth's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2005
Posts: 366
OnLoad:
this:RegisterEvent("UPDATE_BONUS_ACTIONBAR");
this.lastform = DL_GetShapeshiftForm();

OnEvent:
if DL_GetShapeshiftForm() ~= this.lastform then
PickupInventoryItem(16);
if (CursorHasItem()) then
PickupContainerItem(2,1);
end
this.lastform = DL_GetShapeshiftForm();
__________________
High Pope of the Divine Chihuahua
http://www.discordmods.com
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » Released AddOns » DAB OnEvent Script


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off