Justapoxx Posted November 15, 2015 Posted November 15, 2015 Hi, I'm extremely bad at source edits and have searched for similar requests but the closest i could find was opposite to this. https://rathena.org/board/topic/77359-enabled-sanctuaryhealpitchrestoration-on-emp/ I really want to make my emperium renewal mode (can't be healed by heal sanctuary potion pitcher etc etc) and take 1 damage per hit. I've got the 1 damage part down but I can't do the not healable part. Is there anyone that could please help me with making this modification? Thank you! Quote
0 Haziel Posted November 15, 2015 Posted November 15, 2015 (edited) Just tested on Pre-Renewal and the Heal can be casted, but it's always 0. Edited November 15, 2015 by Haziel Quote
0 Justapoxx Posted November 16, 2015 Author Posted November 16, 2015 (edited) Yea, sorry I should have phrased my question better. By healable I meant inclusive of skills like sanctuary. I actually want to edit it such that sanctuary, potion pitcher and apple of idun heals a fixed amount on emperium. I'm looking at case UNT_SANCTUARY: etc but dont really know what to change. Thank you to whoever responds to this! **bump Edited November 15, 2015 by Justapoxx Quote
0 Haziel Posted November 16, 2015 Posted November 16, 2015 On: case UNT_SANCTUARY: Get this fragment: #ifdef RENEWAL if( md && md->mob_id == MOBID_EMPERIUM ) break; #endif And comment the check: //#ifdef RENEWAL if( md && md->mob_id == MOBID_EMPERIUM ) break; //#endif To nullify the heal completely.If you want to put a fixed heal, then: //#ifdef RENEWAL if( md && md->mob_id == MOBID_EMPERIUM ) heal = 0; //#endif Or change the zero to whatever value you want. Quote
0 Justapoxx Posted November 16, 2015 Author Posted November 16, 2015 Thank you so much! I noticed something with potion pitcher though. case AM_POTIONPITCHER: { int j,hp = 0,sp = 0; if( dstmd && dstmd->mob_id == MOBID_EMPERIUM ) { map_freeblock_unlock(); return 1; } When I change it to case AM_POTIONPITCHER: { int j,hp = 0,sp = 0; if( dstmd && dstmd->mob_id == MOBID_EMPERIUM ) { //map_freeblock_unlock(); //return 1; hp=1; } It works but only for level 5 potion pitcher.. Quote
0 Haziel Posted November 16, 2015 Posted November 16, 2015 (edited) Try just change to return 0. if( dstmd && dstmd->mob_id == MOBID_EMPERIUM ) { map_freeblock_unlock(); return 0; } Edited November 16, 2015 by Haziel Quote
0 Justapoxx Posted November 16, 2015 Author Posted November 16, 2015 Ok i'll try, and post back here, thanks Haziel! Quote
Question
Justapoxx
Hi, I'm extremely bad at source edits and have searched for similar requests but the closest i could find was opposite to this.
https://rathena.org/board/topic/77359-enabled-sanctuaryhealpitchrestoration-on-emp/
I really want to make my emperium renewal mode (can't be healed by heal sanctuary potion pitcher etc etc) and take 1 damage per hit.
I've got the 1 damage part down but I can't do the not healable part.
Is there anyone that could please help me with making this modification?
Thank you!
7 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.