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loudSettings
Last active March 10, 2018 17:47
Visual Studio Code Settings Sync Gist
{"lastUpload":"2018-03-10T17:47:19.132Z","extensionVersion":"v2.9.0"}
@Raydor
Raydor / crash.txt
Created September 14, 2017 18:14
Crash
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fff627ff700 (LWP 17012)]
0x000000000189611f in WorldObject::IsInMap (this=0x7ffe3aafb710, obj=0x9529004015dae2bc) at /home/sources/Trinity/src/server/game/Entities/Object/Object.cpp:1190
1190 return IsInWorld() && obj->IsInWorld() && (GetMap() == obj->GetMap());
BACKTRACE FULL
#0 0x000000000189611f in WorldObject::IsInMap (this=0x7ffe3aafb710, obj=0x9529004015dae2bc) at /home/sources/Trinity/src/server/game/Entities/Object/Object.cpp:1190
No locals.
#1 0x00000000014ed005 in HostileReference::updateOnlineStatus (this=0x7ffe64cb65c0) at /home/sources/Trinity/src/server/game/Combat/ThreatManager.cpp:185
@Raydor
Raydor / fix_auth_bypass.diff
Created March 17, 2017 14:03
Fix authentication bypass for old TC servers
From cc83d838710d088251de379bdc24a2d6b138e63c Mon Sep 17 00:00:00 2001
From: Raydor <[email protected]>
Date: Fri, 17 Mar 2017 13:25:58 +0100
Subject: [PATCH] [FIX] Fixeado un exploit de login
Commits de Mangos: https://github.com/cmangos/mangos-classic/commit/74d51cf70d67f6d4a47321a4226e7473cb8e2601 + https://github.com/cmangos/mangos-classic/commit/0d2b7e38c886ddd6828cfa75e2daba5121467383
Commits de TrinityCore: https://github.com/TrinityCore/TrinityCore/commit/ed2cd6b34f849f9cc9adb86318457155e47f7314 + https://github.com/TrinityCore/TrinityCore/commit/14abd1f5875d8c8e98ac9c76789d8b439008eba2
---
src/server/authserver/Server/AuthSession.cpp | 101 +++++++++++++++++----------
@Raydor
Raydor / Instrucciones
Last active December 18, 2015 00:58
Debugger para las caidas.
The included crashreport.gdb allows for semiautomated hunting of
crashes. The crashlog-file will be named backtrace.log and contains all
the commands required to partially automate a crashlog-creation with the
proper information.
Usage: gdb -x crashreport.gdb <executable file>
Example: gdb -x crashreport.gdb worldserver
For creating an efficient backtrace, use -DCMAKE_BUILD_TYPE=Debug as a
#include "ScriptPCH.h"
class maestro_profesiones : public CreatureScript
{
public:
maestro_profesiones() : CreatureScript("maestro_profesiones") {}
struct maestro_profesionesAI : public ScriptedAI
#include "ScriptPCH.h"
class maestro_profesiones : public CreatureScript
{
public:
maestro_profesiones() : CreatureScript("maestro_profesiones") {}
struct maestro_profesionesAI : public ScriptedAI
@Raydor
Raydor / Dmg_Check.diff
Created April 2, 2013 17:38
Comprueba una máxima cantidad de daño que hace el jugador, y si la sobrepasa, banea a ese jugador las horas que se hayan asignado en el config.
diff --git a/src/server/game/World/World.h b/src/server/game/World/World.h
--- a/src/server/game/World/World.h
+++ b/src/server/game/World/World.h
@@ -317,6 +317,9 @@ enum WorldIntConfigs
CONFIG_WARDEN_CLIENT_BAN_DURATION,
CONFIG_WARDEN_NUM_MEM_CHECKS,
CONFIG_WARDEN_NUM_OTHER_CHECKS,
+ CONFIG_CHECKEO_MAXIMO_DMG,
+ CONFIG_MINIMO_NIVEL_DE_MJ_PARA_INMUNIDAD_A_CHECKEO,
+ CONFIG_CHECKEO_DMG_VALOR_DE_BANEO,
@Raydor
Raydor / Evitar_jugadores_Isla_MJ.diff
Created April 2, 2013 17:33
Evita a los jugadores que vayan a la Isla MJ y les envía a La Jaula.
diff --git a/src/server/game/Entities/Player/Player.cpp b/src/server/game/Entities/Player/Player.cpp
--- a/src/server/game/Entities/Player/Player.cpp
+++ b/src/server/game/Entities/Player/Player.cpp
@@ -34,6 +34,7 @@
#include "Chat.h"
#include <cmath>
#include "Common.h"
+#include "Config.h"
#include "ConditionMgr.h"
#include "CreatureAI.h"
@Raydor
Raydor / evitar_leave_arena_changefa.diff
Created April 2, 2013 10:12
Al cambiar un jugador de facción, no pierde los equipos de arenas.
--- a/src/server/game/Server/Protocol/Handlers/CharacterHandler.cpp Thu Oct 11 00:29:46 2012 +0300
+++ b/src/server/game/Server/Protocol/Handlers/CharacterHandler.cpp Sat Oct 20 14:05:03 2012 +0200
@@ -1809,7 +1809,8 @@
}
// Leave Arena Teams
- Player::LeaveAllArenaTeams(guid);
+ //Player::LeaveAllArenaTeams(guid); //Custom no borra los equipos de arena al cambiar de facción
+