Something cool@@@@

Newbie Spellweaver
Joined
Sep 1, 2008
Messages
9
Reaction score
0
Here, have this:
PHP:
/* Exchange Quest  (2010000.js)*/

importPackage(net.sf.odinms.client);


var status = 0;
var cost = 200;
var sellscrolls = false;
var sixtycost = 810;
var tencost = 300;
var thirtycost = 600;
var seventycost = 450;

var sellten = false;
var sellsixty = false;
var sellseventy = false;
var sellthirty = false;

function start() {
    status = -1;
    action(1, 0, 0);
}

function action(mode, type, selection) {
    if (mode == -1) {
        cm.dispose();
    } else {
        if (mode == 0) {
            cm.dispose();
            return;
        }
        if (mode == 1)
            status++;
        else
            status--;
        if (status == 0) { // first interaction with NPC
            cm.sendNext("Oh hello, #h #! Lately, the players of GoofyMS have felt a need for a little change to make things easier for them. Goofy loves his players, so he's assigned me the task of making things easier for you!");
        } else if (status == 1) {
            cm.sendSimple("So, how can I make your day?\r\n#b#L0#I hear you're trading Maple Leaves for Cafe items?#l\r\n#L1#I'd like to upgrade my items!#l#k");
        } else if (status == 2) {
                if (selection == 0){
                        cm.sendNext("I sure am! If you want a little background on Cafe items, they're just what would normally be higher leveled items for lower leveled players, so they can experience the power of the weapon without all of the work it takes to be able to wield it!");
                    }
                if (selection == 1) {
                        cm.sendSimple("Ah, don't we all? Luckily, I can help you. I'm willing to trade upgrade scrolls for Maple Leaves! The amount of leaves it costs for a scroll depends on the chance of its success. Today is #b" + whatisToday() + "today, so I'll be selling the following percentage(s) of scrolls:\r\n#b" + today());
                        status = 20;
                    }
        }
        else {
           var items = new Array (1302050, 1302051, 1302052, 1302053, 1302054, 1312026, 1312027, 1312028, 1312029, 1322046, 1322047, 1322048, 1322049, 1322050, 1332043, 1332044, 1332045, 1332046, 1332047, 1372027, 1372028, 1372029, 1372030, 1382030, 1382031, 1382032, 1382033, 1382034, 1402031, 1402032, 1402033, 1402034, 1412022, 1412023, 1412024, 1412025, 1422023, 1422024, 1422025, 1422026, 1432031, 1432032, 1432033, 1432034, 1432035, 1442040, 1442041, 1442042, 1442043, 1452038, 1452039, 1452040, 1452042, 1462033, 1462034, 1462035, 1462036, 1462037, 1472045, 1472046, 1472047, 1472048, 1472049)
           var sixty = new Array (2040001, 2040004, 2040017, 2040101, 2040106, 2040201, 2040201, 2040301, 2040311, 2040401, 2040501, 2040513, 2040704, 2040804, 204081, 2040901, 2040206, 2040413, 2040504, 2040516, 2040601, 2040613, 2040707, 2040801, 2040914, 2040919, 2041001, 2041004, 2041007, 2041010, 2041013, 2041016, 2041019, 2041022, 2043101, 2043201, 2043301, 2043701, 2043801, 2044001, 2044101, 2044201, 2044301, 2044401, 2044501, 2044601, 2044701);
           var ten = new Array (2040002, 2040005, 2040016, 2040302, 2040310, 2040402, 2040412, 2040502, 2040505, 2040514, 2040517, 2040602, 2040612, 2040702, 2040705, 2040708, 2040708, 2040802, 2040805, 2040816, 2040902, 2041002, 2041005, 2041008, 2041011, 2041014, 2041017, 2041020, 2041023, 2043002, 2043102, 2043202, 2043302, 2043702, 2043802, 2044002, 2044102, 2044202, 2044302, 2044402, 2044502, 2044602, 2044702);
           var thirty = new Array (2043005, 2043007, 2043105, 2043105, 2043205, 2043305, 2043705, 2043805, 2044005, 2044105, 2044205, 2044305, 2044405, 2044505, 2044605, 2044705);
           var seventy = new Array (2040008, 2040010, 2040012, 2040014, 2040304, 2040306, 2040308, 2040404, 2040406, 2040408, 2040410, 2040508, 2040510, 2040518, 2040520, 2040604, 2040606, 2040608, 2040610, 2040712, 2040714, 2040716, 2040808, 2040810, 2040812, 2040814, 2041030, 2041032, 2041034, 2041036, 2041038, 2041040);
          if (status == 3) {
                    var selStr = "So, what item would you like me to create? Remember, it'll cost you #b" + cost + " Maple Leaves#k for each item I make for you.";
                    for (var i = 0; i < items.length; i++){
                   selStr += "\r\n#b#L" + i + "# #v" + items[i] + "# #t" + items[i] + "##l#k";
               }
                     cm.sendSimple(selStr);
                         
                   }
          if (status == 21) {
              if (selection == 0) {
              var selTen = "Just tell me which one you want and I'll see what I can do. Each scroll I trade with you will cost #b" + tencost + " Maple Leaves#k.";
                    for (var i = 0; i < ten.length; i++){
                   selTen += "\r\n#b#L" + i + "# #v" + ten[i] + "# #t" + ten[i] + "##l#k";
               }
                     cm.sendSimple(selTen);
                     sellten = true;
                }
              if (selection == 1) {
                var selSixty = "Just tell me which one you want and I'll see what I can do. Each scroll I trade with you will cost #b" + sixtycost + " Maple Leaves#k.";
                    for (var i = 0; i < sixty.length; i++){
                   selSixty += "\r\n#b#L" + i + "# #v" + sixty[i] + "# #t" + sixty[i] + "##l#k";
               }
                     cm.sendSimple(selSixty);
                     sellsixty = true;
                        }
              if (selection == 2) {
              var selThirty = "Just tell me which one you want and I'll see what I can do. Each scroll I trade with you will cost #b" + thirtycost + " Maple Leaves#k.";
                    for (var i = 0; i < thirty.length; i++){
                   selThirty += "\r\n#b#L" + i + "# #v" + thirty[i] + "# #t" + thirty[i] + "##l#k";
               }
                     cm.sendSimple(selThirty);
                     sellthirty = true;
                }
              if (selection == 3) {
              var selSeventy = "Just tell me which one you want and I'll see what I can do. Each scroll I trade with you will cost #b" + seventycost + " Maple Leaves#k.";
                    for (var i = 0; i < seventy.length; i++){
                   selSeventy += "\r\n#b#L" + i + "# #v" + seventy[i] + "# #t" + seventy[i] + "##l#k";
               }
                     cm.sendSimple(selSeventy);
                     sellseventy = true;
                }
                
            }
            if (status == 22 && sellten == true) {
                if (cm.haveItem(4001126, tencost)) {
                       cm.gainItem(4001126, -tencost);
                       cm.gainItem(ten[selection], 1);
                       cm.sendOk("Here's your #b#t" + ten[selection] + "##k scroll! If Lady Luck is with you today, who knows what kind of ite you can make!");
                       cm.dispose();
                    } else {
                        cm.sendOk("I'm sorry, but you don't have enough Maple Leaves to make a #b#t" + ten[selection] + "##k scroll.");
                        cm.dispose();
                        }
                }
                if (status == 22 && sellsixty == true) {
                if (cm.haveItem(4001126, sixtycost)) {
                       cm.gainItem(4001126, -sixtycost);
                       cm.gainItem(sixty[selection], 1);
                       cm.sendOk("Here's your #b#t" + sixty[selection] + "##k scroll! If Lady Luck is with you today, who knows what kind of ite you can make!");
                       cm.dispose();
                    } else {
                        cm.sendOk("I'm sorry, but you don't have enough Maple Leaves to make a #b#t" + sixty[selection] + "##k scroll.");
                        cm.dispose();
                        }
                }
                if (status == 22 && sellthirty == true) {
                if (cm.haveItem(4001126, thirtycost)) {
                       cm.gainItem(4001126, -thirtycost);
                       cm.gainItem(ten[selection], 1);
                       cm.sendOk("Here's your #b#t" + thirty[selection] + "##k scroll! If Lady Luck is with you today, who knows what kind of ite you can make!");
                       cm.dispose();
                    } else {
                        cm.sendOk("I'm sorry, but you don't have enough Maple Leaves to make a #b#t" + ten[selection] + "##k scroll.");
                        cm.dispose();
                        }
                }
                if (status == 22 && sellseventy == true) {
                if (cm.haveItem(4001126, seventycost)) {
                       cm.gainItem(4001126, -seventycost);
                       cm.gainItem(ten[selection], 1);
                       cm.sendOk("Here's your #b#t" + seventy[selection] + "##k scroll! If Lady Luck is with you today, who knows what kind of ite you can make!");
                       cm.dispose();
                    } else {
                        cm.sendOk("I'm sorry, but you don't have enough Maple Leaves to make a #b#t" + seventy[selection] + "##k scroll.");
                        cm.dispose();
                        }
                }
          if (status == 4) {
                      if (cm.haveItem(4001126, cost)) {
                       cm.gainItem(4001126, -cost);
                       cm.gainItem(items[selection], 1);
                       cm.sendOk("Here you are, a brand new #b#t" + items[selection] + "##k. Remember, it's a cafe item!");
                       cm.dispose();
                    } else {
                        cm.sendOk("I'm sorry, but you don't have enough Maple Leaves to make a #b#t" + items[selection] + "##k.");
                        cm.dispose();
                        }
                   }
           }
    }
}


