PDA

View Full Version : Web_destroy: A subroutine for MIU and fire vial using rogues.



Renian
07-25-2008, 01:57 PM
Webs piss me off in OTF. So I decided that I wasn't going to stand for their bullshit anymore.

First off, the movement code that I was using to trigger it.



move $movearray[$i]
$i = $i + 1
if $i == $movearray.length
$i = 0
end
target_line = matchtimeout 2, "sticky web", "Obvious paths", "Obvious exits"
if target_line =~ /sticky web/i
web_destroy()
end


Now, the subroutine. I haven't seen it use golden wands yet, but it does vials perfectly, which may be more than enough.



def web_destroy
fput "get my golden wand"
target_line = matchtimeout 2, "You remove", "Get what?"
if target_line =~ /You remove/i
fput "Wave my wand at web"
target_line = matchtimeout 2, "Portions of the sticky web", "Portions of the burning web", "wand does not activate", "last of the webbing turns to ash", "You do not see that here."
while target_line =~ /Portions of the (sticky|burning) web|wand does not activate/i
sleep 3
fput "wave my wand at web"
target_line = matchtimeout 2, "Portions of the sticky web", "Portions of the burning web", "wand does not activate", "last of the webbing turns to ash", "You do not see that here."
end
if target_line =~ /last of the webbing turns to ash|You do not see that here./i
fput "put my wand in my cloak"
else
fput "drop wand"
web_destroy()
end
elsif target_line =~ /Get what?/i
fput "get my thick vial"
target_line = matchtimeout 2, "You remove", "Get what?"
if target_line =~ /You remove/i
fput "throw my vial at web"
target_line = matchtimeout 3, "last of the webbing turns to ash", "You do not see that here."
if target_line =~ /You do not see that here/
fput "put my vial in my cloak"
else
sleep 3
end
else
echo "There is a web in the way. Pausing the script."
pause_script
end
end
end

Renian
07-25-2008, 02:39 PM
Just tested the golden wand part. It works perfectly.

Renian
07-27-2008, 03:36 PM
Or not.

Fixed a bug that caused you to drop your golden wands after two casts because it didn't recognize "a burning web" instead of "a sticky web".

B2
07-27-2008, 05:31 PM
Don't forget the fine opaline dust that casts untrammel! No waiting around for the web to burn that way.

Renian
07-27-2008, 11:54 PM
Yeah, the thick vials have the same effect.

If there's a good place to get that shit, tell me and I'll add it to the script.

Kembal
07-28-2008, 04:57 AM
Got a few for sale in my shop on FWI. I'll probably get around to making some more later this week.

Renian
07-28-2008, 09:06 AM
What, are they alchemy?

Allereli
07-28-2008, 10:24 AM
What, are they alchemy?

Yes

Renian
07-28-2008, 11:06 AM
Fuck. That means I'm going to have to learn Alchemy on either Thalish or Tiad. Probably Tiad because it's a major spiritual spell.

Renian
08-04-2008, 12:37 PM
A bug caused you to drop all of your golden wands if there was actually no web to begin with. This has been fixed.