Jump to content
  • 0

Warp NPC to the map for 10+ Guildmates


Eivohr

Question


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  71
  • Reputation:   0
  • Joined:  01/14/13
  • Last Seen:  

Hello, anyone who can make a NPC that warp to the map with only 10+ Guildmates. Thanks

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


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

	// If guild members must be online, uncomment this line.

//set .@str$," AND `online` = 1";

set .@gid, getcharid(2);

if (.@gid) {

set .@count, query_sql("SELECT `char_id` FROM `char` WHERE `guild_id` = "+.@gid+.@str$,.@temp);

if (.@count >= 10) {

warp "map",x,y;

end;

}

}

mes "You need at least 10 guild members.";

close;

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  71
  • Reputation:   0
  • Joined:  01/14/13
  • Last Seen:  

	// If guild members must be online, uncomment this line.
	//set .@str$," AND `online` = 1";
	
	set .@gid, getcharid(2);
	if (.@gid) {
		set .@count, query_sql("SELECT `char_id` FROM `char` WHERE `guild_id` = "+.@gid+.@str$,.@temp);
		if (.@count >= 10) {
			warp "map",x,y;
			end;
		}
	}
	mes "You need at least 10 guild members.";
	close;

Thanks Eupry's ^^

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