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
➜ General
➜ Multiplaying Worlds: How to handle more than 10?
Multiplaying Worlds: How to handle more than 10?
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| SKYY
(28 posts) Bio
|
Date
| Mon 24 Nov 2008 10:57 PM (UTC) |
Message
| Is there any way to make mushclient handle more than 10 worlds? I know the activity window is hard-coded for 10 (boooo), but is there some way I can get the client to send commands to additional world IDs?
I guess what I'm saying is...
If I use the multiple_send alias, and I can do things like:
:2:get ball;:5:cast slink dudedude;:8:#10 say i'm spamming
What identifiers can I use for worlds 10-and-up?
Is there some way I could replace world ID numbers with letters, so that I have 26 total worlds? | Top |
|
Posted by
| Worstje
Netherlands (899 posts) Bio
|
Date
| Reply #1 on Mon 24 Nov 2008 11:42 PM (UTC) |
Message
| I just took a look at that plugin since I don't use it myself, but it is quite simple if you look at it. (I couldn't reproduce it but that's because I'm not familiar with VBScript at all..)
Essentially, it loops through the world and increases the counter a little each time.
if isnumeric(wildcards(1)) then
count = 1
for each wrld in world.getworldIDlist
if instr (wildcards (1), cstr (count)) and count < 10 then
set sndworld = world.getworldbyid(wrld)
sndworld.send wildcards(2)
end if
count = count + 1
next
would be the bit of code in question. What you need to do, is change it so the trigger can accept other identifiers too. Personally, I would think of a hexadecimal or perhaps even bigger notation. Only problem is that I can't tell you how to do that precisely in VBScript, but I can tell you that the lines with 'isnumeric()' and 'cstr(count)' need changing to include a conversation from another symbol to a number.
Good luck with figuring it out. :) | Top |
|
Posted by
| SKYY
(28 posts) Bio
|
Date
| Reply #2 on Tue 25 Nov 2008 12:05 AM (UTC) |
Message
| Sounds good. Now, the question is, should I make the order of letters logical (ie. abcdef), or convenient for your average qwerty keyboard?
By convenient, think about making worlds 1-7 do the same command. You'd type:
:123456:command
Sort of obvious here: it's easy to type 1-6 because the keys are all in a row. I can slide my finger from 1-6 without lifting it off the keyboard (like sliding your finger up an octave of piano keys).
Perhaps I should use qwerty as the 10th-15th worlds. I'll give it a try. :) | Top |
|
Posted by
| Worstje
Netherlands (899 posts) Bio
|
Date
| Reply #3 on Tue 25 Nov 2008 12:09 AM (UTC) Amended on Tue 25 Nov 2008 01:29 AM (UTC) by Worstje
|
Message
| Heh, it is an option. If you want I can rewrite the plugin for you in Lua? Shouldn't take me too long and would be easier and quicker for me than to look at that VBScript code any further.
Edit: Try this file: http://qs.merseine.nu/download/multiple_send.xml
It is written in Lua and should work just fine for you. Besides the numbers, the only functional difference is that it isn't limited on doing something once per world. Eg '#11 say hi' will mean world 1 will execute hi twice. I saw no real reason to prevent that, although I could easily add it if that would bother you. :)
P.S.: All credits go to Nick for writing that plugin in the first place. :) | 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.
12,565 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top