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

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  getting an item from one of many containers
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

getting an item from one of many containers

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


Posted by Thefool   (2 posts)  [Biography] bio
Date Wed 01 Jun 2005 12:38 PM (UTC)
Message
I am sure this is very simple but i just don't seem to get it.

I have several containers. i want to retrieve and sell items from those containers.

i have tried

get %1 from pack|satchel
sell %1

but it says it cannot find pack|satchel. i tried adding brakets but to no avail

where am i going wrong?
[Go to top] top

Posted by Meerclar   USA  (733 posts)  [Biography] bio
Date Reply #1 on Wed 01 Jun 2005 01:19 PM (UTC)
Message
Are you using this in a trigger or as part of a script? I want to say triggers can't currently recognize "pipes" for "or" conditions except as part of a regexp.

Meerclar - Lord of Cats
Coder, Builder, and Tormenter of Mortals
Stormbringer: Rebirth
storm-bringer.org:4500
www.storm-bringer.org
[Go to top] top

Posted by Thefool   (2 posts)  [Biography] bio
Date Reply #2 on Wed 01 Jun 2005 01:29 PM (UTC)
Message
actually i had it in an alias.

i have several alias's where i have to repeat lines with alternative item names ie

get %1 from pack
get %1 from satchel

or

open door
open box

i was just trying to reduce the commands i sent to the world and tidy up the alias by having one line that did both. it isn't a big deal really..i suppose i was just trying to learn something. and therein lies the danger :)
[Go to top] top

Posted by Dralnu   USA  (277 posts)  [Biography] bio
Date Reply #3 on Wed 01 Jun 2005 04:50 PM (UTC)
Message
If it is an alias in game, then either you put in something wrong, or uyou don't have what you're trying to get or get from. Check your inv and double check keywords
[Go to top] top

Posted by Ked   Russia  (524 posts)  [Biography] bio
Date Reply #4 on Sat 04 Jun 2005 09:17 AM (UTC)
Message
Using pipes won't save you any commands, since the MUD obviously doesn't understand them, judging by the output it gives. So the commands are still sent to the MUD as if you put them one after the other. And when you try to learn something you always do learn something, which is the point of learning. It's just that sometimes you learn the opposite of what you expected to learn ;)
[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.


5,661 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 FutureQuest]