Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Need help with setting up an additional textbox


Guest
 Share

Recommended Posts

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.mirage

example: call playermsg2(index, "test", 1) and send it to

example: frmMirage.txtChat2
Any help would be greatly appreciated.
Link to comment
Share on other sites

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

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)
Link to comment
Share on other sites

@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 if

The only thing i'm not sure about if this will set a new rule.__
Link to comment
Share on other sites

i don't know check the normal playermsg sub
(server side)

then see if you can find the call senddattato thing
and 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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...