What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » is there somthing wrong with this script..?

is there somthing wrong with this script..?
Author: Message:
joosh00
New Member
*

Avatar

Posts: 12
30 / Male / Flag
Joined: Mar 2008
O.P. RE: is there somthing wrong with this script..?
Thanks Jesus =P

1 more problem now it wont run and when i try and quit the preferences it says

quote:
Couldn't start script "Jokes".
The Script may be defective or you may not have the proper privileges to run scripts.

And here is an updated version of my script.

code:
//This script is created by Josh Brand
//Version - 0.1
//Released
//Last Updated
//Created for the Messenger Plus!

/*Changelog
0.1 - Script Created
*/

var sArray = new Array();
sArray[0] = "How did the blonde try to kill the bird? She threw it off a cliff.";
sArray[1] = "Did you hear about the blonde secretary who cut her fingers off so that she could write short hand?";
sArray[2] = "Your mom's so fat that Nasa octually orbits her.";
sArray[3] = "I'm not a steady drinker - my hand shakes too much.'";
sArray[4] = "Yo momma so ugly, she make blind muthafuckas cry.";
sArray[5] = "1 Tequila, 2 Tequila, 3 Tequila, Floor.";
sArray[6] = "How do you start an onion race?   Onion marks! Get set! Go!";
sArray[7] = "Your mom.";
sArray[8] = "Your mom owes me money, you douche!";
sArray[9] = "Just cause you went to prom with Merv the Perv.";
sArray[10] = "Your mom is like a brick, flat on both sides and gets laid by Mexicans.";
sArray[11] = "Your Mom has a really nice hat...";
sArray[12] = "Don't worry, Your Mom is still a virgin. You were a backdoor baby.";
sArray[13] = "Your mom is poop.";
sArray[14] = "Crime doesn't pay...Does that mean my job is a crime?";
sArray[15] = "What do you call a sheep with no legs?  A cloud.";
sArray[16] = "Do you know how to save a drowning lawyer?  No? Good!";
sArray[17] = "What do you call a dog with no legs? Doesn't matter... he won't come to you anyway!";
sArray[18] = "I love deadlines. I especially like the whooshing sound they make as they go flying by.";
sArray[19] = "Why are men like blenders?You need one, but you're not quite sure why. ";
sArray[20] = "Why are guys like lava lamps?  They're fun to watch, but not very bright!";
sArray[21] = "Yo mama so old she has Jesus' beeper number! ";
sArray[22] = "Yo mama's so stupid she can't pass a blood test.";
sArray[23] = "How many Marxists does it take to screw in a light bulb?   None, the seeds of revolution and change are within the lightbulb itself.";
sArray[24] = "Yo mama's so stupid, she put lipstick on her forehead, because she wanted to make up her mind";
sArray[25] = "Yo mama so short she has to use a ladder to pick up a dime.";
sArray[26] = "How do you make a blonde laugh on a Saturday?   Tell her a joke on a Wednesday.";
sArray[27] = "Yo mama's so fat that on her drivers licence it says picture continued on other side.";
sArray[28] = "What does a blonde say after her doctor tells her that she's pregnant.   Is it mine?";
sArray[29] = "Waiter! This coffee tastes like mud. Yes sir, its fresh ground.";
sArray[30] = "What do you call a fish with no eyes?  A fsh";
sArray[31] = "Why don't aliens eat clowns.  Because they taste funny. ";
sArray[32] = "Two snowmen are standing in a field. One says to the other : Funny, I smell carrots too".";
sArray[33] = "What do you get when you cross an elephant and a rhino? el-if-i-no ";
sArray[34] = "Two peanuts walk into a bar.   One was a salted.";
sArray[35] = "What do you call a woman with one leg?  Ilene";
sArray[36] = "WHAT DID THE GHOST SAY TO THE BEE?  BOO-BEE";
sArray[37] = "What do you call a man with no arms and no legs sitting on your front porch?   Matt";
sArray[38] = "What do you call a man with no arms and no legs sitting in a pool?   Bob";
sArray[39] = "Whats best about shagging Twenty - Eight year olds?  There is Twenty of them!";
sArray[40] = "If you lend someone $20, and never see that person again; it was probably worth it.";
sArray[41] = "Keep honking. I'm reloading";


function OnEvent_ChatWndSendMessage(ChatWnd, Message){
    if(Message.substr(0,8).toLowerCase()=="/jokes"){
        var i = Math.floor((Math.random()*(sArray.length)));
        return "[c=blue]"+sArray[i]+"[/c]";
    }

}

function OnGetScriptCommands(){
    var commands = '<ScriptCommands>';
        commands+='<Command>';
            commands+='<Name>Jokes</Name>';
            commands+='<Description>Sends a joke</Description>';
        commands+='</Command>';
        commands+='</ScriptCommands>';
    return commands;
}

function OnEvent_MenuClicked(MenuItemId, Location, OriginWnd){
    if(MenuItemId=="jk"){
        OriginWnd.SendMessage(OnEvent_ChatWndSendMessage("", "/jokes"));
    }
    if(MenuItemId=="about"){
        WndAbout = MsgPlus.CreateWnd("WndAbout.xml", "WndAbout");
    }
}

function OnGetScriptMenu(nLocation){
    var ScriptMenu = "<ScriptMenu>\n";
    if(nLocation===2){
        ScriptMenu    +=    "<MenuEntry Id=\"jk\">Jokes</MenuEntry>";
        ScriptMenu    +=    "<Separator/>";
    }
    ScriptMenu    +=    "<MenuEntry Id=\"about\">About</MenuEntry>";
    ScriptMenu    += "</ScriptMenu>";
    return ScriptMenu;
}

This post was edited on 03-26-2008 at 05:59 PM by joosh00.
03-26-2008 05:42 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
is there somthing wrong with this script..? - by joosh00 on 03-26-2008 at 04:34 PM
RE: is there somthing wrong with this script..? - by pollolibredegrasa on 03-26-2008 at 04:45 PM
RE: is there somthing wrong with this script..? - by joosh00 on 03-26-2008 at 04:49 PM
RE: is there somthing wrong with this script..? - by Jesus on 03-26-2008 at 05:09 PM
RE: is there somthing wrong with this script..? - by joosh00 on 03-26-2008 at 05:42 PM
RE: is there somthing wrong with this script..? - by joosh00 on 03-27-2008 at 12:03 AM
RE: is there somthing wrong with this script..? - by pollolibredegrasa on 03-27-2008 at 12:10 AM
RE: is there somthing wrong with this script..? - by joosh00 on 03-27-2008 at 12:16 AM
RE: is there somthing wrong with this script..? - by CookieRevised on 03-27-2008 at 01:15 AM
RE: is there somthing wrong with this script..? - by joosh00 on 03-27-2008 at 01:32 AM
RE: is there somthing wrong with this script..? - by Naruto-SR on 03-27-2008 at 01:51 AM
RE: is there somthing wrong with this script..? - by joosh00 on 03-27-2008 at 02:07 AM
RE: is there somthing wrong with this script..? - by roflmao456 on 03-27-2008 at 02:32 AM
RE: is there somthing wrong with this script..? - by joosh00 on 03-27-2008 at 02:34 AM


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