Jump to content
  • 0

How to edit this script...


Question

4 answers to this question

Recommended Posts

Posted
set .@Minimum, 8;
query_sql("SELECT `account_id` FROM `char` WHERE `guild_id` = "+getcharid(2)+";",.@i);
if (getarraysize(.@i) < .@Minimum) {
   mes "Your guild must have at least "+.@Minimum+" members for you to receive a guild pack.";
   close;
}

Posted (edited)

try add this ...

query_sql("SELECT `name` FROM `char` WHERE `guild_id` = '"+getcharid(2)+"'", .@Name$);
if( getarraysize( .@Name$ ) < 8 ){
 mes "You need at least 8 Guild Member.";
 close;
}

LOL...beated by @Euphy... >.<

Edited by Emistry
Posted (edited)

what part i will add this:

set .@Minimum, 8;
query_sql("SELECT `account_id` FROM `char` WHERE `guild_id` = "+getcharid(2)+";",.@i);
if (getarraysize(.@i) < .@Minimum) {
mes "Your guild must have at least "+.@Minimum+" members for you to receive a guild pack.";
close;
}

Don't remove this:)

this NPC will record each player IP address to avoid abuse on players side by getting 2 Package in 1 IP

Edited by GM Neri

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...