{"action":"created","issue":{"url":"https://api.github.com/repos/otland/forgottenserver/issues/1717","repository_url":"https://api.github.com/repos/otland/forgottenserver","labels_url":"https://api.github.com/repos/otland/forgottenserver/issues/1717/labels{/name}","comments_url":"https://api.github.com/repos/otland/forgottenserver/issues/1717/comments","events_url":"https://api.github.com/repos/otland/forgottenserver/issues/1717/events","html_url":"https://github.com/otland/forgottenserver/issues/1717","id":133527630,"number":1717,"title":"setMaster bug","user":{"login":"PrinterLUA","id":3219662,"avatar_url":"https://avatars.githubusercontent.com/u/3219662?v=3","gravatar_id":"","url":"https://api.github.com/users/PrinterLUA","html_url":"https://github.com/PrinterLUA","followers_url":"https://api.github.com/users/PrinterLUA/followers","following_url":"https://api.github.com/users/PrinterLUA/following{/other_user}","gists_url":"https://api.github.com/users/PrinterLUA/gists{/gist_id}","starred_url":"https://api.github.com/users/PrinterLUA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PrinterLUA/subscriptions","organizations_url":"https://api.github.com/users/PrinterLUA/orgs","repos_url":"https://api.github.com/users/PrinterLUA/repos","events_url":"https://api.github.com/users/PrinterLUA/events{/privacy}","received_events_url":"https://api.github.com/users/PrinterLUA/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/otland/forgottenserver/labels/unconfirmed","name":"unconfirmed","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-02-14T10:22:10Z","updated_at":"2016-02-15T17:44:00Z","closed_at":null,"body":"Hello,\r\n\r\nWell i don't know if this is the right way, but E.x if i want to make a summon not summon and do setMaster(nil). It will still follow the master and it's still target from those monster who targeted when it was summon.\r\n\r\nThanks\r\n\r\n\r\n```\r\nfunction onUse(player, item, fromPosition, target, toPosition, isHotkey)\r\n\tif target:getMaster() then\r\n\t\ttarget:setMaster(nil)\r\n\telse\r\n\t\ttarget:setMaster(player)\r\n\t\t\r\n\tend\r\n\treturn true\r\nend\r\n```"},"comment":{"url":"https://api.github.com/repos/otland/forgottenserver/issues/comments/184321365","html_url":"https://github.com/otland/forgottenserver/issues/1717#issuecomment-184321365","issue_url":"https://api.github.com/repos/otland/forgottenserver/issues/1717","id":184321365,"user":{"login":"PrinterLUA","id":3219662,"avatar_url":"https://avatars.githubusercontent.com/u/3219662?v=3","gravatar_id":"","url":"https://api.github.com/users/PrinterLUA","html_url":"https://github.com/PrinterLUA","followers_url":"https://api.github.com/users/PrinterLUA/followers","following_url":"https://api.github.com/users/PrinterLUA/following{/other_user}","gists_url":"https://api.github.com/users/PrinterLUA/gists{/gist_id}","starred_url":"https://api.github.com/users/PrinterLUA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PrinterLUA/subscriptions","organizations_url":"https://api.github.com/users/PrinterLUA/orgs","repos_url":"https://api.github.com/users/PrinterLUA/repos","events_url":"https://api.github.com/users/PrinterLUA/events{/privacy}","received_events_url":"https://api.github.com/users/PrinterLUA/received_events","type":"User","site_admin":false},"created_at":"2016-02-15T17:44:00Z","updated_at":"2016-02-15T17:44:00Z","body":"The function itself, is not the problem. Since it turns the summon to a monster. But it need to notify the surrouding about the change, as it does when you turn something into a summon:\r\nhttps://github.com/otland/forgottenserver/blob/master/src/monster.cpp#L1977\r\n\r\n@marksamman , or i'm wrong about notifyng."}}