Skip to content

Instantly share code, notes, and snippets.

View DDuarte's full-sized avatar
😴
Dormant

Duarte Duarte DDuarte

😴
Dormant
View GitHub Profile
@DDuarte
DDuarte / PersistentDictionary.cs
Created March 22, 2014 14:32
PersistentDictionary backed by a SQLite database in C#
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using Community.CsharpSqlite.SQLiteClient;
namespace DBS
{
public class DBFields<T> : IEqualityComparer<T>
{
<?xml version="1.0" encoding="ibm850"?>
<DBFilesClient>
<Achievement_Category build="18179">
<index>
<primary>m_ID</primary>
</index>
<field type="int" name="m_ID" />
<field type="int" name="m_parent" />
<field type="string" name="m_name_lang" />
<field type="int" name="m_ui_order" />
@DDuarte
DDuarte / build.bat
Created August 27, 2014 12:55
TC cmd build
"C:\Program Files (x86)\MSBuild\12.0\Bin\msbuild.exe" TrinityCore.sln /nologo /nr:true /p:Configuration=Debug /m:3 /clp:Summary /v:normal /fl /fl1 /fl2 /flp:Summary;Verbosity=normal;LogFile=MSBuild.log /flp1:ErrorsOnly;LogFile=MSBuild.Errors.log /flp2:WarningsOnly;LogFile=MSBuild.Warnings.log
diff --git a/src/server/game/AuctionHouseBot/AuctionHouseBotBuyer.cpp b/src/server/game/AuctionHouseBot/AuctionHouseBotBuyer.cpp
index f7c8003..3a27f59 100644
--- a/src/server/game/AuctionHouseBot/AuctionHouseBotBuyer.cpp
+++ b/src/server/game/AuctionHouseBot/AuctionHouseBotBuyer.cpp
@@ -50,7 +50,7 @@ bool AuctionBotBuyer::Initialize()
//load Check interval
_checkInterval = sAuctionBotConfig->GetConfig(CONFIG_AHBOT_BUYER_RECHECK_INTERVAL) * MINUTE;
- TC_LOG_INFO("ahbot", "AHBot buyer interval between 2 check = %u", _checkInterval);
+ TC_LOG_DEBUG("ahbot", "AHBot buyer interval between 2 check = %u", _checkInterval);
diff --git a/src/server/game/World/World.cpp b/src/server/game/World/World.cpp
index f9c8c80..79dc565 100644
--- a/src/server/game/World/World.cpp
+++ b/src/server/game/World/World.cpp
@@ -2552,7 +2552,7 @@ void World::_UpdateGameTime()
}
/// Shutdown the server
-void World::ShutdownServ(uint32 time, uint32 options, uint8 exitcode)
+void World::ShutdownServ(uint32 time, uint32 options, uint8 exitcode, const std::string& reason)
@DDuarte
DDuarte / wpp.diff
Created September 6, 2014 20:41
WPP npc trainer flags
diff --git a/WowPacketParser/SQL/Builders/UnitMisc.cs b/WowPacketParser/SQL/Builders/UnitMisc.cs
index 4944c09..74f7f91 100644
--- a/WowPacketParser/SQL/Builders/UnitMisc.cs
+++ b/WowPacketParser/SQL/Builders/UnitMisc.cs
@@ -603,6 +603,48 @@ namespace WowPacketParser.SQL.Builders
return result.Count == 0 ? null : result;
}
+ private static HashSet<string> _professionTrainers = new HashSet<string>
+ {
diff --git a/cmake/compiler/gcc/settings.cmake b/cmake/compiler/gcc/settings.cmake
index acd71e8..ca33bfc 100644
--- a/cmake/compiler/gcc/settings.cmake
+++ b/cmake/compiler/gcc/settings.cmake
@@ -8,7 +8,7 @@ if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS GCC_EXPECTED_VERSION)
endif()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
-message(STATUS "GCC: Enabled c++11 support")
+message(STATUS "GCC: Enabled C++11 support")
ALTER TABLE waypoint_scripts ENGINE=InnoDB;
ALTER TABLE waypoint_data ENGINE=InnoDB;
ALTER TABLE waypoints ENGINE=InnoDB;
ALTER TABLE warden_checks ENGINE=InnoDB;
ALTER TABLE version ENGINE=InnoDB;
ALTER TABLE vehicle_template_accessory ENGINE=InnoDB;
ALTER TABLE vehicle_accessory ENGINE=InnoDB;
ALTER TABLE trinity_string ENGINE=InnoDB;
ALTER TABLE transports ENGINE=InnoDB;
ALTER TABLE spell_threat ENGINE=InnoDB;
enum ParkingCardType { VIPCard, NormalCard }
sig ParkingCard {
type: one ParkingCardType
}
sig ManagementSystem {
Park: set ParkingCard,
} {
#VIPPark <= 2
-- phpMyAdmin SQL Dump
-- version 3.5.1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Nov 15, 2014 at 09:12 PM
-- Server version: 5.6.9-rc
-- PHP Version: 5.4.0
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";