Showing results 1 to 25 of 30
Search took 0.00 seconds.
Search: Posts Made By: Basil2
Forum: General Authoring Discussion 11-22-22, 02:27 PM
Replies: 3
Views: 1,726
Posted By Basil2
However, the list is very inaccurate.

However, the list is very inaccurate.
Forum: General Authoring Discussion 11-22-22, 01:08 AM
Replies: 3
Views: 1,726
Posted By Basil2
I finally made this list, using LibPlayerSpells...

I finally made this list, using LibPlayerSpells addon. My code was the following:

local LibPlayerSpells = LibStub('LibPlayerSpells-1.0')

local ControlSpells = {}
for spellId in...
Forum: General Authoring Discussion 11-11-22, 02:44 PM
Replies: 3
Views: 1,726
Posted By Basil2
The list of crowd control spell IDs?

I need to detect that the debuff is crowd control debuff (and needs to be dispelled). How can I do this?

An obvious way is to have a full list of that spells in Lua format. May somebody already...
Forum: Lua/XML Help 10-23-22, 02:13 PM
Replies: 10
Views: 3,888
Posted By Basil2
Oo, it looks like I have found the problem. The...

Oo, it looks like I have found the problem. The nameplate were just off for allies :) I turned them on and get a nameplate!

So, current problem is:

How to get nameplate coords?

I tried to call...
Forum: Lua/XML Help 10-23-22, 10:49 AM
Replies: 10
Views: 3,888
Posted By Basil2
I am sorry, I didn't formulate my thought well. I...

I am sorry, I didn't formulate my thought well. I meant:


How to attach my frame to nameplate?


I see only GetUnitNamePlate function, not SetUnitNamePlate or AttachFrameToNamePlate. That's the...
Forum: Lua/XML Help 10-22-22, 07:44 AM
Replies: 10
Views: 3,888
Posted By Basil2
Thank you. I watched the function and examined...

Thank you. I watched the function and examined the source code of Tidy Plates. Most things became clear, except the main one:

How to add my nameplate to a character?

C_NamePlate.GetNamePlates()...
Forum: Lua/XML Help 10-22-22, 02:51 AM
Replies: 10
Views: 3,888
Posted By Basil2
Thank you, I'll try nameplates. Do you know a...

Thank you, I'll try nameplates.