function today() {
    var percent = new Array ("#L0#10%#l", "#L1#60%#l", "#L2#30%#l", "#L3#70%#");
    var allscroll = "#L0#10%#l\r\n#L1#60%#l\r\n#L2#30%#l\r\n#L3#70%#l"
    if (cm.getDay() == 2) { //Monday
    return percent[0]
        }
    if (cm.getDay() == 3) { //Tuesday
    return percent[3]
        }
    if (cm.getDay() == 4) { //Wednesday
    return percent[2];
        }
    if (cm.getDay() == 5) { //Thursday
    return percent[4]
        }
    if (cm.getDay() == 6) { //Friday
    return percent[1]
        }
    if (cm.getDay() == 1) { //Saturday
    return allscroll
        }
     if (cm.getDay() == 0) {
     return "I'm sorry, I don't offer my services on Sundays."
        }
        
     
}

function whatisToday() {
    var todayis = cm.getDay()
    if (todayis == 0) {
    return "Sunday"
    }
    if (todayis == 1) {
        return "Monday"
        }
    if (todayis == 2) {
        return "Tuesday"
        }
        if (todayis == 3) {
        return "Wednesday"
        }
        if (todayis == 4) {
        return "Thursday"
        }
        if (todayis == 5) {
        return "Friday"
        }
        if (todayis == 6) {
        return "Saturday"
        }
    
    }


