TrinityCore/TrinityCore — Issue #3707: [Quest/FIX] Ebon Blade Prisoners
Author: Discover-
Created: 2011-10-25 22:29:34+00:00
State: open

Text here, gah.

```cpp
/*######
## go_jotunheim_cage
######*/

enum EbonBladePrisoners
{
QUEST_EBON_BLADE_PRISONERS = 12982,
NPC_EBON_BLADE_PRISONER = 30186,
};

class go_jotunheim_cage : public GameObjectScript
{
public:
go_jotunheim_cage() : GameObjectScript("go_jotunheim_cage") { }

bool OnGossipHello(Player* player, GameObject* go)
{
if (player->GetQuestStatus(QUEST_EBON_BLADE_PRISONERS) == QUEST_STATUS_INCOMPLETE)
{
go->UseDoorOrButton();
if (player)
player->KilledMonsterCredit(NPC_EBON_BLADE_PRISONER, 0);
}
return true;
}
};
```

```sql
-- [Q] Ebon Blade Prisoners
UPDATE `gameobject_template` SET `ScriptName`='go_jotunheim_cage' WHERE `entry`=192135;
```