{"action":"created","issue":{"url":"https://api.github.com/repos/TimothyLuke/GnomeSequencer-Enhanced/issues/479","repository_url":"https://api.github.com/repos/TimothyLuke/GnomeSequencer-Enhanced","labels_url":"https://api.github.com/repos/TimothyLuke/GnomeSequencer-Enhanced/issues/479/labels{/name}","comments_url":"https://api.github.com/repos/TimothyLuke/GnomeSequencer-Enhanced/issues/479/comments","events_url":"https://api.github.com/repos/TimothyLuke/GnomeSequencer-Enhanced/issues/479/events","html_url":"https://github.com/TimothyLuke/GnomeSequencer-Enhanced/issues/479","id":367536500,"node_id":"MDU6SXNzdWUzNjc1MzY1MDA=","number":479,"title":"detect cd skills","user":{"login":"Trigun87","id":33032691,"node_id":"MDQ6VXNlcjMzMDMyNjkx","avatar_url":"https://avatars3.githubusercontent.com/u/33032691?v=4","gravatar_id":"","url":"https://api.github.com/users/Trigun87","html_url":"https://github.com/Trigun87","followers_url":"https://api.github.com/users/Trigun87/followers","following_url":"https://api.github.com/users/Trigun87/following{/other_user}","gists_url":"https://api.github.com/users/Trigun87/gists{/gist_id}","starred_url":"https://api.github.com/users/Trigun87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Trigun87/subscriptions","organizations_url":"https://api.github.com/users/Trigun87/orgs","repos_url":"https://api.github.com/users/Trigun87/repos","events_url":"https://api.github.com/users/Trigun87/events{/privacy}","received_events_url":"https://api.github.com/users/Trigun87/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-10-07T09:21:05Z","updated_at":"2018-10-07T21:30:08Z","closed_at":null,"author_association":"NONE","body":"is possible to prevent gse go to next line of the code if the skill is in gcd instead cd (or other reason)?\r\nfor ex i have 5 skill (1,2,3,4,5) all with 20 sec cd each and skill 6 without cd \r\ni do a macro like that\r\n/cast 1\r\n/cast 2\r\n/cast 3\r\n/cast 4\r\n/cast 5\r\n/cast 6\r\nand i want use the skill in this order but if i press fast on the button during the gcd it spam 6 or use in a different order\r\n(like old macros in vanilla/tbc cast the first skill out of cd of the order)\r\n"},"comment":{"url":"https://api.github.com/repos/TimothyLuke/GnomeSequencer-Enhanced/issues/comments/427688749","html_url":"https://github.com/TimothyLuke/GnomeSequencer-Enhanced/issues/479#issuecomment-427688749","issue_url":"https://api.github.com/repos/TimothyLuke/GnomeSequencer-Enhanced/issues/479","id":427688749,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNzY4ODc0OQ==","user":{"login":"TimothyLuke","id":573717,"node_id":"MDQ6VXNlcjU3MzcxNw==","avatar_url":"https://avatars2.githubusercontent.com/u/573717?v=4","gravatar_id":"","url":"https://api.github.com/users/TimothyLuke","html_url":"https://github.com/TimothyLuke","followers_url":"https://api.github.com/users/TimothyLuke/followers","following_url":"https://api.github.com/users/TimothyLuke/following{/other_user}","gists_url":"https://api.github.com/users/TimothyLuke/gists{/gist_id}","starred_url":"https://api.github.com/users/TimothyLuke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TimothyLuke/subscriptions","organizations_url":"https://api.github.com/users/TimothyLuke/orgs","repos_url":"https://api.github.com/users/TimothyLuke/repos","events_url":"https://api.github.com/users/TimothyLuke/events{/privacy}","received_events_url":"https://api.github.com/users/TimothyLuke/received_events","type":"User","site_admin":false},"created_at":"2018-10-07T21:30:08Z","updated_at":"2018-10-07T21:30:08Z","author_association":"OWNER","body":"Hi Trigun87,\n\nYou’re not getting it.  You can program up a macro to a button but once combat starts you can’t change how that executes.  \n\nA combat sandbox comes into effect where only certain parts of the api are available.  GetSpellInfo will tell you the information you want to see but that is not available within the combat sandbox.  As soon as your code calls this it can no longer run in the sand box and it can’t jump to a particular line.  Same with time functions.  Just getting the current time pushes you outside the sandbox and your code can no longer move to a particular lone.  Checking to see if x time had elapsed pushes you outside of the sandbox.  \n\nCalling any of these types of functions is the same as checking for a proc.  If you are in combat and want to do anything that changes the behaviour of your button you need to work with the limited set of functions and data that is available within the sandbox.  Once you are outside the sandbox and you can’t change how a click event functions.\n\nWeakauras for example lives totally outside the sandbox.  It can do nothing in a click sense all it can do is draw non interactive elements on the screen and play sounds.  \n\n> onclick: {skill1:15sec; skill2:10sec; .... } sort and get the lowest cd with hightest priority (ofc u don't do that in a macro but with lua code)\n> \n\nIn vanilla wow you could do this but it has been explicitly blocked since BC.  From BC on once you are in combat you have access to add, delete, multiply, divide, table add, table remove, table iterate.  You can tell the table that lime - has a 10sec cooldown and line 2 has a 15sec cooldown but once you know what the time is your lua code can’t tell the button to go to the appropriate line.\n\n\n\nTimothy Minahan\nM 0406 413 680  |  E timothy@minahan.net\n\n> On 8 Oct 2018, at 12:38 am, Trigun87 <notifications@github.com> wrote:\n> \n> i still think it can be implemented ^^ u don't need to do the action on proc but u can do the check on the click of the button\n> instead of get the line[i+1] u can scan the cd of all the skills and go to the line[n] with the less cd and better priority\n> onclick: {skill1:15sec; skill2:10sec; .... } sort and get the lowest cd with hightest priority (ofc u don't do that in a macro but with lua code)\n> btw i don't know what part of the code do the nextline so i don't know how is implemented right now :-P\n> \n> —\n> You are receiving this because you commented.\n> Reply to this email directly, view it on GitHub, or mute the thread.\n"}}
{"actor":{"display_login":"TimothyLuke"}}