mleo1 Posted April 10, 2013 Group: Members Topic Count: 22 Topics Per Day: 0.00 Content Count: 123 Reputation: 4 Joined: 11/21/11 Last Seen: January 26 Share Posted April 10, 2013 what function do you use to get characters stat agi str dex etc.? Quote Link to comment Share on other sites More sharing options...
Patskie Posted April 10, 2013 Group: Members Topic Count: 50 Topics Per Day: 0.01 Content Count: 1702 Reputation: 241 Joined: 09/05/12 Last Seen: 1 hour ago Share Posted April 10, 2013 (edited) Via SQL : query_sql "SELECT `str` , `agi` , `vit` , `int` , `dex` , `luk` FROM `char` WHERE `account_id` = '"+getcharid(3)+"'",@str,@agi,@vit,@int,@dex,@luk; Edit : getcharid(3) will get the current stats of the current account. If you intend to do this on GM side you must put a way for a GM to input other's account id. For example : input @account_id; query_sql "SELECT `str` , `agi` , `vit` , `int` , `dex` , `luk` FROM `char` WHERE `account_id` = '"+@account_id+"'",@str,@agi,@vit,@int,@dex,@luk; Edited April 10, 2013 by Patskie Quote Link to comment Share on other sites More sharing options...
Emistry Posted April 10, 2013 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Yesterday at 05:32 PM Share Posted April 10, 2013 mes "STR : "+readparam( bStr ); mes "AGI : "+readparam( bAgi ); mes "VIT : "+readparam( bVit ); mes "DEX : "+readparam( bDex ); mes "INT : "+readparam( bInt ); mes "LUK : "+readparam( bLuk ); refer readparam if you want to get the stats of other characters...then use the method from previous post..through SQL... Quote Link to comment Share on other sites More sharing options...
mleo1 Posted April 10, 2013 Group: Members Topic Count: 22 Topics Per Day: 0.00 Content Count: 123 Reputation: 4 Joined: 11/21/11 Last Seen: January 26 Author Share Posted April 10, 2013 thanks pats and emistry Quote Link to comment Share on other sites More sharing options...
Question
mleo1
what function do you use to get characters stat agi str dex etc.?
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.