Lua 35 Report post Posted April 7, 2016 (edited) Some1 knows exactly what IsInMap function does ? Edited April 7, 2016 by Lua Quote Share this post Link to post Share on other sites
V3ct0r 2,121 Report post Posted April 7, 2016 Where you did find the function? I guess it checks if player is in some map Quote Some useful links / Полезные ссылки Tips for making a topic in 'Questions & Help' / Рекомендации по созданию тем в разделе "Помощь" Server Advertising Section Rules / Правила раздела "Реклама серверов" Available e-mail domains for registration / Допустимые e-mail домены для регистрации User groups / Группы пользователей User ranks / Звания пользователей "Broken" pictures on the forum / "Битые" изображения на форуме Beware of scammers! / Осторожно, мошенники! My developments / Мои разработки Mods for client and server / Моды для клиента и сервера PKOdev.NET website for Tales of Pirates Server / PKOdev.NET веб-обвязка для сервера Пиратии I do not provide any help in private messages and outside the forum. Use 'Questions & Help' section please. Thank you for understanding! Я не оказываю какую-либо помощь в личных сообщениях и вне форума. Пожалуйста, используйте раздел "Пиратия: Помощь". Благодарю за понимание! Share this post Link to post Share on other sites
Lua 35 Report post Posted April 7, 2016 NpcSdk, inside IsRandInMap function. Quote Share this post Link to post Share on other sites
Jones 36 Report post Posted April 7, 2016 (edited) function IsRandInMap( character, npc, rate, mapname, x, y, w, h ) if rate == nil or mapname == nil or x == nil or y == nil then PRINT( "IsRandInMap: parameter error!" ) SystemNotice( character, "IsRandInMap:Function parameter error!rate, mapname, x, y", rate, mapname, x, y ) return LUA_ERROR end if rate > Rand( 100 ) then return LUA_FALSE end return IsInMap( character, mapname, x, y, w, h ) end Seems like its checking if the player is real, exists, and has a location, character, and in a map Idk if it has a use, but that's my best guess! Edited April 7, 2016 by Jones Quote Share this post Link to post Share on other sites
Jones 36 Report post Posted April 7, 2016 another question that comes up.. what is : LUA_TRUE LUA_FALSE ? Quote Share this post Link to post Share on other sites
V3ct0r 2,121 Report post Posted April 10, 2016 В 07.04.2016в19:02, Jones сказал: another question that comes up.. what is : LUA_TRUE LUA_FALSE ? LUA_TRUE = 1 (boolean true) LUA_FALSE = 0 (boolean false) Quote Some useful links / Полезные ссылки Tips for making a topic in 'Questions & Help' / Рекомендации по созданию тем в разделе "Помощь" Server Advertising Section Rules / Правила раздела "Реклама серверов" Available e-mail domains for registration / Допустимые e-mail домены для регистрации User groups / Группы пользователей User ranks / Звания пользователей "Broken" pictures on the forum / "Битые" изображения на форуме Beware of scammers! / Осторожно, мошенники! My developments / Мои разработки Mods for client and server / Моды для клиента и сервера PKOdev.NET website for Tales of Pirates Server / PKOdev.NET веб-обвязка для сервера Пиратии I do not provide any help in private messages and outside the forum. Use 'Questions & Help' section please. Thank you for understanding! Я не оказываю какую-либо помощь в личных сообщениях и вне форума. Пожалуйста, используйте раздел "Пиратия: Помощь". Благодарю за понимание! Share this post Link to post Share on other sites