Nikito 0 Report post Posted April 27, 2020 Hello everyone, well my question is quite particular.. I want to make the skill Energy Shield be like permanent, bcos the normal usage is that when enter a portal it wears off and needs to be use again. I want to be Like crusader´s Stealth... that when enters a portal it keeps to be on Any clues how or where i look into? Thanks in advance Quote Share this post Link to post Share on other sites
Nikito 0 Report post Posted April 29, 2020 Bump? No1? Not even a clue ? Quote Share this post Link to post Share on other sites
MonkeyCode 453 Report post Posted April 29, 2020 This requires source level edits (GameServer) at the State handling upon entering maps. Some state do not persist, others get saved into DB. Quote Share this post Link to post Share on other sites
mkhzaleh 131 Report post Posted April 30, 2020 search for Skill_Xlpz_End ( ATKER , DEFER , sklv ) and replace statetime to local statetime = 9999 this simple trick will work, don't need to edit source code . Quote Share this post Link to post Share on other sites
V3ct0r 2,117 Report post Posted April 30, 2020 Hello @Nikito! Try add energy shield state in ctrl.lua of the map file that the portal leads to: function after_enter_<mapname>(role, map_copy) -- Check if role is cleric and has Energy Shield skill -- Get level of the Energy Shield skill local skilllv = 10 -- Example! AddState(role, role, STATE_MFD, skilllv, -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
Zackeus 2 Report post Posted March 25, 2022 On 4/30/2020 at 10:13 AM, V3ct0r said: Hello @Nikito! Try add energy shield state in ctrl.lua of the map file that the portal leads to: function after_enter_<mapname>(role, map_copy) -- Check if role is cleric and has Energy Shield skill -- Get level of the Energy Shield skill local skilllv = 10 -- Example! AddState(role, role, STATE_MFD, skilllv, -1) end Sir How to fix energy shield? When I use the energy shield and attacked by a player it wont consume the sp, but the HP on the char was taken Quote Share this post Link to post Share on other sites
deguix 64 Report post Posted March 26, 2022 Hmmm. That code only adds the effect, but the skill itself is still not activated. Did you try mkhzaleh's solution though? 1 Quote Share this post Link to post Share on other sites