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
nazradin
Apprentice


Joined: 23 Mar 2003
Posts: 114
Location: New Zealand

PostPosted: Mon Jul 07, 2003 8:18 am   

add item question
 

i have an var string that is a list of insults, i have been using

SpellList=%additem("cast 'armor' me",@SpellList)

but it is getting annoying when it will often repeat the same insult 3 or 4 times in a row.

I saw a post on here a couple of weeks ago where it used a var string deleted the first item and readded it back on the end, but i have been unable to find it again so,

#ALIAS Insulter {%eval( say %item( @Insult, 1));%additem( %item( @Insult, 1), @Insult);#DELN Insult 1}

this says and deltes the insult but does not add it back onto the end.

also tried
additem( %1, @Insult)

but neither work

>say Put 1 your dirt 1 ready to die
Put on your dirt shroud and get ready to die|I'm going to put you in the narrow house|You coffin is waiting for you|I will avenge with heaped interest the crimes you have commited|Taste the bile of punishment|You screams will be louder than any womens|I will free you of the pain of your existence|Get back in the privy you crawled out of night soil|Put on your dirt shroud and get ready to die
>
You say, "Put 1 your dirt 1 ready to die"
>I could not find what you were referring to.

also need a way to cut down the spamm

anyhepl appreciated
Reply with quote
nazradin
Apprentice


Joined: 23 Mar 2003
Posts: 114
Location: New Zealand

PostPosted: Mon Jul 07, 2003 10:08 am   
 

Shallimar helped me out

#ALIAS Insulter {%eval( say %item( @Insult, 1));#VAR insult {%additem( %item( @insult, 1), @insult)};#DELN Insult 1}


works fine
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