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


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Lua
. . -> [Subject]  Open/closing worlds by name (Lua)

Open/closing worlds by name (Lua)

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


Posted by Biran   (8 posts)  [Biography] bio
Date Mon 21 Aug 2023 03:38 PM (UTC)
Message
My issue is getting to actually find the world...its named jj6
but when I run this command it says Cannot find
c:\program files\(86x)\...\jj6

The file originally said jj6 when you went to the file tab on the top left but changed to this after using this command

openedOK = world.Open ("jj6.mcl") -- true or false



This close Command below works flawlessly

world.DoAfterSpecial (3, "world.DoCommand 'close'", 12)

BACKSTORY:
So basically iv got a droid that I only want to be logged on during a certain task...to drop money off for safekeeping. upon his return to a quiet room, he runs the close command to close out the work altogether then open again when he is called by the other player after his money reaches x amount.


I see two ways to go about this..one closing the world and one opening using the above command

or other is using normal Quit leaving the world open and somehow reconnecting when called upon.
[Go to top] top

Posted by Nick Gammon   Australia  (23,001 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Mon 21 Aug 2023 10:14 PM (UTC)
Message
I was able to open a world from another one by doing this:


Open ("worlds/worldName.mcl")

- 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.


1,476 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]