Author Topic: Name Notifier  (Read 4733 times)

Goes into server
Everyone spams your name because they know you have this mod
> is annoyed at earrape

And 99.999% of people call me "ipq" instead of ipquarx. So this mod wouldn't really have any use for me, but nevertheless is a neat mod.
But it's not possible to make a chatbot out of this without major modification.

Code: [Select]
new AudioProfile(NameSound)
{
fileName = "Base/Data/Sound/Error.wav";
description = AudioGui;
preload = 1;
};

package NameNotify
{
function newChatHud_AddLine(%a)
{
parent::newChatHud_AddLine(%a);
if(stripos(%a,$pref::player::netname) > stripos(%a,":"))
alxPlay(NameSound);
}
};

activatepackage(NameNotify);
Here's the code in a properly readable format.

I'm not sure why people are even talking about chatbots in this topic at all.

Code: [Select]
new AudioProfile(NameSound)
{
fileName = "Base/Data/Sound/Error.wav";
description = AudioGui;
preload = 1;
};

package NameNotify
{
function newChatHud_AddLine(%a)
{
parent::newChatHud_AddLine(%a);
if(stripos(%a,$pref::player::netname) > stripos(%a,":"))
alxPlay(NameSound);
}
};

activatepackage(NameNotify);
Here's the code in a properly readable format.

I'm not sure why people are even talking about chatbots in this topic at all.
so sad i dont know how to script i should learn

Goes into server
Everyone spams your name because they know you have this mod
> is annoyed at earrape

And 99.999% of people call me "ipq" instead of ipquarx. So this mod wouldn't really have any use for me, but nevertheless is a neat mod.
But it's not possible to make a chatbot out of this without major modification.

This

Jasa, I think this should be a general notifier. You'd add to a list, and then if anything from the list is said, you are notified. Wouldn't be hard to do. Also, change the noise to a new one that is more attention grabbing. (Although not obnoxious or anything, just not standard.)

could you make an RTB Pref(if this is on RTB) to make a list of words that it recognizes as your name?
so if people abbreviate your name, it still works?

could you make an RTB Pref(if this is on RTB) to make a list of words that it recognizes as your name?
so if people abbreviate your name, it still works?
no

this is clientsided, why would it be an RTB pref

idk, just a thought...could be a options thing in advanced controls, right?

RTB Prefs are server side only right now. He could just make a simple menu or entry command(s).

yeah, i guess thats a better idea.

The code looks like stuff so people don't attempt to make a ChatBot out of it.
Yeh I bet that's why

I'm still confused, does this mod catch a nickname or a part of a name,
'Dill, come here.' and 'Dillpickle, come here.' be the same?

This should also have a limit on how often the sound goes off. Make it not go off when the window is active (Pretty sure this isn't possible, but some of you guys can improvise amazing things, so there could be a difficult, hacky way... Or just when other windows are up, like event gui?).

I'm still confused, does this mod catch a nickname or a part of a name,
'Dill, come here.' and 'Dillpickle, come here.' be the same?

Code: [Select]
if(stripos(%a,$pref::player::netname) > stripos(%a,":"))

AKA whole name.
« Last Edit: April 11, 2012, 11:07:26 PM by MegaScientifical »

Maybe stop using special characters in your name so people can type it.

It is WAAAY too late for that now. My forums name has it, my builds are labeled with it, and I'm known for it.
Removing it so people can type my name would not be a good thing.

Make it not go off when the window is active (Pretty sure this isn't possible, but some of you guys can improvise amazing things, so there could be a difficult, hacky way...

I noticed a working function that returned 1 when the window was focused and 0 otherwise a while ago, although I forgot the name of it. I'll try to find it again.