{"action":"created","issue":{"url":"https://api.github.com/repos/themanaworld/tmwa/issues/52","labels_url":"https://api.github.com/repos/themanaworld/tmwa/issues/52/labels{/name}","comments_url":"https://api.github.com/repos/themanaworld/tmwa/issues/52/comments","events_url":"https://api.github.com/repos/themanaworld/tmwa/issues/52/events","html_url":"https://github.com/themanaworld/tmwa/issues/52","id":67840155,"number":52,"title":"need a way to check when the player is doing nothing","user":{"login":"mekolat","id":3507758,"avatar_url":"https://avatars.githubusercontent.com/u/3507758?v=3","gravatar_id":"","url":"https://api.github.com/users/mekolat","html_url":"https://github.com/mekolat","followers_url":"https://api.github.com/users/mekolat/followers","following_url":"https://api.github.com/users/mekolat/following{/other_user}","gists_url":"https://api.github.com/users/mekolat/gists{/gist_id}","starred_url":"https://api.github.com/users/mekolat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mekolat/subscriptions","organizations_url":"https://api.github.com/users/mekolat/orgs","repos_url":"https://api.github.com/users/mekolat/repos","events_url":"https://api.github.com/users/mekolat/events{/privacy}","received_events_url":"https://api.github.com/users/mekolat/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-11T22:29:01Z","updated_at":"2015-04-23T12:45:41Z","closed_at":null,"body":"Take a look at [parua.txt](https://github.com/themanaworld/tmwa-server-data/blob/master/world/map/npc/029-3/parua.txt#L342). To detect if you are idle it checks the position you have at the start of the round and compares it to the position you had at the start of the previous round. This is problematic because even if you are moving you can be detected as idle because you walked on the same tile.\r\n\r\nTo remedy to this we need builtin that checks if the player is idle. Hercules's [checkidle](https://github.com/HerculesWS/Hercules/blob/master/src/map/script.c#L16136) builtin would probably be a good choice. \r\n\r\n@wushin "},"comment":{"url":"https://api.github.com/repos/themanaworld/tmwa/issues/comments/95574255","html_url":"https://github.com/themanaworld/tmwa/issues/52#issuecomment-95574255","issue_url":"https://api.github.com/repos/themanaworld/tmwa/issues/52","id":95574255,"user":{"login":"Deepthought-TMW","id":12018781,"avatar_url":"https://avatars.githubusercontent.com/u/12018781?v=3","gravatar_id":"","url":"https://api.github.com/users/Deepthought-TMW","html_url":"https://github.com/Deepthought-TMW","followers_url":"https://api.github.com/users/Deepthought-TMW/followers","following_url":"https://api.github.com/users/Deepthought-TMW/following{/other_user}","gists_url":"https://api.github.com/users/Deepthought-TMW/gists{/gist_id}","starred_url":"https://api.github.com/users/Deepthought-TMW/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Deepthought-TMW/subscriptions","organizations_url":"https://api.github.com/users/Deepthought-TMW/orgs","repos_url":"https://api.github.com/users/Deepthought-TMW/repos","events_url":"https://api.github.com/users/Deepthought-TMW/events{/privacy}","received_events_url":"https://api.github.com/users/Deepthought-TMW/received_events","type":"User","site_admin":false},"created_at":"2015-04-23T12:45:41Z","updated_at":"2015-04-23T12:45:41Z","body":"Why not take positions of players set @candor_oldx, @candor_x; set @candor_oldy, @candor_y; after the summoning of monsters. Add a small time delay before taking the positions. Otherwise make candor_x, candor_y arrays and take position of players in some time intervel and use boolean logic to determine whether they are idle or not."}}