gunnapong 14 Report post Posted August 28, 2021 I don't know where I need to modify the code. that can use command/to open bank ,please help me ,sorry for english Quote Share this post Link to post Share on other sites
gunnapong 14 Report post Posted August 28, 2021 Bump Quote Share this post Link to post Share on other sites
gunnapong 14 Report post Posted August 28, 2021 Help me please Quote Share this post Link to post Share on other sites
Angelix 374 Report post Posted August 29, 2021 If your GameServer has the function, then within your files look for a file called HandleChat or something similar. 1 Quote Share this post Link to post Share on other sites
gunnapong 14 Report post Posted August 29, 2021 thank. brother Quote Share this post Link to post Share on other sites
V3ct0r 2,116 Report post Posted September 6, 2021 Hello, @gunnapong! You need modified GameServer.exe with HandleChat() function. Most likely, you will see a corresponding message when starting GameServer, if this function is present. The function allows you to receive text commands from players via the local chat channel and defined in the file GameServer\resource\script\calculate\functions.lua. -- Get a text input from a player via local chat channel -- @param role is a player's character descriptor -- @param msg is a player's message to the local chat -- @return if 1 then message will be transferred to other players otherwise it will be blocked function HandleChat(role, msg) -- Check if player entered 'bank' command if (msg == "/bank") then OpenBank(role, role) return 0 end return 1 end 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
gunnapong 14 Report post Posted September 9, 2021 On 9/6/2021 at 7:00 PM, V3ct0r said: Hello, @gunnapong! You need modified GameServer.exe with HandleChat() function. Most likely, you will see a corresponding message when starting GameServer, if this function is present. The function allows you to receive text commands from players via the local chat channel and defined in the file GameServer\resource\script\calculate\functions.lua. -- Get a text input from a player via local chat channel -- @param role is a player's character descriptor -- @param msg is a player's message to the local chat -- @return if 1 then message will be transferred to other players otherwise it will be blocked function HandleChat(role, msg) -- Check if player entered 'bank' command if (msg == "/bank") then OpenBank(role, role) return 0 end return 1 end Thank. i want to know How to edit or add function in gameserver.exe? Quote Share this post Link to post Share on other sites
V3ct0r 2,116 Report post Posted September 27, 2021 On 9/9/2021 at 11:48 PM, gunnapong said: Thank. i want to know How to edit or add function in gameserver.exe? This is too hard to explain and is the subject of a separate guide. You need some assembler knowledge and reverse engineering skills. You can find several guides in the 'Guides' section on the forum and in Google. 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