Advertisement
Guest User

Untitled

a guest
Nov 27th, 2014
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.96 KB | None | 0 0
  1.         // check if guild has 5 members
  2.         query_sql "SELECT char_id,account_id,`name` FROM guild_member WHERE guild_id="+getcharid(2), .@char_id,.@account_id,.@name$;
  3.         if (getarraysize(.@char_id) < $guild_size) {
  4.             mes "You must have ^FF0000"+$guild_size+"^000000 guild members";
  5.             mes "(1 leader + "+($guild_size-1)+" members).";
  6.             close;
  7.         }
  8.         // check if all guild members are online
  9.         for (set .@i,0; .@i<$guild_size; set .@i,.@i+1) {
  10.             if (!isloggedin(.@account_id[.@i], .@char_id[.@i])) {
  11.                 mes "^FF0000"+ .@name$[.@i] +"^000000 is offline.";
  12.                 mes "All "+$guild_size+" guild members must be online to receive the guild package.";
  13.                 close;
  14.             }
  15.         //query_sql "SELECT `last_ip` FROM `login` WHERE `account_id` = '"+getcharid(3)+"'",.@iplast1$;
  16.         //query_sql "SELECT `last_ip` FROM `login` WHERE `account_id` = '"+.@account_id[.@i]+"'",.@iplast2$;
  17.         //if(.@iplast1$ == .@iplast2$) {
  18.         //      mes "Unique user IP can only receive a guild pack.";
  19.         //      close;
  20.         //}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement