Not sure if this will work, try it out
package smileyChat{
function ServerCmdMessageSent(%cl, %msg){
%msg = stripMLControlChars(%msg);
%msg = strReplace(%msg, "8)", "<bitmap:Add-Ons/Script_Smiley_System/Smileys/cool.png>");
messageAll(' ', "<color:666666>" @ %cl.clanPrefix @ "<color:FFFF00>" @ %cl.name @ "<color:666666>" @ %cl.clanSuffix @ "<color:FFFFFF>" @ ": " @ %msg);
}
};
activatePackage(smileyChat);
Type 8) in the chat to get the cool smiley
Oh dear God don't butcher the chat system like that.
Do something like this:
package smileyChat
{
function serverCmdMessageSent(%cl, %msg)
{
%msg = strReplace(%msg, "8)", "<bitmap:Add-Ons/Script_Smiley_System/Smileys/cool.png>");
parent::serverCmdMessageSent(%cl,%msg);
}
};
activatePackage(smileyChat);
Edit: Sorry, forgot that the
parent::serverCmdMessageSent will filter out the image tags, but still, don't do what you had earlier.