[Java] please check my script

Newbie Spellweaver
Joined
May 30, 2008
Messages
6
Reaction score
0
Hey umm i was wondering if soem one could read over my script and tell me what is wrong with it ?







var wui = 0;

function start() {
cm.sendSimple ("Hey i can warp you to donaters island. Donaters island is a place of thanks to donaters. Once there you will find things that will never get boring. Are you ready to go ?") \r\n#L0##b"YES! please take me there"#k #l\r\n#L1##b"No thank you".#k
}


function action(mode, type, selection) {
cm.dispose();
if (selection == 0) {

cm.haveItem(4001129)
cm.warp(10000, 0)
}

function action(mode, type, selection) {
cm.dispose();
else
cm.sendSimple ("I see you are NOT a donater, Please come back when u have donated to acces Donater Islands")
cm.dispose();

function action(mode, type, selection) {
cm.dispose();

else if (selection == 1) {
cm.sendSimple ("Okay, come back when you are ready.")
cm.dispose();
}
 
Well your curly brackets are wrong and you're missing a lot of semi colons. You have several lines with just function action(mode, type, selection) {, which has me confused. Are you intending to call the function each time or declare it?
 
Back