TiMz Posted February 11, 2014 Group: Members Topic Count: 51 Topics Per Day: 0.01 Content Count: 192 Reputation: 9 Joined: 05/08/13 Last Seen: August 23, 2024 Share Posted February 11, 2014 (edited) Hello. Can someone help me make an NPC that will show a list of all member names of guild_id==100? Just a simple npc with just that. Thank you! Hoping it will look something like this. [Poring Guild] //which is guild_id 100 Members: Aba Baba Caba Edited February 12, 2014 by Isaiah Quote Link to comment Share on other sites More sharing options...
Euphy Posted February 11, 2014 Group: Members Topic Count: 72 Topics Per Day: 0.02 Content Count: 2997 Reputation: 1132 Joined: 05/27/12 Last Seen: June 1, 2017 Share Posted February 11, 2014 Added the Getguildmember command in eba1539. Please update (or cherry-pick the commit) to be able to use the command. set .@gid, 100; mes "[ " + getguildname(.@gid) + " ]"; mes "Members:"; getguildmember .@gid; if ($@guildmembercount == 0) mes "- none - "; else { for (.@i = 0; .@i < $@guildmembercount; .@i++) mes $@guildmembername$[.@i]; } close; 1 Quote Link to comment Share on other sites More sharing options...
TiMz Posted February 12, 2014 Group: Members Topic Count: 51 Topics Per Day: 0.01 Content Count: 192 Reputation: 9 Joined: 05/08/13 Last Seen: August 23, 2024 Author Share Posted February 12, 2014 (edited) @euphy Thanks for responding. I can't seem to compile with the new code. I'm guessing my svn is far too outdated for it. (attached error screenie) Thanks though! Edited February 12, 2014 by Isaiah Quote Link to comment Share on other sites More sharing options...
Emistry Posted February 12, 2014 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: 15 hours ago Share Posted February 12, 2014 .@guild_id = 100; query_sql( "SELECT `name`,`position` FROM `guild_member` WHERE `guild_id` = "+.@guild_id+" ORDER BY `position` ",.@name$,.@position ); .@name_size = getarraysize( .@name$ ); for( .@i = 0; .@i < .@name_size; .@i++ ) mes .@name$[.@i]+" | Position: "+.@position[.@i]; close; Quote Link to comment Share on other sites More sharing options...
Question
TiMz
Hello. Can someone help me make an NPC that will show a list of all member names of guild_id==100? Just a simple npc with just that.
Thank you!
Hoping it will look something like this.
[Poring Guild] //which is guild_id 100
Members:
Aba
Baba
Caba
Edited by IsaiahLink to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.