db error
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
UPDATE `creature_template` SET `unit_flags3`=0 WHERE `entry`=242187;
|
||||
UPDATE `creature_template` SET `unit_flags3`=0 WHERE `entry`=257651;
|
||||
UPDATE `creature_template` SET `unit_flags3`=0 WHERE `entry`=257185;
|
||||
UPDATE `creature_template` SET `unit_flags3`=0 WHERE `entry`=240236;
|
||||
UPDATE `creature_template` SET `unit_flags`=0 WHERE `entry`=238268;
|
||||
UPDATE `creature_template_addon` SET `auras`='' WHERE `entry`=152561;
|
||||
UPDATE `creature_template_addon` SET `auras`='' WHERE `entry` IN
|
||||
(32641, 32642, 62821, 62822, 227773, 227774, 231085, 231086, 259153, 251322, 251319, 251318, 251271, 251269, 260454, 263272, 263366);
|
||||
UPDATE `creature` SET `curHealthPct`=NULL WHERE `guid` IN (900730, 900731, 900732, 900733, 900734, 900735, 900736, 900737, 900738, 900739, 900740, 900741, 900742, 900743, 900744, 900745, 900746, 900747, 900748, 900749, 900750, 900751, 900752, 900753);
|
||||
UPDATE `creature_template` SET `npcflag`=2 WHERE `entry`=265303;
|
||||
|
||||
-- Remove invalid conversation_actors entries that reference non-existent creature GUIDs
|
||||
DELETE FROM `conversation_actors` WHERE `ConversationActorGuid` IN (
|
||||
8190288, 8182214, 8190000, 8182579, 16571187, 8181981, 8189940, 8190421, 16570704, 8190022, 8189136, 8189565, 8182094
|
||||
);
|
||||
|
||||
DELETE FROM `gameobject_template` WHERE `entry`=525903;
|
||||
INSERT INTO `gameobject_template` (`entry`, `type`, `displayId`, `name`, `IconName`, `castBarCaption`, `unk1`, `size`, `Data0`, `Data1`, `Data2`, `Data3`, `Data4`, `Data5`, `Data6`, `Data7`, `Data8`, `Data9`, `Data10`, `Data11`, `Data12`, `Data13`, `Data14`, `Data15`, `Data16`, `Data17`, `Data18`, `Data19`, `Data20`, `Data21`, `Data22`, `Data23`, `Data24`, `Data25`, `Data26`, `Data27`, `Data28`, `Data29`, `Data30`, `Data31`, `Data32`, `Data33`, `Data34`, `ContentTuningId`, `RequiredLevel`, `AIName`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES (525903, 3, 75957, 'Sin\'dorei Outfitter\'s Ruler', '', 'Opening', '', 1, 1922, 525903, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 21400, 0, 0, 136651, 0, 2, 65552, 0, 0, 0, 0, 0, 0, 0, 0, 6798, 0, 0, 108, 0, 0, 3615, 80, '', '', NULL, 69273);
|
||||
|
||||
DELETE FROM `gameobject_loot_template` WHERE `Entry`=525903 AND `ItemType`=0 AND `Item`=238614 AND `Chance`=100 AND `QuestRequired`=0 AND `LootMode`=1 AND `GroupId`=0 AND `MinCount`=1 AND `MaxCount`=1 AND `Comment` IS NULL;
|
||||
INSERT INTO `gameobject_loot_template` (`Entry`, `ItemType`, `Item`, `Chance`, `QuestRequired`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`, `Comment`) VALUES (525903, 0, 238614, 100, 0, 1, 0, 1, 1, NULL);
|
||||
|
||||
UPDATE `creature_template` SET `npcflag`=131 WHERE `entry`=197711;
|
||||
replace into criteria_data values (32384,0,0,0,'achievement_adds_more_like_bads');
|
||||
@@ -17,20 +17,6 @@ enum Spells
|
||||
SPELL_BOULDER_STUN = 222417,
|
||||
};
|
||||
|
||||
// 100485
|
||||
struct npc_brh_boulder_instance_trash : public ScriptedAI
|
||||
{
|
||||
npc_brh_boulder_instance_trash(Creature* creature) : ScriptedAI(creature) { }
|
||||
|
||||
// The instance will spawn it at top of stairs & make it move by spline
|
||||
|
||||
void OnSplineEndReached() override
|
||||
{
|
||||
me->CastSpell(me, SPELL_BOULDER_EXPLOSION, false);
|
||||
me->DespawnOrUnsummon();
|
||||
}
|
||||
};
|
||||
|
||||
// 12428
|
||||
struct at_brh_boulder : AreaTriggerAI
|
||||
{
|
||||
@@ -48,6 +34,5 @@ struct at_brh_boulder : AreaTriggerAI
|
||||
|
||||
void AddSC_black_rook_hold()
|
||||
{
|
||||
RegisterCreatureAI(npc_brh_boulder_instance_trash);
|
||||
RegisterAreaTriggerAI(at_brh_boulder);
|
||||
}
|
||||
|
||||
@@ -41,94 +41,6 @@ namespace Spells
|
||||
static constexpr uint32 TeleportPlayerToCrashSite = 102930;
|
||||
}
|
||||
|
||||
/*######
|
||||
## Quest 37446: Lazy Peons
|
||||
## npc_lazy_peon
|
||||
######*/
|
||||
|
||||
enum LazyPeonYells
|
||||
{
|
||||
SAY_SPELL_HIT = 0
|
||||
};
|
||||
|
||||
enum LazyPeon
|
||||
{
|
||||
QUEST_LAZY_PEONS = 37446,
|
||||
GO_LUMBERPILE = 175784,
|
||||
SPELL_BUFF_SLEEP = 17743,
|
||||
SPELL_AWAKEN_PEON = 19938
|
||||
};
|
||||
|
||||
class npc_lazy_peon : public CreatureScript
|
||||
{
|
||||
public:
|
||||
npc_lazy_peon() : CreatureScript("npc_lazy_peon") { }
|
||||
|
||||
CreatureAI* GetAI(Creature* creature) const override
|
||||
{
|
||||
return new npc_lazy_peonAI(creature);
|
||||
}
|
||||
|
||||
struct npc_lazy_peonAI : public ScriptedAI
|
||||
{
|
||||
npc_lazy_peonAI(Creature* creature) : ScriptedAI(creature)
|
||||
{
|
||||
Initialize();
|
||||
}
|
||||
|
||||
void Initialize()
|
||||
{
|
||||
RebuffTimer = 0;
|
||||
work = false;
|
||||
}
|
||||
|
||||
uint32 RebuffTimer;
|
||||
bool work;
|
||||
|
||||
void Reset() override
|
||||
{
|
||||
Initialize();
|
||||
}
|
||||
|
||||
void MovementInform(uint32 /*type*/, uint32 id) override
|
||||
{
|
||||
if (id == 1)
|
||||
work = true;
|
||||
}
|
||||
|
||||
void SpellHit(WorldObject* caster, SpellInfo const* spell) override
|
||||
{
|
||||
if (spell->Id != SPELL_AWAKEN_PEON)
|
||||
return;
|
||||
|
||||
Player* player = caster->ToPlayer();
|
||||
if (player && player->GetQuestStatus(QUEST_LAZY_PEONS) == QUEST_STATUS_INCOMPLETE)
|
||||
{
|
||||
player->KilledMonsterCredit(me->GetEntry(), me->GetGUID());
|
||||
Talk(SAY_SPELL_HIT, caster);
|
||||
me->RemoveAllAuras();
|
||||
if (GameObject* Lumberpile = me->FindNearestGameObject(GO_LUMBERPILE, 20))
|
||||
me->GetMotionMaster()->MovePoint(1, Lumberpile->GetPositionX()-1, Lumberpile->GetPositionY(), Lumberpile->GetPositionZ());
|
||||
}
|
||||
}
|
||||
|
||||
void UpdateAI(uint32 diff) override
|
||||
{
|
||||
if (work == true)
|
||||
me->HandleEmoteCommand(EMOTE_ONESHOT_WORK_CHOPWOOD);
|
||||
if (RebuffTimer <= diff)
|
||||
{
|
||||
DoCast(me, SPELL_BUFF_SLEEP);
|
||||
RebuffTimer = 300000; //Rebuff agian in 5 minutes
|
||||
}
|
||||
else
|
||||
RebuffTimer -= diff;
|
||||
if (!UpdateVictim())
|
||||
return;
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
enum VoodooSpells
|
||||
{
|
||||
SPELL_BREW = 16712, // Special Brew
|
||||
@@ -1368,7 +1280,6 @@ void AddSC_durotar()
|
||||
{
|
||||
using namespace Scripts::Kalimdor::Durotar;
|
||||
|
||||
new npc_lazy_peon();
|
||||
RegisterSpellScript(spell_voodoo);
|
||||
RegisterCreatureAI(npc_mithaka);
|
||||
|
||||
|
||||
@@ -424,39 +424,6 @@ void HandleEmoteNearbyTushuiTrainees(Creature* leader, Emote emote)
|
||||
trainee->HandleEmoteCommand(emote);
|
||||
}
|
||||
|
||||
// 54587 - Tushui Trainee
|
||||
// 65471 - Tushui Trainee
|
||||
struct npc_tushui_leading_trainee : public npc_tushui_huojin_trainee
|
||||
{
|
||||
npc_tushui_leading_trainee(Creature* creature) : npc_tushui_huojin_trainee(creature) { }
|
||||
|
||||
void ScheduleEmoteExecution()
|
||||
{
|
||||
_scheduler.Schedule(1s, [this](TaskContext task)
|
||||
{
|
||||
Emote emote = PlayRandomEmote();
|
||||
HandleEmoteNearbyTushuiTrainees(me, emote);
|
||||
task.Repeat(6s);
|
||||
});
|
||||
}
|
||||
|
||||
void JustReachedHome() override
|
||||
{
|
||||
ScheduleEmoteExecution();
|
||||
}
|
||||
|
||||
void JustAppeared() override
|
||||
{
|
||||
ScheduleEmoteExecution();
|
||||
}
|
||||
|
||||
void JustEngagedWith(Unit* attacker) override
|
||||
{
|
||||
_scheduler.CancelAll();
|
||||
npc_tushui_huojin_trainee::JustEngagedWith(attacker);
|
||||
}
|
||||
};
|
||||
|
||||
// 61411 - Instructor Zhi
|
||||
struct npc_instructor_zhi : public ScriptedAI
|
||||
{
|
||||
@@ -1691,7 +1658,6 @@ void AddSC_zone_the_wandering_isle()
|
||||
|
||||
RegisterCreatureAI(npc_tushui_huojin_trainee);
|
||||
RegisterCreatureAI(npc_huojin_trainee);
|
||||
RegisterCreatureAI(npc_tushui_leading_trainee);
|
||||
RegisterCreatureAI(npc_instructor_zhi);
|
||||
RegisterGameObjectAI(go_edict_of_temperance);
|
||||
RegisterCreatureAI(npc_jaomin_ro);
|
||||
|
||||
Reference in New Issue
Block a user