Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

{Quest}Of Keys and Cages #3540

Closed
Justiciar opened this issue Oct 16, 2011 · 4 comments
Closed

{Quest}Of Keys and Cages #3540

Justiciar opened this issue Oct 16, 2011 · 4 comments

Comments

@Justiciar
Copy link

Dear Sir or Madam,
I have encountered an error while I tried to do this quest.
Accordingly to the quest objective, I need to kill Gjalerbron warriors , retrieve the cages keys and open the 10 Gjalerbron cages in order to rescue 10 Gjalerbron prisoners.
This objective can't be completed due to an error which occur each time I open Gjalerbron cage.
The error is that nothing happens when I open the cages, the Gjalerbron prisoners are not getting outside and not prisoners who rescued count is being made.
If this quest would have worked properly, the prisoners would have made their way out of the cage when a cage was being opened and there would have been a count of prisoners who rescued, but none of this occur.
Sincerely yours,
Justiciar.

wowhead quest link(Alliance):http://www.wowhead.com/quest=11231

wowhead quest link(Horde): http://www.wowhead.com/quest=11265

wowhead quest npc-Gjalerbron prisoner: http://www.wowhead.com/npc=24035

wowhead quest item: http://www.wowhead.com/item=33284

wowhead npcs with the keys: http://www.wowhead.com/npc=23991
http://www.wowhead.com/npc=23990
http://www.wowhead.com/npc=23989

Hash:25cec68193d9d017ac51cda5a49d0d75d2949077

TDB: 335.11.42+

Addons: wg(not tc) / ac1 / tc2 / armory / pvprank

on Linux

@JasperAppec
Copy link
Contributor

Yay works like a train. D:

-- [Q] Of Keys and Cages
UPDATE `gameobject_template` SET `ScriptName`='go_gjalerbron_cage' WHERE `name`='Gjalerbron Cage';
UPDATE `gameobject_template` SET `ScriptName`='go_large_gjalerbron_cage' WHERE `entry`=186490;
DELETE FROM `creature_text` WHERE `entry`=24035;
INSERT INTO `creature_text` (`entry`,`groupid`,`id`,`text`,`type`,`language`,`probability`,`emote`,`duration`,`sound`,`comment`) VALUES
(24035,0,0,"Avenge my friends who have already been sacrificed",12,0,100,0,0,0,"Gjalerbron Prisoner"),
(24035,0,1,"I don't want to be sacrificed",12,0,100,0,0,0,"Gjalerbron Prisoner"),
(24035,0,2,"I don't want to be taken down into the catacombs",12,0,100,0,0,0,"Gjalerbron Prisoner"),
(24035,0,3,"I think I saw a key on one of those Gjalerbron vrykul up top.",12,0,100,0,0,0,"Gjalerbron Prisoner"),
(24035,0,4,"I think I saw a key on one of those vrykul.",12,0,100,0,0,0,"Gjalerbron Prisoner"),
(24035,0,5,"Is there no hero to rescue me?",12,0,100,0,0,0,"Gjalerbron Prisoner"),
(24035,0,6,"My thanks to you, hero",12,0,100,0,0,0,"Gjalerbron Prisoner"),
(24035,0,7,"Oh, thank you, thank you",12,0,100,0,0,0,"Gjalerbron Prisoner"),
(24035,0,8,"Please, let me out of here",12,0,100,0,0,0,"Gjalerbron Prisoner"),
(24035,0,9,"Thank goodness for you",12,0,100,0,0,0,"Gjalerbron Prisoner"),
(24035,0,10,"Thank you. I will not forget this",12,0,100,0,0,0,"Gjalerbron Prisoner"),
(24035,0,11,"The key... you have to find the key",12,0,100,0,0,0,"Gjalerbron Prisoner"),
(24035,0,12,"The vrykul are evil and must be destroyed",12,0,100,0,0,0,"Gjalerbron Prisoner"),
(24035,0,13,"They're performing unholy rites down in the catacombs, and I'm about to be the sacrifice",12,0,100,0,0,0,"Gjalerbron Prisoner"),
(24035,0,14,"This is the end.",12,0,100,0,0,0,"Gjalerbron Prisoner"),
(24035,0,15,"You have to put a stop to this madness before it's too late",12,0,100,0,0,0,"Gjalerbron Prisoner"),
(24035,0,16,"You saved my life",12,0,100,0,0,0,"Gjalerbron Prisoner");
/*######
## go_gjalerbron_cage
######*/

enum OfKeysAndCages
{
    QUEST_OF_KEYS_AND_CAGES = 11231,
    NPC_GJALERBRON_PRISONER = 24035,
    SAY_FREE                = 0,
};

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

    bool OnGossipHello(Player* player, GameObject* go)
    {
        if (Creature* prisoner = go->FindNearestCreature(NPC_GJALERBRON_PRISONER, 1.0f))
        {
            if (player->GetQuestStatus(QUEST_OF_KEYS_AND_CAGES) == QUEST_STATUS_INCOMPLETE)
            {
                go->UseDoorOrButton();

                if (player)
                    player->KilledMonsterCredit(NPC_GJALERBRON_PRISONER, 0);

                prisoner->AI()->Talk(SAY_FREE);
                prisoner->ForcedDespawn(6000);
            }
        }
        return true;
    }
};

/*########
## go_large_gjalerbron_cage
#####*/

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

   bool OnGossipHello(Player *player, GameObject* go)
   {
       if (player->GetQuestStatus(QUEST_OF_KEYS_AND_CAGES) == QUEST_STATUS_INCOMPLETE)
       {
           std::list<Creature*> PrisonerList;
           GetCreatureListWithEntryInGrid(PrisonerList, go, NPC_GJALERBRON_PRISONER, INTERACTION_DISTANCE);
           for (std::list<Creature*>::const_iterator itr = PrisonerList.begin(); itr != PrisonerList.end(); ++itr)
           {
               go->UseDoorOrButton();
               player->KilledMonsterCredit(NPC_GJALERBRON_PRISONER, (*itr)->GetGUID());
               (*itr)->ForcedDespawn(6000);
               (*itr)->AI()->Talk(SAY_FREE);
           }
       }        
       return false;
   }
};

@ghost
Copy link

ghost commented Oct 25, 2011

@ above, Could somebody give this guy a gold medal? He truly deserves it !

WarHead pushed a commit to WarHead/uwom-server that referenced this issue Oct 26, 2011
asido pushed a commit to asido/TrinityCore that referenced this issue Mar 12, 2012
@dr-j
Copy link
Contributor

dr-j commented Nov 22, 2012

I have encountered a new problem with this quest, once cages have been opened and prisoner freed although prisoner respawns cage never resets so cannot be used again

@Aokromes
Copy link
Member

Plz, open a new ticket.

raczman pushed a commit to raczman/TrinityCore that referenced this issue Apr 20, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants