Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ VBscript ➜ Inventory

Inventory

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


Posted by Ashass   (50 posts)  Bio
Date Fri 26 Nov 2010 11:14 PM (UTC)
Message
So I was pondering, does anybody know a good method for tracking inventory? Below is a sample of what a typical inventory lookup looks like, when I push 'i' it shows the inventory. I was thinking a fairly easy way would be something like...

Match between "You are carrying:" and "***Prompt***"
EXCLUDE "***Any continuation prompts***"
If possible, I'd also like to capture the quantities of each items, ( NUMBER) - but not to have it mistaken with things like (Glowing)

Any ideas?

<1286/1286hp, 532/532m, 370/370mv, (Small Footpath)[NE]> 5:00pm. 
You are in excellent condition.
TICK IN 7 SECONDS!
i
You are carrying:
     (Glowing) Xiao's Bo
( 2) a sack of doughnut seeds
     a lumberjack's axe
( 9) a jerkied trail steak
     a simple wooden staff
     (Glowing) a jewel-encrusted shield
     a simple wooden staff
     a fine alloy studded leather helmet
     a decanter of endless water
     a black duster
( 4) a Robe of Many Pockets

<1286/1286hp, 532/532m, 370/370mv, (Small Footpath)[NE]> 5:00pm. 
You are in excellent condition.
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #1 on Fri 26 Nov 2010 11:33 PM (UTC)
Message
Have you seen this?

Template:post=9965 Please see the forum thread: http://gammon.com.au/forum/?id=9965.


Admittedly that is Lua and not VBscript. But the general idea is the same.

Or this:

Template:faq=37 Please read the MUSHclient FAQ - point 37.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Ashass   (50 posts)  Bio
Date Reply #2 on Sat 27 Nov 2010 12:19 AM (UTC)
Message
I'll take a look tomorrow morning when I'm fresh and see if I can digest it, looks like it will be a bit involved but I should be able to convert it *hopes*
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.


16,922 views.

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

Go to topic:           Search the forum


[Go to top] top

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