Skip to content

Instantly share code, notes, and snippets.

/************************************
* Custom Commands *
* *
* RealityNetGaming *
*************************************
*/
#include "ScriptPCH.h"
#include "Chat.h"
@devovh
devovh / lo.cpp
Created June 19, 2014 01:07 — forked from Rochet2/lo.cpp
//script made by SymbolixDEV
#include "ScriptPCH.h"
class login_script : public PlayerScript
{
public:
login_script() : PlayerScript("login_script") { }
void OnLogin(Player* player)
{
std::string msg;
@devovh
devovh / lo.cpp
Created June 19, 2014 01:07 — forked from Rochet2/lo.cpp
//script made by SymbolixDEV
#include "ScriptPCH.h"
class login_script : public PlayerScript
{
public:
login_script() : PlayerScript("login_script") { }
void OnLogin(Player* player)
{
std::string msg;
@devovh
devovh / Test.cpp
Created June 19, 2014 01:07 — forked from Rochet2/Test.cpp
/*
Made by: SymboliXDEV
Edited by: Rochet2
Work %: Untested
Compile: Success
*/
#include "ScriptPCH.h"
static const uint32 buffIdstools[] = { 43223, 5862, 33377, 33779, 31305, 70692, 42995 };

####About When you loot a weapon, there is a 25% chance it will have a random visual effect. The chance can be edited. If you enchant the weapon, the visual effect is lost and replaced by the enchant visual. In total there are 38 different visuals. Note that not all items can have an enchant visual.
http://rochet2.github.io/?page=Item_Enchant_Visuals

####Installation Download gist
Apply the the diff with git bash using command git apply ItemEnchantVisuals.diff
Supported TC version: https://github.com/TrinityCore/TrinityCore/commit/e4c57d839d83a7e735d4b651827e2dca1ddc68cd

//Orginal script by : ???
//Fixed errors by : SymbolixDEV
#include "ScriptPCH.h"
#include <cstring>
#define SET_CURRENCY 2 //0 for gold, 1 for honor, 2 for tokens
#define TOKEN_ID 23247 // token id
#if SET_CURRENCY == 0
#define BOUNTY_1 "I would like to place a 20g bounty."
diff --git a/sql/arena-spectator/spectator.sql b/sql/arena-spectator/spectator.sql
new file mode 100644
index 0000000..39cff15
--- /dev/null
+++ b/sql/arena-spectator/spectator.sql
@@ -0,0 +1,12 @@
+-- Implement Arena Spectator
+DELETE FROM `command` WHERE `name` = 'spectate';
+INSERT INTO `command` (`name`, `security`, `help`) VALUES ('spectate', 0, 'Syntax: .spectate $subcommand.\nUse .help sppectate');
+DELETE FROM `command` WHERE `name` = 'spectate view';