Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - OfficerKenny

Pages: 1 2 3 4 5 [6]
76
Help / Need help editing this addon someone make
« on: January 17, 2018, 05:32:41 PM »
/title
so this addon is supposed to play a sound when someone says your name in this case when they say "OfficerKenny" it plays a sound.  Is there any way to edit it so it plays a sound when someone says "Kenny" or "Officer" or other stuff?

heres the code:

Code: [Select]
new AudioProfile(nameChatSound)
{
fileName = "./nameSound.wav";
description = AudioGui;
preload = true;
};

package nameSaid
{
function clientCmdChatMessage(%wat,%lol,%m,%msg,%a0,%a1,%a2,%a3,%a4,%a5,%a6,%a7,%a8,%a9)
{

%name = $pref::Player::NetName;
%lanName = $pref::player::LanName;

if($Pref::Client::nameSaidSound && (striPos(%a3,%name) >= 0 || striPos(%a3, %lanName) >= 0) || hasNickName(%a3))
{
alxPlay(nameChatSound);
%len1 = strLen(%a3);

if(hasNickName(%a3))
{
%nickpos = getWord(findNickNamePos(%a3),0);
%nick = getWord(findNickNamePos(%a3,1));
}
else if(striPos(%a3,%name) >= 0)
{
%nickPos = striPos(%a3,%name);
%nick = %name;
}
else if(striPos(%a3,%lanName) >= 0)
{
%nickPos = striPos(%a3,%lanName);
%nick = %lanName;
}

%a3sPos = strPos(%msg, %a3);
%len2 = strLen(%nick);

%firstPart = getSubStr(%msg,0,%a3sPos); //Before Message
%secondPart = getSubStr(%a3,0,%nickPos); //Message until Name
%thirdPart = getSubStr(%a3,%nickPos,%len2); //Name
%fourthPart = getSubStr(%a3,%nickPos + %len2, %len1); //After Name till end

%msg = %firstPart @ %secondPart @ "<color:1589FF>" @ %thirdPart @ "<color:ffffff>" @ %fourthPart;
}
parent::clientCmdChatMessage(%wat,%lol,%m,%msg,%a0,%a1,%a2,%a3,%a4,%a5,%a6,%a7,%a8,%a9);
}
};
activatePackage(nameSaid);

//Some of this tooken from Client_Chatsound by Chrono

if($Pref::Client::nameSaidSound $= "")
{
$Pref::Client::nameSaidSound = true;
}

function toggleNameSaidSound(%val)
{
if(%val)
{
$Pref::Client::nameSaidSound = $Pref::Client::nameSaidSound ? false : true;
clientCmdServerMessage('',"Name Said Sound enabled: " @ $Pref::Client::nameSaidSound);
}
}

function AddBind(%division, %name, %command)
{
for(%i=0;%i<$remapCount;%i++)
{
if($remapDivision[%i] $= %division)
{
%foundDiv = 1;
continue;
}
if(%foundDiv && $remapDivision[%i] !$= "")
{
%position = %i;
break;
}
}
if(!%foundDiv)
{
error("Division not found: " @ %division);
return;
}
if(!%position)
{
$remapName[$remapCount] = %name;
$remapCmd[$remapCount] = %command;
$remapCount++;
return;
}
for(%i=$remapCount;%i>%position;%i--)
{
$remapDivision[%i] = $remapDivision[%i - 1];
$remapName[%i] = $remapName[%i - 1];
$remapCmd[%i] = $remapCmd[%i - 1];
}
$remapDivision[%position] = "";
$remapName[%position] = %name;
$remapCmd[%position] = %command;
$remapCount++;
}

if(!$addednameSaidSoundBind)
{
AddBind("Communication","Toggle Name Said Sound","togglenameSaidSound");
$addednameSaidSoundBind = true;
}


