{"action":"created","issue":{"url":"https://api.github.com/repos/TrinityCore/TrinityCore/issues/20505","repository_url":"https://api.github.com/repos/TrinityCore/TrinityCore","labels_url":"https://api.github.com/repos/TrinityCore/TrinityCore/issues/20505/labels{/name}","comments_url":"https://api.github.com/repos/TrinityCore/TrinityCore/issues/20505/comments","events_url":"https://api.github.com/repos/TrinityCore/TrinityCore/issues/20505/events","html_url":"https://github.com/TrinityCore/TrinityCore/issues/20505","id":261933319,"number":20505,"title":"[3.3.5] DB/Gossip: Shayis Steelfury","user":{"login":"Wyreth","id":32145860,"avatar_url":"https://avatars1.githubusercontent.com/u/32145860?v=4","gravatar_id":"","url":"https://api.github.com/users/Wyreth","html_url":"https://github.com/Wyreth","followers_url":"https://api.github.com/users/Wyreth/followers","following_url":"https://api.github.com/users/Wyreth/following{/other_user}","gists_url":"https://api.github.com/users/Wyreth/gists{/gist_id}","starred_url":"https://api.github.com/users/Wyreth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wyreth/subscriptions","organizations_url":"https://api.github.com/users/Wyreth/orgs","repos_url":"https://api.github.com/users/Wyreth/repos","events_url":"https://api.github.com/users/Wyreth/events{/privacy}","received_events_url":"https://api.github.com/users/Wyreth/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-10-01T17:52:43Z","updated_at":"2017-10-01T19:26:59Z","closed_at":null,"author_association":"NONE","body":"**Description:**\r\n\r\nFix gossip for [Shayis Steelfury](http://www.wowhead.com/npc=7230). She shouldn't refer to players as \"smiths with no skill\" when they don't have Blacksmithing.\r\n\r\nAlso she should only train players with the Armorsmith specialization.\r\n\r\n**Branch(es):** 3.3.5\r\n\r\n**TC rev. hash/commit:** 035993d\r\n\r\n**TDB version:** 335.63\r\n\r\n**Suggested fix**:\r\n```sql\r\nSET @TEXTID := xxx; -- Needs an empty npc_text ID.\r\nDELETE FROM `npc_text` WHERE `ID`=@TEXTID;\r\nINSERT INTO `npc_text` (`ID`, `text0_1`, `BroadcastTextID0`) VALUES\r\n(@TEXTID, \"Yes? I have a breastplate to finish so this had better be good.\", 3985);\r\n\r\nDELETE FROM `gossip_menu` WHERE `MenuID`=1043 AND `TextID` IN (@TEXTID, 1641);\r\nINSERT INTO `gossip_menu` (`MenuID`, `TextID`, `VerifiedBuild`) VALUES\r\n(1043, @TEXTID, 0),\r\n(1043, 1641, 0);\r\n\r\nDELETE FROM `gossip_menu_option` WHERE `MenuID` IN (1043);\r\nINSERT INTO `gossip_menu_option` (`MenuID`, `OptionID`, `OptionIcon`, `OptionText`, `OptionBroadcastTextID`, `OptionType`, `OptionNpcFlag`, `ActionMenuID`, `ActionPoiID`, `BoxCoded`, `BoxMoney`, `BoxText`, `BoxBroadcastTextID`, `VerifiedBuild`) VALUES\r\n(1043, 0, 3, \"Train me.\", 3266, 5, 16, 0, 0, 0, 0, \"\", 0, 0);\r\n\r\nDELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=14 AND `SourceGroup`=1043 AND `SourceEntry` IN (1640, @TEXTID, 1641);\r\nDELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=15 AND `SourceGroup`=1043;\r\nINSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES\r\n(14, 1043, 1640, 0, 0, 7, 0, 164, 1, 0, 0, 0, 0, \"\", \"Show gossip text 1640 if player is a blacksmith AND\"),\r\n(14, 1043, 1640, 0, 0, 25, 0, 9788, 0, 0, 1, 0, 0, \"\", \"Show gossip text 1640 if player does NOT have spell 'Armorsmith'\"),\r\n(14, 1043, @TEXTID, 0, 0, 7, 0, 164, 1, 0, 1, 0, 0, \"\", \"Show gossip text if player is NOT a blacksmith\"),\r\n(14, 1043, 1641, 0, 0, 25, 0, 9788, 0, 0, 0, 0, 0, \"\", \"Show gossip text 1641 if player has spell 'Armorsmith'\"),\r\n(15, 1043, 0, 0, 0, 25, 0, 9788, 0, 0, 0, 0, 0, \"\", \"Show gossip option if player has spell 'Armorsmith'\");\r\n\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/TrinityCore/TrinityCore/issues/comments/333400312","html_url":"https://github.com/TrinityCore/TrinityCore/issues/20505#issuecomment-333400312","issue_url":"https://api.github.com/repos/TrinityCore/TrinityCore/issues/20505","id":333400312,"user":{"login":"tkrokli","id":4903600,"avatar_url":"https://avatars2.githubusercontent.com/u/4903600?v=4","gravatar_id":"","url":"https://api.github.com/users/tkrokli","html_url":"https://github.com/tkrokli","followers_url":"https://api.github.com/users/tkrokli/followers","following_url":"https://api.github.com/users/tkrokli/following{/other_user}","gists_url":"https://api.github.com/users/tkrokli/gists{/gist_id}","starred_url":"https://api.github.com/users/tkrokli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tkrokli/subscriptions","organizations_url":"https://api.github.com/users/tkrokli/orgs","repos_url":"https://api.github.com/users/tkrokli/repos","events_url":"https://api.github.com/users/tkrokli/events{/privacy}","received_events_url":"https://api.github.com/users/tkrokli/received_events","type":"User","site_admin":false},"created_at":"2017-10-01T19:26:59Z","updated_at":"2017-10-01T19:26:59Z","author_association":"MEMBER","body":"`\"[...] this had better be good.\"` -- I can hear the undead greeting voice in my head when reading that. ;-) :-P"}}
{"actor":{"display_login":"tkrokli"}}