Belial Beginner
Joined: 14 Jun 2006 Posts: 12
|
Posted: 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 |
|