Jump to content
  • 0

Make Emperium like Renewal on Pre-Renewal server


Question

Posted

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

  • 0
Posted (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 by Justapoxx
  • 0
Posted

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.

  • 0
Posted

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..

  • 0
Posted (edited)

Try just change to return 0.

if( dstmd && dstmd->mob_id == MOBID_EMPERIUM ) {
	map_freeblock_unlock();
	return 0;
}
Edited by Haziel

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...