[DiscordArchive] > i would change local tooltipFrame = CreateFrame("Frame", nil, treeFrame) to local tooltipFrame = C
[DiscordArchive] > i would change local tooltipFrame = CreateFrame("Frame", nil, treeFrame) to local tooltipFrame = C
Archived author: tester • Posted: 2023-11-10T16:23:21.483000+00:00
Original source
damn typed before me
Archived author: tester • Posted: 2023-11-10T16:23:49.762000+00:00
Original source
because you can do like
```
local func = return function(x, y)
...
return n1, n2
end
```
and then call func(var1,var2)
Archived author: robinsch • Posted: 2023-11-10T16:23:53.040000+00:00
Original source
Yeah client uses it for so called simple scripts (e.g. for missile motions scripts)
Archived author: tester • Posted: 2023-11-10T16:27:13.351000+00:00
Original source
after using it once i questioned why do it when i can just make it a named func in other places and pass in any changes, so it felt sorta redundant but it is a choice
Archived author: robinsch • Posted: 2023-11-10T16:28:05.829000+00:00
Original source
I think they don't want to pollute the global state
Archived author: tester • Posted: 2023-11-10T16:33:49.975000+00:00
Original source
i found that said functions took longer to run than just having a single one made though. - granted it was a small margin and is mostly only a problem for very frequently called functions
Archived author: Fred • Posted: 2023-11-10T16:50:00.683000+00:00
Original source
Hey folks, I have a SpellScript and AuraScript pair and would like to run some logic on like "Update(uint32 deltaTime)" for this spell, what's the way to go about this? My end goal is to check some condition every 5 seconds and remove the spell/aura if it's not met.
Archived author: Fred • Posted: 2023-11-10T16:50:22.068000+00:00
Original source
This is not a periodic spell but one that simply stays on infinitely with let's say +100 health. For AzerothCore.
Archived author: Rymercyble • Posted: 2023-11-10T16:51:42.099000+00:00
Original source
if its for npc use scheduler if its for player im not so sure on update would work but more stuff u do on update the worse it gets
Archived author: tester • Posted: 2023-11-10T16:52:20.147000+00:00
Original source
you could cheat and use a player/client-side timer that sends am essage to the server every x seconds to telll it to check on that specific player.