yuhsing

Friend Warper 1.1

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