Shako 97 Report post Posted August 21, 2016 Hello guys, I'm wondering how to make a function where: When a player logs on, if they haven't logged on, or received the item in 24 hours, it will give this item to him. I think the function would be something like: ON LOGGING ON: Check if the player has gotten the Item from the system in 24H. If they have, do nothing... If they havent, give them item [X]. Could this be implemented into GameServer itself? If not, how should I do it in scripts? I was thinking to do something that is similar to the cooldown in Gyoza etc, but I think there is a better way. Any ideas? Quote Sunny Go! Online pko.host Share this post Link to post Share on other sites
Totoka 152 Report post Posted August 21, 2016 you could use lua + files to storage any kind of data, *whenever you have disk space Quote Discord: andresc Share this post Link to post Share on other sites
V3ct0r 2,117 Report post Posted August 22, 2016 There will be a problem when character moves between different GameServers if we want to use memory. Also use files is bad solution 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
Totoka 152 Report post Posted August 22, 2016 then, maybe by using the quest flags? they are stored into db. you will need also background job in your sqlserver, or some app that removes those flags at 00:00 O'clock Quote Discord: andresc Share this post Link to post Share on other sites
kLabMouse 7 Report post Posted August 22, 2016 2.x servers have something called EXTENDED Attributes. They are Character attributes that are used for daily quests. You can use them for Daily rewards too. Quote Share this post Link to post Share on other sites
Shako 97 Report post Posted August 22, 2016 2 minutes ago, kLabMouse said: 2.x servers have something called EXTENDED Attributes. They are Character attributes that are used for daily quests. You can use them for Daily rewards too. Is it possible to implement into 1.x server files? Quote Sunny Go! Online pko.host Share this post Link to post Share on other sites
kLabMouse 7 Report post Posted August 22, 2016 1.x don't have EXTENDED attributes. But You can probably use some other item Attributes. Like "Evil Crystal" item Quote Share this post Link to post Share on other sites
Shako 97 Report post Posted August 22, 2016 4 minutes ago, kLabMouse said: 1.x don't have EXTENDED attributes. But You can probably use some other item Attributes. Like "Evil Crystal" item ah, okay. thanks @kLabMouse Quote Sunny Go! Online pko.host Share this post Link to post Share on other sites