- Joined
- Oct 12, 2010
- Messages
- 152
- Reaction score
- 39
Hey there , Here is some useful npc i coded. I am glad to sharing to everyone.Who are needed those npc.Hope this can help you fast growing your server/Maybe helped xD
Tetris system
2050015.js
Flask System
2050015.js
Carrot System
2050015.js
Maple leaf system
2050015.js
Anyway ,
Please don't worry it's been tested and worked , Hope it helped you
: Please click thank if helped or not , I am ok i just wanna share to everyone who needed those npc
Tetris system
2050015.js
PHP:
*/Credit : Wingx
*/Edit : Bryan
*/For : Kinostory
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();
return;
}
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 2 billion mesos for a #b#v4030002##k? Or do you want to trade in my #b#v4030002##k for 2 billion mesos?\r\n#L1# I would like to trade my #b#v4030002##k for 2 billion mesos!#l\r\n\#L2# I would like to exchange 2 billion mesos for a #b#v4030002##k!#l");
} else if (status == 1) {
if (selection == 1) {
if(cm.haveItem(4030002)) {
cm.gainMeso(2000000000);
cm.gainItem(4030002,-1);
cm.sendOk("Thank you for your mesos!");
} else {
cm.sendOk("Sorry, you don't have a #b#v4030002##k!");
}
cm.dispose();
} else if (status == 2) {
} else if (selection == 2) {
if(cm.getMeso() >= 2000000000) {
cm.gainMeso(-2000000000);
cm.gainItem(4030002,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");
}
}
}
}
Flask System
2050015.js
PHP:
*/Credit : Wingx
*/For : WingMs
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();
return;
}
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 2 billion mesos for a #b#v4000356##k? Or do you want to trade in my #b#v4000356##k for 2 billion mesos?\r\n#L1# I would like to trade my #b#v4000356##k for 2 billion mesos!#l\r\n\#L2# I would like to exchange 2 billion mesos for a #b#v4000356##k!#l");
} else if (status == 1) {
if (selection == 1) {
if(cm.haveItem(4000356)) {
cm.gainMeso(2000000000);
cm.gainItem(4000356,-1);
cm.sendOk("Thank you for your mesos!");
} else {
cm.sendOk("Sorry, you don't have a #b#v4000356##k!");
}
cm.dispose();
} else if (status == 2) {
} else if (selection == 2) {
if(cm.getMeso() >= 2000000000) {
cm.gainMeso(-2000000000);
cm.gainItem(4000356,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");
}
}
}
}
Carrot System
2050015.js
PHP:
*/Credit : Wingx
*/For : WingMs
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();
return;
}
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 2 billion mesos for a #b#v4000325##k? Or do you want to trade in my #b#v4000325##k for 2 billion mesos?\r\n#L1# I would like to trade my #b#v4000325##k for 2 billion mesos!#l\r\n\#L2# I would like to exchange 2 billion mesos for a #b#v4000325##k!#l");
} else if (status == 1) {
if (selection == 1) {
if(cm.haveItem(4000325)) {
cm.gainMeso(2000000000);
cm.gainItem(4000325,-1);
cm.sendOk("Thank you for your mesos!");
} else {
cm.sendOk("Sorry, you don't have a #b#v4000325##k!");
}
cm.dispose();
} else if (status == 2) {
} else if (selection == 2) {
if(cm.getMeso() >= 2000000000) {
cm.gainMeso(-2000000000);
cm.gainItem(4000325,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");
}
}
}
}
Maple leaf system
2050015.js
PHP:
*/Credit : Wingx
*/For : XeonMs
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();
return;
}
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 2 billion mesos for a #b#v4001126##k? Or do you want to trade in my #b#v4001126##k for 2 billion mesos?\r\n#L1# I would like to trade my #b#v4001126##k for 2 billion mesos!#l\r\n\#L2# I would like to exchange 2 billion mesos for a #b#v4001126##k!#l");
} else if (status == 1) {
if (selection == 1) {
if(cm.haveItem(4001126)) {
cm.gainMeso(2000000000);
cm.gainItem(4001126,-1);
cm.sendOk("Thank you for your mesos!");
} else {
cm.sendOk("Sorry, you don't have a #b#v4001126##k!");
}
cm.dispose();
} else if (status == 2) {
} else if (selection == 2) {
if(cm.getMeso() >= 2000000000) {
cm.gainMeso(-2000000000);
cm.gainItem(4001126,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");
}
}
}
}
Anyway ,
Please don't worry it's been tested and worked , Hope it helped you
Last edited by a moderator:



