yuhsing

Untitled

Nov 1st, 2012
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. prontera,155,181,5 script Sample#char 757,{
  2. mes "Input Char Name.";
  3. input .@Name$,4,23;
  4. if( query_sql( "SELECT `account_id` FROM `char` WHERE `name` = '"+escape_sql(.@Name$)+"' LIMIT 1",.@AID ) ){
  5. if( query_sql( "SELECT `name` FROM `char` WHERE `account_id`='"+.@AID+"'",.@Name$ ) )
  6. for( set .@i,0; .@i < getarraysize( .@Name$ ); set .@i,.@i + 1 )
  7. mes "["+( .@i + 1 )+".] "+.@Name$[.@i];
  8. }else{
  9. mes "Character not found.";
  10. }
  11. close;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment