[Release] Money to Item trading command! USEFUL

Status
Not open for further replies.
Joined
Jan 4, 2009
Messages
13
Reaction score
0
SO what this basically does is that when you type @item, and you have 1bil, it will take your 1 bil away, and give u a leaf.
and when you type @meso, and you have a leaf, it will take your leaf away, and give u 1bil.
I saw this command in one server which i can't remember, and thought it was useful.
SO here GOES..

Go to PlayerCommands, and add this. Y'all know what to do... if u dont, tough luck, my young sky walker.

Code:
        } else if (splitted[0].equals("@item")) {
            int price = 1000000000; // the price of the money envelop
            if (player.getMeso() > price) {
            player.gainMeso(-price, true);
            MapleInventoryManipulator.addById(c, 4000174, (short) 1, c.getPlayer().getName() + " has just traded 1bil for 1 money envelop.", player.getName());       
            } else {
            mc.dropMessage("You need 1bil to trade with a money envelop."); 
            }
        } else if (splitted[0].equals("@meso")) {
            int item = 4000174; // the money envelope
            int price = 1000000000; // the price of the leaf
            if (player.haveItem(4000174)) {
            player.gainMeso(price, true);
            MapleInventoryManipulator.removeById(player.getClient(), MapleItemInformationProvider.getInstance().getInventoryType(item) , item, 1, true, false, true);
            } else {
            mc.dropMessage("You need 1 money envelop to trade with 1bil."); 
            }


and oh yeh..

FLAME SHIELD : OFF

OH YEAH !!!!!! BRING ALL THE FLAMES !!!!!!! I'll fight it!!!!!!!!

P.S. Not tested., but I'm sure it will work
P.S.2 . first RELEASE!!
 
tyvm O.O im gonna change to maple golden leaf for sinems repack (im not a noob repack leacher i just use it as a base and mod it alot)

PS. FIRST POST XD
 
My little brother can code better then this shit, maybe even better.
Try using monster cards and decks and maybe make it like @item [amt] instead?
Still this command is really pointless and messed up.
 
Status
Not open for further replies.
Back