Jump to content
  • 0

OnPCStatCalcEvent


Onairda

Question


  • Group:  Members
  • Topic Count:  70
  • Topics Per Day:  0.03
  • Content Count:  164
  • Reputation:   8
  • Joined:  12/30/16
  • Last Seen:  

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

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.01
  • Content Count:  233
  • Reputation:   49
  • Joined:  12/20/18
  • Last Seen:  

OnPCLoginEvent  {
sc start 9999999 time
}

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  70
  • Topics Per Day:  0.03
  • Content Count:  164
  • Reputation:   8
  • Joined:  12/30/16
  • Last Seen:  

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

  • 0

  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  116
  • Reputation:   18
  • Joined:  09/08/17
  • Last Seen:  

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

  • 0

  • Group:  Members
  • Topic Count:  70
  • Topics Per Day:  0.03
  • Content Count:  164
  • Reputation:   8
  • Joined:  12/30/16
  • Last Seen:  

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

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