Jump to content
Sign in to follow this  
Angelmelody

[Script CMD] getbattlestats

Recommended Posts

This script command will return player's battle stats.

What is battle stats? base stats + bonus stats = battle stats

CMD to use

getbattlestats(type{,<aid>});

type value :
1:STR 2:AGI 3:VIT 4:INT 5:DEX 6:LUK
7:cri 8:aspd 9:base atk 10: equip atk
11:matk(left side) 12:matk(right side)
13:def 14:def2 15:mdef 16:mdef2
17:hit 18:flee 19:flee2 20:def element

 

example:

prontera,157,181,6	script	gbs	106,{	mes "type1: "+getbattlestats(1);	mes "type2: "+getbattlestats(2);	mes "type3: "+getbattlestats(3);	mes "type4: "+getbattlestats(4);	mes "type5: "+getbattlestats(5);	mes "type6: "+getbattlestats(6);	mes "type7: "+(getbattlestats(7)/10);	mes "type8: "+getbattlestats(8);	mes "type9: "+getbattlestats(9);	mes "type10: "+getbattlestats(10);	mes "type11: "+getbattlestats(11);	mes "type12: "+getbattlestats(12);	mes "type13: "+getbattlestats(13);	mes "type14: "+getbattlestats(14);	mes "type15: "+getbattlestats(15);	mes "type16: "+getbattlestats(16);	mes "type17: "+getbattlestats(17);	mes "type18: "+getbattlestats(18);	mes "type19: "+(getbattlestats(19)/10);	mes "type20: "+getbattlestats(20);	close;}

 

 

LERNLi.jpg

 

 

 

Download:

 

getbattlestats.c

Edited by Angelmelody

Share this post


Link to post
Share on other sites

Gerz, on 11 May 2014 - 05:25, said:

-.- you can also use readparam :-s

I don't think so, readparam only return player's base stats

Edited by Angelmelody

Share this post


Link to post
Share on other sites

add more stats return
7:cri 8:aspd 9:base atk 10: equip atk
11:matk(left side) 12:matk(right side)
13:def 14:def2 15:mdef 16:mdef2
17:hit 18:flee 19:flee2 20:def element

Edited by Angelmelody

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.