Private Message

Started by Cool, Jul 08, 2016, 05:39 AM

Previous topic - Next topic

Cool


Xmair

Send "NOTICE " + USER + " " + TEXT + "\n" using the sockets.

Credits to Boystang!

VU Full Member | VCDC 6 Coordinator & Scripter | EG A/D Contributor | Developer of VCCNR | Developer of KTB | Ex-Scripter of EAD

Thijn

Quote from: Xmair on Jul 08, 2016, 05:50 AMSend "NOTICE " + USER + " " + TEXT + "\n" using the sockets.
That's not a PM, that's a notice.

Just use PRIVMSG like you would for channels, but instead send it to a nickname.

Xmair

Didn't properly read it, thought he was asking for notices.

Credits to Boystang!

VU Full Member | VCDC 6 Coordinator & Scripter | EG A/D Contributor | Developer of VCCNR | Developer of KTB | Ex-Scripter of EAD

Cool

trying this function not working
function EchoNotice( USER, TEXT )
{
local
BotID = FindNexBotId();

// Send the data to IRC.
socket[ BotID ].Send("NOTICE " + USER + " " + TEXT + "\n");
}

Cool


Xmair


Credits to Boystang!

VU Full Member | VCDC 6 Coordinator & Scripter | EG A/D Contributor | Developer of VCCNR | Developer of KTB | Ex-Scripter of EAD

KAKAN

Quote from: Xmair on Jul 09, 2016, 05:22 PMWhat's the error?
Nothing, he wants to PM, personal chat using bot.
oh no

Thijn

Quote from: KAKAN on Jul 09, 2016, 05:23 PM
Quote from: Xmair on Jul 09, 2016, 05:22 PMWhat's the error?
Nothing, he wants to PM, personal chat using bot.
So? That code should work fine. Hence the question, what's the error...

KAKAN

Quote from: Thijn on Jul 09, 2016, 07:12 PM
Quote from: KAKAN on Jul 09, 2016, 05:23 PM
Quote from: Xmair on Jul 09, 2016, 05:22 PMWhat's the error?
Nothing, he wants to PM, personal chat using bot.
So? That code should work fine. Hence the question, what's the error...
maybe the syntax for that is: /MSG NICK TEXT ?
oh no

Xmair

Quote from: KAKAN on Jul 10, 2016, 04:00 AM
Quote from: Thijn on Jul 09, 2016, 07:12 PM
Quote from: KAKAN on Jul 09, 2016, 05:23 PM
Quote from: Xmair on Jul 09, 2016, 05:22 PMWhat's the error?
Nothing, he wants to PM, personal chat using bot.
So? That code should work fine. Hence the question, what's the error...
maybe the syntax for that is: /MSG NICK TEXT ?
No. When ever you chat, your irc client sends a socket with 'PRIVMSG #CHANNEL TEXT'.

Credits to Boystang!

VU Full Member | VCDC 6 Coordinator & Scripter | EG A/D Contributor | Developer of VCCNR | Developer of KTB | Ex-Scripter of EAD

Cool


Xmair

What do you think that means?

Credits to Boystang!

VU Full Member | VCDC 6 Coordinator & Scripter | EG A/D Contributor | Developer of VCCNR | Developer of KTB | Ex-Scripter of EAD

Cool

Quote from: Xmair on Jul 12, 2016, 01:42 PMWhat do you think that means?
if i know whats its means so i will solve it my self but about think this type of errors cause due to if a function not defined or if player not available.

KAKAN

Quote from: Hercules on Jul 13, 2016, 08:45 AM
Quote from: Xmair on Jul 12, 2016, 01:42 PMWhat do you think that means?
if i know whats its means so i will solve it my self but about think this type of errors cause due to if a function not defined or if player not available.
"USER DOES NOT EXIST" That means the user you're trying to contact to is dead.
For ex: My name was KAKAN, I change it to NAKAK. So, now, if you do: /MSG KAKAN HEY BICH it won't work.
oh no