Skip to content

Instantly share code, notes, and snippets.

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

irancore

💭
I may be slow to respond.
View GitHub Profile
@irancore
irancore / Default_All_Talents.cpp
Last active October 6, 2020 01:35
script set default active all talents for new players
/*
* developed by irancore.ir
*
* Default All Talent Active For + Lvl 10
*
* My Discord : Ac_Dev#8552
*/
#include "GameObject.h"
#include "SpellInfo.h"
@irancore
irancore / worldchat.cpp
Last active April 21, 2022 13:02
Worldchat script last rev trinitycore with more option | played time for use command | Mute Spammer | Chat censored with passive report to gm
/*
* orginal code by ??
* developed for last rev && added more option by irancore.ir
*
* import to database - auth - allow to player use cmd
REPLACE INTO `rbac_linked_permissions` (`id`, `linkedId`) VALUES (195, 525);
* import to database - world - Passive report chat cencured to gms
// Developed By IranCore.Ir
#include "ScriptPCH.h"
#include "AccountMgr.h"
class item_vip_active : public ItemScript
{
public:
item_vip_active() : ItemScript("item_vip_active") {}
@irancore
irancore / PhasedDuelingwithcmd.cpp
Last active September 18, 2019 19:49
Last rev trinitycore (PhasedDueling&Command Duel watching)
/*
Original Script was done by Teiby from emu-devstore
Last Update and added cmd watching by irancore.ir
*/
#include "Battlefield.h"
#include "BattlefieldMgr.h"
#include "Battleground.h"
#include "CellImpl.h"
#include "CreatureTextMgr.h"
#include "GridNotifiers.h"
@irancore
irancore / chat-cmd.cpp
Created June 10, 2019 10:11
chat cmd with mute spammers
#include "ScriptPCH.h"
#include "Chat.h"
#include "InstanceSaveMgr.h"
class world_chat : public CommandScript
{
public:
world_chat() : CommandScript("world_chat"){}
ChatCommand * GetCommands() const
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(-)
@irancore
irancore / gist:d6a7f099c3daa2d4e328
Created August 10, 2014 06:38
Chat Cencure With Database
/*
<--------------------------------------------------------------------------->
- original author: unknown ?!
- Developer(s): Amir_Cinderella
- Complete: %100
- ScriptName: 'Chat censure'
- Comment: untested.
<--------------------------------------------------------------------------->
*/
#include "ScriptPCH.h"
class AccountMounts : public PlayerScript
{
static const bool limitrace = false; // This set to true will only learn mounts from chars on the same team, do what you want.
public:
AccountMounts() : PlayerScript("AccountMounts") { }
void OnLogin(Player* pPlayer)
{
std::vector<uint32> Guids;
QueryResult result1 = CharacterDatabase.PQuery("SELECT guid, race FROM characters WHERE account = %u", pPlayer->GetSession()->GetAccountId());
@irancore
irancore / gist:11248607
Last active August 29, 2015 14:00
Reward LevelUper TrinityCore
// coded by amir_cinderella -- skype : amir.cinderella
#include "Config.h"
class levelrewardonlevel : public PlayerScript
{
public:
levelrewardonlevel() : PlayerScript("levelrewardonlevel") { }
void OnLevelChanged(Player* player, uint8 oldLevel)
{
@irancore
irancore / gist:10914735
Created April 16, 2014 18:04
[OregonCore] Change Race / Gender C++
/*Coded By Amir_Cinderella
Skype : Amir.Cinderella
Email : Amir.CInderella@gmail.com
WebSite : WwW.IranCore.Ir
*/
#include "ScriptPCH.h"
#include "ScriptedGossip.h"
#include "Player.h"
#include "GossipDef.h"
#include "Spell.h"