^(\+98|0)?9\d{9}$
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Result | |
{ | |
protected internal Result(bool isSuccess, Error error) | |
{ | |
if (isSuccess && error != Error.None) | |
{ | |
throw new InvalidOperationException(); | |
} | |
if (!isSuccess && error == Error.None) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use [DATABASE_NAME]; | |
DECLARE @Table NVARCHAR(MAX) | |
DECLARE @Col NVARCHAR(MAX) | |
DECLARE Table_Cursor CURSOR | |
FOR | |
--پيدا کردن تمام فيلدهاي متني تمام جداول ديتابيس جاري | |
SELECT a.name, --table | |
b.name --col | |
FROM sysobjects a, | |
syscolumns b |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Ref<T> where T: struct | |
{ | |
T _value; | |
public Ref(T value) | |
{ | |
_value = value; | |
} | |
public T Value |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void SendWhisper(std::string message, std::string name = "") | |
{ | |
CGObject_C *pPlayer = s_objMgr.GetObjectPtr(s_objMgr.GetActivePlayerGuid(), TYPEMASK_PLAYER); | |
if (!pPlayer) | |
return; | |
uint32 lang = 0; | |
switch (pPlayer->GetValue<uint64>(UNIT_FIELD_FACTIONTEMPLATE)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "ScriptPCH.h" | |
uint32 auras[] = { 48162, 48074, 48170, 43223, 36880, 467, 48469 }; | |
class duel_reset : public PlayerScript | |
{ | |
public: | |
duel_reset() : PlayerScript("duel_reset") { } | |
void RevivePlayer(Player* pPlayer) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "Player.h" | |
#include "ScriptPCH.h" | |
class afk_protection : public PlayerScript | |
{ | |
public: | |
afk_protection() : PlayerScript("afk_protection") { } | |
bool isAFK(Player* player) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class spell_gen_prestige : public SpellScriptLoader | |
{ | |
public: | |
spell_gen_prestige() : SpellScriptLoader("spell_gen_prestige") {} | |
class spell_gen_prestige_SpellScript : public SpellScript | |
{ | |
PrepareSpellScript(spell_gen_prestige_SpellScript); | |
void HandleDummy(SpellEffIndex /*effIndex*/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/server/game/Conditions/DisableMgr.cpp b/src/server/game/Conditions/DisableMgr.cpp | |
index cc23036..73360ce 100755 | |
--- a/src/server/game/Conditions/DisableMgr.cpp | |
+++ b/src/server/game/Conditions/DisableMgr.cpp | |
@@ -117,6 +117,7 @@ void LoadDisables() | |
case DISABLE_TYPE_QUEST: | |
break; | |
case DISABLE_TYPE_MAP: | |
+ case DISABLE_TYPE_LFG_MAP: | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void BattleGroundMgr::BuildPvpLogDataPacket(WorldPacket* data, BattleGround* bg) | |
{ | |
uint8 type = (bg->isArena() ? 1 : 0); | |
// last check on 2.4.1 | |
data->Initialize(MSG_PVP_LOG_DATA, (1 + 1 + 4 + 40 * bg->GetPlayerScoresSize())); | |
*data << uint8(type); // type (battleground=0/arena=1) | |
if (type) // arena | |
{ | |
// it seems this must be according to BG_WINNER_A/H and _NOT_ BG_TEAM_A/H |
NewerOlder