go into your config screen in MC, and click the scripting menu
and choose scripts, then make sure the 'Enable script' is active
scripting language is VBscript and select a location and filename
for your script.
click edit script and paste the following:
'---------------------------Storm Dragon Code--------------------------------
sub PromptParse (strTriggerName, trig_line, arrWildCards)
select case lcase(StrTriggerName)
case "install"
world.addtrigger "SendPrompt", "(*/*hp|*m|*mv)(*)<* coins>(#*)", "", 1, -1, 0, "", "PromptParse"
case "sendprompt" ' 1 2 3 4 5 6 7 - These are the wildcards
world.setvariable "CurrentHP", cint(arrWildCards(1))
world.setvariable "MaxHP", cint(arrWildCards(2))
world.setvariable "CurrentMana", cint(arrWildCards(3))
world.setvariable "CurrentVitality", cint(arrWildCards(4))
world.setvariable "CurrentCoins", cint(arrWildCards(6))
case else
end select
' Below this line we can insert the subroutines that have to be checked everytime a prompt shows up.
call ManaCheck
end sub
sub ManaCheck
if world.getvariable("CurrentMana") <= world.getvariable("MinMana") then
world.send "Trance"
world.send "Trance"
world.send "Trance"
world.send "Trance"
world.send "Trance"
world.send "Trance"
world.send "Trance"
end if
end sub
'-----------------------End Storm Dragon Code--------------------------------
Ok.. we are done with the script, save it and return to the config screen
notice just above the help button, it says 'Script Prefix' it should say /
change it only if you use that character in the game (I mean when you start a line with it)
click the ok button and type the following into your command line
/promptparse "install", "", ""
/world.setvariable "MinMana", 23000
where the last number is the minimum mana you have before starting the trancing |