//Nicknames
function NSAddNickName(%nick)
{
clientCmdServerMessage('',"\c6Name Said Sound: Added Nick Name: " @ %nick);
$Pref::Client::NameSaidNickNames = addItemToList($Pref::Client::NameSaidNickNames,%nick);

export("$Pref::Client::*","config/client/prefs.cs");
}

function NSRemoveNickName(%nick)
{
$Pref::Client::NameSaidNickNames = removeItemFromList($Pref::Client::NameSaidNickNames,%nick);

export("$Pref::Client::*","config/client/prefs.cs");
clientCmdServerMessage('',"\c6Name Said Sound: Removed Nick Name: " @ %nick);
}

function hasNickName(%text)
{
%count = getWordCount(%text);
%list = $Pref::Client::NameSaidNickNames;

for(%i = 0; %i < %count; %i++)
{
%word[%i] = getWord(%text,%i);
if(hasItemOnList(%list,%word[%i]))
{
return true;
}
}
return false;
}


function findNickNamePos(%text)
{
%count = getWordCount(%text);
%list = $Pref::Client::NameSaidNickNames;

for(%i = 0; %i < %count; %i++)
{
%word[%i] = getWord(%text,%i);
if(hasItemOnList(%list,%word[%i]))
{
break;
}
}

%nick = %word[%i];
%pos = striPos(%text, %nick);

return %pos TAB %nick;
}

77
Off Topic / Blockland Forums Recap: Possible Monthly Stream of BLF
« on: January 17, 2018, 08:11:16 AM »
Hey guys I was just wondering if you all would like to see a stream in which I talk about topics in various boards and stream it with your input.  I would go to various boards and look at topics that are the most popular or have the most attention.  I was planning on doing a sort of weekly news thing for BLF but I fell short and I didn’t end up doing it.  Also, it wouldn’t make much sense to just stream random topics and just read them off because anyone can easily do that.  I would also have input from the community and we would discuss the topics in a discord server or in chat. 
Apologies if anything sounds confusing, I have to go to work soon and I am typing this five minutes after I woke up also autocorrect is idiotic.

I added a poll if you think I should do this. 

78
Off Topic / Hey guys I just want to say happy New Years thanks
« on: December 31, 2017, 07:15:49 PM »
/title
Have a good one

79
Off Topic / My Christmas Livestream
« on: December 19, 2017, 02:33:41 PM »
uh yeah hey guys, I am doing a Christmas stream where I am going to do random crap (EG play blockland/roblox/watch crappy youtube videos).  I really don't have a plan for what I am going to do in the stream but it will end with the CSGO giveaway.

you can watch if you want here:
https://www.youtube.com/watch?v=kP8s0QRNtd4


80
So, I was trying to find an add-on called support_doors for sylvanors doors, I got sidetracked and ended up on the RTB archive site.  I tried to search for something and it took me to the old RTB site which is now a huge advertisement lol. 

I'm not going to put the link to the site here, as it may contain malicious stuff.  But, here's the Who.is info

This is strange

https://domains.google.com/registrar?s=forum.returntoblockland.com&hl=en&_ga=2.120612744.1205886921.1508966684-629025473.1508966684#w=returntoblockland.com&chp=w

This is the first thing I got when I clicked the first time:



Its different everytime I visit the site


EDIT:

I did some more research and it turns out this fool also owns this site as well:

https://www.whois.com/whois/gorgeouspantyhose.com

LMFAO

81
Suggestions & Requests / Anyone have muffinmix's lasers?
« on: October 25, 2017, 05:01:59 PM »
https://forum.blockland.us/index.php?topic=30653.0

Its old but I cant find the download link

82
Off Topic / I'm sitting at a Panda Express AMA
« on: September 18, 2017, 11:43:08 AM »
Hey all! Last time I did an AMA, it failed because the video file got corrupted.  I am on lunchbox break from work, so AMA.

I am actually a couple feet from magic leaps corporate office lol.

So AMA

Pages: 1 2 3 4 5 [6]