{"issue":{"title":"[Quest/FIX] Portals to Legion","user":{"login":"Discover-","id":875209,"url":"https://api.github.com/users/Discover-","avatar_url":"https://secure.gravatar.com/avatar/632cbbc372bd6dd95cf2938aef6d9144?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"632cbbc372bd6dd95cf2938aef6d9144"},"created_at":"2011-10-03T18:54:55Z","milestone":null,"labels":[{"name":"Patch-Fix","url":"https://api.github.com/repos/TrinityCore/TrinityCore/labels/Patch-Fix","color":"DDDDDD"},{"name":"Scripts-Miscellaneous","url":"https://api.github.com/repos/TrinityCore/TrinityCore/labels/Scripts-Miscellaneous","color":"d7e102"}],"state":"closed","updated_at":"2011-12-25T00:06:48Z","id":1805387,"html_url":"https://github.com/TrinityCore/TrinityCore/issues/3323","pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"closed_at":"2011-12-25T00:06:48Z","body":"Desolace.\r\n\r\n```cpp\r\n/*######\r\n## go_demon_portal\r\n######*/\r\n\r\nenum DemonPortal\r\n{\r\n    NPC_DEMON_GUARDIAN              = 11937,\r\n\r\n    QUEST_PORTAL_OF_THE_LEGION    = 5581,\r\n};\r\n\r\nclass go_demon_portal : public GameObjectScript\r\n{\r\npublic:\r\n    go_demon_portal() : GameObjectScript(\"go_demon_portal\") { }\r\n\r\n    bool OnGossipHello(Player* player, GameObject* GO)\r\n    {\r\n        if (GO->GetGoType() == GAMEOBJECT_TYPE_GOOBER)\r\n        {\r\n            if (player->GetQuestStatus(QUEST_PORTAL_OF_THE_LEGION) == QUEST_STATUS_INCOMPLETE)\r\n            {\r\n                if (Creature* guardian = player->SummonCreature(NPC_DEMON_GUARDIAN, GO->GetPositionX(), GO->GetPositionY(), GO->GetPositionZ(), 0.0f, TEMPSUMMON_DEAD_DESPAWN, 0))\r\n                    guardian->AI()->AttackStart(player);\r\n            }\r\n        }\r\n        return true;\r\n    }\r\n};\r\n```\r\n\r\n```sql\r\n-- Demon Portals\r\nUPDATE `gameobject_template` SET `ScriptName`='go_demon_portal' WHERE `entry` IN (177243,177365,177369,177397,177398,177399,177400,177366,177367,177368);\r\n```","number":3323,"url":"https://api.github.com/repos/TrinityCore/TrinityCore/issues/3323","comments":8,"assignee":null},"comment":{"user":{"login":"Discover-","id":875209,"url":"https://api.github.com/users/Discover-","avatar_url":"https://secure.gravatar.com/avatar/632cbbc372bd6dd95cf2938aef6d9144?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"632cbbc372bd6dd95cf2938aef6d9144"},"created_at":"2011-12-25T00:06:48Z","updated_at":"2011-12-25T00:06:48Z","id":3269493,"body":"Closed by 173fb48fe2ed2dd63782a93629c4c4da22ccb9d4.","url":"https://api.github.com/repos/TrinityCore/TrinityCore/issues/comments/3269493"},"action":"created"}