Unknown2009-06-07 04:43:23
EDIT: Got it to work! Thanks anyway!
Unknown2009-06-08 04:43:44
Okay, I have a real question this time.
I've made a plugin with bright and happy ColourTells, but someone brought up that they'd like to change the colour. They were fine with going into the .xml file and changing it manually. But to save someone the hassle, is it possible to have an alias that will automatically go through and change ColourTell ("magenta", "", "blah") to ColourTell ("cyan", "", "blah") or whatever colour they choose?
I've made a plugin with bright and happy ColourTells, but someone brought up that they'd like to change the colour. They were fine with going into the .xml file and changing it manually. But to save someone the hassle, is it possible to have an alias that will automatically go through and change ColourTell ("magenta", "", "blah") to ColourTell ("cyan", "", "blah") or whatever colour they choose?
Esano2009-06-08 04:55:57
Store the colour they want in a variable, and re-assign that.
e.g.
colour = "red"
ColourTell(colour,"","Blah")
Then just have an alias to reassign colour.
Note that you'll need to decide if you want colour to be a scripting variable or a Mushclient variable (not sure how else to describe it). Basically, if you use colour = "red", or SetVariable("colour","red") and GetVariable("colour") in the ColourTell.
e.g.
colour = "red"
ColourTell(colour,"","Blah")
Then just have an alias to reassign colour.
Note that you'll need to decide if you want colour to be a scripting variable or a Mushclient variable (not sure how else to describe it). Basically, if you use colour = "red", or SetVariable("colour","red") and GetVariable("colour") in the ColourTell.
Unknown2009-06-08 05:16:02
Awesome! Thanks, Esano.
Shaddus2009-06-08 06:20:13
How would I add a wait to a command. For instance, I have this (yes, I know. Waterwalk. Just bear with me. )
And I want it to wait two seconds, and then swim in the direction of the variable listed.
Isn't it like #wait or something?
QUOTE
There's water ahead of you. You'll have to SWIM * to make it through.
And I want it to wait two seconds, and then swim in the direction of the variable listed.
Isn't it like #wait or something?
Isuka2009-06-08 06:21:22
QUOTE (Shaddus Mes'ard @ Jun 7 2009, 11:20 PM) <{POST_SNAPBACK}>
How would I add a wait to a command. For instance, I have this (yes, I know. Waterwalk. Just bear with me. )
And I want it to wait two seconds, and then swim in the direction of the variable listed.
Isn't it like #wait or something?
And I want it to wait two seconds, and then swim in the direction of the variable listed.
Isn't it like #wait or something?
DoAfter, and DoAfterSpecial
Unknown2009-06-09 14:35:56
Okay, I wanna make my character spit when her gland sacs are full.
So right now, I have the trigger where the gland sacs are filled with the variable of 'gotpoison'. Then I have the other variable which contains, spitBalance and the two triggers which set it 1 or 0.
So now my problem is that, I want Miryh to spit when the conditions are met on prompt. I'm using Treant and I did on one of Treant's prompt triggers:
if @spitBalance == 1 and @gotpoison == 1 then
(indentation) spit @target
end
But I get this error:
So right now, I have the trigger where the gland sacs are filled with the variable of 'gotpoison'. Then I have the other variable which contains, spitBalance and the two triggers which set it 1 or 0.
So now my problem is that, I want Miryh to spit when the conditions are met on prompt. I'm using Treant and I did on one of Treant's prompt triggers:
if @spitBalance == 1 and @gotpoison == 1 then
(indentation) spit @target
end
But I get this error:
CODE
Compile error
World: Treant
Immediate execution
:7: unexpected symbol near '=='
World: Treant
Immediate execution
:7: unexpected symbol near '=='
Ayisdra2009-06-09 14:44:11
If you are using Treant, you can't use the whole @variable. You use GetVariable("blah" )
Unknown2009-06-09 15:31:00
Alright, now the problem is that, it either does nothing or.. does,
or does,
CODE
Compile error
World: Treant
Immediate execution
:8: '=' expected near 'GetVariable'
World: Treant
Immediate execution
:8: '=' expected near 'GetVariable'
or does,
CODE
Compile error
World: Treant
Immediate execution
:2: '=' expected near 'naga'
World: Treant
Immediate execution
:2: '=' expected near 'naga'
Ayisdra2009-06-09 15:37:05
Can you post what you have written so we can see what the issue might be?
Edit: Using what you used in your last post.
In the Variables, when you set them you should do something like SetVariable("spitBalance","1")
Edit: Using what you used in your last post.
CODE
if GetVariable("spitBalance") == "1" and GetVariable("gotpoison") == "1" then   Â
Send ("spit" .. GetVariable("target") )
end
Send ("spit" .. GetVariable("target") )
end
In the Variables, when you set them you should do something like SetVariable("spitBalance","1")
Unknown2009-06-09 15:54:13
QUOTE (Ayisdra @ Jun 9 2009, 10:44 AM) <{POST_SNAPBACK}>
If you are using Treant, you can't use the whole @variable. You use GetVariable("blah" )
Misinformation. You can use @var, so long as you have the option to expand variables checked.
Part of the problem is not putting the spit command inside a Send or Execute.
Also, don't modify Treant's triggers or aliases, unless you want to redo things like this every time you upgrade. There are better ways to build on top of Treant.
Unknown2009-06-09 15:54:40
Okay that'll work, however. It'll send spit(target) instead of a spit target. How do I make it so?
Unknown2009-06-09 16:19:21
Okay, its all good. Thanks to those who helped out.
Ilyarin2009-06-09 16:32:56
Okay. I hope some can figure this out.
At the moment I'm running IMapper on MUSHClient. Now I've hit a snag. If I want the 'map' command parsed by IMapper to display properly, I need to have MXP/Pueblo enabled. But if I do this, then any text sent from the MUD containing "<" or ">" is partially gagged.
(Ie instead of "To see your abilities within each skill, type AB." I see "To see your abilities within each skill, type AB .")
These symbols are used pretty frequently, so I'd rather not settle for that... But if I turn MXP/Pueblo off, then the map output looks something like this:
At the moment I'm running IMapper on MUSHClient. Now I've hit a snag. If I want the 'map' command parsed by IMapper to display properly, I need to have MXP/Pueblo enabled. But if I do this, then any text sent from the MUD containing "<" or ">" is partially gagged.
(Ie instead of "To see your abilities within each skill, type AB
These symbols are used pretty frequently, so I'd rather not settle for that... But if I turn MXP/Pueblo off, then the map output looks something like this:
CODE
/--Capital City of the Righteous Principality of New Celest.v604--\\
                                                     Â
                                                     Â
                                                     Â
                                             Â
                                        \\        | /
                                     Â
            \\  /                          \\  /   Â
                                             Â
\\Â Â Â Â Â Â Â Â Â Â /Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â /Â Â Â Â Â Â Â Â
                                 Â
    \\  /                |            /          \\
                                         Â
        \\                |        /  \\           Â
                                 Â
/Â Â Â Â Â Â Â Â Â Â \\Â Â Â Â Â Â Â Â Â Â Â Â |Â Â Â Â / |Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â
              ----                Â
              |    /              \\               Â
                                     Â
                          |                         Â
\\--Time: 141 usec-------------------------------------/
                                                     Â
                                                     Â
                                                     Â
                                             Â
                                        \\        | /
                                     Â
            \\  /                          \\  /   Â
                                             Â
\\Â Â Â Â Â Â Â Â Â Â /Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â /Â Â Â Â Â Â Â Â
                                 Â
    \\  /                |            /          \\
                                         Â
        \\                |        /  \\           Â
                                 Â
/Â Â Â Â Â Â Â Â Â Â \\Â Â Â Â Â Â Â Â Â Â Â Â |Â Â Â Â / |Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â
              ----                Â
              |    /              \\               Â
                                     Â
                          |                         Â
\\--Time: 141 usec-------------------------------------/
Isuka2009-06-09 16:44:39
QUOTE (Ilyarin @ Jun 9 2009, 09:32 AM) <{POST_SNAPBACK}>
Okay. I hope some can figure this out.
At the moment I'm running IMapper on MUSHClient. Now I've hit a snag. If I want the 'map' command parsed by IMapper to display properly, I need to have MXP/Pueblo enabled. But if I do this, then any text sent from the MUD containing "<" or ">" is partially gagged.
(Ie instead of "To see your abilities within each skill, type AB." I see "To see your abilities within each skill, type AB .")
These symbols are used pretty frequently, so I'd rather not settle for that... But if I turn MXP/Pueblo off, then the map output looks something like this:
At the moment I'm running IMapper on MUSHClient. Now I've hit a snag. If I want the 'map' command parsed by IMapper to display properly, I need to have MXP/Pueblo enabled. But if I do this, then any text sent from the MUD containing "<" or ">" is partially gagged.
(Ie instead of "To see your abilities within each skill, type AB
These symbols are used pretty frequently, so I'd rather not settle for that... But if I turn MXP/Pueblo off, then the map output looks something like this:
CODE
/--Capital City of the Righteous Principality of New Celest.v604--\\
                                                     Â
                                                     Â
                                                     Â
                                             Â
                                        \\        | /
                                     Â
            \\  /                          \\  /   Â
                                             Â
\\Â Â Â Â Â Â Â Â Â Â /Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â /Â Â Â Â Â Â Â Â
                                 Â
    \\  /                |            /          \\
                                         Â
        \\                |        /  \\           Â
                                 Â
/Â Â Â Â Â Â Â Â Â Â \\Â Â Â Â Â Â Â Â Â Â Â Â |Â Â Â Â / |Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â
              ----                Â
              |    /              \\               Â
                                     Â
                          |                         Â
\\--Time: 141 usec-------------------------------------/
                                                     Â
                                                     Â
                                                     Â
                                             Â
                                        \\        | /
                                     Â
            \\  /                          \\  /   Â
                                             Â
\\Â Â Â Â Â Â Â Â Â Â /Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â /Â Â Â Â Â Â Â Â
                                 Â
    \\  /                |            /          \\
                                         Â
        \\                |        /  \\           Â
                                 Â
/Â Â Â Â Â Â Â Â Â Â \\Â Â Â Â Â Â Â Â Â Â Â Â |Â Â Â Â / |Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â
              ----                Â
              |    /              \\               Â
                                     Â
                          |                         Â
\\--Time: 141 usec-------------------------------------/
I had this problem, too. You need to turn off MXP in MUSH, and turn it on for LMTS. Then it works properly.
Ilyarin2009-06-09 16:58:38
(y) Thanks!!
.. Wait, how do I turn it on in IMap?
I assume that part... But that's what it is now.
.. Wait, how do I turn it on in IMap?
CODE
# Mud eXtension Protocol. Can be "disabled", "locked", "open", or "secure".
# Read the MXP specifications on www.zuggsoft.com for more info.
default_mxp_mode "open"
# Read the MXP specifications on www.zuggsoft.com for more info.
default_mxp_mode "open"
I assume that part... But that's what it is now.
Isuka2009-06-12 22:13:41
i actually have mine set to
default_mxp_mode "disabled"
and MXP disabled under MUSH as well. It works fine for me.
default_mxp_mode "disabled"
and MXP disabled under MUSH as well. It works fine for me.
Unknown2009-06-13 01:08:14
Yeah, you pretty much can't use the MXP with MUSHclient.
Isuka2009-06-13 07:56:01
I wish that MUSH would fix their MXP parser so that it didn't start trying to parse text that is not part of a tag, but it's not a big enough issue to really irritate me.
Dynami2009-06-18 04:41:37
I am having trouble finding a compass plug-in for MUSH. I remember hearing of one, but I can't find it on the forums. Can anyone direct me to where I can find it? Thanks!