[Home] [Downloads] [Search] [Help/forum]


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  VBscript
. . -> [Subject]  Converting to Mush Language

Converting to Mush Language

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Posted by Dele   (8 posts)  [Biography] bio
Date Thu 12 Oct 2006 09:29 PM (UTC)
Message
I have this script that my friend gave me for zmud but i was trying to convert it into mush but its very confusing i was hoping someone could help me out? Here it goes

#CLASS {SSS|Misc|Fishing}
#CLASS {SSS|Misc|Fishing}
#CLASS {SSS|Misc|Fishing}
#CLASS {Misc|Fishing}
#CLASS {Misc|Fishing|fishscript} {disable}
#CLASS {Misc|Fishing|fishscript|fishtrigs}
#ALIAS casting {fishdir=%1} "Misc|Fishing|fishscript"
#ALIAS fishing {#if ("%1"="on") {#if (0=0) {#t+ fishscript;#say
[0;37;40mFishing on.;fishing=1} {#say [0;37;40mFishing is already on.}}
{#if ("%1"="off") {#if (0=1) {#t- fishscript;#say [0;37;40mFishing
off.;fishing=0} {#say [0;37;40mFishing is already off.}} {#if (%1=) {#if
(0=1) {#t- fishscript;#say [0;37;40mFishing off.;fishing=0} {#t+
fishscript;#say [0;37;40mFishing on.;fishing=1}} {#say [0;37;40mTurn
fishing on or off?}}}} "Misc|Fishing"
#VAR fishdir {s} {_nodef} "Misc|Fishing|fishscript"
#VAR distance {0} {0} "Misc|Fishing|fishscript"
#VAR fish {0} {0} "Misc|Fishing|fishscript"
#VAR broke {0} {0} "Misc|Fishing|fishscript"
#VAR jerktime {1.75} {_nodef} "Misc|Fishing"
#VAR teasetime {2.25} {_nodef} "Misc|Fishing"
#VAR fishing {0} {0} "Misc|Fishing"
#REGEX {^You feel a fish nibbling on your hook\.$} {#sub {A fish is
nibbling at your bait.};#alarm +2.25 {tease line}}
"Misc|Fishing|fishscript|fishtrigs"
#REGEX {(?:You stagger as a fish makes a large strike at your bait\.|You
see the water ripple as a fish makes a medium strike at your bait\.|You
feel a fish make a small strike at your bait\.)} {#sub {A fish takes the
bait!};#alarm +1.75 {jerk pole}} "Misc|Fishing|fishscript|fishtrigs"
#REGEX {^Relaxing the tension on your line, you are able to reel
again\.$} {#if (=0) {#sub {You prepare to reel the line in more.};reel
line}} "Misc|Fishing|fishscript|fishtrigs"
#REGEX {^You quickly jerk back your fishing pole and feel the line go
taut\. You've(?: hooked|)} {#SUB {};fish=1}
"Misc|Fishing|fishscript|fishtrigs"
#COND {(?:hooked |)a (.*) one!$} {#sub {You have a %1 fish on the
line!}} {regex}
#REGEX {^You move your fishing pole quickly back and forth hoping to
excite the interest} {#SUB {}} "Misc|Fishing|fishscript|fishtrigs"
#COND {of nearby fish\.$} {#sub {You tease your fishing line.}} {regex}
#REGEX {(^You tease your fishing line nervously.$|^With a short dipping
and raising motion, you tease your fishing line.$)} {#sub {You tease
your fishing line.}} "Misc|Fishing|fishscript|fishtrigs"
#REGEX {^You cock back your arm and smoothly cast a line into the nearby
water\. You judge} {#SUB {}} "Misc|Fishing|fishscript|fishtrigs"
#COND {the cast at about (\d+) feet\.$} {#sub {You cast the line %1
feet.};distance=%1} {regex}
#REGEX {^You tease your fishing line\.$} {#sub {You try to get the fish
to take the bait.}} "Misc|Fishing|fishscript|fishtrigs"
#REGEX {^You quickly jerk back your fishing pole, but the hook pulls free of the fish\.$} {#sub {Drat! He got away.. for now.}} "Misc|Fishing|fishscript|fishtrigs"
#REGEX {^You quickly jerk back your fishing pole, to no avail\.$} {#sub
{You jerk on the line, then look in the water. Oddly, you don't see any
fish.}} "Misc|Fishing|fishscript|fishtrigs"
#REGEX {^Playing your fishing pole skillfully, you take up the slack and
reel in some} {#SUB {}} "Misc|Fishing|fishscript|fishtrigs"
#COND {line\. You have (\d+) feet of line left to bring in\.$} {#if
(%1>1) {#sub {You reel the fish in closer. %1 feet left!}};#if (%1=1)
{#sub {You reel the fish in closer. 1 foot left!}};distance=%1} {regex}
#REGEX {^The fish tries to swim with the hook, drawing (\d+)
(?:foot|feet) of line\.$} {#if (%1=1) {#sub {The fish pulls 1 foot out.
%1 feet left!}};#if (%1>1) {#sub {The fish pulls %1 feet out. %1 feet
left!}};#add distance %1} "Misc|Fishing|fishscript|fishtrigs"
#REGEX {^The fish you've hooked struggles against the line and runs it
out (\d+) (?:foot|feet)\.$} {#if (%1=1) {#sub {The fish pulls 1 foot
out. %1 feet left!}};#if (%1>1) {#sub {The fish pulls %1 feet out. %1
feet left!}};#add distance %1} "Misc|Fishing|fishscript|fishtrigs"
#REGEX {^Your rod bends slightly as your fish tries to escape its barbed
tether, running} {#SUB {}} "Misc|Fishing|fishscript|fishtrigs"

[Go to top] top

Posted by Dele   (8 posts)  [Biography] bio
Date Reply #1 on Thu 12 Oct 2006 09:30 PM (UTC)
Message
The rest of the script

#COND {out (\d+) (?:foot|feet) of line\.$} {#if (%1=1) {#sub {The fish
pulls 1 foot out. %1 feet left!}};#if (%1>1) {#sub {The fish pulls %1
feet out. %1 feet left!}};#add distance %1} {regex}
#REGEX {^Jerking the line quickly, you let the fish feel your power as
you reel it in\.} {#SUB {}} "Misc|Fishing|fishscript|fishtrigs"
#COND {^You have (\d+) feet of line left to bring in\.$} {#if (%1>1)
{#sub {You reel the fish in closer. %1 feet left!}};#if (%1=1) {#sub
{You reel the fish in closer. 1 foot left!}};distance=%1} {regex}
#REGEX {^You feel the fish tugging on your line, drawing it out about
(\d+) (?:foot|feet)\.$} {#if (%1=1) {#sub {The fish pulls 1 foot out. %1
feet left!}};#if (%1>1) {#sub {The fish pulls %1 feet out. %1 feet
left!}};#add distance %1} "Misc|Fishing|fishscript|fishtrigs"
#REGEX {^With a slow and steady motion you reel in a length of line,
straining against} {#SUB {}} "Misc|Fishing|fishscript|fishtrigs"
#COND {the pulling fish\. You have (\d+) (?:foot|feet) of line left to
bring in\.$} {#if (%1>1) {#sub {You reel the fish in closer. %1 feet
left!}};#if (%1=1) {#sub {You reel the fish in closer. 1 foot
left!}};distance=%1} {regex}
#REGEX {^Your fish struggles and swims firmly away from you, drawing out
(\d+) (?:foot|feet) of} {#if (%1=1) {#sub {The fish pulls 1 foot out. %1
feet left!}};#if (%1>1) {#sub {The fish pulls %1 feet out. %1 feet
left!}};#add distance %1} "Misc|Fishing|fishscript|fishtrigs"
#COND {fishing line\.$} {#gag} {regex}
#REGEX {^As the fish strains your line beyond its breaking point, it
snaps suddenly,} {#SUB {};broke=1} "Misc|Fishing|fishscript|fishtrigs"
#COND {costing you your fish and bait\.$} {#sub {The fish pulls the line
too far, and it breaks!}} {regex}
#REGEX {^You have recovered balance on all limbs\.$} {#if (=0) {#sub
{Recovering balance, you continue fishing.}};#if (=1) {#gag;reel
line;fish=0}} "Misc|Fishing|fishscript|fishtrigs"
#REGEX {^Tugging powerfully, your fish draws out (\d+) (?:foot|feet) of
line\.$} {#if (%1=1) {#sub {The fish pulls 1 foot out. %1 feet
left!}};#if (%1>1) {#sub {The fish pulls %1 feet out. %1 feet
left!}};#add distance %1} "Misc|Fishing|fishscript|fishtrigs"
#REGEX {^The fish on your line shows its power by running out (\d+) feet
of line\.$} {#if (%1=1) {#sub {The fish pulls 1 foot out. %1 feet
left!}};#if (%1>1) {#sub {The fish pulls %1 feet out. %1 feet
left!}};#add distance %1} "Misc|Fishing|fishscript|fishtrigs"
#REGEX {^You furiously reel in your line, straining to land your fish\.
You have (\d+) (?:foot|feet)(?: of|)} {#if (%1>1) {#sub {You reel the
fish in closer. %1 feet left!}};#if (%1=1) {#sub {You reel the fish in
closer. 1 foot left!}};distance=%1} "Misc|Fishing|fishscript|fishtrigs"
#COND {(?:of |)line left to bring in\.$} {#gag} {regex}
#REGEX {^You carefully thread} {broke=0}
"Misc|Fishing|fishscript|fishtrigs"
#KEY F10 {bait hook with bait} "Misc|Fishing|fishscript"
#KEY F11 {cast line } "Misc|Fishing|fishscript"
#KEY F12 {reel line} "Misc|Fishing|fishscript"
[Go to top] top

Posted by Nick Gammon   Australia  (22,973 posts)  [Biography] bio   Forum Administrator
Date Reply #2 on Fri 13 Oct 2006 12:10 AM (UTC)
Message
Try searching this forum for "#VAR zmud".

You get quite a few hits from people doing similar things.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


10,079 views.

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]