This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local f = CreateFrame("Frame") | |
f:RegisterEvent("MY_CUSTOM_EVENT") | |
-- Set the OnEvent script handler | |
f:SetScript("OnEvent", function(self, event, ...) | |
if event == "MY_CUSTOM_EVENT" then | |
local arg1, arg2, arg3 = ... | |
print(event, arg1, type(arg1), arg2, type(arg2), arg3, type(arg3)) | |
end | |
end) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local dbc = CreateDBC("DBFilesClient\\ZoneStory.dbc") | |
dbc:SetUInt("DisplayAchievementID") | |
dbc:SetFloat("TextCoordsX1") | |
dbc:SetFloat("TextCoordsX2") | |
dbc:SetFloat("TextCoordsY1") | |
dbc:SetFloat("TextCoordsY2") | |
dbc:Load() | |
-- global | |
zoneStory = dbc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- AuraEffectEvents | |
-- 53817 - spell_sha_maelstrom_weapon | |
local SPELL_SHAMAN_T10_ENHANCEMENT_4P_BONUS = 70832 | |
local SPELL_SHAMAN_MAELSTROM_POWER = 70831 | |
local function OnEffectApply(event, aurEff, mode) | |
if (aurEff:GetBase():GetStackAmount() < aurEff:GetBase():GetSpellInfo():GetStackAmount()) then | |
return | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- AuraEvents | |
-- 64364 - spell_pal_aura_mastery_immune | |
local SPELL_PALADIN_CONCENTRACTION_AURA = 19746 | |
local function DoCheckAreaTarget(event, aura, target) | |
return target:HasAura(SPELL_PALADIN_CONCENTRACTION_AURA, target:GetGUID()) | |
end | |
-- no examples in TrinityCore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- SpellEvents | |
local function OnCast(event, spell, skipCheck) | |
SendWorldMessage("OnCast") | |
end | |
local function BeforeHit(event, spell) | |
SendWorldMessage("BeforeHit") | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
src/tools/map_extractor/System.cpp | 42 +++------------ | |
src/tools/vmap4_extractor/vmapexport.cpp | 68 +++--------------------- | |
2 files changed, 14 insertions(+), 96 deletions(-) | |
diff --git a/src/tools/map_extractor/System.cpp b/src/tools/map_extractor/System.cpp | |
index 6b83a7d046..038b669a2c 100644 | |
--- a/src/tools/map_extractor/System.cpp | |
+++ b/src/tools/map_extractor/System.cpp | |
@@ -26,6 +26,7 @@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From cab67c3e9e3f481ddaa118ee503d9c23b0d8e090 Mon Sep 17 00:00:00 2001 | |
From: robinsch <hello@robinsch.com> | |
Date: Tue, 7 Nov 2023 08:31:22 +0100 | |
Subject: [PATCH] Core/Mail: Fixed sending multiple mails before async handler | |
has finished executing current mail process | |
--- | |
src/server/game/Handlers/MailHandler.cpp | 10 +++++++++- | |
src/server/game/Server/WorldSession.cpp | 1 + | |
src/server/game/Server/WorldSession.h | 1 + |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
float __thiscall CGUnit_C::GetModelScale(CGUnit_C *this, CreatureDisplayInfoRec *displayInfo, CreatureModelDataRec *modelData) | |
{ | |
cache = this->m_cache; | |
if ( cache ) | |
familyID = cache->Family; | |
else | |
familyID = 0; | |
if ( familyID < g_CreatureFamilyDB.m_minID || familyID > g_CreatureFamilyDB.m_maxID ) | |
creatureFamilyRec = 0; | |
else |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Windows.h> | |
#include <string> | |
#include <unordered_set> | |
#include <fstream> | |
static std::unordered_set<std::string> s_files; | |
static size_t s_basePathLength = 0; | |
static std::ofstream s_listfile = std::ofstream("(listfile)", std::ofstream::out | std::ofstream::trunc); | |
static char* (__cdecl* sub_433590_orig)(int a1, int a2, char const* fn) = (decltype(sub_433590_orig))0x00433590; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SET WDBX="C:\WDBXEditor\WDBX Editor.exe" | |
FOR %%A IN (%*) DO %WDBX% -sqlload -f %%A -b 12340 -m 2 -c "Server=127.0.0.1;Database=database;Uid=trinity;Pwd=trinity;" |
NewerOlder