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.
Entire forum
➜ MUSHclient
➜ Lua
➜ 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 page
Posted by
| Biran
(8 posts) 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. | Top |
|
Posted by
| Nick Gammon
Australia (23,120 posts) 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 | 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.
2,610 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top