Skip to content

Instantly share code, notes, and snippets.

@mindsear
mindsear / Npc_beastmaster.cpp
Created November 16, 2020 00:02
Updated Npc_beastmaster for the latest TC 3.3.5 (as of 15-Nov-2020)
#include "CreatureAI.h"
#include "TemporarySummon.h"
#include "Pet.h"
#include "ScriptedGossip.h"
#include "Player.h"
#include "ScriptMgr.h"
#include "ScriptedGossip.h"
#include "ScriptedCreature.h"
#include "Player.h"
#include "Unit.h"
@mindsear
mindsear / PayToChat_335.patch
Last active October 8, 2020 16:09
PayToChat is a core mod (for TrinityCore 3.3.5) that makes players pay in order to send a message.
diff --git a/src/server/game/Handlers/ChatHandler.cpp b/src/server/game/Handlers/ChatHandler.cpp
index c9e69ba6c0..84d25c2014 100644
--- a/src/server/game/Handlers/ChatHandler.cpp
+++ b/src/server/game/Handlers/ChatHandler.cpp
@@ -43,6 +43,7 @@
#include "World.h"
#include "WorldPacket.h"
#include <algorithm>
+#include <Configuration\Config.h>
diff --git a/src/server/game/Entities/Player/Player.cpp b/src/server/game/Entities/Player/Player.cpp
index a694b45..2e39c33 100644
--- a/src/server/game/Entities/Player/Player.cpp
+++ b/src/server/game/Entities/Player/Player.cpp
@@ -79,6 +79,7 @@
#include "WorldPacket.h"
#include "WorldSession.h"
#include "GameObjectAI.h"
+#include "Config.h"
@mindsear
mindsear / Premium_System.h
Last active March 28, 2019 22:27
Updated slp13at420's Premium System script for TrinityCore 3.3.5 (25-March-2019) (http://www.ac-web.org/forums/showthread.php?229696-CPP-EmuDevs-Premium-System)
#ifndef PREMIUM_SYSTEM_H
#define PREMIUM_SYSTEM_H
#include <unordered_map>
#include "Item.h"
struct PremiumElements
{
uint32 id;
bool dndappear;
@mindsear
mindsear / Premium_System.cpp
Last active March 28, 2019 22:28
Updated slp13at420's Premium System script for TrinityCore 3.3.5 (25-March-2019) (http://www.ac-web.org/forums/showthread.php?229696-CPP-EmuDevs-Premium-System)
/*
© EmuDev's Premium System ©
By Grumbo / slp13at420 `The Mad Scientist` of EmuDevs.com ©
with the community of EmuDevs.com,
for the community of EmuDevs.com.
project info:
Type : CPP
started : 04/20/2016
finished : unfinished Public Release
public released : 04/20/2016
/*
Add the following at the end of your worldserver.conf
GamblerNPC.Announce = 1
Gambler.Amount1 = 1
Gambler.Amount2 = 2
Gambler.Amount3 = 3
Gambler.Amount4 = 4
Gambler.Amount5 = 5
Gambler.Jackpot = 50
@mindsear
mindsear / TemplateNPC.cpp
Created March 14, 2019 01:10
Fixed AzerothCore 3.3.5 TemplateNPC.cpp for linux os
#include "TemplateNPC.h"
void sTemplateNPC::LearnPlateMailSpells(Player* player)
{
switch (player->getClass())
{
case CLASS_WARRIOR:
case CLASS_PALADIN:
case CLASS_DEATH_KNIGHT:
player->learnSpell(PLATE_MAIL);
@mindsear
mindsear / npc_script_example.cpp
Last active March 20, 2019 16:06
Skeleton-example NPC script for the latest TrinityCore 3.3.5 (11-March-2019)
#include "ScriptMgr.h"
#include "World.h"
#include "Player.h"
#include "Chat.h"
#include "WorldSession.h"
#include "ScriptedGossip.h"
#include "ScriptedCreature.h"
#include "CreatureAI.h"
class npc_script_example : public CreatureScript
@mindsear
mindsear / TemplateNPC.cpp
Created February 12, 2019 23:43
Modified TemplateNPC.cpp file to work without the .patch thingy || Also, added option to disable gear template as suggested by BarbzYHOOL (https://github.com/azerothcore/mod-npc-talent-template/issues/3)
#include "TemplateNPC.h"
#include "Item.h"
#include "DBCStores.h"
#include "Log.h"
#include "DatabaseEnv.h"
#include "Player.h"
#include "WorldSession.h"
#include "ScriptedGossip.h"
#include "ScriptMgr.h"
#include "ScriptedCreature.h"
-- ===================================================================================================================== --
--
-- [3.3.5] Transmog Mall, Created by philippovitch, Updated by mindsear (Jul-25-2018) for the latest TrinityCore TDB 335.64
--
-- ===================================================================================================================== --
Set @Subname_OS_WOTLK_1 := "Transmog Off-Set WOTLK 'Uncommon'";
Set @Subname_OS_WOTLK_2 := "Transmog Off-Set WOTLK 'Rare & Epics'";