Yuka Posted March 27, 2014 Posted March 27, 2014 Hello, I would like to reward players with +3% Max HP and with +x% ATK/MATK, is there a way to do this? Thanks! Quote
sandbox Posted March 27, 2014 Posted March 27, 2014 - 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. Quote
Euphy Posted March 27, 2014 Posted March 27, 2014 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. Quote
Yuka Posted March 27, 2014 Author Posted March 27, 2014 (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? 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 March 27, 2014 by Greyford Quote
sandbox Posted March 28, 2014 Posted March 28, 2014 Yep, try to increase the config limit for statcalc, it's the proper way. Quote
Yuka Posted March 30, 2014 Author Posted March 30, 2014 Yep, try to increase the config limit for statcalc, it's the proper way. Where can I change the limit for statcalc? D: Quote
Cydh Posted April 5, 2014 Posted April 5, 2014 src/map/map.h#L43 change the #define MAX_EVENTQUEUE 2then recompile your server Quote
Question
Yuka
Hello,
I would like to reward players with +3% Max HP and with +x% ATK/MATK, is there a way to do this?
Thanks!
7 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.