Core/Scripts: Add missing creature_text

This commit is contained in:
Vincent_Michael committed 2012-12-07 19:41:30 +01:00
1 parent 3199c9d563
commit 0aea6c8512
2 files changed
+61 -36

No files matched your search

@@ -0,0 +1,22 @@
DELETE FROM `creature_text` WHERE `entry` IN (12428,12423,12430,12427,12429);
INSERT INTO `creature_text` (`entry`, `groupid`, `id`, `text`, `type`, `language`, `probability`, `emote`, `duration`, `sound`, `comment`) VALUES
-- Deathguard Kel
(12428, 0, 0, 'Thank you! Thank you, $GPriest:Priestess;. Now I can take on those gnolls with your power to back me!', 12, 1, 100, 1, 0, 0, 'Deathguard Kel - SAY_THANKS'),
(12428, 1, 0, 'Farewell to you, and may shadow always protect you!', 12, 1, 100, 3, 0, 0, 'Deathguard Kel - SAY_GOODBYE'),
(12428, 2, 0, 'Ah, $GPriest:Priestess; you came along just in time. I appreciate it.', 12, 0, 100, 2, 0, 0, 'Deathguard Kel - SAY_HEALED'),
-- Guard Robert
(12423, 0, 0, 'Thank you! Thank you, $GPriest:Priestess;. Now I can take on those murlocs with the Light on my side!', 12, 7, 100, 1, 0, 0, 'Guard Roberts - SAY_THANKS'),
(12423, 1, 0, 'Farewell to you, and may the Light be with you always.', 12, 7, 100, 3, 0, 0, 'Guard Roberts - SAY_GOODBYE'),
(12423, 2, 0, 'Ah, $GPriest:Priestess; you came along just in time. I appreciate it.', 12, 0, 100, 2, 0, 0, 'Guard Robert - SAY_HEALED'),
-- Grunt Kor'ja
(12430, 0, 0, 'Thank you! Thank you, $GPriest:Priestess;. Now I can take on those humans with your power to back me!', 12, 7, 100, 0, 0, 0, 'Grunt Kor''ja - SAY_THANKS'),
(12430, 1, 0, 'Farewell to you, and may our ancestors be with you always!', 12, 1, 100, 3, 0, 0, 'Grunt Kor''ja - SAY_GOODBYE'),
(12430, 2, 0, 'Ah, $GPriest:Priestess; you came along just in time. I appreciate it.', 12, 0, 100, 2, 0, 0, 'Grunt Kor''ja - SAY_HEALED'),
-- Mountaineer Dol
(12427, 0, 0, 'Thank you! Thank you, $GPriest:Priestess;. Now I can take on those wendigo with the Light on my side!', 12, 7, 100, 1, 0, 0, 'Mountaineer Dolf - SAY_THANKS'),
(12427, 1, 0, 'Farewell to you, and may the Light be with you always.', 12, 7, 100, 3, 0, 0, 'Mountaineer Dolf - SAY_GOODBYE'),
(12427, 2, 0, 'Ah, $GPriest:Priestess; you came along just in time. I appreciate it.', 12, 0, 100, 2, 0, 0, 'Mountaineer Dol - SAY_HEALED'),
-- Sentinel Shaya
(12429, 0, 0, 'Thank you! Thank you, $GPriest:Priestess;. Now I can take on those corrupt timberlings with Elune''s power behind me!', 12, 2, 100, 1, 0, 0, 'Sentinel Shaya - SAY_THANKS'),
(12429, 1, 0, 'Farewell to you, and may Elune be with you always.', 12, 2, 100, 3, 0, 0, 'Sentinel Shaya - SAY_GOODBYE'),
(12429, 2, 0, 'Ah, $GPriest:Priestess; you came along just in time. I appreciate it.', 12, 0, 100, 2, 0, 0, 'Sentinel Shaya - SAY_HEALED');
+39 -36
View File
@@ -883,7 +883,7 @@ void npc_doctor::npc_doctorAI::UpdateAI(uint32 const diff)
//TODO: get text for each NPC
enum eGarments
enum Garments
{
SPELL_LESSER_HEAL_R2 = 2052,
SPELL_FORTITUDE_R1 = 1243,
@@ -900,10 +900,10 @@ enum eGarments
ENTRY_KORJA = 12430,
ENTRY_DG_KEL = 12428,
//used by 12429, 12423, 12427, 12430, 12428, but signed for 12429
//SAY_HEALED = 0,
//SAY_THANKS = 1,
//SAY_GOODBYE = 2
// used by 12429, 12423, 12427, 12430, 12428, but signed for 12429
SAY_THANKS = 0,
SAY_GOODBYE = 1,
SAY_HEALED = 2,
};
class npc_garments_of_quests : public CreatureScript
@@ -913,7 +913,10 @@ public:
struct npc_garments_of_questsAI : public npc_escortAI
{
npc_garments_of_questsAI(Creature* creature) : npc_escortAI(creature) {Reset();}
npc_garments_of_questsAI(Creature* creature) : npc_escortAI(creature)
{
Reset();
}
uint64 CasterGUID;
@@ -932,15 +935,15 @@ public:
RunAwayTimer = 5000;
me->SetStandState(UNIT_STAND_STATE_KNEEL);
//expect database to have RegenHealth=0
// expect database to have RegenHealth=0
me->SetHealth(me->CountPctFromMaxHealth(70));
}
void EnterCombat(Unit* /*who*/) {}
void EnterCombat(Unit* /*who*/) { }
void SpellHit(Unit* caster, SpellInfo const* Spell)
void SpellHit(Unit* caster, SpellInfo const* spell)
{
if (Spell->Id == SPELL_LESSER_HEAL_R2 || Spell->Id == SPELL_FORTITUDE_R1)
if (spell->Id == SPELL_LESSER_HEAL_R2 || spell->Id == SPELL_FORTITUDE_R1)
{
//not while in combat
if (me->isInCombat())
@@ -957,16 +960,16 @@ public:
case ENTRY_SHAYA:
if (player->GetQuestStatus(QUEST_MOON) == QUEST_STATUS_INCOMPLETE)
{
if (IsHealed && !CanRun && Spell->Id == SPELL_FORTITUDE_R1)
if (IsHealed && !CanRun && spell->Id == SPELL_FORTITUDE_R1)
{
//Talk(SAY_THANKS, caster->GetGUID());
Talk(SAY_THANKS, caster->GetGUID());
CanRun = true;
}
else if (!IsHealed && Spell->Id == SPELL_LESSER_HEAL_R2)
else if (!IsHealed && spell->Id == SPELL_LESSER_HEAL_R2)
{
CasterGUID = caster->GetGUID();
me->SetStandState(UNIT_STAND_STATE_STAND);
//Talk(SAY_HEALED, caster->GetGUID());
Talk(SAY_HEALED, caster->GetGUID());
IsHealed = true;
}
}
@@ -974,16 +977,16 @@ public:
case ENTRY_ROBERTS:
if (player->GetQuestStatus(QUEST_LIGHT_1) == QUEST_STATUS_INCOMPLETE)
{
if (IsHealed && !CanRun && Spell->Id == SPELL_FORTITUDE_R1)
if (IsHealed && !CanRun && spell->Id == SPELL_FORTITUDE_R1)
{
//Talk(SAY_THANKS, caster->GetGUID());
Talk(SAY_THANKS, caster->GetGUID());
CanRun = true;
}
else if (!IsHealed && Spell->Id == SPELL_LESSER_HEAL_R2)
else if (!IsHealed && spell->Id == SPELL_LESSER_HEAL_R2)
{
CasterGUID = caster->GetGUID();
me->SetStandState(UNIT_STAND_STATE_STAND);
//Talk(SAY_HEALED, caster->GetGUID());
Talk(SAY_HEALED, caster->GetGUID());
IsHealed = true;
}
}
@@ -991,16 +994,16 @@ public:
case ENTRY_DOLF:
if (player->GetQuestStatus(QUEST_LIGHT_2) == QUEST_STATUS_INCOMPLETE)
{
if (IsHealed && !CanRun && Spell->Id == SPELL_FORTITUDE_R1)
if (IsHealed && !CanRun && spell->Id == SPELL_FORTITUDE_R1)
{
//Talk(SAY_THANKS, caster->GetGUID());
Talk(SAY_THANKS, caster->GetGUID());
CanRun = true;
}
else if (!IsHealed && Spell->Id == SPELL_LESSER_HEAL_R2)
else if (!IsHealed && spell->Id == SPELL_LESSER_HEAL_R2)
{
CasterGUID = caster->GetGUID();
me->SetStandState(UNIT_STAND_STATE_STAND);
//Talk(SAY_HEALED, caster->GetGUID());
Talk(SAY_HEALED, caster->GetGUID());
IsHealed = true;
}
}
@@ -1008,16 +1011,16 @@ public:
case ENTRY_KORJA:
if (player->GetQuestStatus(QUEST_SPIRIT) == QUEST_STATUS_INCOMPLETE)
{
if (IsHealed && !CanRun && Spell->Id == SPELL_FORTITUDE_R1)
if (IsHealed && !CanRun && spell->Id == SPELL_FORTITUDE_R1)
{
//Talk(SAY_THANKS, caster->GetGUID());
Talk(SAY_THANKS, caster->GetGUID());
CanRun = true;
}
else if (!IsHealed && Spell->Id == SPELL_LESSER_HEAL_R2)
else if (!IsHealed && spell->Id == SPELL_LESSER_HEAL_R2)
{
CasterGUID = caster->GetGUID();
me->SetStandState(UNIT_STAND_STATE_STAND);
//Talk(SAY_HEALED, caster->GetGUID());
Talk(SAY_HEALED, caster->GetGUID());
IsHealed = true;
}
}
@@ -1025,23 +1028,23 @@ public:
case ENTRY_DG_KEL:
if (player->GetQuestStatus(QUEST_DARKNESS) == QUEST_STATUS_INCOMPLETE)
{
if (IsHealed && !CanRun && Spell->Id == SPELL_FORTITUDE_R1)
if (IsHealed && !CanRun && spell->Id == SPELL_FORTITUDE_R1)
{
//Talk(SAY_THANKS, caster->GetGUID());
Talk(SAY_THANKS, caster->GetGUID());
CanRun = true;
}
else if (!IsHealed && Spell->Id == SPELL_LESSER_HEAL_R2)
else if (!IsHealed && spell->Id == SPELL_LESSER_HEAL_R2)
{
CasterGUID = caster->GetGUID();
me->SetStandState(UNIT_STAND_STATE_STAND);
//Talk(SAY_HEALED, caster->GetGUID());
Talk(SAY_HEALED, caster->GetGUID());
IsHealed = true;
}
}
break;
}
//give quest credit, not expect any special quest objectives
// give quest credit, not expect any special quest objectives
if (CanRun)
player->TalkedToCreature(me->GetEntry(), me->GetGUID());
}
@@ -1064,19 +1067,19 @@ public:
switch (me->GetEntry())
{
case ENTRY_SHAYA:
//Talk(SAY_GOODBYE, unit->GetGUID());
Talk(SAY_GOODBYE, unit->GetGUID());
break;
case ENTRY_ROBERTS:
//Talk(SAY_GOODBYE, unit->GetGUID());
Talk(SAY_GOODBYE, unit->GetGUID());
break;
case ENTRY_DOLF:
//Talk(SAY_GOODBYE, unit->GetGUID());
Talk(SAY_GOODBYE, unit->GetGUID());
break;
case ENTRY_KORJA:
//Talk(SAY_GOODBYE, unit->GetGUID());
Talk(SAY_GOODBYE, unit->GetGUID());
break;
case ENTRY_DG_KEL:
//Talk(SAY_GOODBYE, unit->GetGUID());
Talk(SAY_GOODBYE, unit->GetGUID());
break;
}