Hello, There! i would like to ask for pleased support for the 'OnPCStatCalcEvent'
How do i set only minimum of +50 Only?
PLEASE correct me if i post in the wrong SECTION since i have posted Script + Source.
SCRIPT:
mes "which bonus do you want ?";
mes "NOTE: each of stat is only +1 UPGRADE until you reach the maximum +50";
next;
.@s = select ( "str +1", "agi +1", "vit +1", "int +1", "dex +1", "luk +1" ) -1;
if ( bonus_stat & 1 << .@s ) {
mes "You already reach the maximum bonus stats";
close;
}http://rathena.org/board/index.php?app=forums&module=post§ion=post&do=new_post&f=36
bonus_stat = bonus_stat | 1 << .@s;
nude;
close;
OnPCStatCalcEvent:
for ( .@i = 0; .@i < 6; .@i++ )
if ( bonus_stat & 1 << .@i )
bonus .@i + 13, 1;
end;
}
Question
Drakkus
Hello, There! i would like to ask for pleased support for the 'OnPCStatCalcEvent'
How do i set only minimum of +50 Only?
PLEASE correct me if i post in the wrong SECTION since i have posted Script + Source.
SCRIPT:
SOURCE:
Hopefully someone would HELP me this out, greatly APPRECIATED!
Thank you!!!
Regards,
Vlync
Link to comment
Share on other sites
3 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.