lotrointerface.com
Search Downloads


Go Back   LoTROInterface > LotRO > Developer Discussions > Lua Programming Help (L)

Reply
Thread Tools Display Modes
  #1  
Unread 04-24-2012, 11:15 AM
Lumbra Lumbra is offline
The Undefeated
Interface Author - Click to view interfaces
 
Join Date: Nov 2010
Posts: 6
Event for successful use of a skill.

Hello everyone,

does anybody know if there's an event in lua, that fires on the successful use of any skill?

Best regards,
Michael
Reply With Quote
  #2  
Unread 04-24-2012, 03:17 PM
Sethladan Sethladan is offline
The Undefeated
 
Join Date: Feb 2012
Location: New York City
Posts: 8
As far as I know, and according to DigitalUtopia (here), there's no such event. However, see the last few posts of the same thread for ideas to monitor the chat/combat log to detect successful skill uses.
Reply With Quote
  #3  
Unread 04-24-2012, 04:53 PM
moebius92 moebius92 is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Sep 2010
Posts: 51
There's SkillInfo - you might use it as a starting point. It's really keyboard based (there's hooks for user created quickslots - so technically you could completely replace the built-in quickslots, but I've never done that), so it may not be suitable for whatever you're planning. It uses a keypress/mouse click -> power drop -> combat log message model in order to detect skill uses. You can skip either the power drop or combat log message, but since all skill uses are user initiated, it does require detecting an appropriate keypress/mouse click.
Reply With Quote
  #4  
Unread 04-26-2012, 09:06 AM
Lumbra Lumbra is offline
The Undefeated
Interface Author - Click to view interfaces
 
Join Date: Nov 2010
Posts: 6
I will have a look at this plugin. But I don't think that I will be able to use it with KragenBars2.

My problem there is, that the tooltips of 4 rune-keeper-skills are changing denpending on the skill category (frost, strom, fire) is casted. I've started to read the combat log now, to figure out, when a damage skill is fired. Then I deactivate and activate the skill again. But on the strom skills it doesn't work properly, and only if the second strom skill in a row was used the tooltip changes.

So it would be great, if there's an event that fires by changing the damage type; but it's not, so I have to find another way - timer based refreshing wouldn't be a good idea I think...

Quote:
Originally Posted by moebius92
There's SkillInfo - you might use it as a starting point. It's really keyboard based (there's hooks for user created quickslots - so technically you could completely replace the built-in quickslots, but I've never done that), so it may not be suitable for whatever you're planning. It uses a keypress/mouse click -> power drop -> combat log message model in order to detect skill uses. You can skip either the power drop or combat log message, but since all skill uses are user initiated, it does require detecting an appropriate keypress/mouse click.
Reply With Quote
  #5  
Unread 04-26-2012, 06:55 PM
moebius92 moebius92 is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Sep 2010
Posts: 51
Oh, if that's what you're trying to do, I'd cheat. Look for an integer power drop - probably indicates a skill use. Every time that happens, refresh the tool tip.

Edit: Just occurred to me - I'm not positive *when* the affinity changes with regards to the power drop and the combat message. You may need to play around with delaying the refresh.

Last edited by moebius92 : 04-26-2012 at 07:13 PM.
Reply With Quote
  #6  
Unread 04-28-2012, 04:54 PM
Lumbra Lumbra is offline
The Undefeated
Interface Author - Click to view interfaces
 
Join Date: Nov 2010
Posts: 6
Hmm, I tried to delay the refresh - but it doesn't work - my client hangs...

The other way does not work too - delaying with the Update-method of Turbine.UI.Control...

How can I solve this? I'm new to lua...
Reply With Quote
  #7  
Unread 04-28-2012, 05:52 PM
moebius92 moebius92 is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Sep 2010
Posts: 51
You need to use the Update method on a control. Make sure you SetWantsUpdates(true) on that control, and that nothing is setting it to false.
Reply With Quote
Reply


Thread Tools
Display Modes

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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Wider Quest Tracker and new Event Quickslots artificeren General Authoring Discussion (L) 4 12-16-2011 01:34 PM
MouseWheel Event Fortunis Lua Programming Help (L) 14 07-10-2011 09:13 AM
Control.MouseWheel() event not working for you? Digital_Utopia Lua Programming Help (L) 7 06-20-2011 12:42 PM
Skill Cooldowns Alanion Interface Requests (L) 2 09-17-2010 09:21 AM
Skill/Spell Icons pdjkeelan General Authoring Discussion (L) 1 05-23-2007 11:35 PM


All times are GMT -5. The time now is 06:21 AM.


Our Network
EQInterface | EQ2Interface | Minion | WoWInterface | ESOUI | LoTROInterface | MMOUI | Swtorui