Eross Posted July 30, 2021 Group: Members Topic Count: 166 Topics Per Day: 0.09 Content Count: 377 Reputation: 12 Joined: 04/05/20 Last Seen: Thursday at 08:11 AM Share Posted July 30, 2021 I want to request for a source modification that will change the Preserve skill behaviour like the following: 1. Can toggle On and Off 2. Wont deactivate on death and re-login I found a thread about toggle on and off but that was from year 2012 and I think the modification will not work on latest RA Please help .. thankyou so much Quote Link to comment Share on other sites More sharing options...
0 Easycore Posted September 6, 2021 Group: Members Topic Count: 36 Topics Per Day: 0.01 Content Count: 220 Reputation: 258 Joined: 04/08/13 Last Seen: August 24, 2023 Share Posted September 6, 2021 Okay, here we go: Open skill.cpp and search: case ST_PRESERVE: And comment this line. (adding //) Then search: case TK_DODGE: And add below case ST_PRESERVE: case TK_DODGE: case ST_PRESERVE: Open status.cpp and search: /* Permanent effects */ And add below case SC_PRESERVE: /* Permanent effects */ case SC_PRESERVE: Then search: switch (i) { // Type 0: PC killed -> Place here statuses that do not dispel on death. case SC_ELEMENTALCHANGE: // Only when its Holy or Dark that it doesn't dispell on death if( sc->data[i]->val2 != ELE_HOLY && sc->data[i]->val2 != ELE_DARK ) break; And add below case SC_PRESERVE: switch (i) { // Type 0: PC killed -> Place here statuses that do not dispel on death. case SC_ELEMENTALCHANGE: // Only when its Holy or Dark that it doesn't dispell on death if( sc->data[i]->val2 != ELE_HOLY && sc->data[i]->val2 != ELE_DARK ) break; case SC_PRESERVE: Open map.cpp and search: status_change_end(&sd->bl, SC_PRESERVE, INVALID_TIMER); Comment this line adding //. Now you done. Don't forget to recompile your emulator. 2 Quote Link to comment Share on other sites More sharing options...
0 Eross Posted September 7, 2021 Group: Members Topic Count: 166 Topics Per Day: 0.09 Content Count: 377 Reputation: 12 Joined: 04/05/20 Last Seen: Thursday at 08:11 AM Author Share Posted September 7, 2021 (edited) 7 hours ago, Easycore said: Okay, here we go: Open skill.cpp and search: case ST_PRESERVE: And comment this line. (adding //) Then search: case TK_DODGE: And add below case ST_PRESERVE: case TK_DODGE: case ST_PRESERVE: Open status.cpp and search: /* Permanent effects */ And add below case SC_PRESERVE: /* Permanent effects */ case SC_PRESERVE: Then search: switch (i) { // Type 0: PC killed -> Place here statuses that do not dispel on death. case SC_ELEMENTALCHANGE: // Only when its Holy or Dark that it doesn't dispell on death if( sc->data[i]->val2 != ELE_HOLY && sc->data[i]->val2 != ELE_DARK ) break; And add below case SC_PRESERVE: switch (i) { // Type 0: PC killed -> Place here statuses that do not dispel on death. case SC_ELEMENTALCHANGE: // Only when its Holy or Dark that it doesn't dispell on death if( sc->data[i]->val2 != ELE_HOLY && sc->data[i]->val2 != ELE_DARK ) break; case SC_PRESERVE: Open map.cpp and search: status_change_end(&sd->bl, SC_PRESERVE, INVALID_TIMER); Comment this line adding //. Now you done. Don't forget to recompile your emulator. Hi ! I've already did some of this but I noticed that there are some steps I didnt done ... Can you point out what step is for not removing the buff on relogin in ... Thankyou so much btw sir Edited September 7, 2021 by Origami Quote Link to comment Share on other sites More sharing options...
0 Scanty Posted September 7, 2021 Group: Members Topic Count: 5 Topics Per Day: 0.00 Content Count: 94 Reputation: 35 Joined: 11/08/15 Last Seen: Monday at 06:46 PM Share Posted September 7, 2021 1 hour ago, Origami said: Hi ! I've already did some of this but I noticed that there are some steps I didnt done ... Can you point out what step is for not removing the buff on relogin in ... Thankyou so much btw sir Open map.cpp and search: status_change_end(&sd->bl, SC_PRESERVE, INVALID_TIMER); Quote Link to comment Share on other sites More sharing options...
0 Eross Posted September 14, 2021 Group: Members Topic Count: 166 Topics Per Day: 0.09 Content Count: 377 Reputation: 12 Joined: 04/05/20 Last Seen: Thursday at 08:11 AM Author Share Posted September 14, 2021 On 9/6/2021 at 8:15 PM, Scanty said: Open map.cpp and search: status_change_end(&sd->bl, SC_PRESERVE, INVALID_TIMER); Im getting error help Quote Link to comment Share on other sites More sharing options...
0 WoflRoom Posted March 10, 2024 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 4 Reputation: 0 Joined: 04/07/23 Last Seen: February 11 Share Posted March 10, 2024 Hello! All fine? This line does not exist in the latest version of the emulator... status_change_end(&sd->bl, SC_PRESERVE, INVALID_TIMER); I made the rest of the changes and it partially worked. 1 - When I log out, it disappears and I need to reactivate it. (Does anyone know how to leave it fixed, disable using it again) 2 - When the Skill is copied and Preserve is not active, it copies other skills by adding new icons of the skills that are being copied without deleting the previous one, just by relogging the old ones they disappear) Quote Link to comment Share on other sites More sharing options...
Question
Eross
I want to request for a source modification that will change the Preserve skill behaviour like the following:
1. Can toggle On and Off
2. Wont deactivate on death and re-login
I found a thread about toggle on and off but that was from year 2012 and I think the modification will not work on latest RA
Please help .. thankyou so much
Link to comment
Share on other sites
5 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.