Jump to content
  • 0

get stats of char


mleo1

Question


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  123
  • Reputation:   4
  • Joined:  11/21/11
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

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 by Patskie
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

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...

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  123
  • Reputation:   4
  • Joined:  11/21/11
  • Last Seen:  

thanks pats and emistry

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...