Multiplaying Worlds: How to handle more than 10?

Posted by SKYY on Mon 24 Nov 2008 10:57 PM — 4 posts, 16,433 views.

#0
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?
Netherlands #1
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. :)
#2
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. :)
Netherlands #3
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. :)