yuhsing

Friend Warper 1.2

Feb 24th, 2013
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1.  
  2. prontera,155,161,4 script Sample 757,{
  3. query_sql( "SELECT `char_id`,`account_id`,`name` FROM `char` WHERE `char_id` IN ( SELECT `friend_id` FROM `friends` WHERE `char_id`='"+getcharid(0)+"' )",.@char_id,.@account_id,.@name$ );
  4. .@total = getarraysize( .@char_id );
  5. if( .@total ){
  6. for( .@i = 0; .@i < .@total; .@i++ )
  7. .@menu$ = .@menu$ + ( ( isloggedin( .@account_id[.@i],.@char_id[.@i] ) )?"^0055FF[ ONLINE ]":"^FF0000[ OFFLINE ]" )+" "+.@name$[.@i] +"^000000:";
  8.  
  9. .@i = select( implode( .@menu$,":" ) ) - 1;
  10. if( isloggedin( .@account_id[.@i],.@char_id[.@i] ) ){
  11. getmapxy( .@map$,.@x,.@y,0,.@name$[.@i] );
  12. warp .@map$,.@x,.@y;
  13. }else{
  14. mes "Your friends is not online.";
  15. }
  16.  
  17. }else{
  18. mes "You dont have any friends.";
  19. }
  20. close;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment