Jump to content
  • 0

How to edit this script...


McNeri

Question


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  98
  • Reputation:   2
  • Joined:  01/24/12
  • Last Seen:  

Hi, anybody can edit this script?

i want 8 guild members the minumum can get gpacks.

Guild_Pack_Giver.txt

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1132
  • Joined:  05/27/12
  • Last Seen:  

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;
}

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10018
  • Reputation:   2369
  • Joined:  10/28/11
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  98
  • Reputation:   2
  • Joined:  01/24/12
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10018
  • Reputation:   2369
  • Joined:  10/28/11
  • Last Seen:  

what part i will add this:

inside

Case 1:

Link to comment
Share on other sites

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.

×
×
  • Create New...