Thread: Guild tags
View Single Post
  #17  
Old 05-11-2001, 09:50 PM
kyle0654 kyle0654 is offline
-. .`
kyle0654's Avatar
Join Date: Mar 2001
Posts: 1,000
kyle0654 will become famous soon enough
How about:

getmembers guildname, string;

it would read all members of guild guildname into the string, string, with a space inbetween each name. Then you can just tokenize the string and do with it what you want.

Perhaps a command to add text on the end of a sign would be useful with that though, so if you wanted to display all members in a guild, you could do:

setstring guild, guildname;
tokenize string;

say2 Guild members in #s(guild);#b
for (i = 0; i < tokenscount; i++) {
AddtoSign #s(#t(i))#b;
}

it would then send the sign at the end of the script to the player. You could also use this for items a store sells and other things. It'd basically be building a sign within the script.