Jump to content
  • 0
Sign in to follow this  
Tio Akima

using SC_POISON and poisoning time

Question


 Using SC_POISON and poisoning time

hi guys, i made an skill to poison the enemy after short / long range attacks

It's a passive skill.

When you attack an enemy, you have the possibility of poisoning it
I use SC_POISON to poison. (I put the check into battle.c)

but.... It poisons the enemy correctly (witch the correct duration), but if I try to poison the same enemy again, then the duration becomes bugged and disappears within 1 second.


Does anyone have any idea why this error?
my check in battle.c :
(with a 10% chance of poisoning)

if(sd){	
				// Checks whether the player has the skill or not 
				if(skill_lv = pc->checkskill(sd,ALL_POISON_PUNCH)>0){
					
					printf("have the skill");
					
					if( rnd()%100 < ( 1000 * skill_lv / 100 ) )
					{
						
						printf("came in ");					
						sc_start(src,target,SC_POISON,100,skill_lv,100000);
						
						
					}		
				}		
		}

Does anyone know why I can't poison the same enemy again?
(the poisoning time is bugged in the second poisoning) 

Share this post


Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.