Update 'GenieHunt_Script.xml'

main
icecool 3 years ago
parent bacedfe5c2
commit 6e2622b123

@ -18,85 +18,25 @@
</plugin> </plugin>
<aliases> <aliases>
<alias <alias
script="aliasHuntFirstSand" match="^(llook|sandhunt)$"
match="sandhunt" script="aliasLoopLook" name="aliasLoopLook" keep_evaluating="y" enabled="y" regexp="y" send_to="12" sequence="100">
name="aliasSandHunt" </alias>
keep_evaluating="y"
enabled="y"
regexp="n"
send_to="12"
sequence="100">
</alias>
</aliases> </aliases>
<triggers> <triggers>
<trigger <trigger
name="triggerHunt1Sand" match="^(\s+)?\-\s+\w+\,\s+Sat\sApr\s+\d+\s+\d+:\d+:(?<seconds>\d+)\s+\d+\.$"
enabled="n" name="findGenieLoop" enabled="n" group="GenieLoops" script="findGenieLoop" omit_from_output="y" regexp="y" sequence="100"
group="triggerGenieHunt" > </trigger>
script="triggerProcessHunt" <trigger
match="^You are certain that blizzard of sand is (?<dir>\w+) from here.$" match="NOGRAF HERE!"
omit_from_output="y" name="GenieGrafGagNoGraf" enabled="n" group="GenieLoops" omit_from_output="y" regexp="n" sequence="100"
regexp="y" > </trigger>
sequence="100" <trigger
> match="test"
</trigger> name="GenieGrafGagTest" enabled="n" group="GenieLoops" omit_from_output="y" regexp="n" sequence="100"
<trigger > </trigger>
name="triggerHunt3Sand"
enabled="n"
group="triggerGenieHunt"
script="triggerProcessHunt"
match="^You are certain that blizzard of sand is (?<dir>\w+) from here.$"
omit_from_output="y"
regexp="y"
sequence="100"
>
</trigger>
<trigger
name="triggerHunt5Sand"
enabled="n"
group="triggerGenieHunt"
script="triggerProcessHunt"
match="^You are certain that blizzard of sand is (?<dir>\w+) from here.$"
omit_from_output="y"
regexp="y"
sequence="100"
>
</trigger>
<trigger
name="triggerHunt7Sand"
enabled="n"
group="triggerGenieHunt"
script="triggerProcessHunt"
match="^You are certain that blizzard of sand is (?<dir>\w+) from here.$"
omit_from_output="y"
regexp="y"
sequence="100"
>
</trigger>
<trigger
name="triggerHunt9Sand"
enabled="n"
group="triggerGenieHunt"
script="triggerProcessHunt"
match="^You are certain that blizzard of sand is (?<dir>\w+) from here.$"
omit_from_output="y"
regexp="y"
sequence="100"
>
</trigger>
<trigger
name="triggerHunt11Sand"
enabled="n"
group="triggerGenieHunt"
script="triggerProcessHunt"
match="^You are certain that blizzard of sand is (?<dir>\w+) from here.$"
omit_from_output="y"
regexp="y"
sequence="100"
>
</trigger>
</triggers> </triggers>
<!-- Get our standard constants --> <!-- Get our standard constants -->
@ -106,95 +46,37 @@
<!-- Script --> <!-- Script -->
<script> <script>
<![CDATA[ <![CDATA[
-- Initialize the GenieHunt table dofile(GetInfo(60) .. "aardwolf_colors.lua") -- Used to support Aard Colors for the cnote() function
function initializeGenieHunt() -- Basic print function that supports aard, xterm, and ANSI color codes [idea from Durel's Inventory script]
GenieHunt = { } function cnote(string)
GenieHunt.OneSand = "" AnsiNote(stylesToANSI(ColoursToStyles(string)))
GenieHunt.ThreeSand = ""
GenieHunt.FiveSand = ""
GenieHunt.SevenSand = ""
GenieHunt.NineSand = ""
GenieHunt.ElevenSand = ""
end end
-- Begin the hunting of the first sand which includes initializing the table/etc function aliasLoopLook( name, lines, args )
function aliasHuntFirstSand() cnote( "@D[@MGenie@D] @C>> @WProcessing Loop Data @C<<@w" )
initializeGenieHunt() Note()
functionHuntSand(1) EnableTriggerGroup( "GenieLoops", true )
SendNoEcho( "look graffiti" )
end end
-- Process the Hunt Triggers function findGenieLoop( name, lines, args )
function triggerProcessHunt(name, line, arg) local sec = tonumber(args.seconds)
if name == "triggerHunt1Sand" then if sec == 22 then
EnableTrigger("triggerHunt1Sand", false ) SendNoEcho( "gt @D[@MGenie@D] @C>> @GLoop 1 is here. @C<<@w" )
GenieHunt.OneSand = arg.dir:upper() elseif sec == 30 then
ColourNote( "gray", "black", "[", "white", "black", "GenieHunt", "gray", "black", "]:", "lightskyblue", "black", "GenieHunt.OneSand is set to ", "red", "black", GenieHunt.OneSand ) SendNoEcho( "gt @D[@MGenie@D] @C>> @GLoop 2 is here. @C<<@w" )
functionHuntSand(3) elseif sec == 32 then
elseif name == "triggerHunt3Sand" then SendNoEcho( "gt @D[@MGenie@D] @C>> @GLoop 3 is here. @C<<@w" )
EnableTrigger("triggerHunt3Sand", false ) elseif sec == 35 then
GenieHunt.ThreeSand = arg.dir:upper() SendNoEcho( "gt @D[@MGenie@D] @C>> @GLoop 4 is here. @C<<@w" )
ColourNote( "gray", "black", "[", "white", "black", "GenieHunt", "gray", "black", "]:", "lightskyblue", "black", "GenieHunt.ThreeSand is set to ", "red", "black", GenieHunt.ThreeSand ) elseif sec == 37 then
functionHuntSand(5) SendNoEcho( "gt @D[@MGenie@D] @C>> @GLoop 5 is here. @C<<@w" )
elseif name == "triggerHunt5Sand" then elseif sec == 39 then
EnableTrigger("triggerHunt5Sand", false ) SendNoEcho( "gt @D[@MGenie@D] @C>> @GLoop @RTRAP@G is here. @C<<@w" )
GenieHunt.FiveSand = arg.dir:upper() else
ColourNote( "gray", "black", "[", "white", "black", "GenieHunt", "gray", "black", "]:", "lightskyblue", "black", "GenieHunt.FiveSand is set to ", "red", "black", GenieHunt.FiveSand ) SendNoEcho( "gt @D[@MGenie@D] @C>> @RERROR!! This is not a loop. @C<<@w" )
functionHuntSand(7) end
elseif name == "triggerHunt7Sand" then EnableTrigger( "findGenieLoop", false )
EnableTrigger("triggerHunt7Sand", false )
GenieHunt.SevenSand = arg.dir:upper()
ColourNote( "gray", "black", "[", "white", "black", "GenieHunt", "gray", "black", "]:", "lightskyblue", "black", "GenieHunt.SevenSand is set to ", "red", "black", GenieHunt.SevenSand )
functionHuntSand(9)
elseif name == "triggerHunt9Sand" then
EnableTrigger("triggerHunt9Sand", false )
GenieHunt.NineSand = arg.dir:upper()
ColourNote( "gray", "black", "[", "white", "black", "GenieHunt", "gray", "black", "]:", "lightskyblue", "black", "GenieHunt.NineSand is set to ", "red", "black", GenieHunt.NineSand )
functionHuntSand(11)
elseif name == "triggerHunt11Sand" then
EnableTrigger("triggerHunt11Sand", false )
GenieHunt.ElevenSand = arg.dir:upper()
ColourNote( "gray", "black", "[", "white", "black", "GenieHunt", "gray", "black", "]:", "lightskyblue", "black", "GenieHunt.ElevenSand is set to ", "red", "black", GenieHunt.ElevenSand )
functionPrintLoop()
end
end
-- Handle activating and hunting the correct Sand
function functionHuntSand(hnumber)
if hnumber == 1 then
SendNoEcho( "hunt 1.sand noportal")
EnableTrigger("triggerHunt1Sand", true )
elseif hnumber == 3 then
SendNoEcho( "hunt 3.sand noportal")
EnableTrigger("triggerHunt3Sand", true )
elseif hnumber == 5 then
SendNoEcho( "hunt 5.sand noportal")
EnableTrigger("triggerHunt5Sand", true )
elseif hnumber == 7 then
SendNoEcho( "hunt 7.sand noportal")
EnableTrigger("triggerHunt7Sand", true )
elseif hnumber == 9 then
SendNoEcho( "hunt 9.sand noportal")
EnableTrigger("triggerHunt9Sand", true )
elseif hnumber == 11 then
SendNoEcho( "hunt 11.sand noportal")
EnableTrigger("triggerHunt11Sand", true )
end
end
function functionPrintLoop()
if GenieHunt.OneSand == "EAST" and GenieHunt.ThreeSand == "EAST" and GenieHunt.FiveSand == "EAST" then
SendNoEcho( "gt @D[@MGenie@D] @C>> @GLoop 1 is here. @C<<@w" )
elseif GenieHunt.ThreeSand == "EAST" and GenieHunt.FiveSand == "EAST" and GenieHunt.SevenSand == "EAST" then
SendNoEcho( "gt @D[@MGenie@D] @C>> @GLoop 2 is here. @C<<@w" )
elseif GenieHunt.FiveSand == "EAST" and GenieHunt.SevenSand == "EAST" and GenieHunt.NineSand == "EAST" then
SendNoEcho( "gt @D[@MGenie@D] @C>> @GLoop 3 is here. @C<<@w" )
elseif GenieHunt.SevenSand == "EAST" and GenieHunt.NineSand == "EAST" and GenieHunt.ElevenSand == "EAST" then
SendNoEcho( "gt @D[@MGenie@D] @C>> @GLoop 4 is here. @C<<@w" )
elseif GenieHunt.OneSand == "EAST" and GenieHunt.NineSand == "EAST" and GenieHunt.ElevenSand == "EAST" then
SendNoEcho( "gt @D[@MGenie@D] @C>> @GLoop 5 is here. @C<<@w" )
elseif GenieHunt.OneSand == "EAST" and GenieHunt.ThreeSand == "EAST" and GenieHunt.ElevenSand == "EAST" then
SendNoEcho( "gt @D[@MGenie@D] @C>> @GTrap Loop is here. @C<<@w" )
end
end end
]]> ]]>

Loading…
Cancel
Save