rilex 0 Report post Posted May 28, 2020 hi! may i ask how can i call a HelpInfo dialogue that will show on every person online when a map opens up? tnx in advance! Quote Share this post Link to post Share on other sites
Graf 210 Report post Posted May 28, 2020 (edited) @rilex Hello. I think... Example, open fold leiting2 file "ctrl.lua" We can see function "after_create_entry". She have "Notice..". I think, if change "Notice" to "HelpInfo" - you can do "HelpInfo dialogue that will show on every person online when a map opens up" Example: We have: function after_create_entry(entry) local copy_mgr = GetMapEntryCopyObj(entry, 0) local EntryName = " leitin2 " SetMapEntryEventName( entry, EntryName ) map_name, posx, posy, tmap_name = GetMapEntryPosInfo(entry) Notice("lalala ["..posx..","..posy.."] open portal lalala.") --this string end and change to.. Notice(role, 0, "lfllff ["..posx..","..posy.."] open portla lalala.") BUT i not tested.. Edited May 28, 2020 by Graf 1 Quote Share this post Link to post Share on other sites
1g0rS1lv4 68 Report post Posted May 28, 2020 (edited) Quote ** Function.lua function MapOpenWindow(role) local NowTime = os.date("%H:%M") if CheckPortalChaosArgent() == 1 then HelpInfoX(role,0,"Chaos Argent is open! Portal at Icicle_Castle [1368,532]") end end function CheckPortalChaosArgent() local NowTime= os.date("%H%M%S") local Hour = NowTime + 0 local OpenTime = {} OpenTime[1] = 010000 -- 10:00 OpenTime[2] = 050000 -- 5:00 OpenTime[3] = 090000 -- 9:00 OpenTime[4] = 130000 -- 13:00 OpenTime[5] = 170000 -- 17:00 OpenTime[6] = 210000 -- 21:00 for Time = 1,6 do if Hour == OpenTime[Time] then return 1 end end end ** Cha_timer if IsPlayer(role) == 1 then MapOpenWindow(role) end Edited May 29, 2020 by 1g0rS1lv4 1 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
rilex 0 Report post Posted May 29, 2020 hi tnx for your replies. but i still cant seems to make it work. do you have any other way to call it. cuz i cant even bring the helpinfo dialogue out Quote Share this post Link to post Share on other sites
V3ct0r 2,117 Report post Posted June 3, 2020 On 5/29/2020 at 7:52 AM, rilex said: hi tnx for your replies. but i still cant seems to make it work. do you have any other way to call it. cuz i cant even bring the helpinfo dialogue out Hello @rilex! Do you can give more information regarding the problem? 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