Danical
08-25-2006, 08:51 PM
I'm having a bit of trouble making this work. I can't seem to make it all work. I've tried looking at the tutorials and bugged shaelun numerous times but I still can't seem to make sense of it.
Specifically, it targets constructs when I'm trying to make it skip those. I'd also like to add in a few lines for when I run into scouts/jans so I can 1013 them for mana then proceeded to "kill."
And possibly, I'd like to add in a line for if there are two or more ithzir/griffins in the room then I would open 1030 but that can wait.
Any help would be very much appreciated.
setpriority(-1)
otfroom = Array.new
otfroom[0] = "w"
otfroom[1] = "n"
otfroom[2] = "n"
otfroom[3] = "e"
otfroom[4] = "w"
otfroom[5] = "s"
otfroom[6] = "e"
otfroom[7] = "w"
otfroom[8] = "s"
otfroom[9] = "e"
otfroom[10] = "e"
otfroom[11] = "e"
otfroom[12] = "ne"
otfroom[13] = "e"
otfroom[14] = "ne"
otfroom[15] = "go shore"
otfroom[16] = "e"
otfroom[17] = "e"
otfroom[18] = "go shore"
otfroom[19] = "n"
otfroom[20] = "ne"
otfroom[21] = "e"
otfroom[22] = "sw"
otfroom[23] = "s"
otfroom[24] = "e"
otfroom[25] = "e"
otfroom[26] = "e"
otfroom[27] = "e"
otfroom[28] = "e"
otfroom[29] = "w"
otfroom[30] = "n"
otfroom[31] = "e"
otfroom[32] = "w"
otfroom[33] = "w"
otfroom[34] = "w"
otfroom[35] = "w"
otfroom[36] = "nw"
otfroom[37] = "nw"
otfroom[38] = "w"
otfroom[39] = "w"
otfroom[40] = "w"
otfroom[41] = "s"
otfroom[42] = "nw"
otfroom[43] = "s"
otfroom[44] = "nw"
otfroom[45] = "s"
otfroom[46] = "nw"
otfroom[47] = "s"
otfroom[48] = "s"
otfroom[49] = "w"
move:
loop{
for dir in otfroom
move dir
mobs = Array.new
mobs = checknpcs
mobs.delete('a greater construct')
if mana?(60) and !checkpcs and mobs
echo mobs
goto "kill"
else
next
end
end
}
kill:
loop{
;mobs = Array.new
;mobs = checknpcs
;mobs.delete('a greater construct')
fput "prep 1030"
fput "cast at #{mobs.first}"
waitrt?
until waitfor("leaving you gesturing at nothingness", "What were you referring to", "motionless", "life fading from", "in a crumpled heap", "goes still", "as it dies", "then collapses") =~ /leaving you gesturing at nothingness|What were you referring to|motionless|life fading from|in a crumpled heap|goes still|as it dies|then collapses|Sing Roundtime/
fput "prep 1030"
fput "cast at #{mobs.first}"
waitrt?
end
fput "loot"
mobs.clear
fetchloot
mobs = Array.new
mobs = checknpcs
mobs.delete("a greater construct")
if mana?(60) and mobs
goto "kill"
else
goto "move"
end
}
Specifically, it targets constructs when I'm trying to make it skip those. I'd also like to add in a few lines for when I run into scouts/jans so I can 1013 them for mana then proceeded to "kill."
And possibly, I'd like to add in a line for if there are two or more ithzir/griffins in the room then I would open 1030 but that can wait.
Any help would be very much appreciated.
setpriority(-1)
otfroom = Array.new
otfroom[0] = "w"
otfroom[1] = "n"
otfroom[2] = "n"
otfroom[3] = "e"
otfroom[4] = "w"
otfroom[5] = "s"
otfroom[6] = "e"
otfroom[7] = "w"
otfroom[8] = "s"
otfroom[9] = "e"
otfroom[10] = "e"
otfroom[11] = "e"
otfroom[12] = "ne"
otfroom[13] = "e"
otfroom[14] = "ne"
otfroom[15] = "go shore"
otfroom[16] = "e"
otfroom[17] = "e"
otfroom[18] = "go shore"
otfroom[19] = "n"
otfroom[20] = "ne"
otfroom[21] = "e"
otfroom[22] = "sw"
otfroom[23] = "s"
otfroom[24] = "e"
otfroom[25] = "e"
otfroom[26] = "e"
otfroom[27] = "e"
otfroom[28] = "e"
otfroom[29] = "w"
otfroom[30] = "n"
otfroom[31] = "e"
otfroom[32] = "w"
otfroom[33] = "w"
otfroom[34] = "w"
otfroom[35] = "w"
otfroom[36] = "nw"
otfroom[37] = "nw"
otfroom[38] = "w"
otfroom[39] = "w"
otfroom[40] = "w"
otfroom[41] = "s"
otfroom[42] = "nw"
otfroom[43] = "s"
otfroom[44] = "nw"
otfroom[45] = "s"
otfroom[46] = "nw"
otfroom[47] = "s"
otfroom[48] = "s"
otfroom[49] = "w"
move:
loop{
for dir in otfroom
move dir
mobs = Array.new
mobs = checknpcs
mobs.delete('a greater construct')
if mana?(60) and !checkpcs and mobs
echo mobs
goto "kill"
else
next
end
end
}
kill:
loop{
;mobs = Array.new
;mobs = checknpcs
;mobs.delete('a greater construct')
fput "prep 1030"
fput "cast at #{mobs.first}"
waitrt?
until waitfor("leaving you gesturing at nothingness", "What were you referring to", "motionless", "life fading from", "in a crumpled heap", "goes still", "as it dies", "then collapses") =~ /leaving you gesturing at nothingness|What were you referring to|motionless|life fading from|in a crumpled heap|goes still|as it dies|then collapses|Sing Roundtime/
fput "prep 1030"
fput "cast at #{mobs.first}"
waitrt?
end
fput "loot"
mobs.clear
fetchloot
mobs = Array.new
mobs = checknpcs
mobs.delete("a greater construct")
if mana?(60) and mobs
goto "kill"
else
goto "move"
end
}