What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » General » Forum & Website » Unhandled Exception Error

Unhandled Exception Error
Author: Message:
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Unhandled Exception Error
quote:
Originally posted by Malzzel
Okay, thanks matty!
Also you're code is horrible and I have no idea how it actually ran...
Javascript code:
function OnEvent_Initialize(MessengerStart)
// This was made by Mal-Zzel - Version 1.0
{function OnEvent_ChatWndSendMessage(ChatWnd,Message)
{var rn_txt = new Array();
{
rn_txt[1]="Death be thy compass.";
rn_txt[2]="Carry the Emperorīs will as your torch, with it destroy the shadows.";
rn_txt[3]="Blessed is the mind too small for doubt.";
rn_txt[4]="To admit defeat is to blaspheme against the Emperor. ";
rn_txt[5]="Prayer cleanses the soul, but pain cleanses the body.";
rn_txt[6]="There is only the Emperor, and he is our shield and protector.";
rn_txt[7]="A small mind is easily filled with faith.";
rn_txt[8]="Praise be, Emperor, Lord.";
rn_txt[9]="For those who seek perfection there can be no rest on this side of the grave.";
rn_txt[10]="The difference between heresy and treachery is ignorance."
 
{var i = Math.round(15*Math.random());
{var RANDOMISM = Message.replace(/\/itftd/,rn_txt[i]);
{return RANDOMISM;
}


This is how it could look...

Javascript code:
var rn_txt = [
    "Death be thy compass."
    , "Carry the Emperorīs will as your torch, with it destroy the shadows."
    , "Blessed is the mind too small for doubt."
    , "To admit defeat is to blaspheme against the Emperor."
    , "Prayer cleanses the soul, but pain cleanses the body."
    , "There is only the Emperor, and he is our shield and protector."
    , "A small mind is easily filled with faith."
    , "Praise be, Emperor, Lord."
    , "For those who seek perfection there can be no rest on this side of the grave."
    , "The difference between heresy and treachery is ignorance."
];
 
function OnEvent_ChatWndSendMessage(ChatWnd, Message)
{
    if (Message.match(/\/itftd/)
        return rn_txt[Math.floor(Math.random()*rn_txt.length)];
}

04-20-2011 03:17 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Unhandled Exception Error - by Malzzel on 04-19-2011 at 12:54 AM
RE: Unhandled Exception Error - by Nagamasa on 04-19-2011 at 01:32 AM
RE: Unhandled Exception Error - by robert_dll on 04-19-2011 at 01:43 AM
RE: Unhandled Exception Error - by Alexandre.Lefebvre on 04-19-2011 at 12:36 PM
RE: Unhandled Exception Error - by matty on 04-19-2011 at 01:02 PM
RE: Unhandled Exception Error - by Malzzel on 04-19-2011 at 08:00 PM
RE: Unhandled Exception Error - by matty on 04-19-2011 at 08:03 PM
RE: Unhandled Exception Error - by Malzzel on 04-19-2011 at 08:59 PM
RE: Unhandled Exception Error - by matty on 04-20-2011 at 03:17 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On