Jump to content
  • 0

Potion Pitcher bug?


Question

Posted (edited)

Good day rathena. i am not sure if this is a bug or if am posting at the right forum. (please move it if posted wrong)

 

Well my problem is i commented the part in skill.c to enable the skill potion pitcher and sanctuary to heal emperium.

 

1. It works but the problem is even though the skill works (consumes sp, potion etc) it shows that it heals "0" HP on the emperium.

 

2 .Sometimes when a player wears certain shields or card shields(it's sort of random) potion pitcher (with soul link) reduces their hp or kills them. BTW i am using svn 17279. I really hope someone can help me.

 

Thankyou rathena!

 

-------------

Edited by ZeiyanRO

15 answers to this question

Recommended Posts

Posted (edited)

pretty sure u can disable healing emps from a conf file...you don't need to disable it via source.

 

make potion pitcher holy type and it shouldnt heal the emp

Edited by lilcooldude69
Posted

i am talking about "i want to enable healing the emp with potion pitcher" and i've successfully able to do it except for one thing: It does "0"(zero) heal on the emperium. what i want is to make it heal emperium like it will heal a regular player.

Posted

did you change this for using potion pitcher to emp?

	case AM_POTIONPITCHER: {
			int i,hp = 0,sp = 0;
			if( dstmd && dstmd->class_ == MOBID_EMPERIUM ) {
				map_freeblock_unlock();
				return 1;
			}
			if( sd ) {
				int x,bonus=100;
				x = skill_lv%11 - 1;
				i = pc_search_inventory(sd,skill_db[skill_id].itemid[x]);

become

	case AM_POTIONPITCHER: {
			int i,hp = 0,sp = 0;
			if( sd ) {
				int x,bonus=100;
				x = skill_lv%11 - 1;
				i = pc_search_inventory(sd,skill_db[skill_id].itemid[x]);
Posted

yes i did



UPDATE: IF the player has high vit or hp. i am not sure its potion pitcher reduces the hp of the player or kills them (depends on how high their hp or vit) im not sure if it depends on vit or hp.

Posted (edited)

okay i'll post it here tom. i'm not sure but 1 of my player told me it might be because i edited my white potion to heal 25%? anyway i managed to temporarily fixed it by changing these

if( sd->sc.data[SC_SPIRIT] && sd->sc.data[SC_SPIRIT]->val2 == SL_ALCHEMIST )
					bonus += sd->status.base_level;
				if( potion_per_hp > 0 || potion_per_sp > 0 ) {
					hp = tstatus->max_hp * potion_per_hp / 100;

 

into this:

if( sd->sc.data[SC_SPIRIT] && sd->sc.data[SC_SPIRIT]->val2 == SL_ALCHEMIST )
					bonus += 200;
				if( potion_per_hp > 0 || potion_per_sp > 0 ) {
					hp = tstatus->max_hp * potion_per_hp / 700;

 

 

even though it made the potion pitcher on my server heal less than it should. ill try to revert and show screenshot tommorow for you.

 

(anyway it still does "0" heal on emperium)

Edited by ZeiyanRO

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