![]() |
Group window send tell
I've come up with a way to send a tell to a group member. This is suppose to be an easy way for group members to have a private chat with out involving the entire group. Basically, push a button and send a tell to that group member. The problem I'm having is that it sends the group member's name twice to the chat window. So what I have is:
OnPress="beginchatinput "/t " ## parent.Name.text" Is there any way to do this with out the group member's name coming up twice? |
So your code ends up putting text in the chat like:
/t Drumstix Drumstix ? *edit* nevermind. you mean it executes /beginchatinput twice |
Quote:
OnHover="A = "/t " ## parent.Name.text" OnPress="beginchatinput A" Note that code may not be 100% correct, I'll check it against the file I use later. |
Oh I think I see the problem. It seems whenever you execute an in-game command on only one line of code, it executes it twice...
This should work: Code:
OnPress="sTempName=("/t ")##(Parent.Name.Text) |
It's simpler to just remove the ## operator, i.e. it needs to look like this:
OnPress="beginchatinput "/t " parent.Name.Text"PS: Apart from that - as a general rule - I recommend to not use command abbreviations in code, i.e. write /tell instead of /t. Abbreviations may change over time, better be on the safe side. |
May still need to make it two lines of code as I did above, to avoid your double executed command.
|
Quote:
|
Exactly, that's what I was trying to say above.
|
Oh ok. That's strange...
|
Quote:
|
Trying not to derail here... but is it only for executed commands? Cause I haven't run into the problem before (that I know of)
|
another simple code - works fine ;)
<Page Name="Tellmacro">
<Data Name="Tell1" text="Write your Tell here."/> </Page> OnPress="tell Parent.Name.LocalText Parent.Parent.Parent.Tellmacro.Tell1.Text test it on my new grp window and it works fine mfg |
Quote:
|
Thanks for the help
Thanks everyone for all the help. I've have just uploaded my first group window. As far as I can tell everything works. :confused:
|
| All times are GMT -5. The time now is 11:41 AM. |
vBulletin® - Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
© MMOUI