Forum: Lua/XML Help
04-16-21, 07:57 AM
|
Replies: 8
Views: 170
|
Forum: General Authoring Discussion
04-15-21, 05:20 AM
|
Replies: 6
Views: 246
|
Forum: PTR General Discussion
04-13-21, 06:17 PM
|
Replies: 2
Views: 210
|
Forum: Lua/XML Help
04-13-21, 12:49 PM
|
Replies: 1
Views: 172
I posted on your MMOC thread, but I'll answer...
I posted on your MMOC thread, but I'll answer here as well. UnitCanAttack will filter for hostile or neutral units, and I'm pretty sure you can't attack yourself so your nameplate will be left alone....
|
Forum: AddOn Search/Requests
04-06-21, 10:42 PM
|
Replies: 4
Views: 298
|
Forum: AddOn Search/Requests
04-05-21, 03:46 PM
|
Replies: 2
Views: 202
I use CopyPasta...
I use CopyPasta (https://www.curseforge.com/wow/addons/copypasta). It was last updated in 8.1.0 but it still works for me, just enable out-of-date addons or edit the toc file to version 90005 instead...
|
Forum: Lua/XML Help
04-04-21, 08:54 AM
|
Replies: 19
Views: 903
C_PetJournal.SummonPetByGUID...
C_PetJournal.SummonPetByGUID (https://wowpedia.fandom.com/wiki/API_C_PetJournal.SummonPetByGUID)
C_PetJournal table (https://wowpedia.fandom.com/wiki/Category:API_namespaces/C_PetJournal)
|
Forum: Lua/XML Help
03-18-21, 05:59 PM
|
Replies: 3
Views: 246
|
Forum: Lua/XML Help
03-13-21, 08:58 PM
|
Replies: 5
Views: 418
|
Forum: Lua/XML Help
03-12-21, 09:33 PM
|
Replies: 5
Views: 418
Here you go. I also future-proofed it by...
Here you go. I also future-proofed it by formatting higher numbers, if you ever run into that.
local function FormatValue(val)
if val<1000 then return ("%.0f"):format(val)
elseif val<1000000...
|
Forum: Lua/XML Help
03-10-21, 10:14 PM
|
Replies: 6
Views: 724
Creating objects makes them global by default....
Creating objects makes them global by default. The only exceptions are objects passed into a function and loop objects.
For example, say you have function(self,event), the objects "self" and "event"...
|
Forum: Lua/XML Help
03-10-21, 05:35 PM
|
Replies: 6
Views: 724
A few issues:
1. The second argument of...
A few issues:
1. The second argument of CreateFrame is the global name of the frame. You do not want to create global objects named "btn1" etc. Choose a unique name.
2. Line 5, you're missing...
|
Forum: AddOn Search/Requests
03-08-21, 06:16 PM
|
Replies: 2
Views: 607
Replace everything you have here with the...
Replace everything you have here with the following:
local f=CreateFrame("frame")
f:RegisterEvent("PLAYER_LOGIN")
f.update=function(frame)
if frame and frame.unit=="player" and frame.portrait...
|
Forum: Lua/XML Help
03-01-21, 07:31 PM
|
Replies: 10
Views: 940
|
Forum: AddOn Search/Requests
02-04-21, 11:11 AM
|
Replies: 2
Views: 453
|
Forum: AddOn Help/Support
01-24-21, 05:18 PM
|
Replies: 7
Views: 961
Lua does not use regex. It has a similar but...
Lua does not use regex. It has a similar but limited engine:
https://wow.gamepedia.com/Pattern_matching
In this case, since I assume you want to keep the comma in the center, you need %d with...
|
Forum: Lua/XML Help
01-17-21, 03:33 PM
|
Replies: 3
Views: 1,122
|
Forum: Lua/XML Help
01-17-21, 10:36 AM
|
Replies: 3
Views: 1,122
|
Forum: Macro Help
01-13-21, 07:37 PM
|
Replies: 4
Views: 3,084
|
Forum: Macro Help
01-13-21, 05:26 PM
|
Replies: 2
Views: 1,323
The "a" table with the numbers contains the...
The "a" table with the numbers contains the marker ids. It only has 6, in order: skull, moon, square, triangle, diamond, and cross. You just need to add the other two, which is 5 for star and 6 for...
|
Forum: Lua/XML Help
01-10-21, 11:04 PM
|
Replies: 7
Views: 1,549
I was curious what addon had those ebars,...
I was curious what addon had those ebars, googling brought me to your unanswered reddit thread. Since you want to check if the group has 4 or more players, checking the number of members is...
|
Forum: Lua/XML Help
01-10-21, 09:09 PM
|
Replies: 7
Views: 1,549
local...
local f=CreateFrame("frame")
f:RegisterEvent("GROUP_ROSTER_UPDATE")
f:SetScript("OnEvent",function()
if UnitName("party3")...
|
Forum: Lua/XML Help
01-09-21, 11:39 PM
|
Replies: 2
Views: 1,159
|
Forum: Lua/XML Help
01-05-21, 08:28 AM
|
Replies: 2
Views: 2,055
|
Forum: Macro Help
01-04-21, 08:30 PM
|
Replies: 4
Views: 3,084
The WorldStateFrame was removed, so...
The WorldStateFrame was removed, so GetNumWorldStateUI no longer exists. All extra info frames, such as capture bars under the minimap, world pvp zones, battleground information, and so on was...
|