pastebin - collaborative debugging tool
rathena.kpaste.net RSS


Untitled
Posted by Anonymous on Sat 26th May 2012 23:23
raw | new post

  1. prontera,155,188,0      script  test    910,{
  2.         mes "Enter the account_id:";
  3.         input .@account_id;
  4.        
  5.         if (query_sql("SELECT account_id FROM login WHERE account_id=" + .@account_id) == 0) {
  6.                 mes "^FF0000 account_id ("+.@account_id+") NOT FOUND!";
  7.                 close;
  8.         }
  9.        
  10.         query_sql "SELECT char_id,`name` FROM `char` WHERE account_id="+ .@account_id +" ORDER BY char_id ASC", .@char_id,.@name$;
  11.        
  12.         if (getarraysize(.@char_id) == 0) {
  13.                 mes "^FF0000 There are no chars on this account.";
  14.                 close;
  15.         }
  16.        
  17.         for (set .@i,0; .@i<getarraysize(.@char_id); set .@i,.@i+1)
  18.                 set .@menu$, .@menu$ + .@name$[.@i]+":";
  19.         set .@num, select(.@menu$) -1;
  20.        
  21.         // lookup and display info about that char
  22.         query_sql "SELECT class,base_level,job_level,zeny FROM `char` WHERE char_id="+.@char_id[.@num]+" LIMIT 1", .@class,.@base_level,.@job_level,.@zeny;
  23.        
  24.         mes "char_id = " + .@char_id[.@num];
  25.         mes "Name = " + .@name$[.@num];
  26.         mes "Class = " + jobname(.@class);
  27.         mes "Level = " + .@base_level + " / " + .@job_level;
  28.         mes "Zeny = " + .@zeny;
  29.         close;
  30. }

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}




All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at