Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » Finished MUD Scripts
rlittle8
Newbie


Joined: 04 Oct 2010
Posts: 2

PostPosted: Mon Oct 04, 2010 12:25 am   

Alarm + wait help
 
Botting/scripting is illegal on most muds that I play. I have everything set up to bot/script, however... I am running a bot that runs off of timers, and does not respond from the mud.

Here is my issue. I want to set the ticker to re-occur every 2 minutes which I have been able to do. My issue is, I want it to fire off at random times between 1:45 and 2:25 (that would be in minutes). So very simple, I want to (kill human) every 1:45-2:25 minutes. Is anyone able to show me how to do this? It must be random times, it cannot be the same time every time.
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 3515
Location: Pensacola, FL, USA

PostPosted: Mon Oct 04, 2010 3:26 am   
 
First off.. this is the wrong forum for questions, this is a place for sharing completed and working scripts.

As for the question... you would convert the time to seconds, and use the %random function
With the times you have supplied that would be: %random(105, 145)

You would then want to use an #ALARM:

#ALARM "killBot" +%random(105, 145) {kill human}

Now, this wont prevent it from randomly being the same number twice, but it should do what you want.
_________________
Windows 10 Home Premium 64-bit
AMD Phenom II x6 1055T 2.8GHz 16GB
CMUD Pro v3.34
Reply with quote
lionsroar777
Beginner


Joined: 31 Jan 2012
Posts: 17

PostPosted: Fri Feb 10, 2012 11:51 am   
 
Is this for Zmud or Cmud?
Reply with quote
Daern
Sorcerer


Joined: 15 Apr 2011
Posts: 809

PostPosted: Fri Feb 10, 2012 2:20 pm   
 
Seeing as it's in a zmud forum, make an educated guess.
Reply with quote
lionsroar777
Beginner


Joined: 31 Jan 2012
Posts: 17

PostPosted: Fri Feb 10, 2012 5:25 pm   
 
Haha, I like your style. Razz
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » Finished MUD Scripts 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