viewing paste Unknown #15328 | Text

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
//check if the guild is approved
        query_sql(SELECT `guild_id` FROM `guildpack_guilds` WHERE `guild_id` = "+.@guild_id+", .@guild_id2;
            if (.@guild_id != .@guild_id2) { //error }
                mes "[Guild Pack Info]";
                mes "I'm sorry but you do not belong here";
                close2;
            }
        //success
        mes "Get your Guild Pack?";
        if (select("No:Yes, continue") == 1) close;
            for (set .@i,0; .@i<.guild_size; set .@i,.@i+1) {
                if (.@account_id[.@i] == playerattached()) {
                    getitem 30001,1; // leader
                } else {
                    getitem 30002,1, .@account_id[.@i]; // each member
                }
            }
Viewed 531 times, submitted by Guest.