Cmud Request

June 06, 2009 04:45PM
I recently converted from Zmud to Cmud and am having a problem with one of my old processes, its actually the script in the wiki for reading and showing an item list by using an item command. I understand how most of the functions etc work but there is some jargon that is holding me up.

So here it is so you don't have to check the wiki for it (for zmud versions):
Alias: item
#file 2 carritems.txt
#var tmp_list %grep( 2, "%1*%2")
#close 2
#loop 0,%numitems( @tmp_list) {#echo %item( @tmp_list, %i)}
#unvar tmp_list

So basically what this does, I type for example: item black sword and it opens my carritems.txt file and posts everything in the file on the screen pertaining to the key words black sword typically. I understand the above set up creates a temp list of all the items matching what I input through the tmp_list variable and it is built through the loop. Ending with variable being deleted so I can do this whenever I need to. As it stands right now it just doesn't display anything at all. And I do have the .txt saved in my Cmud folder. Any help would be appreciated. If we do find a solution I recommend we get it updated on the wiki, unless the scripting is fine and its something I'm doing wrong with where the file is saved.
Subject Author Posted

Cmud Request

silvian June 06, 2009 04:45PM

Re: Cmud Request

Dave June 07, 2009 02:15PM

Re: Cmud Request

Dave June 07, 2009 02:10PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 100
Record Number of Users: 5 November 04, 2022
Record Number of Guests: 358 August 31, 2022