Pawnkdka 1 Report post Posted September 5, 2017 How can I add welcome notice? I have seen it in many server. ex: Hey, [Char Name] Welcome to [Server Name]. How can I add this feature? Quote Share this post Link to post Share on other sites
Faller 93 Report post Posted September 6, 2017 (edited) On 05/09/2017 at 3:57 AM, Pawnkdka said: How can I add welcome notice? I have seen it in many server. ex: Hey, [Char Name] Welcome to [Server Name]. How can I add this feature? Hey! I thought it was added by default in every server? Try modifying the following file in your client: scripts\txt\HelpInfo.tx - that's where the welcome message is stored. Good luck! #EDIT I'm pretty sure you can't call character name from that file, but you could give it a try... lol More advanced messages would require a server-side script. Edited September 6, 2017 by Faller 1 Quote Share this post Link to post Share on other sites
1g0rS1lv4 68 Report post Posted September 6, 2017 *Server File\resource\script\calculate *Open AttrCalculate.lua *Seach : CreatCha(role) *add your message. local cha_name = GetChaDefaultName(role) Notice("Name Server: "..cha_name.." welcome to Server Name.") ----------------------------------------------------------| *would stay look more or less like this. *Example: function CreatCha(role) local attr_ap = Attr_ap( role ) + 10 SetCharaAttr( attr_ap, role, ATTR_AP ) AttrRecheck(role) local hp = GetChaAttr( role, ATTR_MXHP ) local sp = GetChaAttr( role, ATTR_MXSP ) SetCharaAttr( hp, role, ATTR_HP ) SetCharaAttr( sp, role, ATTR_SP ) CreatChaSkill(role) local cha_name = GetChaDefaultName(role) Notice("Name Server: "..cha_name.." welcome to Server Name.") end **Message will only appear for new player entering the server. Sorry for bad english =/ 3 Quote Being better than others is for those who are weak; what matters is to be true to yourself. Share this post Link to post Share on other sites
Faller 93 Report post Posted September 6, 2017 16 minutes ago, 1g0rS1lv4 said: *Server File\resource\script\calculate *Open AttrCalculate.lua *Seach : CreatCha(role) *add your message. local cha_name = GetChaDefaultName(role) Notice("Name Server: "..cha_name.." welcome to Server Name.") ----------------------------------------------------------| *would stay look more or less like this. *Example: function CreatCha(role) local attr_ap = Attr_ap( role ) + 10 SetCharaAttr( attr_ap, role, ATTR_AP ) AttrRecheck(role) local hp = GetChaAttr( role, ATTR_MXHP ) local sp = GetChaAttr( role, ATTR_MXSP ) SetCharaAttr( hp, role, ATTR_HP ) SetCharaAttr( sp, role, ATTR_SP ) CreatChaSkill(role) local cha_name = GetChaDefaultName(role) Notice("Name Server: "..cha_name.." welcome to Server Name.") end **Message will only appear for new player entering the server. Sorry for bad english =/ Oh, nice! I thought he was talking about the message shown everytime someone logs... 1 Quote Share this post Link to post Share on other sites
AnaMutaz 7 Report post Posted September 6, 2017 if u looking for every time u log in u want to see the notice on red and system go to ur recourse/UrMapName/ctrl.lua cheak it out 1 Quote Share this post Link to post Share on other sites
Pawnkdka 1 Report post Posted September 7, 2017 10 hours ago, AnaMutaz said: if u looking for every time u log in u want to see the notice on red and system go to ur recourse/UrMapName/ctrl.lua cheak it out Thank you So Much Quote Share this post Link to post Share on other sites
gunnapong 14 Report post Posted August 6, 2022 (edited) Hello, I would like to know if I want a message every time I have a character online. see only that player Where should I write? Edited August 6, 2022 by gunnapong Quote Share this post Link to post Share on other sites
V3ct0r 2,116 Report post Posted August 15, 2022 On 8/6/2022 at 6:43 AM, gunnapong said: Hello, I would like to know if I want a message every time I have a character online. see only that player Where should I write? Open the file GameServer\resource\garner\entry.lua and add the following code: function after_player_login_garner(entry, player_name) Notice(string.format("%s is online!", player_name)) 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 August 15, 2022 21 minutes ago, V3ct0r said: Open the file GameServer\resource\garner\entry.lua and add the following code: function after_player_login_garner(entry, player_name) Notice(string.format("%s is online!", player_name)) end garner I don't have an entry.lua file. @V3ct0r Quote Share this post Link to post Share on other sites
gunnapong 14 Report post Posted August 19, 2022 (edited) I tried inserting it and nothing appears. @V3ct0r Edited August 19, 2022 by gunnapong Quote Share this post Link to post Share on other sites
V3ct0r 2,116 Report post Posted August 21, 2022 Hello @gunnapong! ok, I think to solve this problem you need to create a modification for the GameServer.exe. OR You can also solve the problem using this script: Pay attention to how functions work -- Player entered a map event function private:on_player_entered_map(role, mapdesc, map) -- Player leaved a map event function private:on_player_leaved_map(role, map) BUT You need to come up with a mechanism that will check that the player has connected to the server, not just changed the 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
gunnapong 14 Report post Posted August 21, 2022 What I want When a player enters any map, the system will display a welcome message on the left-hand side of the chat box. @V3ct0r Quote Share this post Link to post Share on other sites
V3ct0r 2,116 Report post Posted August 21, 2022 5 hours ago, gunnapong said: What I want When a player enters any map, the system will display a welcome message on the left-hand side of the chat box. @V3ct0r What is the problem? You have functions after_enter_<map name>() for any map in corresponding ctrl.lua file. This functions are called after player entered a 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
gunnapong 14 Report post Posted August 22, 2022 22 hours ago, V3ct0r said: What is the problem? You have functions after_enter_<map name>() for any map in corresponding ctrl.lua file. This functions are called after player entered a map. My limitation is that only one player who logs in to the map can be seen and not notified across the server. Quote Share this post Link to post Share on other sites
V3ct0r 2,116 Report post Posted August 23, 2022 20 hours ago, gunnapong said: My limitation is that only one player who logs in to the map can be seen and not notified across the server. Sorry, I think I misunderstand you. Can you describe in more detail what the problem is? 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