Skip to content

Instantly share code, notes, and snippets.

View SymbolixDEV's full-sized avatar

SymbolixDEV SymbolixDEV

  • C++,HTML,PHP,Java,CSS- Developer
  • Kubrat,Razgrad [Bulgaria]
View GitHub Profile
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(-)
@SymbolixDEV
SymbolixDEV / ArenaSpectator.diff
Last active August 16, 2020 14:13
Arena Spectate
===================================================================================================
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/Chat/Chat.cpp b/src/server/game/Chat/Chat.cpp
index d90fd6f..28bee74 100644
--- a/src/server/game/Chat/Chat.cpp
+++ b/src/server/game/Chat/Chat.cpp
@@ -782,18 +782,31 @@ Creature* ChatHandler::getSelectedCreature()
return ObjectAccessor::GetCreatureOrPetOrVehicle(*m_session->GetPlayer(), m_session->GetPlayer()->GetTarget());
}
+// Returns selected game object (selected with .gob t) if exists and if gameobject ID is searched for
+static char* GetSelectedGameObject(ChatHandler* handler, char const* linkType)
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)
@SymbolixDEV
SymbolixDEV / lo.cpp
Last active August 29, 2015 13:56
LoginSCript
//script made by SymbolixDEV
//Edited by : Rochet2
#include "ScriptPCH.h"
class login_script : public PlayerScript
{
public:
login_script() : PlayerScript("login_script") { }
void OnLogin(Player* player)
{
@SymbolixDEV
SymbolixDEV / Test.cpp
Last active August 29, 2015 13:56
Test NPC
/*
Made by: SymboliXDEV
Edited by: Rochet2
Work %: Untested
Compile: Success
*/
#include "ScriptPCH.h"
static const uint32 buffIdstools[] = { 43223, 5862, 33377, 33779, 31305, 70692, 42995 };
@SymbolixDEV
SymbolixDEV / test.cpp
Created February 4, 2014 17:06
Test NPC
//test NPC by SymbolixDEV
#include "ScriptPCH.h"
uint32 buffIdstools[] = { 43223, 5862, 33377, 33779, 31305, 70692, 42995 };
class npc_test : public CreatureScript
{
public:
npc_test() : CreatureScript("npc_test") { }
@SymbolixDEV
SymbolixDEV / gist:6474433
Last active December 22, 2015 12:48 — forked from irancore/gist:6473293
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';
@SymbolixDEV
SymbolixDEV / BountyHunter.cpp
Last active July 9, 2020 23:40
BountyHunter
//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."