{"action":"created","issue":{"url":"https://api.github.com/repos/OpenCollar/opencollar/issues/560","labels_url":"https://api.github.com/repos/OpenCollar/opencollar/issues/560/labels{/name}","comments_url":"https://api.github.com/repos/OpenCollar/opencollar/issues/560/comments","events_url":"https://api.github.com/repos/OpenCollar/opencollar/issues/560/events","html_url":"https://github.com/OpenCollar/opencollar/issues/560","id":95450705,"number":560,"title":"Problem on kidnap","user":{"login":"naofan","id":13367417,"avatar_url":"https://avatars.githubusercontent.com/u/13367417?v=3","gravatar_id":"","url":"https://api.github.com/users/naofan","html_url":"https://github.com/naofan","followers_url":"https://api.github.com/users/naofan/followers","following_url":"https://api.github.com/users/naofan/following{/other_user}","gists_url":"https://api.github.com/users/naofan/gists{/gist_id}","starred_url":"https://api.github.com/users/naofan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/naofan/subscriptions","organizations_url":"https://api.github.com/users/naofan/orgs","repos_url":"https://api.github.com/users/naofan/repos","events_url":"https://api.github.com/users/naofan/events{/privacy}","received_events_url":"https://api.github.com/users/naofan/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/OpenCollar/opencollar/labels/change","name":"change","color":"fbdb09"},{"url":"https://api.github.com/repos/OpenCollar/opencollar/labels/investigating","name":"investigating","color":"fbca04"}],"state":"open","locked":false,"assignee":{"login":"GarvinTwine","id":10353806,"avatar_url":"https://avatars.githubusercontent.com/u/10353806?v=3","gravatar_id":"","url":"https://api.github.com/users/GarvinTwine","html_url":"https://github.com/GarvinTwine","followers_url":"https://api.github.com/users/GarvinTwine/followers","following_url":"https://api.github.com/users/GarvinTwine/following{/other_user}","gists_url":"https://api.github.com/users/GarvinTwine/gists{/gist_id}","starred_url":"https://api.github.com/users/GarvinTwine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GarvinTwine/subscriptions","organizations_url":"https://api.github.com/users/GarvinTwine/orgs","repos_url":"https://api.github.com/users/GarvinTwine/repos","events_url":"https://api.github.com/users/GarvinTwine/events{/privacy}","received_events_url":"https://api.github.com/users/GarvinTwine/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/OpenCollar/opencollar/milestones/7","html_url":"https://github.com/OpenCollar/opencollar/milestones/4.0","labels_url":"https://api.github.com/repos/OpenCollar/opencollar/milestones/7/labels","id":699513,"number":7,"title":"4.0","description":"Hybrid with Disgraced Version.","creator":{"login":"WendyStarfall","id":1100007,"avatar_url":"https://avatars.githubusercontent.com/u/1100007?v=3","gravatar_id":"","url":"https://api.github.com/users/WendyStarfall","html_url":"https://github.com/WendyStarfall","followers_url":"https://api.github.com/users/WendyStarfall/followers","following_url":"https://api.github.com/users/WendyStarfall/following{/other_user}","gists_url":"https://api.github.com/users/WendyStarfall/gists{/gist_id}","starred_url":"https://api.github.com/users/WendyStarfall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WendyStarfall/subscriptions","organizations_url":"https://api.github.com/users/WendyStarfall/orgs","repos_url":"https://api.github.com/users/WendyStarfall/repos","events_url":"https://api.github.com/users/WendyStarfall/events{/privacy}","received_events_url":"https://api.github.com/users/WendyStarfall/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":38,"state":"open","created_at":"2014-06-24T03:01:19Z","updated_at":"2015-07-16T15:11:04Z","due_on":"2015-08-13T22:00:00Z","closed_at":null},"comments":1,"created_at":"2015-07-16T14:52:49Z","updated_at":"2015-07-17T03:30:59Z","closed_at":null,"body":"You can kidnap someone even if you are not near of the victim. They are no risk to fail for the kidnapper. \r\n\r\nExemple of mod on doCapture function in oc.disgraced.kidnap  The kidnaper have to at no more than 3 Meters of the victim.\r\n\r\nA D100 is lauch for see if the kidnapping fail or not. \r\n\r\n\r\ndoCapture(key kKidnapper, string sKidnapper, integer iIsConfirmed) {\r\n    if (llGetListLength(g_lTempOwners)) {\r\n        llMessageLinked(LINK_SET,NOTIFY,\"0\"+\"%WEARERNAME% is already kidnapped, try another time.\",kKidnapper);\r\n        return;\r\n    }\r\n    \r\n    if (llVecDist(llList2Vector(llGetObjectDetails( kKidnapper,[OBJECT_POS] ),0),llGetPos()) > 3 ) { \r\n                llMessageLinked(LINK_SET,NOTIFY,\"0\"+\"You could kidnap %WEARERNAME% if you get a bit closer.\",kKidnapper);\r\n                return;\r\n        }\r\n    \r\n    if (llFrand(100) < 50.0) {\r\n         llMessageLinked(LINK_SET,NOTIFY,\"0\"+\"You try to kidnap %WEARERNAME% , but you fail. Wait a while before try again.\",kKidnapper);\r\n            llMessageLinked(LINK_SET, NOTIFY, \"0\"+\" \"+NameURI(kKidnapper)+\" try to kidnap you but it's fail.Please RP the situation.\",g_kWearer);\r\n                return;\r\n    }\r\n    \r\n    \r\n    if (!iIsConfirmed) {\r\n        Dialog(g_kWearer, \"\\nsecondlife:///app/agent/\"+(string)kKidnapper+\"/about wants to kidnap you...\", [\"Allow\",\"Reject\"], [\"BACK\"], 0, CMD_WEARER, \"AllowKidnapMenu\", kKidnapper, sKidnapper);\r\n    }\r\n    else {\r\n        llMessageLinked(LINK_SET, CMD_OWNER, \"follow \" + (string)kKidnapper, kKidnapper);\r\n        llMessageLinked(LINK_SET, CMD_OWNER, \"yank\", kKidnapper);\r\n        llMessageLinked(LINK_SET, NOTIFY, \"0\"+\"You are at \"+NameURI(kKidnapper)+\"'s whim.\",g_kWearer);\r\n        llMessageLinked(LINK_SET, NOTIFY, \"0\"+\"%WEARERNAME% is at your mercy.\\n\\n/%CHANNEL%%PREFIX%menu\\n/%CHANNEL%%PREFIX%pose\\n/%CHANNEL%%PREFIX_restrictions\\n/%CHANNEL%%PREFIX_sit\\n/%CHANNEL%%PREFIX%help\\n\\nNOTE: During kidnap RP %WEARERNAME% cannot refuse your teleport offers and you will keep full control. To end the kidnapping, please type: /%CHANNEL%%PREFIX%kidnap release\\n\\nHave fun!\\n\", kKidnapper);\r\n        g_lTempOwners+=[kKidnapper,sKidnapper];\r\n        saveTempOwners();\r\n        llSetTimerEvent(0.0);\r\n    }\r\n}\r\n"},"comment":{"url":"https://api.github.com/repos/OpenCollar/opencollar/issues/comments/122159686","html_url":"https://github.com/OpenCollar/opencollar/issues/560#issuecomment-122159686","issue_url":"https://api.github.com/repos/OpenCollar/opencollar/issues/560","id":122159686,"user":{"login":"GarvinTwine","id":10353806,"avatar_url":"https://avatars.githubusercontent.com/u/10353806?v=3","gravatar_id":"","url":"https://api.github.com/users/GarvinTwine","html_url":"https://github.com/GarvinTwine","followers_url":"https://api.github.com/users/GarvinTwine/followers","following_url":"https://api.github.com/users/GarvinTwine/following{/other_user}","gists_url":"https://api.github.com/users/GarvinTwine/gists{/gist_id}","starred_url":"https://api.github.com/users/GarvinTwine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GarvinTwine/subscriptions","organizations_url":"https://api.github.com/users/GarvinTwine/orgs","repos_url":"https://api.github.com/users/GarvinTwine/repos","events_url":"https://api.github.com/users/GarvinTwine/events{/privacy}","received_events_url":"https://api.github.com/users/GarvinTwine/received_events","type":"User","site_admin":false},"created_at":"2015-07-17T03:30:59Z","updated_at":"2015-07-17T03:30:59Z","body":"Thanks, \r\ngood call and I do agree that the physical distance between kidnapper and kidnappee should be taken in account and add your first addition with a distance of 10m which is Whisper range.\r\n\r\nOn the randomizing fail/success... this needs some discussion imho:\r\nWhat's the point if someone wants to kidnap if she/he has to try once or 3 times, it's only clicking anyway... if you want to roleplay you roleplay and really do not need the collar to spam messages around when one tries and a random generator says \"you fail\".\r\n\r\nAnyway if we agreed on this there are further options to discuss:\r\n1) Is it random failing only if vulnerable or always (when not vulnerable the wearer can deny to be kidnapped anyway). \r\n2) Does the odds to succeed change by distance?  (e.g.: starting at 10m with a change of 1:3 to succeed, 8m - 2:3, 6m - 3:3, 4m 3:2.  2m - 3:1 as best value)"}}