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


Joined: 01 May 2002
Posts: 188
Location: USA

PostPosted: Fri May 10, 2002 3:39 pm   

Random Message IDLE SCRIPT?
 
I am trying to create an idle bot script, that keeps me idle in game as opposed to quitting me out when I'm sitting idle. Basically the script I want it to do is to chat, yell, emote, say, tell randomly with a random message. For instance, every so often tick, it'll either (yell, chat, auction, say) a random (message). The easy part is that it can randomly chat messages but the thing is I also want to randomize the (yell, say, chat) part.

Sup
Reply with quote
nutsnbolts
Apprentice


Joined: 01 May 2002
Posts: 188
Location: USA

PostPosted: Fri May 10, 2002 5:58 pm   
 
Any TAkers?

Sup
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Fri May 10, 2002 7:33 pm   
 
What's the problem? If you can figure out how to randomize one part why can't you figure out how to randomize the other. It's the same process.
%case(%random(1,4),yell,chat,auction,say)

LightBulb
Vague questions get vague answers
Reply with quote
nutsnbolts
Apprentice


Joined: 01 May 2002
Posts: 188
Location: USA

PostPosted: Sat May 11, 2002 3:50 am   
 
oops, let me rephrase that, I remember doing it in the past but that was like 2 years ago when I mudded heavily..hehe...well now, I'm clueless as to how to do it. I know it's possible but that's the extent of my knowledge.

If you could give me an example of the entire script, it would be helpful. At least till I can relearn everything.

Sup
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sat May 11, 2002 5:42 am   
 
This isn't hard. If you want random actions, you use the %random function.

#VAR idlemessages {nobody home|gone fishing|out to lunch}
#ALARM {*10:00} {%case(%random(1,4),yell,chat,auction,say) %item(@idlemessages,%random(1,numitems(@idlemessages)))}


LightBulb
Vague questions get vague answers
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