Skip to content

Instantly share code, notes, and snippets.

@callmephil
callmephil / custom_rate.cpp
Last active August 29, 2015 14:12
Individual {xp/loot} rate (4.3.4)
/*
SQL : CHARACTERS
DROP TABLE IF EXISTS `character_loot_rate`;
CREATE TABLE `character_loot_rate` (
`guid` int(10) unsigned NOT NULL,
`loot_rate` int(10) unsigned NOT NULL DEFAULT '1',
PRIMARY KEY (`guid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Player Loot Rate System';
@callmephil
callmephil / (1) Transmog Vanilla.sql
Last active July 25, 2023 12:08
{Ultimate} Transmogrifcation Mall Vendors 3.3.5
Set @Subname_OS_Vanilla_1 := "Transmog Off-Set Vanilla 'Uncommon'";
Set @Subname_OS_Vanilla_2 := "Transmog Off-Set Vanilla 'Rare & Epics'";
Set @Subname_Wep_Vanilla_1 := "Transmog Weapons Vanilla 'Uncommon'";
Set @Subname_Wep_Vanilla_2 := "Transmog Weapons Vanilla 'Rare'";
Set @Subname_Wep_Vanilla_3 := "Transmog Weapons Vanilla 'Epics'";
Set @M_Cloth := 7;
Set @M_Leather := 8;
Set @M_Mail := 5;
@callmephil
callmephil / ACE.diff
Created November 11, 2014 17:50
Allow Trade etc channel everywhere.
@@ -5525,7 +5534,7 @@ bool Player::CanJoinConstantChannelInZone(ChatChannelsEntry const* channel, Area
if (channel->flags & CHANNEL_DBC_FLAG_ZONE_DEP && zone->flags & AREA_FLAG_ARENA_INSTANCE)
return false;
- if ((channel->flags & CHANNEL_DBC_FLAG_CITY_ONLY) && (!(zone->flags & AREA_FLAG_SLAVE_CAPITAL)))
+ if ((channel->flags & CHANNEL_DBC_FLAG_CITY_ONLY) && (!(zone->mapid == 0 || zone->mapid == 1 || zone->mapid == 571 || zone->mapid == 530)))
return false;
if ((channel->flags & CHANNEL_DBC_FLAG_GUILD_REQ) && GetGuildId())
@callmephil
callmephil / Mutli-XP.cpp
Created November 9, 2014 14:51
Mutli-XP System
class LEVEL_NPC : public CreatureScript
{
public: LEVEL_NPC() : CreatureScript("LEVEL_NPC") {}
bool OnGossipHello(Player* player, Creature* creature)
{
if (player->HasItemCount(600000, 1, true) || player->HasItemCount(600001, 1, true))
ChatHandler(player->GetSession()).SendSysMessage("You are no longer able to acces to this npc.");
if (player->getLevel() == 1)
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 +-
@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
@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 / 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 / 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: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