[v1.7.0+] Don't Use the Unusable

A place to post your add ons and ideas for them

Moderator: Moderator

Post Reply
Message
Author
Zizzo
Sher'Tul Godslayer
Posts: 2517
Joined: Thu Jan 23, 2003 8:13 pm
Location: A shallow water area south of Bree
Contact:

[v1.7.0+] Don't Use the Unusable

#1 Post by Zizzo »

"You must wear this object to use it!" *blink* …then why did you put a "Use" option in the use-item dialog for that object in the first place, if it was just going to fail immediately? :evil:

Sorry, just one of my minor pet peeves with the game's UI. Which, of course, means it has to go. :twisted: Thus a tiny new quickie addon, Don't Use the Unusable, which jumps in just after the use-item dialog finishes building its list of actions and removes the "Use" action if it's going to immediately fail the corresponding check in UseItemMenu:use().

[And I suppose this could go into ZOmnibus or ZOmnibus Lite, but for now I'm considering it a bugfix addon, which means I'm reluctant to do so.]

[Implementation notes:]

Code: Select all

Hooks:
  UseItemMenu:generate [to modify the use-item dialog]
"Blessed are the yeeks, for they shall inherit Arda..."

Post Reply