Skip to content

Instantly share code, notes, and snippets.

@callmephil
callmephil / gist:9448929
Last active August 29, 2015 13:57
TC : Remove Player Resurrect Timer and Spawning at GY
diff --git a/src/server/game/Entities/Player/Player.cpp b/src/server/game/Entities/Player/Player.cpp
index 0625a65..b1d14c8 100644
--- a/src/server/game/Entities/Player/Player.cpp
+++ b/src/server/game/Entities/Player/Player.cpp
@@ -134,7 +134,7 @@ enum CharacterCustomizeFlags
#define DEATH_EXPIRE_STEP (5*MINUTE)
#define MAX_DEATH_COUNT 3
-static uint32 copseReclaimDelay[MAX_DEATH_COUNT] = { 30, 60, 120 };
+// Change the 3 value as you whises. if you want only more values please change MAX_DEATH_COUNT.
@callmephil
callmephil / gist:9449913
Last active August 29, 2015 13:57
TC : Remove Player Resurrect Timer and Spawning at GY (Config System)
diff --git a/src/server/game/Entities/Player/Player.cpp b/src/server/game/Entities/Player/Player.cpp
index 0625a65..8c2b2d9 100644
--- a/src/server/game/Entities/Player/Player.cpp
+++ b/src/server/game/Entities/Player/Player.cpp
@@ -80,6 +80,7 @@
#include "WorldSession.h"
#include "MovementStructures.h"
#include "GameObjectAI.h"
+#include "Config.h"
@callmephil
callmephil / gist:9465493
Last active August 29, 2015 13:57
TC : Infinity Rogue Poison Cooldown.
# PLEASE APPLY THIS MANUALLY MY FOLDERS ARE CORRUPTED
# OPEN SpellEffects.cpp
# Search // rogue family enchantments exception by duration
# Follow The Colors. Red is for Suppressing - Green is for adding remove the - / + after change.
diff --git a/src/server/game/Spells/SpellEffects.cpp b/src/server/game/Spells/SpellEffects.cpp
index b825c34..261c64a 100644
--- a/src/server/game/Spells/SpellEffects.cpp
+++ b/src/server/game/Spells/SpellEffects.cpp
@@ -2870,13 +2870,10 @@ void Spell::EffectEnchantItemTmp(SpellEffIndex effIndex)
@callmephil
callmephil / gist:9475266
Last active August 29, 2015 13:57
[Cata - TC] : Custom Item Rate
# Player.cpp
# Please ADD this file manually my Sources are corrupted
# This is for CATA trinity User
# Don't forget to add worldconfig
diff --git a/src/server/game/Entities/Player/Player.cpp b/src/server/game/Entities/Player/Player.cpp
index 0625a65..5221cee 100644
--- a/src/server/game/Entities/Player/Player.cpp
+++ b/src/server/game/Entities/Player/Player.cpp
@callmephil
callmephil / gist:9503779
Created March 12, 2014 09:41
[Patch || C++] Remove Player Resurrect Timer and Spawning at GY (Rewrite). Old Rev.
diff --git a/src/server/game/Entities/Player/Player.cpp b/src/server/game/Entities/Player/Player.cpp
index 0625a65..8c2b2d9 100644
--- a/src/server/game/Entities/Player/Player.cpp
+++ b/src/server/game/Entities/Player/Player.cpp
@@ -80,6 +80,7 @@
#include "WorldSession.h"
#include "MovementStructures.h"
#include "GameObjectAI.h"
+#include "Config.h"
@@ -134,7 +135,7 @@ enum CharacterCustomizeFlags
@callmephil
callmephil / Ultimate_Duel_Script.cpp
Last active May 9, 2019 11:31
[V1.4] Ultimate Duel Script
/*
Ultimate Duel Script (Reward/Rating/Security/Zoned & Reset)
Author : Philippe
Version : V1.4 (Full Rewrite)
Release Date : 21/03/14
Script Complete : 80 %
Version : 3.3.5 & 4.3.4
TrinityCore based.
Tested and Works Well.
@callmephil
callmephil / gist:9972625
Created April 4, 2014 11:24
[V1.4] Ultimate Duel Script For noob
/*
Ultimate Duel Script (Reward/Rating/Security/Zoned & Reset)
Author : Philippe
Version : V1.4 (Full Rewrite)
Release Date : 21/03/14
Script Complete : 80 %
Version : 3.3.5 & 4.3.4
TrinityCore based.
Tested and Works Well.
@callmephil
callmephil / AuthSession.cpp.diff
Last active July 8, 2016 12:50
Auto Account Creation [Trinity 4.3.4] [justin7674 (Ac-Web)]
diff --git a/src/server/authserver/Server/AuthSession.cpp b/src/server/authserver/Server/AuthSession.cpp
index 91a2ff9..b3a1d34 100644
--- a/src/server/authserver/Server/AuthSession.cpp
+++ b/src/server/authserver/Server/AuthSession.cpp
@@ -22,11 +22,13 @@
#include "Database/DatabaseEnv.h"
#include "SHA1.h"
#include "TOTP.h"
+#include "Util.h"
#include "openssl/crypto.h"
@callmephil
callmephil / PlayerCooldownReset.cpp
Last active August 29, 2015 14:06
Player Reset cooldown on Dungeon/Raid boss kill.
/*
Script : Player Cooldown Reset On Boss & World Boss Kill
Author : Callmephil
Patch : 3.3.5 - 4.3.4
Version : 1.5
Special thx to Core Surgeon (Ac-Web) for group check.
*/
#include "Group.h"
enum SPELL_DEBUFF
From 5b66515188713231ecd95db306f9e0c2e7ada265 Mon Sep 17 00:00:00 2001
From: soulfrost <[email protected]>
Date: Wed, 20 Mar 2013 21:03:08 +0400
Subject: [PATCH 2/2] SpellEffectInfo::CalcRadius
Signed-off-by: soulfrost <[email protected]>
---
src/server/game/DataStores/DBCStructure.h | 6 +-
src/server/game/Spells/SpellInfo.cpp | 392 ++++++++++++++++++++++++++++--
src/server/game/Spells/SpellInfo.h | 2 +-