Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Belial
Beginner


Joined: 14 Jun 2006
Posts: 12

PostPosted: Mon Jun 19, 2006 3:28 pm   

data record addkey
 
Hi,

Ive run into yet another problem. For those that read my previous thread I got help with creating a variable with all the people online. I am using this list to execute commands against. I am trying to add to the info collected the guild of every character. I started off by creating a seperate variable called @guild where I started storing the information. However I realised that you cant have duplicates in the stringlist.
I have converted the @Who_Online variable to a data record and now want to add the result from the below code to that variable.

Code:
#ALIAS capture {#var guild {};#loop 1,15 {finger %item( @Who_Online, %i)};#wait 10000;#loop 16,30 {finger %item( @Who_Online, %i)}}
#TRIGGER {^{He|She} is {a|an} (%w) (%w).} {#additem %2 guild }


Since I use the command "finger" on each row in the @Who_Online variable its safe to say that I will get the same amount of rows returned.

So Instead of #additem %2 guild I am looking to do #addkey %2 @who_online but it should go in the second column.

Sorry for the long-post but tried to explain the problem as good as I could.

Thanks Wink
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net