{"action":"created","issue":{"url":"https://api.github.com/repos/REGoth-project/REGoth/issues/113","repository_url":"https://api.github.com/repos/REGoth-project/REGoth","labels_url":"https://api.github.com/repos/REGoth-project/REGoth/issues/113/labels{/name}","comments_url":"https://api.github.com/repos/REGoth-project/REGoth/issues/113/comments","events_url":"https://api.github.com/repos/REGoth-project/REGoth/issues/113/events","html_url":"https://github.com/REGoth-project/REGoth/issues/113","id":207189683,"number":113,"title":"Vatras Message Spam: npc_getstatetime/npc_setstatetime","user":{"login":"markusobi","id":16803864,"avatar_url":"https://avatars2.githubusercontent.com/u/16803864?v=3","gravatar_id":"","url":"https://api.github.com/users/markusobi","html_url":"https://github.com/markusobi","followers_url":"https://api.github.com/users/markusobi/followers","following_url":"https://api.github.com/users/markusobi/following{/other_user}","gists_url":"https://api.github.com/users/markusobi/gists{/gist_id}","starred_url":"https://api.github.com/users/markusobi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markusobi/subscriptions","organizations_url":"https://api.github.com/users/markusobi/orgs","repos_url":"https://api.github.com/users/markusobi/repos","events_url":"https://api.github.com/users/markusobi/events{/privacy}","received_events_url":"https://api.github.com/users/markusobi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-02-13T11:25:44Z","updated_at":"2017-05-16T13:47:11Z","closed_at":"2017-05-16T13:47:11Z","body":"As far as I understand the reason behind his message spam is, that `npc_getstatetime` and `npc_setstatetime` are not implemented/registered yet. [npc_setstatetime](https://github.com/REGoth-project/REGoth/blob/master/src/logic/scriptExternals/Stubs.cpp#L1914) is registered but does nothing. \r\nThe Daedalus script function triggering his speaches is the following:\r\n```\r\nfunc int ZS_Preach_Vatras_loop()\r\n{\r\n\tif (Npc_GetStateTime(self) >= 13)\r\n\t{\r\n\t\tif (self.aivar[AIV_TAPOSITION] > 20)\r\n\t\t{\r\n\t\t\tself.aivar[AIV_TAPOSITION] = 0;\r\n\t\t};\r\n\t\r\n\t\tB_Preach_Vatras(self.aivar[AIV_TAPOSITION]);\r\n\t\t\r\n\t\tself.aivar[AIV_TAPOSITION] = self.aivar[AIV_TAPOSITION] + 1;\t\t\r\n\t\t\r\n\t\tNpc_SetStateTime(self, 0);\r\n\t};\r\n\t\r\n\treturn LOOP_CONTINUE;\r\n};\r\n```"},"comment":{"url":"https://api.github.com/repos/REGoth-project/REGoth/issues/comments/301787436","html_url":"https://github.com/REGoth-project/REGoth/issues/113#issuecomment-301787436","issue_url":"https://api.github.com/repos/REGoth-project/REGoth/issues/113","id":301787436,"user":{"login":"markusobi","id":16803864,"avatar_url":"https://avatars2.githubusercontent.com/u/16803864?v=3","gravatar_id":"","url":"https://api.github.com/users/markusobi","html_url":"https://github.com/markusobi","followers_url":"https://api.github.com/users/markusobi/followers","following_url":"https://api.github.com/users/markusobi/following{/other_user}","gists_url":"https://api.github.com/users/markusobi/gists{/gist_id}","starred_url":"https://api.github.com/users/markusobi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markusobi/subscriptions","organizations_url":"https://api.github.com/users/markusobi/orgs","repos_url":"https://api.github.com/users/markusobi/repos","events_url":"https://api.github.com/users/markusobi/events{/privacy}","received_events_url":"https://api.github.com/users/markusobi/received_events","type":"User","site_admin":false},"created_at":"2017-05-16T13:47:11Z","updated_at":"2017-05-16T13:47:11Z","body":"fixed by #180 "}}
{"actor":{"display_login":"markusobi"}}