PtokaX forum

Archive => Archived 4.0 boards => Help with Lua 4 scripts => Topic started by: VERMiN on 02 November, 2003, 13:41:38

Title: Send info
Post by: VERMiN on 02 November, 2003, 13:41:38
Ok guys, don't laugh now. For what I have to ask you is probably very silly ;)

But how do you send text to the statusfield in dc++ ? The one-line window with kick/ban messages? Where it says: [13:07] Connected  for example..

I have a script that kicks out 'badclient' softwares and I want the people to see whenever this occur, but I don't want to send into the main chat window.

I use disconnect() and Ban() to get rid off the user, but what am I to do in order to show the information about it?

I don't know if I made myself clear, but hopefully somebody understand and don't take me for a jack-ass ;-)


Regards!
Title:
Post by: tezlo on 02 November, 2003, 13:52:59
prefix the msg with ***
but most ppl will see it in the mainchat as well
depends on their settings
Title:
Post by: VERMiN on 02 November, 2003, 20:13:25
It doesn't work for me. But I suppose I did something wrong..

What command shall I use?

SendToAll(Bot,"***An illegal user was just kicked out..")

just sends it into the main chat and not as a status message. I've tried SendToNick() and SendData() as well. What am I missing? :-)
Title:
Post by: Tuben on 02 November, 2003, 21:15:23
SendPmToNick(curUser.sName,Bot,"You are using a badclient. ")

Maybe ?
Title:
Post by: kepp on 02 November, 2003, 22:32:45
SendToAll(, "***An illegal user was just kicked out..")
^^ That will show everyone in main but without the bot name!

Etc:
***An illegal user was just kicked out


if you use SendToAll(Botname, "*** An illegal user was just kicked out..")
you will get:

<[Botname]> *** An illegal user was just kicked out..

But, people can enable and disable time stamps so the result for them will be:

[12:00] *** An illegal user was just kicked out..
Title:
Post by: VERMiN on 03 November, 2003, 02:01:27
Yes, but it's still displayed in mainchat window. I want it to be within the status-window only. And I don't want to send any PM's because I'd like everybody in the hub to see that he/she was thrown out. But I don't want the spam the mainchat.

Normally DC++ doesn't have the option 'View status messages in main chat' turned on.

Like the messages you see when somebody is kicked out.. That's how I want it.

I don't know if I'm being fuzzy, rambling or something... =)
Title:
Post by: kepp on 03 November, 2003, 08:37:55
You don't want to spam the mainchat but you want everyone else to see it? how's that possible?
:rolleyes:
Title:
Post by: VERMiN on 03 November, 2003, 11:32:14
Well it's not that difficult ;)

You don't spam if the message is displayed in the status-windows/line. And everybody can see it.
Since dc++ has it by defaults not to show these messages in main chat there should be no problems.

I hope you guys understand the difference between mainchat and statusmessages? :-)


So simply put, how do I send statusmessages? Just like the ones you often see when somebody is kicking 'somebody' ??


I must give terrible explainations. Remind me never to become a teacher 8)

/Eager waiting for replys.
Title:
Post by: tezlo on 03 November, 2003, 18:00:53
simply put..
you cant send status messages

dc++ has its own ways..
try typing "tezlo is kicking someone because: something" in the mainchat