ScarfaceMS
Please login or register to enjoy the full features and benefits of the forum. Also when you are logged in you will have reduced AD's and much more. So what are you waiting for! Not a member? Register now! Already a member? Just simply log in! Thank You Smile ~
-Tony And 2nd Owner Legend<3!
ScarfaceMS
Please login or register to enjoy the full features and benefits of the forum. Also when you are logged in you will have reduced AD's and much more. So what are you waiting for! Not a member? Register now! Already a member? Just simply log in! Thank You Smile ~
-Tony And 2nd Owner Legend<3!
ScarfaceMS
Would you like to react to this message? Create an account in a few clicks or log in to continue.

ScarfaceMS

Maplestory v75 Private Server
 
HomePortalGalleryLatest imagesSearchRegisterLog in
Please vote for our server on all links inorder to have a better and bigger community!

 

 Meso exchange

Go down 
AuthorMessage
NoobieGuy
Moderator
Moderator
NoobieGuy


Posts : 54
Join date : 2010-06-24
Age : 28
Location : California

Meso exchange Empty
PostSubject: Meso exchange   Meso exchange EmptySun Jun 27, 2010 3:49 pm

Well, noticed there is not a meso exchanger in the all in one shop, i got this script from my old server, it should do the trick. edit it how you please, i didn't know how you wanted it.

Code:
//Author: Moogra
var status = 0;
var map = Array(240010501);

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

function action(mode, type, selection) {
    if (mode == -1)
        cm.dispose();
    else {
        if (mode == 0 && status == 0)
            cm.dispose();
        if (mode == 1)
            status++;
        else
            status--;
        if (status == 0) {
            cm.sendSimple("Hello, I am the meso to item converter. Do you want to trade in 1 billion mesos for a #b#v4000313##k? Or do you want to trade in my #b#v4000313##k for 1 billion mesos?\r\n#L1# I would like to trade my #b#v4000313##k for 1 billion mesos!#l\r\n\#L2# I would like to exchange 1 billion mesos for a #b#v4000313##k!#l");
        } else if (status == 1) {
            if (selection == 1) {
                if(cm.haveItem(4000313)) {
                    cm.gainMeso(1000000000);
                    cm.gainItem(4000313,-1);
                    cm.sendOk("Thank you for your mesos!");
                } else
                    cm.sendOk("Sorry, you don't have a #b#v4000313##k!");
                cm.dispose();
            } else if (selection == 2) {
                if(cm.getMeso() >= 1000000000) {
                    cm.gainMeso(-1000000000);
                    cm.gainItem(4000313,1);
                    cm.sendOk("Thank you for your item!");
                } else
                    cm.sendOk("Sorry, you don't have enough mesos!");
                cm.dispose();
            }
            else
                cm.sendOk("All right. Come back later");
        }
    }
}
Back to top Go down
 
Meso exchange
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
ScarfaceMS :: Extras :: Releases-
Jump to: