Jump to content
  • 0

get stats of char


Question

3 answers to this question

Recommended Posts

Posted (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 by Patskie
Posted
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...

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...