Here ya go..

December 09, 2011 06:08AM
Only problem is that stuff lying on the ground, and mobs standing in the room will fire it. I haven't yet had this be a problem but I suppose it could be if there was a bunch of items in a room and you sent too many commands to the MUD and got D/C'd. Could put a one second pause before it sends the look command to prevent this.

The vbscript:
The parts in between ----------------- need to be copied and pasted into a text file named script.vbs. Point MushClient to use this as the script file with language being VBScript
----------------------------------------------------------
sub setitup(n, o, wc)
world.note "Setting your prompt to work with this script"
world.send "prompt <%hhp %mm %vmv %Xtnl (%P)> %W %-"
world.note "Disabling triggers, to start autolook simply type: autolook"
world.EnableTrigger "entrig", FALSE
world.EnableTrigger "lookatit", FALSE
world.EnableTrigger "distrig", FALSE
end sub

sub entrig(n, o, wc)
'world.note "Enabling the trigger"
world.EnableTrigger "lookatit", TRUE
world.EnableTrigger "distrig", TRUE
world.setvariable "numLook", "1"
end sub

sub distrig(n, o, wc)
'world.note "Disabling the Trigger"
world.EnableTrigger "lookatit", FALSE
world.EnableTrigger "distrig", FALSE
end sub

sub lookatit(n, o, wc)
numLook = world.getvariable ("numLook")
numLook = numLook + 1
world.setvariable "numLook", numLook
' world.note "I fired"
world.send "look " & numlook & "."
end sub

sub autolook(n, o, wc)
world.note "Turning on autolook, this will automatically look at all mobs in a room"
world.enabletrigger "entrig", TRUE
end sub
sub stoplook(n, o, wc)
world.EnableTrigger "entrig", FALSE
world.EnableTrigger "lookatit", FALSE
world.EnableTrigger "distrig", FALSE
world.note "Turning off autolook."
end sub
--------------------------------------------------------
Triggers:

Trigger: [Exits:*]
Label: entrig
Script: entrig
NOT a regular expression
What the script does: Enables two triggers, one to count the number of lines between [Exits:*] and your prompt. It also sets the numLook variable to 1

Trigger: * * *
Label: lookatit
Script: lookatit
NOT a regular expression
What the script does: Fires off of any line with three words, each time it fires it increments a variable and sends look

Trigger: <*hp *m *mv *
Label: distrig
script: distrig
NOT a regular expression
What the script does: Turns off itself, and the trigger to count lines.

Aliases:

Alias: autolook
Label: autolook
Script: autolook
What the script does: Turns on the trigger for [Exits:*]

Alias: setitup
Label: setitup
Script: setitup
What the script does: Sets your prompt so it will match the trigger that ends the counting of lines

Alias: stoplook
Label: stoplook
Script: stoplook
What the script does: Turns all the triggers off.



Edited 1 time(s). Last edit at 12/09/2011 06:26AM by reject-o.
Subject Author Posted

MUSHclient Tips and Tricks

joecloud December 08, 2011 03:18PM

Re: MUSHclient Tips and Tricks

sketch219 January 27, 2012 06:22PM

Unlimited targeting system

joecloud December 10, 2011 06:41AM

My MUSHclient triggers and aliases are these

DurNominator(VIP) December 09, 2011 11:14AM

Posting my autoexplore here since I can't get a plugin to work

reject-o December 09, 2011 06:42AM

Speedwalk/run in any direction until you cannot

joecloud December 08, 2011 07:56PM

Improved Exits Line

joecloud December 09, 2011 05:30AM

*No way! You are still fighting!

joecloud December 08, 2011 09:02PM

Timer safeguard (recommended addition)

joecloud December 08, 2011 08:15PM

Recommended becomes somewhat required

joecloud December 08, 2011 08:54PM

Prefix any command by where

joecloud December 08, 2011 06:02PM

Add target to any command (single targetting system)

joecloud December 08, 2011 05:52PM

Important fix

joecloud December 10, 2011 06:28AM

Digit Aliases for Quick Shortcuts

joecloud December 08, 2011 05:29PM

Small bug fix

joecloud December 09, 2011 03:13PM

Heh I've actually been working on some stuff for MUSHClient

reject-o December 08, 2011 03:57PM

I'd like to see some of this...

joecloud December 08, 2011 05:06PM

Here ya go..

reject-o December 09, 2011 06:08AM

Use Directions as Aliases

joecloud December 08, 2011 03:44PM

Better Command Stacking (Support Aliases)

joecloud December 08, 2011 03:37PM

OK, the forums stripped the space out of "space star." Don't miss the space. (n/t)

joecloud December 08, 2011 05:11PM

Look and Consider

joecloud December 08, 2011 03:30PM

I use something similar to this - careful if you're playing a transmuter!

Coumidin December 08, 2011 03:55PM

Yeah. I popped out deep in Aran-Gird's dungeon

daurwyn(VIP) December 12, 2011 09:55AM

Slap Self Solution

joecloud December 08, 2011 05:09PM

Just use Send instead of Execute to avoid other aliases firing, it takes less script execution time too (n/t)

Mort December 09, 2011 03:47AM

Good point -- I'm just in the habit of using Execute because I usually want other aliases to fire. In this case you don't. (n/t)

joecloud December 09, 2011 05:31AM

Quick Look/Scan/Unlock/Open

joecloud December 08, 2011 03:24PM

Combo Unlock and Open

joecloud December 08, 2011 03:38PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 29
Record Number of Users: 59 October 25, 2015
Record Number of Guests: 341 February 12, 2018