1g0rS1lv4 68 Report post Posted June 13, 2017 Where could i find this script? 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
Onioni 58 Report post Posted June 13, 2017 (edited) wooh this cool if this is really work and update by it self this is cool. if it work I think it come just normally in portal script.. idk tho if it need some update script like "if player +1 then update or if player -1 then update". I'm not sure, first time see this and if its really idk.. Edited June 13, 2017 by Onioni 1 Quote Download: Nightmare Demonic Helm Dimension Pirates Online files: get now New map Project: Flag PK Black Skin 3.1.3 for pko 1: Get now Share this post Link to post Share on other sites
Wantows 22 Report post Posted June 13, 2017 @Angelix Sell it 1 Quote Share this post Link to post Share on other sites
MonkeyCode 453 Report post Posted June 13, 2017 I released one on discord (none production code, just proof of workability). It is the same concept of GetPlayerByName where the data is stored in tables for later retrieval. but there are a few problems that I've discussed with Sultan, 1) I think something to do with memory addy? A long time ago I used luajit ffi to call some C api to check this. I do not remember results 2) there was something with inconsistent writings to the name field of structure. Sometimes it writes/ sometimes it don't. 1 Quote Share this post Link to post Share on other sites
Simon 76 Report post Posted June 13, 2017 32 minutes ago, KONG said: I released one on discord (none production code, just proof of workability). It is the same concept of GetPlayerByName where the data is stored in tables for later retrieval. but there are a few problems that I've discussed with Sultan, 1) I think something to do with memory addy? A long time ago I used luajit ffi to call some C api to check this. I do not remember results 2) there was something with inconsistent writings to the name field of structure. Sometimes it writes/ sometimes it don't. I suggest using KONG's one,it actually works perfectly. 1 Quote Share this post Link to post Share on other sites
BlackBarba 22 Report post Posted January 25, 2018 On 13/06/2017 at 9:33 AM, Simon said: I suggest using KONG's one,it actually works perfectly. where i get it? Quote Share this post Link to post Share on other sites
UchihaJr 2 Report post Posted January 25, 2018 Where to get it ? ye Quote Share this post Link to post Share on other sites
x3w0r 33 Report post Posted January 26, 2018 (edited) entrydata = entrydata or {} SetMapEntryEventNameHook = SetMapEntryEventName function SetMapEntryEventName(entry, name) SetMapEntryEventNameHook(entry, name) map_name, posx, posy, tmap_name = GetMapEntryPosInfo(entry) entrydata[tmap_name] = entry end function GetEntryDataByName(map) return entrydata[map] end function SetPortalName(map, name) local entry = GetEntryDataByName(map) if entry ~= nil then SetMapEntryEventName(entry, name) end end --put this into ctrl.lua of a map function map_copy_run_x( map_copy ) SetPortalName("garnerexample", "Garner - Alive Players: "..GetMapActivePlayer(map_copy).."") end PS:Make sure to run your map with the same map that has the portal to have the function working. Edited January 26, 2018 by x3wor edited 2 1 Quote Share this post Link to post Share on other sites
Eviles 179 Report post Posted January 26, 2018 (edited) @x3worFor what use of cha_timer inside your codes? return values will be nil also on GetEntryDataByName() since entrydata not defined. Edited January 26, 2018 by Satan Quote Share this post Link to post Share on other sites
x3w0r 33 Report post Posted January 26, 2018 39 minutes ago, Satan said: @x3worFor what use of cha_timer inside your codes? return values will be nil also on GetEntryDataByName() since entrydata not defined. Oh wait, didn't pay attention, sec.. Quote Share this post Link to post Share on other sites
x3w0r 33 Report post Posted January 26, 2018 Edited. Quote Share this post Link to post Share on other sites
x3w0r 33 Report post Posted January 26, 2018 5 hours ago, x3wor said: PS:Make sure to run your map with the same map that has the portal to have the function working. Quote Share this post Link to post Share on other sites
BlackBarba 22 Report post Posted January 30, 2018 On 26/01/2018 at 3:48 PM, x3wor said: entrydata = entrydata or {} SetMapEntryEventNameHook = SetMapEntryEventName function SetMapEntryEventName(entry, name) SetMapEntryEventNameHook(entry, name) map_name, posx, posy, tmap_name = GetMapEntryPosInfo(entry) entrydata[tmap_name] = entry end function GetEntryDataByName(map) return entrydata[map] end function SetPortalName(map, name) local entry = GetEntryDataByName(map) if entry ~= nil then SetMapEntryEventName(entry, name) end end --put this into ctrl.lua of a map function map_copy_run_x( map_copy ) SetPortalName("garnerexample", "Garner - Alive Players: "..GetMapActivePlayer(map_copy).."") end PS:Make sure to run your map with the same map that has the portal to have the function working. where i put this code? Quote Share this post Link to post Share on other sites
x3w0r 33 Report post Posted January 30, 2018 First one goes to functions.lua (the very bottom) The second one to your map ctrl.lua If in map_copy_run doesn't work, put it in after_enter_map function in either entry or ctrl.lua Quote Share this post Link to post Share on other sites
Brothers 24 Report post Posted October 22, 2022 For Forsaken city, i change all map to Abandone... right? Quote Share this post Link to post Share on other sites
V3ct0r 2,117 Report post Posted October 25, 2022 On 10/22/2022 at 10:31 PM, Brothers said: For Forsaken city, i change all map to Abandone... right? What are you trying to do? 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