Skip to content

Instantly share code, notes, and snippets.

@devovh
devovh / gist:26f01a77679aaf992cd13e13450240de
Created November 16, 2019 11:29 — forked from irancore/crossfaction.patch
Crossfaction Battlegrounds For Last Revision Trinity
From 05af526143c365d0af4ee43408a79b0957bbe2cd Mon Sep 17 00:00:00 2001
From: irancore <amir.cinderella@gmail.com>
if you need last update contact us : +989154422565 or https://t.me/Am7R21
Date: Sat, 23 Sep 2017 17:52:39 +0330
Subject: [PATCH] crossfaction battleground
---
sql/av_fix.sql | 3 +
src/server/database/Database/MySQLConnection.cpp | 4 +-
src/server/game/Battlegrounds/Arena.cpp | 4 +-
From 2c514cb968fd65709f44e7c272d4570065f9be2b Mon Sep 17 00:00:00 2001
From: EmiliyanKurtseliyanski <emiliyan9604bg@gmail.com>
Date: Fri, 4 Apr 2014 00:43:08 -0700
Subject: [PATCH] Implement Arena Spectator
---
sql/Razer/Custom/rbac_permissions_Spectate.sql | 12 +
.../Custom/rbac_role_permissions_Spectate.sql | 12 +
src/server/game/Accounts/RBAC.h | 6 +
src/server/game/Battlegrounds/Battleground.cpp | 34 +-
/*
* Copyright (C) 2008-2014 TrinityCore <http://www.trinitycore.org/>
*
* Copyright (C) 2009-2014 DSS Mortos <dss_mortos@outlook.com>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later version.
*
From 2df4e359d486ea9135f2534f02843edeee283721 Mon Sep 17 00:00:00 2001
From: SymbolixDEV <shabi_bjk@abv.bg>
Date: Tue, 18 Mar 2014 23:35:10 +0200
Subject: [PATCH] Hunter: Master Call Fix
---
src/server/scripts/Spells/spell_hunter.cpp | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
===================================================================================================
From: Walkline
Fixed by : SymbolixDEV
Complete : 91%
Fully working Arena Spectator is for sale !
===================================================================================================
diff --git a/sql/arena-spectator/spectator.sql b/sql/arena-spectator/spectator.sql
new file mode 100644
index 0000000..39cff15
diff --git a/src/server/game/Entities/Player/Player.cpp b/src/server/game/Entities/Player/Player.cpp
index 9ee7bc4..6ff16be 100644
--- a/src/server/game/Entities/Player/Player.cpp
+++ b/src/server/game/Entities/Player/Player.cpp
@@ -14358,7 +14358,7 @@ void Player::PrepareGossipMenu(WorldObject* source, uint32 menuId /*= 0*/, bool
break;
case GOSSIP_OPTION_VENDOR:
{
- VendorItemData const* vendorItems = creature->GetVendorItems();
+ VendorItemData const* vendorItems = itr->second.ActionMenuId ? sObjectMgr->GetNpcVendorItemList(itr->second.ActionMenuId) : creature->GetVendorItems();
diff --git a/src/server/game/Entities/Player/Player.cpp b/src/server/game/Entities/Player/Player.cpp
index 9ee7bc4..aecff33 100644
--- a/src/server/game/Entities/Player/Player.cpp
+++ b/src/server/game/Entities/Player/Player.cpp
@@ -12443,12 +12443,13 @@ void Player::QuickEquipItem(uint16 pos, Item* pItem)
}
}
+extern uint32 GetItemEnchantVisual(Player* player, Item* item);
void Player::SetVisibleItemSlot(uint8 slot, Item* pItem)
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';
//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."

####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