Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » Finished MUD Scripts
asm
Wanderer


Joined: 19 Jul 2004
Posts: 68

PostPosted: Sun Jul 27, 2008 3:51 am   

Achaea: Auto Fisher
 
This script is a fishing bot. To use, "ba <bait>" and then "cas <dir>". You'll only need to use ba the first time the script is installed and if you change baits--otherwise just try to cast and the script will put new bait on the hook if needed. It assumes you keep your bait in a bait bucket, but if you leave it in your inventory it won't break. This script with zmud, untested with cmud but there'll likely be some issues in the newer client.

Note: Most of you will probably figure out it's pretty easy to modify this to a fully automated bot. Do so if you wish, but you deserve whatever happens to you, which will likely be a site ban. The script is perfectly legal with manual recasting, however. Also, there is some dead and messy code here; sorry, just can't be troubled to clean it up when I don't play anymore. Still, it works, which is the most important thing.

As far as attribution goes, I think it was heavily modified from a nonworking script, but I can't remember the original author; sorry.

Code:

#CLASS {Fishing} {disable}
#ALIAS cas {cast line %1;fdir=%1;#t- ReelTrigger;#t- Jerking;#t+ Reeling;#t+ Tease;#t+ JerkTriggers}
#ALIAS tl {tease line}
#ALIAS ll {reel line}
#ALIAS ba {get %1 from bucket;bait hook with %1;bait=%1}
#ALIAS jl {jerk line}
#ALIAS bh {get bait from bucket;bait hook with @bait}
#ALIAS b {#var bait %1}
#ALIAS sellfish {sell fish to malusine;put gold in pack}
#VAR fdir {se}
#VAR bait {shrimp}
#VAR jerktime {1600}
#VAR fishbalance {1} {1}
#VAR teasetime {2400}
#TRIGGER {^You have recovered balance on all limbs.$} {fishbalance = 1}
#CLASS 0
#CLASS {Fishing|Reeling}
#VAR reeling {0}
#TRIGGER {{With a style born of skill, you|With a final tug, you finish reeling in the line and land|You quickly reel in a|You reel in the last bit of line and your struggle is over.|As the fish strains your line beyond its breaking point, it snaps}} {reeling = 0;#t- reeltrigger;#wa 200;ba @bait;#temp {^You have recovered balance} {#say %ansi( cyan, bright)**** Cast the line.}}
#TRIGGER {You don't have any bait on your hook.} {ba @bait}
#CLASS 0
#CLASS {Fishing|Tease}
#TRIGGER {^{You feel a fish nibbling on your hook.|You feel a fish make a small strike at your bait.}$} {#wa @teasetime;tease line}
#TRIGGER {^You feel a fish make a small strike at your bait.$} {#wa @teasetime;tease line} "" {disable}
#TRIGGER {^What do you wish to use as bait?} {#say %ansi( red, bright)Out of bait...}
#TRIGGER {^{You playfully tease the line,|You quickly inscribe a small circle in the air with the tip of your|You move your fishing pole quickly back and forth hoping to excite the interest|With a short dipping and raising motion, you tease your fishing line.|You tease your fishing line nervously.}} {fishbalance = 0}
#CLASS 0
#CLASS {Fishing|ReelTrigger}
#REGEX {^(Relaxing the tension on your line, you are able to reel again\.$)|(You have recovered balance on all limbs\.$)} {#if (@reeling = 1) {reel line}}
#CLASS 0
#CLASS {Fishing|JerkTriggers}
#TRIGGER {^{You see the water ripple as a fish makes a medium strike at your bait.|You stagger as a fish makes a large strike at your bait.}$} {#wa @jerktime;#if {@fishbalance = 1} {jerk pole};#if (@fishbalance = 0) {#t+ jerking}}
#TRIGGER {^You quickly jerk back your fishing pole and feel the line go taut. You've} {#t- jerking;reeling = 1;#t+ reeltrigger}
#TRIGGER {^You quickly jerk back your fishing pole, to no avail.$} {#t- jerking}
#TRIGGER {^You quickly jerk back your fishing pole, but the hook pulls free of the fish.$} {#t- jerking}
#CLASS 0
#CLASS {Fishing|Jerking}
#TRIGGER {^You have recovered balance on all limbs.$} {jerk pole}
#CLASS 0

_________________
My collections of scripts.
Reply with quote
derek3646
Newbie


Joined: 27 Dec 2008
Posts: 1

PostPosted: Wed Mar 20, 2013 12:24 am   
 
I keep geting File:. line:1 Col: 1 error :Exprected string : '<'
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » Finished MUD Scripts All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net