Skip to content

Commit

Permalink
Scripts/Azuremyst Isle: Actually fixed what was stated in last commit :P
Browse files Browse the repository at this point in the history
  • Loading branch information
kaelima committed Jun 2, 2011
1 parent 843d428 commit 3e20e4e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
2 changes: 2 additions & 0 deletions sql/updates/world/2011_06_02_00_world_gameobject_template.sql
@@ -0,0 +1,2 @@
-- Set sniffed flag for Bristlelimb Cage
UPDATE `gameobject_template` SET `flags`=32 WHERE `entry`=181714;
13 changes: 7 additions & 6 deletions src/server/scripts/Kalimdor/azuremyst_isle.cpp
Expand Up @@ -655,6 +655,7 @@ class npc_death_ravager : public CreatureScript
/*########
## Quest: The Prophecy of Akida
########*/

enum BristlelimbCage
{
QUEST_THE_PROPHECY_OF_AKIDA = 9544,
Expand All @@ -678,12 +679,15 @@ class npc_stillpine_capitive : public CreatureScript
{
npc_stillpine_capitiveAI(Creature* creature) : ScriptedAI(creature)
{
if (GameObject* cage = me->FindNearestGameObject(GO_BRISTELIMB_CAGE, 5.0f))
cage->UseDoorOrButton(); // This may seem strange but is actually closing door.
}

void Reset()
{
if (GameObject* cage = me->FindNearestGameObject(GO_BRISTELIMB_CAGE, 5.0f))
{
cage->SetLootState(GO_JUST_DEACTIVATED);
cage->SetGoState(GO_STATE_READY);
}
_events.Reset();
_player = NULL;
_movementComplete = false;
Expand All @@ -697,7 +701,7 @@ class npc_stillpine_capitive : public CreatureScript
_player = owner;
}
Position pos;
me->GetNearPosition(pos, 3.5f, 0.0f);
me->GetNearPosition(pos, 3.0f, 0.0f);
me->GetMotionMaster()->MovePoint(POINT_INIT, pos);
}

Expand All @@ -709,9 +713,6 @@ class npc_stillpine_capitive : public CreatureScript
if (_player)
_player->KilledMonsterCredit(me->GetEntry(), me->GetGUID());

if (me->GetMotionMaster()->GetCurrentMovementGeneratorType() == POINT_MOTION_TYPE)
me->GetMotionMaster()->MovementExpired();

_movementComplete = true;
_events.ScheduleEvent(EVENT_DESPAWN, 3500);
}
Expand Down

2 comments on commit 3e20e4e

@Bizzy
Copy link
Contributor

@Bizzy Bizzy commented on 3e20e4e Jun 2, 2011

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good work ;) tnx

@durotar
Copy link
Contributor

@durotar durotar commented on 3e20e4e Jun 3, 2011

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice xD thank you kaelima...

Please sign in to comment.