Category: Plug-Ins & Patches
Addon Information
Works with 3.2
Download Latest Version.
To add favorites please register for a free account. If you already have one you need to login. How do I install this? (FAQ)
Draake's Portal Bug Reports Feature Requests

This file is a Addon for ItemRack by Gello. You must have that installed before this Addon will work.

Author:
Version:
r23
Date:
10-22-2009 07:27 AM
Size:
22.39 Kb
Downloads:
1,200
Favorites:
25
MD5:
ItemRackStun
ItemRackStun is a LoD plugin for Gello's ItemRack addon that adds stun/disarm (or anything that causes you lose control of your character or weapon) detection, allowing weapon/gear changes to be postponed until those effects fade (instead of ItemRack trying a few times and then giving up; waiting until combat fades; etc...).

Example:

1) You use a macro which tells ItemRack to equip a sword/shield.
2) Another player disarms you either before or during your weapon swap.
3a) Without ItemRackStun: Normally, ItemRack would just keep trying to equip the weapon even though you can't swap weapons while disarmed. Eventually ItemRack would give up, sometimes disabling your ability to swap weapons until combat fades.
3b) With ItemRackStun: ItemRack detects that you've been disarmed and queues the weapon swap to be completed after disarm fades.


History: Blizzard's default API does not give any information whether a player is disarmed or completely unable to act (the closest is HasFullControl() which only returns false for Fear effects). So, I've created a library that watches for effects (gathered from WoW's DBC files) that cause the player to be stunned/feared/charmed/confused/disarmed and offers new functions and events regarding the players control state.

I'll be adding features as I (or anyone with any suggestions) comes up with them.

There are no options (and I can't really think of any to add), but if you have any you'd like to see please feel free to comment on them.
  Change Log - ItemRackStun
r23-Release
- Cleaned up LPC-1.0's code.

r21-Release
- Created LibPlayerControl-1.0 library for API and events related to players losing control of their character.
- Removed chatframe warnings/messages.
- Added experimental Itemrack functions.

r18-Release
- I finally took the time/effort to parse the spell DBC files within the WoW client and compiled a complete list of all stun/disarm effects.
- The chat warning will only be printed out once per effect (to make it less spammy).
  Archived Versions - ItemRackStun
File Name
Version
Size
Author
Date
r21
15kB
Draake
10-12-2009 05:48 AM
1.7.18
7kB
Draake
10-06-2009 08:39 AM
  Comments - ItemRackStun
Post A Reply Comment Options
Old Today, 02:05 PM  
Inny
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Can the PlayerHasControl() function be used from within a macro/script as an alternative to HasFullControl()? (which doesn't work as advertised, basically.)

Trying to use it with this macro to prevent spam when I'm bashing my CC button while unable to cast due to being CC'ed.

#showtooltip
/run s,t,c="Cyclone","target","RAID" if HasFullControl()==1 and GetUnitSpeed("player")==0 and GetSpellCooldown(s)==0 then SendChatMessage(s.." » "..UnitName(t).." ("..UnitClass(t)..")",c)end
/cast Cyclone

Last edited by Inny : 11-07-2009 at 02:06 PM.
Inny is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 05-05-2009, 11:09 PM  
Draake
A Kobold Labourer
 
Draake's Avatar
Interface Author - Click to view interfaces

Forum posts: 0
File comments: 4
Uploads: 1
There's nothing to setup

Quote:
Originally posted by Hidesato
Yes, I use the itemrack too
but I really don't know how the addon works, I must do a event in itemrack?
see image, so?: http://img11.imageshack.us/img11/258...0509153820.jpg

Thanks
You just use itemrack as normal. If you try to switch weapons (or anything) while stunned or disarmed, this addon causes ItemRack to wait for the debuff to fade before doing anything.

For example:

On my Warrior I use a macro that uses itemrack to equip my sword+shield.

Sometimes I would press the macro while a rogue simultaneously dismantles me. ItemRack doesn't check for debuffs normally so it would just keep trying to equip the weapon before giving up after a few tries. And for me, the addon would sometimes lock up and only respond once I left combat (or died in this case).

This addon makes ItemRack check for stun/disarm/etc debuffs and makes it wait for those effects to fade before attempting to swap weapons.
__________________
When does the fun part start?

Last edited by Draake : 05-05-2009 at 11:49 PM.
Draake is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 05-05-2009, 06:19 PM  
Hidesato
A Kobold Labourer

Forum posts: 0
File comments: 3
Uploads: 0
Re: Plugin; not Stand-Alone Addon

Quote:
Originally posted by Draake
This is not a stand alone addon, but a plugin for the ItemRack addon.

Currently, ItemRack (or anything, really; including blizzards own macros) doesn't deal very well when you get stunned/disarmed halfway through a swap, or when you try to start a swap while stunned/disarmed. This plugin hooks into ItemRack and post pones the swap until the debuffs fade.
Yes, I use the itemrack too
but I really don't know how the addon works, I must do a event in itemrack?
see image, so?: http://img11.imageshack.us/img11/258...0509153820.jpg

Thanks
Hidesato is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 05-05-2009, 06:02 AM  
Draake
A Kobold Labourer
 
Draake's Avatar
Interface Author - Click to view interfaces

Forum posts: 0
File comments: 4
Uploads: 1
Plugin; not Stand-Alone Addon

Quote:
Originally posted by Hidesato
Hi there.

Sorry if this is a bit stupid but I really don't know how the addon works. How do I get it to change weapons? And how do I choose which weapon it changes to? Also, does it change back to the weapon I had equipped before when the disarm effect is over?

Thanks.
This is not a stand alone addon, but a plugin for the ItemRack addon.

Currently, ItemRack (or anything, really; including blizzards own macros) doesn't deal very well when you get stunned/disarmed halfway through a swap, or when you try to start a swap while stunned/disarmed. This plugin hooks into ItemRack and post pones the swap until the debuffs fade.
__________________
When does the fun part start?

Last edited by Draake : 05-05-2009 at 06:05 AM.
Draake is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 05-04-2009, 07:21 PM  
Hidesato
A Kobold Labourer

Forum posts: 0
File comments: 3
Uploads: 0
Hi there.

Sorry if this is a bit stupid but I really don't know how the addon works. How do I get it to change weapons? And how do I choose which weapon it changes to? Also, does it change back to the weapon I had equipped before when the disarm effect is over?

Thanks.
Hidesato is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 04-24-2009, 05:17 AM  
Draake
A Kobold Labourer
 
Draake's Avatar
Interface Author - Click to view interfaces

Forum posts: 0
File comments: 4
Uploads: 1
Re: Love it

Quote:
Originally posted by loladrunk
Just wanted to give my thanks,an awesome addition to ItemRack!
Glad you like it.
__________________
When does the fun part start?
Draake is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 04-22-2009, 01:35 PM  
loladrunk
A Murloc Raider

Forum posts: 4
File comments: 8
Uploads: 0
Love it

Just wanted to give my thanks,an awesome addition to ItemRack!
loladrunk is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Post A Reply



Category Jump:




The Network:
EQInterface | EQ2Interface | LoTROInterface | MMOInterface | War.MMOUI | WoWInterface | VGInterface | Allakhazam | Thottbot | Wowhead | Zam


©2009 MMOUI / ZAM Network
vBulletin - Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.