Skip to content

Instantly share code, notes, and snippets.

@Raydor
Raydor / Monturas_por_cuenta.diff
Last active December 15, 2015 16:09
Monturas por cuenta estilo MOP, más información en: http://overwow.com/topic/24-mythcore-monturas-por-cuenta-estilo-mop/ Tipo de Core: Mythcore
--- a/src/server/game/Entities/Player/Player.cpp 2013-03-08 20:30:35.000000000 +0100
+++b/src/server/game/Entities/Player/Player.cpp 2013-03-11 15:40:07.000000000 +0100
@@ -16984,6 +16996,8 @@
_LoadTalents(holder->GetPreparedResult(PLAYER_LOGIN_QUERY_LOADTALENTS));
_LoadSpells(holder->GetPreparedResult(PLAYER_LOGIN_QUERY_LOADSPELLS));
+
+ _LoadMounts(holder->GetPreparedResult(PLAYER_LOGIN_QUERY_LOADSMOUNT));
_LoadGlyphs(holder->GetPreparedResult(PLAYER_LOGIN_QUERY_LOADGLYPHS));
@Raydor
Raydor / traducción_creature_template.php
Created April 1, 2013 19:17
Traducción vía PHP de la tabla creature_template, al ejecutar este PHP, crea una query SQL del cual saca los datos de nombre y entry de locales_creature y los adapta a creature_template, con lo cual, podrás copiar y pegar la query resultante para traducir toda la creature_template
<?php
$host = "localhost"; // Host de Mysql
$user = "root"; // User de Mysql
$pass = "password"; // Pass de Mysql
$db = "world"; // Base de datos
$locale="locales_creature";
$tabla="creature_template";
$conn = mysql_connect ($host,$user,$pass) or die ("Error".mysql_error());
mysql_select_db ($db,$conn) or die ("Error".mysql_error());
@Raydor
Raydor / traduccion_item_template.php
Created April 1, 2013 19:21
Traducción vía PHP de la tabla item_template, al ejecutar este PHP, crea una query SQL del cual saca los datos de nombre y entry de locales_item y los adapta a item_template, con lo cual, podrás copiar y pegar la query resultante para traducir toda la item_template
<?php
$host = "localhost"; // Host de Mysql
$user = "root"; // User de Mysql
$pass = "password"; // Pass de Mysql
$db = "world"; // Base de datos
$locale="locales_item";
$tabla="item_template";
$conn = mysql_connect ($host,$user,$pass) or die ("Error".mysql_error());
mysql_select_db ($db,$conn) or die ("Error".mysql_error());
@Raydor
Raydor / Aura_en_gm_vis_off.diff
Created April 2, 2013 07:16
Este diff permite que cuando un gamemaster se ponga ".gm vis off" (es decir, modo invisible) se le aplique un aura al mismo que indicará más fácilmente que está en modo invisible. Actualmente TrinityCore ya tiene ese sistema. Más información en http://overwow.com/topic/36-hechizo-37800-con-gm-visible-off/ Tipo de Core: MythCore
diff -r ecc0320bdad3 src/server/scripts/Commands/cs_gm.cpp
--- a/src/server/scripts/Commands/cs_gm.cpp Sat Mar 02 19:50:35 2013 +0100
+++ b/src/server/scripts/Commands/cs_gm.cpp Sun Mar 03 09:36:17 2013 +0100
@@ -178,10 +178,14 @@
return true;
}
+ const uint32 VISUAL_AURA = 37800;
std::string argstr = (char*)args;
+ Player* player = handler->GetSession()->GetPlayer();
@Raydor
Raydor / Teleport_traducido.sql
Last active December 15, 2015 16:39
Teleport por Rochet2 traducido y arreglado algunos bugs que tenía. Más información en http://overwow.com/topic/37-teleport-traducido/
DELETE FROM creature_template WHERE entry = '900550';
INSERT INTO creature_template (entry, modelid1, name, subname, IconName, gossip_menu_id, minlevel, maxlevel, Health_mod, Mana_mod, Armor_mod, faction_A, faction_H, npcflag, speed_walk, speed_run, scale, rank, dmg_multiplier, unit_class, unit_flags, type, type_flags, InhabitType, RegenHealth, flags_extra, AiName) VALUES
('900550', '14992', "Taxi", "OverWoW", 'Directions', '50000', 80, 80, 4.56, 1.56, 1.56, 35, 35, 3, 1, 1.14286, 1.25, 1, 1, 1, 2, 7, 138936390, 3, 1, 2, 'SmartAI');
DELETE FROM gossip_menu WHERE entry>'50000'-1 AND entry<'50000'+11;
DELETE FROM npc_text WHERE ID>'300000'-1 AND ID<'300000'+5;
INSERT INTO gossip_menu (entry, text_id) VALUES
('50000'+4, '300000'+3),
@Raydor
Raydor / Mythcore_LANG_UNIVERSAL_en_zona.diff
Last active December 15, 2015 16:39
Lenguaje universal solamente en una zona o zonas específicas para que se entiendan alis y hordas sola y exclusivamente en esos lugares. Tipo de Core: Mythcore
--- a/src/server/game/Server/Protocol/Handlers/ChatHandler.cpp 2013-03-08 20:08:04.000000000 +0100
+++ b/src/server/game/Server/Protocol/Handlers/ChatHandler.cpp 2013-03-10 19:24:11.966856051 +0100
// Disabled addon channel?
if(!sWorld->getBoolConfig(CONFIG_ADDON_CHANNEL))
return;
}
// LANG_ADDON should not be changed nor be affected by flood control
else
{
+//Custom - LANG_UNIVERSAL in Mountshop.
@Raydor
Raydor / Trinitycore_LANG_UNIVERSAL_en_zona.diff
Last active December 15, 2015 16:39
Lenguaje universal solamente en una zona o zonas específicas para que se entiendan alis y hordas sola y exclusivamente en esos lugares. Tipo de Core: Mythcore
--- a/src/server/game/Handlers/ChatHandler.cpp 2013-03-08 20:08:04.000000000 +0100
+++ b/src/server/game/Handlers/ChatHandler.cpp 2013-03-10 19:24:11.966856051 +0100
sLog->outError(LOG_FILTER_NETWORKIO, "Player %s (GUID: %u) sent a chatmessage with an invalid language/message type combination",
GetPlayer()->GetName().c_str(), GetPlayer()->GetGUIDLow());
recvData.rfinish();
return;
}
}
// LANG_ADDON should not be changed nor be affected by flood control
@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
+
@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 / 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,