Jump to content
  • 0

OnPCStatCalcEvent


Question

Posted

Hi, I used OnPCStatCalcEvent to give permanent skills to every player but i encounter a problem every time i used the buffer NPC who uses sc_start blessing ,agi even Awakening Potion who also use SC_START  the OnPCStatCalcEvent skills is been remove it only come back when i relog-in or i type @skillall .

how can i make that the OnPCStatCalcEvent will not be overlap by sc_start Thank you

i have the same problem with this LINK

4 answers to this question

Recommended Posts

  • 0
Posted (edited)
16 hours ago, Disabled LOOLP said:

OnPCLoginEvent  {
sc start 9999999 time
}

Hi, ? . i will put sc_start blessing,999999; ?  
actually when i talk to the buffer npc , the skills given by the 
OnPCStatCalcEvent is been remove . and in my observation its because of the sc_start.

this is the buffs in my Buffer NPC

Thank you sir ? 

sc_start SC_INCREASEAGI,240000,10;
sc_start SC_BLESSING,240000,10;	

 

Edited by G-RO
  • 0
Posted (edited)

Add a check on your OnPCStatCalcEvent so it won't trigger again if it already triggered once.

Sample

-	script	Test12312	-1,{
	OnPCStatCalcEvent:
		if(@skill_added == 0){
			add skills here
			@skill_added = 1;
		}
	end;
}

What this does is it only allows it to run once every time.

Edited by OppaiDragon
  • 0
Posted
On 10/31/2019 at 6:50 AM, OppaiDragon said:

Add a check on your OnPCStatCalcEvent so it won't trigger again if it already triggered once.

Sample


-	script	Test12312	-1,{
	OnPCStatCalcEvent:
		if(@skill_added == 0){
			add skills here
			@skill_added = 1;
		}
	end;
}

What this does is it only allows it to run once every time.

Hi ? . sorry for the late reply 

When i do that kind of trap the OnPCStatsCalcEvent skills is not available anymore  even though i use @skillall

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