Skip to content

Instantly share code, notes, and snippets.

if (roll->totalNeed == 0 && roll->totalGreed > 0) // if (roll->totalNeed == 0 && ...), not else if, because numbers can be modified above if player is on a different map
{
if (!roll->playerVote.empty())
{
uint8 maxresul = 0;
ObjectGuid maxguid = ObjectGuid::Empty;
Player* player = nullptr;
RollVote rollvote = NOT_VALID;
Roll::PlayerVote::iterator itr;
// This code will create an NPC that allows players to link two or more guild banks.
// The NPC will be located at a specific location in the game world.
#include "ScriptPCH.h"
class npc_guild_bank_linker : public CreatureScript
{
public:
npc_guild_bank_linker() : CreatureScript("npc_guild_bank_linker") { }
rgrep HasAura | grep -E '[0-9]{5}'
server/game/Entities/Unit/Unit.cpp: if (dispelMask & (1 << DISPEL_DISEASE) && HasAura(50536))
server/game/Entities/Unit/Unit.cpp: if (victim->HasAura(55095))
server/game/Entities/Unit/Unit.cpp: if (owner->HasAura(56377) && victim->GetLevel() > owner->GetLevel())
server/game/Entities/Unit/Unit.cpp: if (victim->HasAura(55095))
server/game/Entities/Unit/Unit.cpp: if (HasAura(18499))
server/game/Entities/Pet/Pet.cpp: if (!HasAura(58877))//prevent apply twice for the 2 wolves
server/game/Entities/Object/Object.cpp: if (unitTarget->HasAura(53042) && unitTarget->HasSpell(spellInfo->GetEffect(EFFECT_0).TriggerSpell))
server/game/Entities/Object/Object.cpp: else if (spellInfo->SpellVisual[0] == 3881 && unitCaster->HasAura(67556)) // cooking with Chef Hat.
server/game/Entities/Player/Player.h: bool IsDeserter() const { return HasAura(26013); }
diff --git a/src/server/scripts/Spells/spell_generic.cpp b/src/server/scripts/Spells/spell_generic.cpp
index 81140cd8e003..07cee6248fb7 100644
--- a/src/server/scripts/Spells/spell_generic.cpp
+++ b/src/server/scripts/Spells/spell_generic.cpp
@@ -970,7 +970,12 @@ class spell_gen_clone_weapon_aura : public AuraScript
if (Player* player = caster->ToPlayer())
{
if (Item* mainItem = player->GetItemByPos(INVENTORY_SLOT_BAG_0, EQUIPMENT_SLOT_MAINHAND))
- target->SetVirtualItem(0, mainItem->GetEntry());
+ {
diff --git a/src/server/scripts/Spells/spell_generic.cpp b/src/server/scripts/Spells/spell_generic.cpp
index 81140cd8e003..07cee6248fb7 100644
--- a/src/server/scripts/Spells/spell_generic.cpp
+++ b/src/server/scripts/Spells/spell_generic.cpp
@@ -970,7 +970,12 @@ class spell_gen_clone_weapon_aura : public AuraScript
if (Player* player = caster->ToPlayer())
{
if (Item* mainItem = player->GetItemByPos(INVENTORY_SLOT_BAG_0, EQUIPMENT_SLOT_MAINHAND))
- target->SetVirtualItem(0, mainItem->GetEntry());
+ {
index 81140cd8e003..07cee6248fb7 100644
--- a/src/server/scripts/Spells/spell_generic.cpp
+++ b/src/server/scripts/Spells/spell_generic.cpp
@@ -970,7 +970,12 @@ class spell_gen_clone_weapon_aura : public AuraScript
if (Player* player = caster->ToPlayer())
{
if (Item* mainItem = player->GetItemByPos(INVENTORY_SLOT_BAG_0, EQUIPMENT_SLOT_MAINHAND))
- target->SetVirtualItem(0, mainItem->GetEntry());
+ {
+ if (mainItem->GetTransmog())
#!/bin/bash
#
# https://github.com/kitabisa/mubeng
# para tener servidores proxy aleatoriamente
# lista de proxys http de
# https://github.com/TheSpeedX/PROXY-List
rm proxies.txt
curl https://raw.githubusercontent.com/TheSpeedX/PROXY-List/master/http.txt -o proxies.txt
sed 's/^/http:\/\//' proxies.txt > proxies2.txt
curl -A "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; Googlebot/2.1; +http://www.google.com/bot.html) Chrome/96.0.4664.93 Safari/537.36" https://atomixhq.top/ultimas-descargas/
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1" />
<meta name="robots" content="noindex, nofollow" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title>Just a moment...</title>
[12:53:19.350 01-0103595] MTP Info: queueTryToReceive() - need to parse in another thread, 1 messages. (session_private.cpp : 25)
[12:53:19.350 00-0103596] MTP Info: dcWithShift 4 can wait for 5691ms from current 22398708 (session.cpp : 25)
[12:53:19.405 00-0103597] Reading: readInboxTill 769407, force [FALSE]. (data_histories.cpp : 25)
[12:53:19.405 00-0103598] Reading: readInboxTillNeedsRequest is_server [TRUE], before 769415. (history.cpp : 25)
[12:53:19.405 00-0103599] Reading: readInboxTill finish 1. (data_histories.cpp : 25)
[12:53:19.405 00-0103600] Reading: in guard, unread 0. (data_histories.cpp : 25)
[12:53:19.933 00-0103601] MTP Info: adding request to toSendMap, msCanWait 0 (session.cpp : 25)
[12:53:19.933 00-0103602] MTP Info: added, requestId 1730 (session.cpp : 25)
[12:53:19.935 00-0103603] MTP Info: dcWithShift 160004 stopped send timer, can wait for 0ms from current 22395580 (session.cpp : 25)
[12:53:19.935 03-0103604] MTP Info: tryToSend for dc 160004. (session_private.cpp : 25)
2021/11/14 16:00:23 [error] 1525407#1525407: *731712 FastCGI sent in stderr: "PHP message: PHP Deprecated: Function create_function() is deprecated in /var/www//libs/global_lib.php on line 105PHP message: PHP Deprecated: Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)` in /var/www//libs/global_lib.php(105) : runtime-created function on line 1PHP message: PHP Deprecated: Function create_function() is deprecated in /var/www//libs/global_lib.php on line 105PHP message: PHP Deprecated: Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)` in /var/www//libs/global_lib.php(105) : runtime-created function on line 1PHP message: PHP Notice: Undefined offset: -1 in /var/www//char_quest.php on line 150PHP message: PHP Notice: Undefined offset: -1 in /var/www//char_quest.php on line 150PHP message: PHP Notice: Undefined offset: -1 in /var/www//char_quest.php on line 150PHP message: PHP Notice: Undefi