Trading items for Zakum helmet& more (Juz Take a Look) =(

Newbie Spellweaver
Joined
Aug 1, 2008
Messages
66
Reaction score
0
This Script can do the funtion below (Making godlike items, GM scrolls, I want SEX (you need a "C"O"N"D"O"M" tho))


I put this as npc
9100200.js
Its a machine and i put that npc in FM
if you want more go to this
http://forum.ragezone.com/showthread.php?t=444379
/*
This file is part of the OdinMS Maple Story Server
Copyright (C) 2008 Patrick Huy <[email protected]>
Matthias Butz <[email protected]>
Jan Christian Meyer <[email protected]>

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation version 3 as published by
the Free Software Foundation. You may not use, modify or distribute
this program under any other version of the GNU Affero General Public
License.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

/* Machine
Victoria Road: Free Market

Refining NPC:
* Making Godlike items
* Making GM scrolls
* Get a Girl, or make rusty screw
*/

importPackage(net.sf.odinms.client);

var status = 0;
var selectedType = -1;
var selectedItem = -1;
var item;
var mats;
var matQty;
var cost;
var qty;
var equip;

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

function action(mode, type, selection) {
if (mode == 1)
status++;
else
cm.dispose();
if (status == 0 && mode == 1) {
var selStr = "Hello,#r#h ##k! \r\nI am highered by #bOnesky#n#k You can trade in stuff for Exp,Mesos,or Items here! #b"
var options = new Array("Godlike items","Gm scrolls","I want SEX");
for (var i = 0; i < options.length; i++){
selStr += "\r\n#L" + i + "# " + options + "#l";
}

cm.sendSimple(selStr);
}
else if (status == 1 && mode == 1) {
selectedType = selection;
if (selectedType == 0){ //Godlike items list
var selStr = "Okay, what do you want me to do? \f\n #b";
var items = new Array(1002357,1002518,1122000,1102040,1082149,2041200,1002140,1322013,5220001);
var suffix = new Array (" "," "," "," ",
" "," "," "," "," ");
for (var i = 0; i < items.length; i++){
selStr += "\r\n#L" + i + "##z" + items + "##k" + suffix + "#l#b";
}
cm.sendSimple(selStr);
equip = true;
}
else if (selectedType == 1){ //GM scrolls list
var selStr = "Want a special GM scroll? That shouldn't be too difficult. Which did you have in mind?#b";
var items = new Array(2044503,2044703,2044603,2043303,2040807,2040806,2043103,2043203,2043003,2040506,2044403,2040709,2040710,2040711,2044303,2043803,2044103,2044203,2044003,2043703);
var suffix = new Array (" "," "," "," ",
" "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," ");
for (var i = 0; i < items.length; i++){
selStr += "\r\n#L" + i + "##z" + items + "##k" + suffix + "#l#b";
}
cm.sendSimple(selStr);
equip = true;
}
else if (selectedType == 2){ //Get a girl or Make rusty screws
var selStr = "Materials? I know of a few materials that I can make for you...#b";
var materials = new Array ("I want a Girl","Make Rusty Screws");
for (var i = 0; i < materials.length; i++){
selStr += "\r\n#L" + i + "# " + materials + "#l";
}
cm.sendSimple(selStr);
equip = false;
}
if (equip)
status++;
}
else if (status == 2 && mode == 1) {
selectedItem = selection;
if (selectedType == 2){ //material refine
var itemSet = new Array (1702169,4031161);
var matSet = new Array(new Array (3991002,3991014,3991013,3991003,3991014,3991012),4000136,new Array (4011000,4011001));
var matQtySet = new Array (new Array (1,1,1,1,1,1,1),3,new Array (1,1));
var costSet = new Array (10000000,0,0)
item = itemSet[selectedItem];
mats = matSet[selectedItem];
matQty = matQtySet[selectedItem];
cost = costSet[selectedItem];
}

var prompt = "So, you want me to make some #t" + item + "#s? In that case, how many do you want me to make?";

cm.sendGetNumber(prompt,1,1,100)
}
else if (status == 3 && mode == 1) {
if (equip)
{
selectedItem = selection;
qty = 1;
}
else
qty = selection;

if (selectedType == 0){ //Godlike items list
var itemSet = new Array(1002357,1002518,1122000,1102040,1082149,2041200,1002140,1322013,5220001);
var matSet = new Array(new Array(4031161,1002518,2022118),new Array(1002081,2022118),new Array(4000030,5000030,5240012,4000245,1332031),new Array(1102039,1102017,4031161),new Array(1082002,1312014,5021014),new Array(5000031,1312014,3991003),new Array(1002019,4000136,4031161),
new Array(1322008,4000136),new Array(4000176,4000138,4000235,1002524,1032034));
var matQtySet = new Array(new Array(15,5,10),new Array(1,1),new Array(5,1,66,1,1),new Array(3,2,15),new Array(1,1,1),new Array(1,1,1),new Array(1,999,999),new Array(1,500),new Array(1,1,1,1,1));
var costSet = new Array(1000000000,2000,500000000,10000,20000,30000,2000000000,2000000000,70000);
item = itemSet[selectedItem];
mats = matSet[selectedItem];
matQty = matQtySet[selectedItem];
cost = costSet[selectedItem];
}
else if (selectedType == 1){ //Gm scrolls
var itemSet = new Array(2044503,2044703,2044603,2043303,2040807,2040806,2043103,2043203,2043003,2040506,2044403,2040709,2040710,2040711,2044303,2043803,2044103,2044203,2044003,2043703);
var matSet = new Array(new Array(2044502,2044504,2044505,2044500),new Array(2044702,2044705,2044704,2044700),new Array(2044602,2044605,2044604,2044600),new Array(2043302,2043305,2043304,2043300),new Array(2040805,2040811,2040810,2040803),new Array(2040802,2040809,2040808,2040800),new Array(2043102,2043105,2043104,2043100),new Array(2043202,2043205,2043204,2043200),new Array(2043002,2043005,2043004,2043000),new Array(2040502,2040509,2040508,2040500),new Array(2044402,2044405,2044404,2044400),new Array(2040702,2040713,2040712,2040700),new Array(2040705,2040715,2040714,2040703),new Array(2040708,2040717,2040716,2040706),new Array(2044302,2044305,2044304,2044300),new Array(2043802,2043805,2043804,2043800),new Array(2044102,2044105,2044104,2044100),new Array(2044202,2044205,2044204,2044200),new Array(2044002,2044005,2044004,2044000),new Array(2043702,2043705,2043704,2043700));
var matQtySet = new Array (new Array(10,1,1,1),new Array(10,1,1,1),new Array(10,1,1,1),new Array(10,1,1,1),new Array(10,1,1,1),new Array(10,1,1,1),new Array(10,1,1,1),new Array(10,1,1,1),new Array(10,1,1,1),new Array(10,1,1,1),new Array(10,1,1,1),new Array(10,1,1,1),new Array(10,1,1,1),new Array(10,1,1,1),new Array(10,1,1,1),new Array(10,1,1,1),new Array(10,1,1,1),new Array(10,1,1,1),new Array(10,1,1,1),new Array(10,1,1,1));
var costSet = new Array (20000,25000,30000,50000,45000,50000,55000,60000,70000,80000);
item = itemSet[selectedItem];
mats = matSet[selectedItem];
matQty = matQtySet[selectedItem];
cost = costSet[selectedItem];
}

var prompt = "You want me to make ";
if (qty == 1)
prompt += "a #t" + item + "#?";
else
prompt += qty + " #t" + item + "#?";

prompt += " In that case, I'm going to need specific items from you in order to make it. Make sure you have room in your inventory, though!#b";

if (mats instanceof Array){
for(var i = 0; i < mats.length; i++){
prompt += "\r\n#i"+mats+"# " + matQty * qty + " #t" + mats + "#";
}
}
else {
prompt += "\r\n#i"+mats+"# " + matQty * qty + " #t" + mats + "#";
}

if (cost > 0)
prompt += "\r\n#i4031138# " + cost * qty + " meso";

cm.sendYesNo(prompt);
}
else if (status == 4 && mode == 1) {
var complete = true;

if (cm.getMeso() < cost * qty)
{
cm.sendOk("I may still be an apprentice, but I do need to earn a living.")
}
else
{
if (mats instanceof Array) {
for(var i = 0; complete && i < mats.length; i++)
{
if (!cm.haveItem(mats, matQty))
{
complete = false;
}
}
}
else {
if (!cm.haveItem(mats, matQty))
{
complete = false;
}
}
}

if (!complete)
cm.sendOk("I'm still an apprentice, I don't know if I can substitute other items in yet... Can you please bring what the recipe calls for?");
else {
if (cm.canHold(item)) {
if (mats instanceof Array) {
for (var i = 0; i < mats.length; i++){
cm.gainItem(mats, -matQty * qty);
}
}
else
cm.gainItem(mats, -matQty * qty);

if (cost > 0)
cm.gainMeso(-cost * qty);

if (item == 4003000)
cm.gainItem(4003000, 15 * qty);
else
cm.gainItem(item, qty);
cm.sendOk("Did that come out right? Come by me again if you have anything for me to practice on.");
}
else {
cm.sendOk("Please make sure you have room in your inventory, and talk to me again.");
}
}
cm.dispose();
}
}


Onesky - Trading items for Zakum helmet& more (Juz Take a Look) =( - RaGEZONE Forums


Onesky - Trading items for Zakum helmet& more (Juz Take a Look) =( - RaGEZONE Forums


Onesky - Trading items for Zakum helmet& more (Juz Take a Look) =( - RaGEZONE Forums


Onesky - Trading items for Zakum helmet& more (Juz Take a Look) =( - RaGEZONE Forums


Onesky - Trading items for Zakum helmet& more (Juz Take a Look) =( - RaGEZONE Forums


Onesky - Trading items for Zakum helmet& more (Juz Take a Look) =( - RaGEZONE Forums
 
Re: [Release]Trading items for Zakum helmet& more (Juz Take a Look) =(

um could you put it in "code" instead of quote so the alignment is correct
 
Re: [Release]Trading items for Zakum helmet& more (Juz Take a Look) =(

What that option 'i need a girl' give?
^^ Joke...Nice Script...
So,i can edit?
and...do not use quote to put script...it crap...
use PHP
 
Back