I'm getting the same error message, but I have all the correct parameters. I have a script set up to automatically practice spells, and so far it's worked great. I was trying to add in another bit so I'd automatically sleep for a certain amount of time, then automatically wake back up and start practicing again. The subroutine I have to start practicing is as follows:
sub beginprac (strAliasName, strOutput, arrWildCards)
world.addtrigger "practicer", "Saving...$", "c slow self\nc slow self\nc slow self\nc slow self\nsave", 33, 0, 0, "", ""
world.addtrigger "hungry", "(You are hungry.$|You are thirsty.$)", "", 33, 0, 0, "", "imhungry0"
world.addtrigger "outomana", "You don't have enough mana.$", "", 33, 0, 0, "", "endprac"
world.send "save"
end sub
When I call it with an alias, it works fine. However, with my end practice subroutine, here:
sub endprac (strAliasName, strOutput, arrWildCards)
world.deletetrigger "practicer"
world.deletetrigger "hungry"
world.deletetrigger "outomana"
world.addtimer "sleep_timer", 0, 1, 30, "wake", 5, "beginprac"
world.send "where"
end sub
It errors when the timer pops up. The command "wake" still goes through, but the "unable to invoke script subroutine" pops up and MUSHclient crashes (last time it crashed, I had to restart my whole system).
Also, in another part of my script, I have triggers call scripts with no trouble, and they're in the same format as the one I'm trying to get to work.
Any assistance would be greatly appreciated.
Thanks,
Riven |