Guest Posted April 19, 2009 Share Posted April 19, 2009 I need help with setting up an additional textbox to send different messages to. What do i need to do as far as hard coding it to the source.I'm looking to send my quest an skill messages to this textbox on the frm.mirageexample: call playermsg2(index, "test", 1) and send it toexample: frmMirage.txtChat2Any help would be greatly appreciated. Link to comment Share on other sites More sharing options...
anasky Posted April 19, 2009 Share Posted April 19, 2009 http://www.touchofdeathforums.com/smf/index.php?topic=41725.0What exactly is the point of creating a 2nd topic? Link to comment Share on other sites More sharing options...
Guest Posted April 19, 2009 Share Posted April 19, 2009 thanks for the help. but that is not exactly what i'm looking for.Sorry, I was told to post it in the correct section. Link to comment Share on other sites More sharing options...
Admiral Refuge Posted April 19, 2009 Share Posted April 19, 2009 @dawj22556:> thanks for the help.> > Sorry, I was told to post it in the correct section.See attached image for the point I think Anasky was trying to make. Link to comment Share on other sites More sharing options...
anasky Posted April 19, 2009 Share Posted April 19, 2009 @Ã…ÃÂüiÑÂôζ:> See attached image for the point I think Anasky was trying to make.Yup :P Link to comment Share on other sites More sharing options...
Guest Posted April 19, 2009 Share Posted April 19, 2009 you guys must not get what I am asking.As I said, what you are pointing out is not what I am looking for, and it tells me nothing. Link to comment Share on other sites More sharing options...
anasky Posted April 20, 2009 Share Posted April 20, 2009 My question is exactly the same… with the exception of the placeMaking a 2nd chatbox... Link to comment Share on other sites More sharing options...
XxArchAngelxX Posted April 20, 2009 Share Posted April 20, 2009 its almost what he wants, i think hes saying it isnt the same because it sends ALL server messages not just quest and skill ones Link to comment Share on other sites More sharing options...
anasky Posted April 20, 2009 Share Posted April 20, 2009 @[BS:> The Dreamer [XxArchxX] link=topic=42923.msg430622#msg430622 date=1240208643]> it sends ALL server messagesIf so, why would he want a new one? the server does that already :S Link to comment Share on other sites More sharing options...
unnown Posted April 20, 2009 Share Posted April 20, 2009 modglobal (server), also in clscommandssub playermsg2(byval index as long, byval message as string, byval color as long) call senddatato(index, "Msg2" & sep_char & message & sep_char & color & sep_char & end_char)end suband in modclienttcp i think, you need to ad something likeif casestring = "msg2" then frmMirage.txtChat2.txt = trim(parse(1))end ifnote this is pseudo code, true to finish it (not that hard) Link to comment Share on other sites More sharing options...
anasky Posted April 20, 2009 Share Posted April 20, 2009 @unnown:> modglobal (server), also in clscommands> > sub playermsg2(byval index as long, byval message as string, byval color as long)> call senddatato(index, "Msg2" & sep_char & message & sep_char & color & sep_char & end_char)> end sub> > and in **modclienttcp** i think, you need to ad something like> > if casestring = "msg2" then> _frmMirage.txtChat2.txt = trim(parse(1))_> end if> > note this is pseudo code, true to finish it (not that hard)**Isn't this modHandleData?**_Doesn't this shows only 1 line of text? _if casestring = "msg2" then frmMirage.txtChat2.txt = frmMirage.txtChat2.txt + trim(parse(1))End ifThe only thing i'm not sure about if this will set a new rule.__ Link to comment Share on other sites More sharing options...
unnown Posted April 20, 2009 Share Posted April 20, 2009 yeah like i said pseudocode :p Link to comment Share on other sites More sharing options...
anasky Posted April 21, 2009 Share Posted April 21, 2009 @Anasky:> The only thing i'm not sure about if this will set a new rule.@unnown:> yeah like i said pseudocode :pWhat command is to start a new line? Link to comment Share on other sites More sharing options...
unnown Posted April 21, 2009 Share Posted April 21, 2009 i don't know check the normal playermsg sub(server side)then see if you can find the call senddattato thingand cope the "word" and try to find that in the client,keep following the code until you get to where it actually alters the normal textbox Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now