Jump to content
  • 0

Make Emperium like Renewal on Pre-Renewal server


Justapoxx

Question


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  9
  • Reputation:   2
  • Joined:  10/08/15
  • Last Seen:  

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!

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

  • Group:  Content Moderator
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  639
  • Reputation:   596
  • Joined:  11/25/11
  • Last Seen:  

Just tested on Pre-Renewal and the Heal can be casted, but it's always 0.

Edited by Haziel
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  9
  • Reputation:   2
  • Joined:  10/08/15
  • Last Seen:  

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
Link to comment
Share on other sites

  • 0

  • Group:  Content Moderator
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  639
  • Reputation:   596
  • Joined:  11/25/11
  • Last Seen:  

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.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  9
  • Reputation:   2
  • Joined:  10/08/15
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Content Moderator
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  639
  • Reputation:   596
  • Joined:  11/25/11
  • Last Seen:  

Try just change to return 0.

if( dstmd && dstmd->mob_id == MOBID_EMPERIUM ) {
	map_freeblock_unlock();
	return 0;
}
Edited by Haziel
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  9
  • Reputation:   2
  • Joined:  10/08/15
  • Last Seen:  

Ok i'll try, and post back here, thanks Haziel!

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  9
  • Reputation:   2
  • Joined:  10/08/15
  • Last Seen:  

The above 2 didn't work :(

Link to comment
Share on other sites

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.

×
×
  • Create New...