Page 1 of 1

Mailstor commnand on right click

PostPosted: 07 Nov 2010, 03:37
by Somnus
I am trying to configure the following command:

Mailstored(Player),mailstor -1,1,1

For my right click menu, but it sends this command:

mailstor -1 Peter

Instead of

mailstor Peter -1

How can I change this to get it to work?

Re: Mailstor commnand on right click

PostPosted: 07 Nov 2010, 11:37
by H.G.Muller
I don't think the current version can handle that. When you specify the command should include the right-clicked word, that word is always appended to the end of the command. If you want to have any fixed text behind it, there is no alternative but to type it yourself.

To redesign this to do what you want, would require some marker in the command text that would tell WB where to insert the clicked word. We could make it for instance such that %s inside the command text would be replaced by the clicked word, and only when no %s is present, the word would be appended at the end. As it seems unlikely that people are now actually sending commands with '%s' in it, this seems backward compatible enough.

Re: Mailstor commnand on right click

PostPosted: 07 Nov 2010, 12:13
by H.G.Muller
OK, it seems to work. I included the modified binary in the http://hgm.nubati.net/Spartan.zip package, you could dish it out of there. To define the command you want, use

Mailstored(Player),mailstor %s -1,1,1

in the /icsMenu string.