Do you know a good guide about nameplates? I tried to google but not found, and API itself is not clear enough for me ((
Forum: Lua/XML Help 10-21-22, 04:36 PM
Replies: 10
Views: 3,888
Posted By Basil2
How to put an icon to the bottom of the character? (inverse nameplate)

I see that addons can put additional icons (like debuffs) above characters head. I need the same but below character foots.

Is it possible:

1. Put an icon below char?
or
2. Get screen coords of...
Forum: Lua/XML Help 10-05-22, 01:43 PM
Replies: 6
Views: 1,790
Posted By Basil2
I have tried. It looks like that...

I have tried. It looks like that SecureCmdOptionParse() makes parsing only. It doesn't check spell conditions - just extracts spell name and spell destination.
Forum: Lua/XML Help 10-05-22, 01:41 PM
Replies: 6
Views: 1,790
Posted By Basil2
Actually, IsUsableSpell() does check for buffs....

Actually, IsUsableSpell() does check for buffs. But do it for target only.
Forum: Lua/XML Help 10-04-22, 11:00 AM
Replies: 6
Views: 1,790
Posted By Basil2
Thank you for help, I'll try SecureCmdOptionParse.

Thank you for help, I'll try SecureCmdOptionParse.
Forum: Lua/XML Help 10-02-22, 01:27 PM
Replies: 6
Views: 1,790
Posted By Basil2
Question IsSpellUsable() and Swiftmend spell

IsSpellUsable() for Swiftmend always return false unless you have a unit with hots in your target.

However, WoW UI is more adequate. If you have a macro "/cast [@player] Swiftmend", the macro's...
Forum: Lua/XML Help 07-30-22, 01:30 PM
Replies: 2
Views: 1,766
Posted By Basil2
Question How to detect magic school lock?

When the character get kicked/etc, how to understand:

1. Is school locked?
2. Which school?
3. How long?
Forum: General Authoring Discussion 09-05-19, 10:41 AM
Replies: 2
Views: 3,067
Posted By Basil2
Actually the unit is the player, so I expected...

Actually the unit is the player, so I expected that player's health updates are extremely frequent.

I tried UNIT_HEALTH_FREQUENT but it doesn't help :( I just receive it with delay over 200ms, even...
Forum: General Authoring Discussion 09-04-19, 04:59 PM
Replies: 2
Views: 3,067
Posted By Basil2
Classic: UnitHealth() has large delay - how to avoid?

It looks like that player's HP returned by UnitHealth() are updated with delay about 500 ms.

So when I handle UNIT_SPELLCAST_STOP event after succefull heal, UnitHealth() still returns old hp value...
Forum: General Authoring Discussion 09-02-19, 05:22 AM
Replies: 4
Views: 5,931
Posted By Basil2
It works, thank you much!

It works, thank you much!
Forum: General Authoring Discussion 09-01-19, 06:30 AM
Replies: 4
Views: 5,931
Posted By Basil2
Classic: how to replace UnitCastingInfo?

This function does not exist on Classic :((

What is the simplest way to detect that player's character is casting a spell?

Detect of mobs or other players casting is also welcome :)
Forum: General Authoring Discussion 08-28-18, 06:01 AM
Replies: 5
Views: 3,475
Posted By Basil2
Tnank you for answers, the problems were...

Tnank you for answers, the problems were solved:

1: By using GetPhysicalScreenSize()

2: By using the following code:

local function SetColor256(obj, r, g, b)
local function to01(value0255)
...
Forum: General Authoring Discussion 08-28-18, 05:58 AM
Replies: 1
Views: 2,442
Posted By Basil2
How to detect that chat input is active?

If player has pressed enter key and start typing into chat - how can I detect this moment from addon?
Forum: General Authoring Discussion 08-10-18, 08:50 AM
Replies: 6
Views: 9,020
Posted By Basil2
Thank you for the answer!

Thank you for the answer!
Forum: General Authoring Discussion 08-10-18, 06:20 AM
Replies: 6
Views: 9,020
Posted By Basil2
How to publish addon?

It looks like that most people download addons from Twitch. But I didn't find there any "upload" button. :confused:

1. How to make addon available on Twich?

2. Should it also be placed on some...
Forum: General Authoring Discussion 07-11-18, 05:58 AM
Replies: 5
Views: 3,475
Posted By Basil2
How to make pixel-accurate interface?

I am trying to output some pixels and have two problems.


1. Frame:SetSize(x, y) in real pixels is not exactly x and y.

I can compensate it by using Frame:SetScale(768/real_resolution). But how can...
Forum: Lua/XML Help 04-03-15, 03:19 AM
Replies: 8
Views: 3,775
Posted By Basil2
It works after this, thank you much for help! I...

It works after this, thank you much for help!

I also discovered why my checkboxes don't appear - I forgot to add 4-th function parameter: template.
Forum: Lua/XML Help 04-02-15, 02:11 AM
Replies: 8
Views: 3,775
Posted By Basil2
Thank you for guidance, I changed code to...

Thank you for guidance, I changed code to following:

f = RecommendOptionsFrame:CreateFontString("abc", "OVERLAY", "GameFontNormal")
f:Show()
f:SetText("12345555664dfgfdg")

However, text doesn't...
Forum: Lua/XML Help 04-02-15, 01:37 AM
Replies: 8
Views: 3,775
Posted By Basil2
PowerAuras does this by using XML, which I am...

PowerAuras does this by using XML, which I am trying to avoid :) I watched several addons with dialog window but all of them used XML.
Showing results 1 to 25 of 30