Skip to content

Instantly share code, notes, and snippets.

View loud21's full-sized avatar
🎯
Focusing

Luka loud21

🎯
Focusing
View GitHub Profile
@loud21
loud21 / ScalingSystem.patch
Created January 8, 2023 17:07
Barebones scaling system that allows players to select a "Challenge Mode" through a creature gossip. More details in the header file.
From ede98fc0c4f9ceaceb2ba375e4d6829a3fe3be03 Mon Sep 17 00:00:00 2001
From: loud21 <loud.trinity@gmail.com>
Date: Sun, 8 Jan 2023 18:00:26 +0100
Subject: [PATCH] [Core/Scripts/Custom] Scaling system barebones
---
.../game/Entities/Creature/Creature.cpp | 5 +
src/server/game/Entities/Player/Player.cpp | 6 +
.../game/ScalingSystem/ScalingSystem.cpp | 54 ++++++++
.../game/ScalingSystem/ScalingSystem.hpp | 124 ++++++++++++++++++
@loud21
loud21 / BetterItemReloading
Last active December 31, 2022 11:11
An item_template reload system which updates the players cache and stats. Also contains full creature_template and item_template reload commands Trinitycore 335.64
#include "Chat.h"
#include "Player.h"
#include "ObjectMgr.h"
#include "DisableMgr.h"
#include "DatabaseWorker.h"
#include "DatabaseEnv.h"
#include "Log.h"
#include "ItemTemplate.h"
#include "World.h"
#include "Totem.h"