Hey Chaps
I know you can't use goto within a timer, as it can't find the command whilst in the timer, however, I need a way of being able to trigger a goto after 120 seconds for a minigame I've coded in the bot. Does anyone have any ideas on how to do it in a way that works within mIRC?
Code:
on *:TEXT:!battle*:#: {
if ($2 = easy) && ($nick == eggfriedcheese) {
set %easybosson on
set %easyboss $read(C:\Users\danie\AppData\Roaming\mIRC\bosseasy.txt)
.msg # ! A fight has been started against %easyboss $+ . Type "!battle join" to enter
set %chatattack 0
; .timerfighteasycountdown1 1 30 .msg # ! 90 seconds to enter the fight! Type "!battle join" to enter
; .timerfighteasycountdown2 1 60 .msg # ! 60 seconds to enter the fight! Type "!battle join" to enter
; .timerfighteasycountdown3 1 90 .msg # ! 30 seconds to enter the fight! Type "!battle join" to enter
; .timerfighteasycountdown4 1 110 .msg # ! 10 seconds to enter the fight! Type "!battle join" to enter
; .timerstarteasyfight 1 120 .msg # ! Easy Fight Starting
.timerstartbattle 1 9 set %startbattle on
; goto battle
return
}
if ($2 = join) {
if (%easybosson) {
if (%inbattle. [ $+ [ $nick ] ]) { return }
else {
set %inbattle. [ $+ [ $nick ] ] on
.msg # $displayname has joined the fight with $read(C:\Users\danie\AppData\Roaming\mIRC\battleweapons.txt) $+ . Good Luck!
inc %chatattack $rand(10,50)
return
}
}
}
:battle
if (%startbattle) {
if (%easyboss == An Angry Cow (HP: 30)) { var %bosshealth 30 }
if (%easyboss == A Spider (HP: 40)) { var %bosshealth 40 }
if (%easyboss == A Goblin (HP: 50)) { var %bosshealth 50 }
.msg # The Damage from chat is %chatattack $+ . The boss has %bosshealth HP
if (%damage >= %bosshealth) { .msg # You killed the boss! | return }
if (%damage < %bosshealth) { .msg # The boss wiped out the chat! | return }
}
else { return }
}