Yuka Posted March 27, 2014 Group: Members Topic Count: 100 Topics Per Day: 0.02 Content Count: 333 Reputation: 7 Joined: 03/01/14 Last Seen: May 6, 2020 Share 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 Link to comment Share on other sites More sharing options...
sandbox Posted March 27, 2014 Group: Members Topic Count: 38 Topics Per Day: 0.01 Content Count: 949 Reputation: 174 Joined: 06/12/12 Last Seen: Friday at 12:25 PM Share 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 Link to comment Share on other sites More sharing options...
Euphy Posted March 27, 2014 Group: Members Topic Count: 72 Topics Per Day: 0.02 Content Count: 2997 Reputation: 1132 Joined: 05/27/12 Last Seen: June 1, 2017 Share 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 Link to comment Share on other sites More sharing options...
Yuka Posted March 27, 2014 Group: Members Topic Count: 100 Topics Per Day: 0.02 Content Count: 333 Reputation: 7 Joined: 03/01/14 Last Seen: May 6, 2020 Author Share 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 Link to comment Share on other sites More sharing options...
sandbox Posted March 28, 2014 Group: Members Topic Count: 38 Topics Per Day: 0.01 Content Count: 949 Reputation: 174 Joined: 06/12/12 Last Seen: Friday at 12:25 PM Share Posted March 28, 2014 Yep, try to increase the config limit for statcalc, it's the proper way. Quote Link to comment Share on other sites More sharing options...
Yuka Posted March 30, 2014 Group: Members Topic Count: 100 Topics Per Day: 0.02 Content Count: 333 Reputation: 7 Joined: 03/01/14 Last Seen: May 6, 2020 Author Share 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 Link to comment Share on other sites More sharing options...
Yuka Posted April 5, 2014 Group: Members Topic Count: 100 Topics Per Day: 0.02 Content Count: 333 Reputation: 7 Joined: 03/01/14 Last Seen: May 6, 2020 Author Share Posted April 5, 2014 Bump. x_X Quote Link to comment Share on other sites More sharing options...
Cydh Posted April 5, 2014 Group: Developer Topic Count: 153 Topics Per Day: 0.03 Content Count: 2285 Reputation: 748 Joined: 06/16/12 Last Seen: February 21 Share Posted April 5, 2014 src/map/map.h#L43 change the #define MAX_EVENTQUEUE 2then recompile your server Quote Link to comment Share on other sites More sharing options...
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!
Link to comment
Share on other sites
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.