Author Topic: Chat Emoticons for My Little Pony  (Read 7393 times)

>grabs handgun
>loads handgun
>Self Delete

I dont want to live on this planet anymore.


Same thing happened.
[]http://dl.dropbox.com/u/64876587/Screencaps/Blockland_00004.png[/img]
okay let me fix the script.

brilliant.
also stop removing your addons

okay let me fix the script.
Do you even test this script yourself before you release it?

Cubelands, please learn TorqueScript or at least logical sense before releasing any add-on you made.

Code: [Select]
////////////////////////////////
//Author: Furling [BL_ID:6796]//
////////////////////////////////
package MyLittlePony
{
function NMH_Type::Send(%this)
{
if(getSubstr(%this.getValue(),0,1) $= "/" || %this.getValue() $= "")
{
Parent::Send(%this);
return;
}
%msg=%this.getValue();
%new=handle_MyLittlePony(%msg);
commandToserver('messageSent', %new);
canvas.popDialog(newMessageHud);
}
};
//activatepackage(MyLittlePony);

function handle_MyLittlePony(%msg)
{
%msg = strReplace(%msg, ":ponyangry:", "<bitmap:Add-Ons/Client_Chat_Emoticons_My_Little_Pony/angry.png>");
%msg = strReplace(%msg, ":ponyclassy:", "<bitmap:Add-Ons/Client_Chat_Emoticons_My_Little_Pony/classy.png>");
%msg = strReplace(%msg, ":ponyderp:", "<bitmap:Add-Ons/Client_Chat_Emoticons_My_Little_Pony/derp.png>");
%msg = strReplace(%msg, ":ponygiggle:", "<bitmap:Add-Ons/Client_Chat_Emoticons_My_Little_Pony/giggle.png>");
%msg = strReplace(%msg, ":ponyhappy:", "<bitmap:Add-Ons/Client_Chat_Emoticons_My_Little_Pony/happy.png>");
%msg = strReplace(%msg, ":ponyshock:", "<bitmap:Add-Ons/Client_Chat_Emoticons_My_Little_Pony/shock.png>");
%msg = strReplace(%msg, ":ponysmug:", "<bitmap:Add-Ons/Client_Chat_Emoticons_My_Little_Pony/smug.png>");
return %msg;
}
function ServerCmdponyhelp(%Client)
{
MessageClient(%Client,'',"\c2Type :ponyangry: :ponyclassy: :ponyderp: :ponygiggle: :ponyhappy: :ponyshock: :ponysmug:");
}

You cannot mix client-sided and server-sided code in this way, and secondly, this will only work if the server is running a chat mod which allows for Torque Markup Language in the chat, which the default doesn't.

Cubelands, please learn TorqueScript or at least logical sense before releasing any add-on you made.

Code: [Select]

You cannot mix client-sided and server-sided code in this way, and secondly, this will only work if the server is running a chat mod which allows for Torque Markup Language in the chat, which the default doesn't.
hang on, I am work on it. and learn write script. my friend help me.

hang on, I am work on it. and learn write script. my friend help me.
This next version better work...

Realisticly, this mod should get reported
« Last Edit: April 15, 2012, 09:24:56 AM by Wordy »

This next version better work...

Realisticly, this mod should get reported
Why?

This makes great fail bin material.
If you don't like it don't use it, just move on.

My server are freeze. This mod will fix delay time, sorry. It take while fix my server get better then go back processing on script.

Can we leave this out of the game? Seriously, really?

Wait, if you don't download these, but someone else did and typed in say... ':ponyderp:' on a server,

would you see the emoticon?

why..why are you all crying? for christ's sake it's just an addon
especially you plad, it's an addon. you weren't forced to come in here and download it

pretty nice addon though.

Lil i mean really? do we REALLY need this? what are we going to use it for? Pony RPGs?