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 |
|
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.
|
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:
|
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. |
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... |
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.
|
All times are GMT -5. The time now is 05:13 PM. |
vBulletin® - Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
© MMOUI