{"action":"created","issue":{"url":"https://api.github.com/repos/ccshiro/cc-buglist/issues/2151","labels_url":"https://api.github.com/repos/ccshiro/cc-buglist/issues/2151/labels{/name}","comments_url":"https://api.github.com/repos/ccshiro/cc-buglist/issues/2151/comments","events_url":"https://api.github.com/repos/ccshiro/cc-buglist/issues/2151/events","html_url":"https://github.com/ccshiro/cc-buglist/issues/2151","id":124261466,"number":2151,"title":"LUA API: EquipItemByName","user":{"login":"Evolvee","id":1942409,"avatar_url":"https://avatars.githubusercontent.com/u/1942409?v=3","gravatar_id":"","url":"https://api.github.com/users/Evolvee","html_url":"https://github.com/Evolvee","followers_url":"https://api.github.com/users/Evolvee/followers","following_url":"https://api.github.com/users/Evolvee/following{/other_user}","gists_url":"https://api.github.com/users/Evolvee/gists{/gist_id}","starred_url":"https://api.github.com/users/Evolvee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Evolvee/subscriptions","organizations_url":"https://api.github.com/users/Evolvee/orgs","repos_url":"https://api.github.com/users/Evolvee/repos","events_url":"https://api.github.com/users/Evolvee/events{/privacy}","received_events_url":"https://api.github.com/users/Evolvee/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-12-29T20:06:09Z","updated_at":"2015-12-29T23:52:46Z","closed_at":null,"body":"http://wowwiki.wikia.com/wiki/API_EquipItemByName\r\n```\r\nChanges in 3.3.0 Edit When in combat this function now \"picks up\" the item instead of equipping it, similar to PickupInventoryItem. Out of combat, the function behaves as expected. This change was made to address the issue of rogues using \"poison swapping\" addons to increase their DPS.[1]\r\n``` \r\n--> disabled in 3.3.0 (was working in 2.4.3 and I personally used it X years back on Drak´Thul)\r\n\r\nhttp://us.battle.net/wow/en/forum/topic/4081812252\r\n```\r\nEquipItemByName only picks up the item (rather than equipping it) in combat due to Blizzard's restrictions. This was done to prevent Rogues automatically switching weapons in combat.\r\n```\r\nhttp://www.warcraftmovies.com/movieview.php?id=40511\r\n```\r\nMOVIE DESCRIPTION:\r\nhi there.Maybe a few of you don´t know how to do the 'Expose Armor trick' (EA when enemy is gouged/blinded/etc.) so i made a short (and relatively boring :P) how-to movie about it...\r\nhope some of you find it quite usefull!\r\ngreetings, Tetharion\r\nedit: a few additional infos...\r\nof course you have a cooldown after the weapon switch, but it doesn´t matter (you don´t attack within this 1,5 sec. or what is was...) this was recorded on patch 2.0.12 so it DOES work in bc, don´t know what you mean Vexorian ;)\r\ni am no expert in macro writing, maybe the weapon-swap macro can be written better, but they works aswell:\r\n/script if(IsEquippedItem(\"YourStandardMainhand\")) then EquipItemByName(\"YourSwappedMainhand\", 16); EquipItemByName(\"YourSwappedOffhand\", 17); else EquipItemByName(\"YourStandardMainhand\", 16); EquipItemByName(\"YourStandardOffhand\", 17); end\r\nfinally: i know my english is really really bad, sorry for that :-P.\r\n```\r\n\r\nSo... this api \"EquipItemByName\" Is not working on CC test server as it should... it is working without combat but not in combat... in combat, weapon GCD is triggered and error \"spell is not ready yet\" pops up.(now its basicly working as simple command /equip ) \r\nHow it should work: In the one same GCD, it switches weapon and cast begins in the same GCD(  if you fake cast or interrupt that cast, GCD will still be on). In other words: you switch weapons while you cast a spell.\r\n\r\n\r\nvideo :  https://www.youtube.com/watch?v=YgZ68nEEtrw&feature=youtu.be\r\n"},"comment":{"url":"https://api.github.com/repos/ccshiro/cc-buglist/issues/comments/167901541","html_url":"https://github.com/ccshiro/cc-buglist/issues/2151#issuecomment-167901541","issue_url":"https://api.github.com/repos/ccshiro/cc-buglist/issues/2151","id":167901541,"user":{"login":"SuddenDeath","id":9938017,"avatar_url":"https://avatars.githubusercontent.com/u/9938017?v=3","gravatar_id":"","url":"https://api.github.com/users/SuddenDeath","html_url":"https://github.com/SuddenDeath","followers_url":"https://api.github.com/users/SuddenDeath/followers","following_url":"https://api.github.com/users/SuddenDeath/following{/other_user}","gists_url":"https://api.github.com/users/SuddenDeath/gists{/gist_id}","starred_url":"https://api.github.com/users/SuddenDeath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SuddenDeath/subscriptions","organizations_url":"https://api.github.com/users/SuddenDeath/orgs","repos_url":"https://api.github.com/users/SuddenDeath/repos","events_url":"https://api.github.com/users/SuddenDeath/events{/privacy}","received_events_url":"https://api.github.com/users/SuddenDeath/received_events","type":"User","site_admin":false},"created_at":"2015-12-29T23:52:46Z","updated_at":"2015-12-29T23:52:46Z","body":"So you're saying that equipitembyname is the same as /equip ITEM but it does not trigger a GCD when in combat? Or is it only when including a spell cast in the script where you get to bypass the GCD?\r\n\r\nI find it very strange that something that can't be done without a script would be an intended mechanic. Just feels like a shady loophole. Blizzard obviously wanted this fixed, hence the change in 2.4.3.\r\n"}}