Jump to content
  • 0

Increase a player's HP permanently by %?


Question

7 answers to this question

Recommended Posts

Posted
-	script	sample	-1,{

OnPCLoginEvent:
	if(rewarded) {
		bonus_script "{ bonus bMaxHPRate,3; }",9999999;
	}
end;


}

Try this, the script should work if the player has 'rewarded' variable > 0. Not sure if it would work permanently though.

Posted

A better way to do this:

OnPCStatCalcEvent:
	if (condition) {
		bonus bMaxHPrate,3;
		bonus bAtkRate,5;
		bonus bMatkRate,5;
	}
	end;
'OnPCStatCalcEvent' is a fairly new label that triggers each time a player's stats are recalculated.
Posted (edited)

A better way to do this:

OnPCStatCalcEvent:
	if (condition) {
		bonus bMaxHPrate,3;
		bonus bAtkRate,5;
		bonus bMatkRate,5;
	}
	end;
'OnPCStatCalcEvent' is a fairly new label that triggers each time a player's stats are recalculated.

 

 

So the condition needs to stay true?

Oh and how can I give a player Status Points permanently? D:

And how can I change a players MaxWeight without the Skill? :P

A better way to do this:

OnPCStatCalcEvent:
	if (condition) {
		bonus bMaxHPrate,3;
		bonus bAtkRate,5;
		bonus bMatkRate,5;
	}
	end;
'OnPCStatCalcEvent' is a fairly new label that triggers each time a player's stats are recalculated.

 

[Warning]: npc_event: player's event queue is full, can't add event 'Achievements::OnPCStatCalcEvent' !

It spamms my chatbox with this. D:

-	script	sample	-1,{

OnPCLoginEvent:
	if(rewarded) {
		bonus_script "{ bonus bMaxHPRate,3; }",9999999;
	}
end;


}

Try this, the script should work if the player has 'rewarded' variable > 0. Not sure if it would work permanently though.

 

Hm, when I only call that once, it only lasts for "9999999" ms, right?

Edited by Greyford

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