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
Xozes
Beginner


Joined: 24 Dec 2000
Posts: 24

PostPosted: Tue Mar 27, 2001 10:28 pm   

Music Bot
 
This nice little bot watches when you play a song (MateriaMagica). and randomly chooses songs out of a list of songs. It is fairly simple, but has checks to see if the creature is dead (so it wont try to play another song), it can also be modified to throw out random combat spells, as well.. it will also not try to cast while currently casting a spell (in Materia Magica, there is actually a wait during spellcasting/songplaying).
#CLASS {AutoSpells}
#TRIGGER {{You change the focus of your attack to|begins attacking you!|You enter into combat with|You join the melee opposing}} {#VAR songList {bolt|fb|harm|frost|weak|blind};#if (@sp > 400) {#alarm +1 {play %item( @songList, %random( 1, 6))}};#var plays 1}
#TRIGGER {You have completed your song.} {#T+ AutoSpells|Combat}
#CLASS 0

#CLASS {AutoSpells|Combat}
#ALARM -(02|04|06|08|10|12|14|16|18|20|22|24|26|28|30|32|34|36|38|40|42|44|46|48|50|52|54|56|58|00) {#VAR songList {bolt|fb|harm|frost};#if (@plays <= 2) {#if (@sp > 400) {play %item( @songList, %random( 1, 4))};#add plays 1};#T- AutoSpells|Combat}
#TRIGGER {collapses lifeless to the ground.} {#T- AutoSpells|Combat}
#TRIGGER {Your target doesn't appear to be here anymore.} {#T- AutoSpells|Combat}
#CLASS 0
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