Jump to content
  • 0

Potion Pitcher bug?


Zeiyan

Question


  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  275
  • Reputation:   23
  • Joined:  01/06/13
  • Last Seen:  

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

15 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  275
  • Reputation:   23
  • Joined:  01/06/13
  • Last Seen:  

help

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  275
  • Reputation:   23
  • Joined:  01/06/13
  • Last Seen:  

bump

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  275
  • Reputation:   23
  • Joined:  01/06/13
  • Last Seen:  

anyone? am i the only one experiencing it? -__-

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  275
  • Reputation:   23
  • Joined:  01/06/13
  • Last Seen:  

bump

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  222
  • Reputation:   34
  • Joined:  12/13/11
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  275
  • Reputation:   23
  • Joined:  01/06/13
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  275
  • Reputation:   23
  • Joined:  01/06/13
  • Last Seen:  

bump

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  295
  • Reputation:   6
  • Joined:  10/14/12
  • Last Seen:  

could be an underflow. try increasing your emperium's HP to 10m, assuming your running a high rate server.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  275
  • Reputation:   23
  • Joined:  01/06/13
  • Last Seen:  

actually i am running a high rate server and the emperium's hp is 30m

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  275
  • Reputation:   23
  • Joined:  01/06/13
  • Last Seen:  

bump



bump

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  275
  • Reputation:   23
  • Joined:  01/06/13
  • Last Seen:  

bump again

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  275
  • Reputation:   23
  • Joined:  01/06/13
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

can give us SS? also with the equipments

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  275
  • Reputation:   23
  • Joined:  01/06/13
  • Last Seen:  

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