Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var status = 0;
- function start() {
- status = -1;
- action(1, 0, 0);
- }
- function action(mode, type, selection) {
- if (mode == -1) {
- cm.dispose();
- }
- else {
- if (status >= 2 && mode == 0) {
- cm.sendOk("Goodbye");
- cm.dispose();
- return;
- }
- if (mode == 1) {
- status++;
- }
- else {
- status--;
- }
- if (status == 0) {
- cm.sendNext("Hi, I'm the MapleReflex Mercenary");
- }
- else if (status == 1) {
- if(cm.haveItem(4001129)) {
- cm.sendSimple("You have #v4001129#!\r\nI would trade my services for it.\r\n#L0#Kill my enemy#l\r\n#L1#I have no enemies#l");
- }
- else {
- cm.sendOk("You dont have any #v4001129#, you get them alongside with event prizes(which means you have to win an event) ");
- cm.dispose();
- }
- }
- else if (status == 2) {
- if (selection == 0) {
- cm.sendGetText("Enter His IGN.");
- }
- else if (selection == 1) {
- cm.sendOk("I'll be your first enemy then.");
- cm.getplayer().setHp(0);
- cm.dispose();
- }
- }
- else if (status == 3) {
- if (cm.getCharByName(target).getMap() == 910000000) {
- var target = cm.getText();
- cm.getCharByName(target).setHp(0);
- cm.gainItem(4001129, -1);
- cm.sendOk("The deed has been done");
- cm.dispose();
- }
- else {
- cm.sendOk("Please make sure that the target is in the Free Market Entrance");
- cm.dispose();
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement