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
Edwub
Wanderer


Joined: 21 Nov 2002
Posts: 85
Location: USA

PostPosted: Mon Jan 13, 2003 11:37 pm   

Alias help
 
This is aliased to: spam

#prompt spamvictim {Who is to be spammed?}
#prompt spamcount {How many times?}
#prompt spamsay {What to say to spam the hell out of them?}
#math spamsay;#loop %len( "%-1") {#if (%random( 1)=0) {#math spamsay @spamsay+~%C%random( 1, 7)+%copy( "%-1", %i, 1)} {#math spamsay @spamsay+%B%random( 1, 7)+%copy( "%-1", %i, 1)}};#var spammessage @spamsay
#loop @spamcount {tell @spamvictim @spammessage?}


The random color thing doesn't work right.
Any ideas how to fix it?

=)

I wanted to

Edwub the Mage
Reply with quote
Emit
Magician


Joined: 24 Feb 2001
Posts: 342
Location: USA

PostPosted: Tue Jan 14, 2003 12:26 am   
 
maybe its the #math part? lightbulb wrote a great random color script here and instead of concatenateing the strings he used #sendprompt to send characters to the mud one at a time, terminating everything with a #cr command.

#SENDPROMPT "tell @spamvictim "
#LOOP 1,%len( %-1) {
#SENDPROMPT {
~%%item( C|B, %random( 1, 2))%random( 1, 7)%copy( %-1, %i, 1)
}
}
#CR

is what i think would work good for you. your color codes are %B1 etc. right?
Reply with quote
Edwub
Wanderer


Joined: 21 Nov 2002
Posts: 85
Location: USA

PostPosted: Tue Jan 14, 2003 1:46 am   
 
%B1 to 7, same with %C

Doesn't work =(



Edwub the Mage
Reply with quote
Emit
Magician


Joined: 24 Feb 2001
Posts: 342
Location: USA

PostPosted: Tue Jan 14, 2003 4:59 am   
 
my bad! @spamvictim doesn't get expanded in the #sendprompt command.
this is the alias that i tested till it worked :)


#alias spammy {
#PROMPT spamvictim {Who is to be spammed?}
#PROMPT spamcount {How many times?}
#PROMPT spammsg {What should the message be?}
tellcmd = %concat( "tell ", @spamvictim)
#LOOP 1,@spamcount {
#SENDPROMPT @tellcmd
#SENDPROMPT " "
#LOOP 1,%len( @spammsg) {#SENDPROMPT {~%%item( C|B, %random( 1, 2))%random( 1, 7)%copy( @spammsg, %i, 1)}}
#CR
}
}

Use this wisely, i'm sure it can get to people.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Tue Jan 14, 2003 5:17 am   
 
Do you expect to get banned from your MUD faster by using colored spam? For fastest results, you should save the administrators the bother and just delete your character yourself.

LightBulb
Senior Member
Reply with quote
Edwub
Wanderer


Joined: 21 Nov 2002
Posts: 85
Location: USA

PostPosted: Tue Jan 14, 2003 5:48 am   
 
Actually its part of contest for most innovative creative triggers.

I'm also a prominent mortal in the mud I play, but its useful to have...fun...triggers like this. >:)

Edwub the Mage
Reply with quote
Edwub
Wanderer


Joined: 21 Nov 2002
Posts: 85
Location: USA

PostPosted: Tue Jan 14, 2003 5:50 am   
 
Can't believe I forgot to add this...

Thanks Emit, it worked like a charm =)

Edwub the Mage
Reply with quote
Emit
Magician


Joined: 24 Feb 2001
Posts: 342
Location: USA

PostPosted: Tue Jan 14, 2003 6:40 am   
 
good news, let me know how you do in the contest
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