Skip to content

Instantly share code, notes, and snippets.

View vhiperdev's full-sized avatar
🎯
Concentrando

Vhiper vhiperdev

🎯
Concentrando
View GitHub Profile
@vhiperdev
vhiperdev / SpellRegulator.diff
Created June 18, 2018 19:35
SpellRegulator + command .reload spell_regulator for (AzerothCore)
#Attention Modify this (commit) in your repository to add the module Spell_Regulator
#MODULE SPELL_REGULATOR FOR AZEROTHCORE 2018
diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp
index bb7a89f..9fa3fad 100644
--- a/src/server/game/Entities/Unit/Unit.cpp
+++ b/src/server/game/Entities/Unit/Unit.cpp
@@ -52,6 +52,7 @@
#include "ArenaSpectator.h"
From 17f4d78f7c212918b58cde747e5e0e9fc09d2d21 Mon Sep 17 00:00:00 2001
From: irancore <amir.cinderella@gmail.com>
Date: Thu, 9 Aug 2018 17:00:06 +0430
Subject: [PATCH] CCDelay last rev
---
src/server/game/Spells/Spell.cpp | 202 ++++++++++++++++++++++++++++++++++++++-
src/server/game/Spells/Spell.h | 2 +
2 files changed, 202 insertions(+), 2 deletions(-)
@vhiperdev
vhiperdev / gist:ab4f8714e33ef2be4bbd03d262d94387
Created April 26, 2019 16:44 — 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/dev21712
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 +-
#include "ScriptMgr.h"
#include "Chat.h"
#include <list>
#include "Containers.h"
std::vector<string>chat;
class LoadChatTable : public WorldScript
{
public:
@vhiperdev
vhiperdev / ddos.conf
Created February 3, 2020 19:33 — forked from mattia-beta/ddos.conf
IPtables DDoS Protection for VPS
### 1: Drop invalid packets ###
/sbin/iptables -t mangle -A PREROUTING -m conntrack --ctstate INVALID -j DROP
### 2: Drop TCP packets that are new and are not SYN ###
/sbin/iptables -t mangle -A PREROUTING -p tcp ! --syn -m conntrack --ctstate NEW -j DROP
### 3: Drop SYN packets with suspicious MSS value ###
/sbin/iptables -t mangle -A PREROUTING -p tcp -m conntrack --ctstate NEW -m tcpmss ! --mss 536:65535 -j DROP
### 4: Block packets with bogus TCP flags ###
@vhiperdev
vhiperdev / cmangospromo.diff
Created December 17, 2020 22:41
Npc promotion Cmangos
#include "AI/ScriptDevAI/include/sc_common.h"
#include "Globals/SharedDefines.h"
#include <cstring>
#include <string>
bool GossipSelect_welcome(Player* player, Creature* creature)
{
if (player->getLevel() < 58)
player->PlayerTalkClass->GetGossipMenu().AddMenuItem(0, "Set your level", 1, 1, "Max level 58", 0, true);