Jump to content
  • 0

NPC unclickable


McNeri

Question


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

Hi,

Can anybody edit this one, unclickable npc...

And can you add the script, npc will give gpacks to each guild member if the guild already have 8 members online,

and it will record the account id not IP.

Guild_Pack_Giver.txt

Link to comment
Share on other sites

9 answers to this question

Recommended Posts


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

you are missing 1 "}" at the end of the script...

and..what is the usage of this part ...? it never run in your script..

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

i believe it should be below this line..

case 1:

Link to comment
Share on other sites


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

L_AG:
mes "^616D7EYou Already Given a Package";
close;
{

change to

L_AG:
mes "^616D7EYou Already Given a Package";
close;
}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  103
  • Reputation:   28
  • Joined:  09/20/12
  • Last Seen:  

you need to look at your map-server while it is loading, it will inform you of all NPC errors/incorrect syntax.

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:  

thanks emistry its working..

but i have a questions;

- This script gives gpacks to each guild members not to guild master?

- This script also gives gpacks, the 8 members of guild must be online?

And the other members of guild were offline will not recieve the gpack.

thanks in advance...

bump

??? any response?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  103
  • Reputation:   28
  • Joined:  09/20/12
  • Last Seen:  

first.

set .@frnd2$,strcharinfo(0);

where is this used? I do not see it, but you have it set.

and I am confused you contradict yourself, do you want ONLY the guild master to recieve said items, OR is it everyone BUT the guildmaster recieves them?

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:  

first.

set .@frnd2$,strcharinfo(0);

where is this used? I do not see it, but you have it set.

and I am confused you contradict yourself, do you want ONLY the guild master to recieve said items, OR is it everyone BUT the guildmaster recieves them?

yes, is it everyone BUT the guildmaster recieves them.

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:  

SOLVED

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  98
  • Topics Per Day:  0.02
  • Content Count:  1302
  • Reputation:   77
  • Joined:  12/04/12
  • Last Seen:  

SOLVED

can u share it ?

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...