Skip to content

Instantly share code, notes, and snippets.

View zabustak's full-sized avatar
💭
I may be slow to respond.

Zabustak Narvorsky zabustak

💭
I may be slow to respond.
View GitHub Profile
ee60facee932117435260ff2d4a1e05c65d65b4b
.../scripts/Northrend/IcecrownCitadel/boss_festergut.cpp | 13 +++++++++++++
.../scripts/Northrend/IcecrownCitadel/boss_rotface.cpp | 13 +++++++++++++
2 files changed, 26 insertions(+)
diff --git a/src/server/scripts/Northrend/IcecrownCitadel/boss_festergut.cpp b/src/server/scripts/Northrend/IcecrownCitadel/boss_festergut.cpp
index 884baaf..5d02f62 100644
--- a/src/server/scripts/Northrend/IcecrownCitadel/boss_festergut.cpp
+++ b/src/server/scripts/Northrend/IcecrownCitadel/boss_festergut.cpp
@@ -132,6 +132,19 @@ class boss_festergut : public CreatureScript
@zabustak
zabustak / Master's Call
Created April 11, 2014 19:57
Can't cast l.o.s/stunned/dead pet
src/server/scripts/Spells/spell_hunter.cpp | 34 ++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/src/server/scripts/Spells/spell_hunter.cpp b/src/server/scripts/Spells/spell_hunter.cpp
index 2f8a5da..dea4532 100644
--- a/src/server/scripts/Spells/spell_hunter.cpp
+++ b/src/server/scripts/Spells/spell_hunter.cpp
@@ -421,6 +421,39 @@ class spell_hun_masters_call : public SpellScriptLoader
return true;
}
@zabustak
zabustak / Sql
Created September 1, 2014 22:08
Pos Cave
REPLACE INTO `creature_template` (`entry`, `difficulty_entry_1`, `difficulty_entry_2`, `difficulty_entry_3`, `KillCredit1`, `KillCredit2`, `modelid1`, `modelid2`, `modelid3`, `modelid4`, `name`, `subname`, `IconName`, `gossip_menu_id`, `minlevel`, `maxlevel`, `exp`, `faction_A`, `faction_H`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `rank`, `mindmg`, `maxdmg`, `dmgschool`, `attackpower`, `dmg_multiplier`, `baseattacktime`, `rangeattacktime`, `unit_class`, `unit_flags`, `unit_flags2`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `minrangedmg`, `maxrangedmg`, `rangedattackpower`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `spell1`, `spell2`, `spell3`, `spell4`, `spell5`, `spell6`, `spell7`, `spell8`, `PetSpellDataId`, `VehicleId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `InhabitType`, `HoverHeight`, `Health_mod`, `Mana_mod`, `Armor_mod`, `Racial
.../PitOfSaron/boss_scourgelord_tyrannus.cpp | 59 ++++++++++++++++++++++
1 file changed, 59 insertions(+)
diff --git a/src/server/scripts/Northrend/FrozenHalls/PitOfSaron/boss_scourgelord_tyrannus.cpp b/src/server/scripts/Northrend/FrozenHalls/PitOfSaron/boss_scourgelord_tyrannus.cpp
index 833c376..caaf06b 100644
--- a/src/server/scripts/Northrend/FrozenHalls/PitOfSaron/boss_scourgelord_tyrannus.cpp
+++ b/src/server/scripts/Northrend/FrozenHalls/PitOfSaron/boss_scourgelord_tyrannus.cpp
@@ -69,6 +69,10 @@ enum Spells
SPELL_EJECT_ALL_PASSENGERS = 50630,
/*
* Copyright (C) 2008-2013 TrinityCore <http://www.trinitycore.org/>
*
* 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.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
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(-)
@zabustak
zabustak / gist:2ee8da01f54a51a72609131b8e5a68c1
Created April 14, 2019 13:51 — 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 +-
@zabustak
zabustak / Ultimate_Duel_Script.cpp
Created May 9, 2019 11:31 — forked from callmephil/Ultimate_Duel_Script.cpp
[V1.4] Ultimate Duel Script
/*
Ultimate Duel Script (Reward/Rating/Security/Zoned & Reset)
Author : Philippe
Version : V1.4 (Full Rewrite)
Release Date : 21/03/14
Script Complete : 80 %
Version : 3.3.5 & 4.3.4
TrinityCore based.
Tested and Works Well.
diff --git a/src/server/game/AI/CreatureAI.cpp b/src/server/game/AI/CreatureAI.cpp
index 1dd66d7699..8683884b25 100644
--- a/src/server/game/AI/CreatureAI.cpp
+++ b/src/server/game/AI/CreatureAI.cpp
@@ -350,6 +350,40 @@ void CreatureAI::SetBoundary(CreatureBoundary const* boundary, bool negateBounda
me->DoImmediateBoundaryCheck();
}
+bool CreatureAI::CheckMeleeRepositionRequirements()
+{
@zabustak
zabustak / PHPMySqlMassEmailer.php
Created November 18, 2019 22:00 — forked from IftiMahmud/PHPMySqlMassEmailer.php
PHP Script to send mass email. This script will take subscribers emails from MySql database and send them bulk emails. Comes with Unsubscriber script.
<?php
//SOURCE: http://thedigilife.com/bulk-email-script-in-php-and-mysql-database/
$con = mysql_connect("localhost","dbuser","dbpass"); // replace dbuser, dbpass with your db user and password
mysql_select_db("dbname", $con); // replace dbname with your database name
/*
To use this script database table must have three fields named sno, email and sub_status
*/
$query = "select sno, email from dbtable where sub_status = 'SUBSCRIBED'";
$result = mysql_query($query, $con);
$emails = array();