What is it, you ask?
It's just a script I made when I had a server. The NPC sells scrolls, but the percentage that she sells is based on the day of the week. Also, it trades Maple Leaves for Cafe items. Whoop

Now, request something for me or I'll start posting pornography.

The only condition(s):
- Nothing involving packets.
- Don't request something that makes you look like a complete jackass/ imbecile.

Please? :(
 
Re: [Release] Stuff

Thats a Release, since he released something,
On the other hand this is NOT a release

It wasn't at first, if I'm remembering correctly. Also, I recall someone (the name slips my mind at the moment) creating a thread just like this and I don't remember people like yourself flinging rocks at him for the 10+ pages he had his thread.

Make me a repack with pvp and pets only odinms 988 based.

Oh and, make me GM in GMS please.
1.) I'm highly against repacks.
2.) That's just dumb. Go to college, get a degree, and then apply for a job at Nexon yourself.
 
Re: [Release] Stuff

It wasn't at first, if I'm remembering correctly. Also, I recall someone (the name slips my mind at the moment) creating a thread just like this and I don't remember people like yourself flinging rocks at him for the 10+ pages he had his thread.


1.) I'm highly against repacks.
2.) That's just dumb. Go to college, get a degree, and then apply for a job at Nexon yourself.

shhh, where is my hack?
 
Re: [Release] Something cool@@@@

*Taps fingers on e-desk* STILL WAITING. COME ON, I KNOW HALF OF YOU PEOPLE CAN'T DO ANYTHING. I'M STANDING RIGHT HERE PRACTICALLY BEGGING TO BE YOUR SLAVE AND YOU'RE JUST--

URFGHONroefns
 
Re: [Release] Something cool@@@@

Ring Effect, LudiMazePQ, OrbisPQ, KerningPQ, AmoriaPQ, Treasure Bonus, LudiPQ, ZakumPQ, Okmok?, FreeCell NPC, Damas NPC, Chest NPC, Delete all default text NPC's, etc.. etc..
 
Back