Jones 36 Report post Posted April 22, 2016 Yeah the question is in the title, What does it actually pull? Quote Share this post Link to post Share on other sites
V3ct0r 2,117 Report post Posted April 22, 2016 function TurnToCha ( role ) local x_role = role if ChaIsBoat ( role ) == 1 then x_role = GetMainCha ( role ) end return x_role end I think it returns character's descriptor if he is in boat. 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
Jones 36 Report post Posted April 22, 2016 38 minutes ago, V3ct0r said: function TurnToCha ( role ) local x_role = role if ChaIsBoat ( role ) == 1 then x_role = GetMainCha ( role ) end return x_role end I think it returns character's descriptor if he is in boat. there are some functions that use local cha_name = GetChaDefaultName ( TurnToCha (t ) instead of local cha_name = GetChaDefaultName ( role ) So my wonder is what it is for it seems to achieve the same thing (pull the character's name) but it feels that TurnToCha is more specific? @V3ct0r Quote Share this post Link to post Share on other sites
Billy 164 Report post Posted April 22, 2016 Using GetChaDefaultName when in a boat gives the boats name, not the chars name. (I used to use this to mess with servers that had an older version of tele delays to tele other players) Quote Share this post Link to post Share on other sites
Jones 36 Report post Posted April 22, 2016 (edited) 54 minutes ago, 7n6 said: Using GetChaDefaultName when in a boat gives the boats name, not the chars name. (I used to use this to mess with servers that had an older version of tele delays to tele other players) so GetChaDefaultName ( role ) on boat = Boat Name and GetChaDefaultName ( TurnToCha ( t [ i ] ) ) on boat = Character's Name? @7n6 Edited April 22, 2016 by Jones Quote Share this post Link to post Share on other sites