eJay Posted June 7, 2013 Posted June 7, 2013 How to check if the player has exceeded the maximum stats 255 So that if the one of their stats 256+ will popup their name as dispbottom Quote
Jaburak Posted June 7, 2013 Posted June 7, 2013 - script Sample -1,{ OnPCLoginEvent: for( set .@i,13; .@i <=18; set .@i,.@i + 1 ) if( readparam(.@i) > 255 ) set .@OverStat,.@OverStat + 1; if( .@OverStat >= 6 ){ dispbottom "You have 256 stat."; end; } } Quote
eJay Posted June 7, 2013 Author Posted June 7, 2013 (edited) - script Sample -1,{ OnPCLoginEvent: for( set .@i,13; .@i <=18; set .@i,.@i + 1 ) if( readparam(.@i) > 255 ) set .@OverStat,.@OverStat + 1; if( .@OverStat >= 6 ){ dispbottom "You have 256 stat."; end; } } I mean if one of their stats is 256+ like 500 stats on str or 300 in agi then will go back to 255 Edited June 7, 2013 by Kim Quote
Capuche Posted June 7, 2013 Posted June 7, 2013 - script Sample -1,{ OnPCLoginEvent: for( set .@i,13; .@i <=18; set .@i,.@i + 1 ) if( readparam(.@i) > 255 ) statusup2 .@i,( 255 - readparam(.@i) ); } Quote
lawbreaker Posted June 10, 2013 Posted June 10, 2013 (edited) - script Sample -1,{ OnPCLoginEvent: for( set .@i,13; .@i <=18; set .@i,.@i + 1 ) if( readparam(.@i) > 255 ) statusup2 .@i,( 255 - readparam(.@i) ); } Nice Script . But can you please add a part in which it skips GM characters Edited June 10, 2013 by lawbreaker Quote
Question
eJay
How to check if the player has exceeded the maximum stats 255
So that if the one of their stats 256+ will popup their name as dispbottom
6 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.