{"comment":{"url":"https://api.github.com/repos/cmangos/mangos-wotlk/comments/9143438","html_url":"https://github.com/cmangos/mangos-wotlk/commit/ca4f8c3d8911d63a8b8b9f14d64648ba981f1b3d#commitcomment-9143438","id":9143438,"user":{"login":"Schmoozerd","id":299104,"avatar_url":"https://avatars.githubusercontent.com/u/299104?v=3","gravatar_id":"","url":"https://api.github.com/users/Schmoozerd","html_url":"https://github.com/Schmoozerd","followers_url":"https://api.github.com/users/Schmoozerd/followers","following_url":"https://api.github.com/users/Schmoozerd/following{/other_user}","gists_url":"https://api.github.com/users/Schmoozerd/gists{/gist_id}","starred_url":"https://api.github.com/users/Schmoozerd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Schmoozerd/subscriptions","organizations_url":"https://api.github.com/users/Schmoozerd/orgs","repos_url":"https://api.github.com/users/Schmoozerd/repos","events_url":"https://api.github.com/users/Schmoozerd/events{/privacy}","received_events_url":"https://api.github.com/users/Schmoozerd/received_events","type":"User","site_admin":false},"position":null,"line":null,"path":"","commit_id":"ca4f8c3d8911d63a8b8b9f14d64648ba981f1b3d","created_at":"2015-01-03T19:17:25Z","updated_at":"2015-01-03T19:17:25Z","body":"Yes it must.\r\nYes, but i want to clarify the function's signature first.\r\n\r\nPoke @Grz3s or @virusav\r\nDo you guys know any case where weather should be modified for an event or only in a small area instead a whole zone?\r\n\r\nAssuming nothing else would have to get changed, one would likely use code along the lines of\r\n```\r\n        case TYPE_OSSIRIAN:\r\n            if (uiData == IN_PROGRESS)\r\n                instance->SetWeather(3128, WEATHER_TYPE_STORM, 1.0f, true);\r\n            else\r\n                instance->SetWeather(3128, WEATHER_TYPE_FINE, 0.0f, false);\r\n```\r\nor\r\n```\r\ndiff --git a/scripts/kalimdor/ruins_of_ahnqiraj/instance_ruins_of_ahnqiraj.cpp b/scripts/kalimdor/ruins_of_ahnqiraj/instance_ruins_of_ahnqiraj.cpp\r\nindex 04bdfa6..394a4c6 100644\r\n--- a/scripts/kalimdor/ruins_of_ahnqiraj/instance_ruins_of_ahnqiraj.cpp\r\n+++ b/scripts/kalimdor/ruins_of_ahnqiraj/instance_ruins_of_ahnqiraj.cpp\r\n@@ -175,7 +175,13 @@ void instance_ruins_of_ahnqiraj::SetData(uint32 uiType, uint32 uiData)\r\n         case TYPE_MOAM:\r\n         case TYPE_BURU:\r\n         case TYPE_AYAMISS:\r\n+            m_auiEncounter[uiType] = uiData;\r\n+            break;\r\n         case TYPE_OSSIRIAN:\r\n+            if (uiData == IN_PROGRESS)\r\n+                instance->SetWeather(3128, WEATHER_TYPE_STORM, 1.0f, true);\r\n+            else\r\n+                instance->SetWeather(3128, WEATHER_TYPE_FINE, 0.0f, false);\r\n             m_auiEncounter[uiType] = uiData;\r\n             break;\r\n     }\r\n\r\n```\r\nMaybe you will directly get fine enough results in case of unsetting with \r\n.. SetWeather(3128, WEATHER_TYPE_STORM, 1.0f, false); // Let system roll the next weather when it is time for an update"}}