Skip to content
MSN

edit and onjoin problem

A TG007 community discussion started by DreaM.

Discussion 4 posts
Page 1 of 1
Open
Topic #2340 · 4 published posts · 616 views

hi guys again lol

 

I am using:

  edit %join, 152, 63 79 230 18, tab 3 multi return autovs vsbar limit 250

 

and:

prop $active onjoin : $+ %join

and:

On *:Dialog:main:edit:15:{ set %join $did($dname,152).text }

 

 

let's say that the onjoin message is like this in the edit bar (remember that the edit bar is multi lines):

 

"Welcome all to my room, I hope you

all enjoy chatting."

 

When I prop the onjoin message: I dont see the complete onjoin message and I see only "Welcome all to my room, I hope you " so my bot accepts only the first line in the edit bar and ignore the second line.

 

IT means the bot will accept only the first line in the edit bar but i want the bot to reads all of it.

 

Note: when I look at the variable in variables, I see not complete onjoin

 

 

i've never worked out how multi line edit box works. Maybe you could try something like lists, where you use what is in each row to work it out.

$did(dname,id).text

 

only returns the 1st line in a multiline editbox, so try this...

 

On *:Dialog:main:edit:152:{
 unset %join
 var %lc = 1
 while (%lc <= $did($dname,152).lines) {
   set %join %join $did($dname,152,%lc)
   inc %lc
 }
}

 

that should do what you need.

bfush.PNG

yes vexation worked, thank you (Y)