• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

[Service] NPC Scripts

Nae-un <33
Joined
Jun 23, 2012
Messages
554
Reaction score
70
My name is Jon, and I've been scripting as a hobby for several years now, starting at AngelMS (down), and then Midnight/TwilightMS(down).​

I'm also looking to script for pay. Skype is jonnguyens

I've seen service threads running around, but I've decided to open one of mine just in case anyone needs help because those have gone inactive. Now I have a pretty busy schedule, but I can most definitely help you out with your scripts if and only if you give me your script first.

I'm looking to script NPCs for a server for pay. If you want to talk, add me on skype: jonnguyens





  • Why do I have to give you a script first? Don't you know how to script?

Yes, yes I do. I basic functions and can create all those fancy scripts (infinite loop, ternaries, etc). It's just I want to see you try first (and maybe because my mind feels more at ease when I have something to fix, and not create). I want to show you any errors you may have created, or what you could have done to make it shorter. I'm not the best NPC scripter in the world, but I can say I'm a pretty good one.







  • Where's some proof of work?
This is an NPC help thread. If I'm not qualified you will most certainly see it within the first few scripts. But hey, if the script works everyone is happy, right?





Make sure to post your script in spoiler format (using spoiler tags). These tags are created by this ....

(spoiler) (php) PUT SCRIPT HERE (/php)(/spoiler)
- Replace the "(" and ")" with "[" and "]"


Also, if you have any special functions (such as cm.gainNX(), cm.getVote(), etc) you must tell me. I can't make you a script in which you don't have the functions for.

Terms of Serivice:
This is a declaration that I hold, that I will not code a non-playable character (NPC) for a person unless they post for help here on the thread. If someone contacts me outside this thread for help on an NPC, I will not provide assistance in any form. The only time I will provide my knowledge and help others is if, and only if, they ask for my help and have attempted to script it themselves. To further add to the conditions of my Terms of Service, I also require said person to provide a script they have attempted to write themselves. Also, I can, and will post the script I've completed on this thread so that it is public. I will not script a private NPC for someone's server. It is available for everyone to see and learn from. If you fulfill the conditions I listed above, require help, and post your request for help in the form I have below, then I will provide my services accordingly.



Format:
  • Small Description
  • Specifics
  • Special Functions (cm.gainNx)
  • Script
 
Last edited:
Nae-un <33
Joined
Jun 23, 2012
Messages
554
Reaction score
70
PHP:
function action(method, type, selection) {
Should be this since you're using variable mode throughout the script
PHP:
function action(mode, type, selection) {
Also you forgot to close your cm.dispose under your else statement for modes

God I must be totally out of it. Thanks for pointing them out. And I believe my modes are fine.

Code:
var status;
var first = [100, 200, 300, 400, 500];
var cyg = [1100, 1200, 1300, 1400, 1500];

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

function action(mode, type, selection) {
if (mode==1) {
    status++;
} else {
    (mode < 0 ? cm.dispose : status--);
}
    if (status == 0) {
        if (cm.getJobId()==0) {
            (cm.getLevel() < 10 ? cm.dispose() : cm.sendSimple("What job do you want?\r\n#L0#Warrior #L1#Magician\r\n#L2#Bowman #L3#Rogue\r\n#L4#Pirate"));
        } else if (cm.getJobId()==100 || cm.getJobId()==200 || cm.getJobId()==300 || cm.getJobId()==400 || cm.getJobId()==500) {
            (cm.getLevel() < 30 ? cm.dispose() : cm.sendSimple("What job do you want?\r\n"+(cm.getJobId()==100 ? "#L0#Fighter #L1#Page #L2#Spearman" : cm.getJobId()==200
            ? "#L0#Fire-Poison #L1#Ice Lightning #L2#Cleric" : cm.getJobId()==400 ? "#L0#Assassin #L1#Bandit" : cm.getJobId()==300 ? "#L0#Hunter #L1#Crossbowman" : "#L0#Brawler #L1#Gunslinger")+""));
        } else if (cm.getJobId()==110 || cm.getJobId()==120 || cm.getJobId()==130 || cm.getJobId()==210 || cm.getJobId()==220 || cm.getJobId()==230 || 
            cm.getJobId()==310 || cm.getJobId()==320 || cm.getJobId()==410 || cm.getJobId()==420 || cm.getJobId()==510 || cm.getJobId()==520) { 
            (cm.getLevel() < 70 ? cm.sendOk("You are illegible for a job advancement. Please reach level #r70#k before talking to me again.") : cm.changeJobById(cm.getJobId() + 1));
            cm.dispose();
        } else if (cm.getJobId()==111 || cm.getJobId()==121 || cm.getJobId()==131 || cm.getJobId()==211 || cm.getJobId()==221 || cm.getJobId()==231 || cm.getJobId()==311 || cm.getJobId()==321 
        || cm.getJobId()==411 || cm.getJobId()==421 || cm.getJobId()==511 || cm.getJobId()==521) {
            (cm.getLevel() < 120 ? cm.sendOk("You are illegible for this job. Please talk to me again at level #b120#k.") : cm.changeJobById(cm.getJobId() + 1));
            cm.dispose();
        } else if (cm.getJobId()==1000) {
            (cm.getLevel() < 10 ? cm.dispose() : cm.sendSimple("What job do you want?\r\n\r\n#L0#Dawnbreaker #L1#Blazewizard\r\n#L2#Wind Archer #L3#Nightwalker \r\n#L4#Thunder Breaker"));
        } else if (cm.getJobId()==1100 || cm.getJobId()==1200 || cm.getJobId()==1300 || cm.getJobId()==1400 || cm.getJobId()==1500) {
            (cm.getLevel() < 30 ? cm.sendOk("Come back at level #b30#k") : cm.changeJobById(cm.getJobId() + 10));
            cm.dispose();
        } else if (cm.getJobId()==1110 || cm.getJobId()==1210 || cm.getJobId()==1310 || cm.getJobId()==1410 || cm.getJobId()==1510) {
            (cm.getLevel() < 70 ? cm.sendOk("Come back at level #b70#k") : cm.changeJobById(cm.getJobId() + 1));
            cm.dispose();
    }
    } else if (status == 1) {
        if (cm.getJobId()==0) {
            cm.changeJobById(first[selection]);
            cm.dispose();
        } else if (cm.getJobId()==100 || cm.getJobId()==200 || cm.getJobId()==300 || cm.getJobId()==400 || cm.getJobId()==500) {
            cm.changeJobById(cm.getJobId() + (10 * (selection+1)));
            cm.dispose();
        } else if (cm.getJobId()==1000) {
            cm.changeJobById(cyg[selection]);
            cm.dispose();
        }
    }
}
 
Upvote 0
Junior Spellweaver
Joined
Sep 8, 2012
Messages
118
Reaction score
0
Still getting this error with your new script
 
Upvote 0
Nae-un <33
Joined
Jun 23, 2012
Messages
554
Reaction score
70
That's weird...

PHP:
var status;
var first = [100, 200, 300, 400, 500];
var cyg = [1100, 1200, 1300, 1400, 1500];

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

function action(mode, type, selection) {
if (mode==1) {
    status++;
} else if (mode==0) {
    status--;
} else if (mode==1) {
    cm.dispose();
    return;
}
    if (status == 0) {
        if (cm.getJobId()==0) {
            (cm.getLevel() < 10 ? cm.dispose() : cm.sendSimple("What job do you want?\r\n#L0#Warrior #L1#Magician\r\n#L2#Bowman #L3#Rogue\r\n#L4#Pirate"));
        } else if (cm.getJobId()==100 || cm.getJobId()==200 || cm.getJobId()==300 || cm.getJobId()==400 || cm.getJobId()==500) {
            (cm.getLevel() < 30 ? cm.dispose() : cm.sendSimple("What job do you want?\r\n"+(cm.getJobId()==100 ? "#L0#Fighter #L1#Page #L2#Spearman" : cm.getJobId()==200
            ? "#L0#Fire-Poison #L1#Ice Lightning #L2#Cleric" : cm.getJobId()==400 ? "#L0#Assassin #L1#Bandit" : cm.getJobId()==300 ? "#L0#Hunter #L1#Crossbowman" : "#L0#Brawler #L1#Gunslinger")+""));
        } else if (cm.getJobId()==110 || cm.getJobId()==120 || cm.getJobId()==130 || cm.getJobId()==210 || cm.getJobId()==220 || cm.getJobId()==230 || 
            cm.getJobId()==310 || cm.getJobId()==320 || cm.getJobId()==410 || cm.getJobId()==420 || cm.getJobId()==510 || cm.getJobId()==520) { 
            (cm.getLevel() < 70 ? cm.sendOk("You are illegible for a job advancement. Please reach level #r70#k before talking to me again.") : cm.changeJobById(cm.getJobId() + 1));
            cm.dispose();
        } else if (cm.getJobId()==111 || cm.getJobId()==121 || cm.getJobId()==131 || cm.getJobId()==211 || cm.getJobId()==221 || cm.getJobId()==231 || cm.getJobId()==311 || cm.getJobId()==321 
        || cm.getJobId()==411 || cm.getJobId()==421 || cm.getJobId()==511 || cm.getJobId()==521) {
            (cm.getLevel() < 120 ? cm.sendOk("You are illegible for this job. Please talk to me again at level #b120#k.") : cm.changeJobById(cm.getJobId() + 1));
            cm.dispose();
        } else if (cm.getJobId()==1000) {
            (cm.getLevel() < 10 ? cm.dispose() : cm.sendSimple("What job do you want?\r\n\r\n#L0#Dawnbreaker #L1#Blazewizard\r\n#L2#Wind Archer #L3#Nightwalker \r\n#L4#Thunder Breaker"));
        } else if (cm.getJobId()==1100 || cm.getJobId()==1200 || cm.getJobId()==1300 || cm.getJobId()==1400 || cm.getJobId()==1500) {
            (cm.getLevel() < 30 ? cm.sendOk("Come back at level #b30#k") : cm.changeJobById(cm.getJobId() + 10));
            cm.dispose();
        } else if (cm.getJobId()==1110 || cm.getJobId()==1210 || cm.getJobId()==1310 || cm.getJobId()==1410 || cm.getJobId()==1510) {
            (cm.getLevel() < 70 ? cm.sendOk("Come back at level #b70#k") : cm.changeJobById(cm.getJobId() + 1));
            cm.dispose();
    }
    } else if (status == 1) {
        if (cm.getJobId()==0) {
            cm.changeJobById(first[selection]);
            cm.dispose();
        } else if (cm.getJobId()==100 || cm.getJobId()==200 || cm.getJobId()==300 || cm.getJobId()==400 || cm.getJobId()==500) {
            cm.changeJobById(cm.getJobId() + (10 * (selection+1)));
            cm.dispose();
        } else if (cm.getJobId()==1000) {
            cm.changeJobById(cyg[selection]);
            cm.dispose();
        }
    }
}
 
Upvote 0
Junior Spellweaver
Joined
Jul 4, 2012
Messages
111
Reaction score
32
Hey Thane im back again but with a v117 server :D so im trying to create a npc that gives a starter kit depending on your job. So if you were a warrior you would get red wg's, etc.
I would also like a edit a job advancer npc that i need to work with mihile and phantom. Here it is:
Code:
var job = [
[[100, "Warrior"], [200, "Magician"], [300, "Bowman"], [400, "Thief"], [500, "Pirate"]],
[[1100, "Dawn Warrior"], [1200, "Blaze Wizard"], [1300, "Wind Archer"], [1400, "Night Walker"], [1500, "Thunder Breaker"]],
[[3200, "Battle Mage"], [3300, "Wild Hunter"], [3500, "Mechanic"]],
[[110, "Fighter"], [120, "Page"], [130, "Spearman"]],
[[210, "Wizard (F/P)"], [220, "Wizard (I/L)"], [230, "Cleric"]],
[[310, "Hunter"], [320, "Crossbow Man"]],
[[410, "Assassin"], [420, "Bandit"]],
[[510, "Brawler"], [520, "Gunslinger"]]];
var status = 0;
var select;

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

function action(mode, type, selection) {
    if (mode == 1)
        status++;
    else if (mode == -1)
        status--;
    else {
        cm.dispose();
        return;
    }
    if (status == 0) {
        if (cm.getPlayer().getLevel() >= 10 && (cm.getPlayer().getJob() % 1000 == 0 || cm.getPlayer().getJob() == 501 || cm.getPlayer().getJob() == 508 || cm.getPlayer().getJob() == 3001 || cm.getPlayer().getJob() >= 2001 && cm.getPlayer().getJob() <= 2003) || cm.getPlayer().getLevel() >= 30 && cm.getPlayer().getJob() % 1000 > 0 && cm.getPlayer().getJob() % 100 == 0 || cm.getPlayer().getLevel() >= 70 && cm.getPlayer().getJob() % 10 == 0 && cm.getPlayer().getJob() % 100 != 0 || cm.getPlayer().getLevel() >= 120 && cm.getPlayer().getJob() % 10 == 1 || cm.getPlayer().getLevel() >= 55 && cm.getPlayer().getJob() == 431)
            cm.sendYesNo("Would you like to job advance?");
        else {
            cm.sendOk("You may not advance at the current state.");
            cm.dispose();            
        }
    } else if (status == 1) {
        switch (cm.getPlayer().getJob()) {
            //Jobs with selections
            case 0: // Beginner
                jobSelection(0);
                break;
            case 100: // Warrior
                jobSelection(3);
                break;
            case 200: // Magician
                jobSelection(4);
                break;
            case 300: // Bowman
                jobSelection(5);
                break;
            case 400: // Thief
                jobSelection(6);
                break;
            case 500: // Pirate
                jobSelection(7);
                break;
            case 1000: // Noblesse
                jobSelection(1);
                break;
            case 3000: // Citizen
                jobSelection(2);
                break;
            //Special Jobs
            case 501: // Pirate(Cannoneer)
                cm.getPlayer().changeJob(530);
                cm.dispose();
                break;
            case 508: // Pirate(Jett)
                cm.getPlayer().changeJob(570);
                cm.dispose();
                break;
            case 2000: // Legend(Aran)
                cm.getPlayer().changeJob(2100);
                cm.dispose();
                break;
            case 2001: // Farmer(Evan)
                cm.getPlayer().changeJob(2200);
                cm.dispose();
                break;
            case 2002: // Mercedes
                cm.getPlayer().changeJob(2300);
                cm.dispose();
                break;
            case 2003: // Phantom Jr.
                cm.getPlayer().changeJob(2400);
                cm.dispose();
                break;
            case 3001: // Demon Slayer
                cm.getPlayer().changeJob(3100);
                cm.dispose();
                break;
            // Dual Blader
            case 430: // Blade Reqruit
            case 431: // Blade Acolyte
            case 432: // Blade Specialist
            case 433: // Blade Lord
                cm.getPlayer().changeJob(cm.getPlayer().getJob() + 1);
                cm.dispose();
                break;
            case 2002: // Mercedes
                cm.changeJob(2300);
                cm.dispose();
                break;
            case 2003: // Phantom Jr.
                cm.changeJob(2400);
                cm.dispose();
                break;
            case 3001: // Demon Slayer
                cm.changeJob(3100);
                cm.dispose();
                break;
            // Dual Blader
            case 430: // Blade Reqruit
                cm.changeJob(431);
                break;
            case 431: // Blade Acolyte
                cm.changeJob(432);
                break;
            case 432: // Blade Specialist
                cm.changeJob(433);
                break;
            case 433: // Blade Lord
                cm.changeJob(434);
                break;
            //1st Job
            case 1100: // Dawn Warrior
            case 1200: // Blaze Wizard
            case 1300: // Wind Archer
            case 1400: // Night Walker
            case 1500: // Thunder Breaker
            case 2100: // Aran
            case 2300: // Mercedes
            case 2400: // Phantom
            case 3100: // Demon Slayer
            case 3200: // Battle Mage
            case 3300: // Wild Hunter
            case 3500: // Mechanic
                cm.getPlayer().changeJob(cm.getPlayer().getJob() + 10);
                cm.dispose();
                break;
            //2nd Job
            case 110: // Fighter
            case 120: // Page
            case 130: // Spearman
            case 210: // Wizard(F/P)
            case 220: // Wizard(I/L)
            case 230: // Cleric
            case 310: // Hunter
            case 320: // Crossbow man
            case 410: // Assassin
            case 420: // Bandit
            case 510: // Brawler
            case 520: // Gunslinger
            case 530: // Cannoneer
            case 570: // Jett
            case 1110: // Dawn Warrior
            case 1210: // Blaze Wizard
            case 1310: // Wind Archer
            case 1410: // Night Walker
            case 1510: // Thunder Breaker
            case 2110: // Aran
            case 2310: // Mercedes
            case 2410: // Phantom
            case 3110: // Demon Slayer
            case 3210: // Battle Mage
            case 3310: // Wild Hunter
            case 3510: // Mechanic
            //3rd Job
            case 111: // Crusader
            case 121: // White Knight
            case 131: // Dragon Knight
            case 211: // Mage(F/P)
            case 221: // Mage(I/L)
            case 231: // Priest
            case 311: // Ranger
            case 321: // Sniper
            case 411: // Hermit
            case 421: // Chief Bandit
            case 511: // Marauder
            case 521: // Outlaw
            case 531: // Cannon Trooper
            case 571: // Jett
            case 1111: // Dawn Warrior
            case 1211: // Blaze Wizard
            case 1311: // Wind Archer
            case 1411: // Night Walker
            case 1511: // Thunder Breaker
            case 2111: // Aran
            case 2311: // Mercedes
            case 2411: // Phantom
            case 3111: // Demon Slayer
            case 3211: // Battle Mage
            case 3311: // Wild Hunter
            case 3511: // Mechanic
                cm.getPlayer().changeJob(cm.getPlayer().getJob() + 1);
                cm.dispose();
                break;
            default:
                cm.sendOk("You may not advance at the current state.");
                cm.dispose();
        }
    } else if (status == 2) {
        select = selection;
        cm.sendYesNo("Are you sure you want to Job Advance?");
    } else if (status == 3) {
        cm.getPlayer().changeJob(select);
        cm.dispose();
    }
}

function jobSelection(index) {
    var choose = "Please, select your job:"
    for (var i = 0; i < job[index].length; i++)
        choose += "\r\n#L" + job[index][i][0] + "#" + job[index][i][1] + "#l";
    cm.sendSimple(choose);
}
 
Upvote 0
Experienced Elementalist
Joined
Jun 23, 2008
Messages
206
Reaction score
0
could anyone hellp with this?
work full time school full time =/ dont have time to research npcs really
PHP:
/*
@
@
@    NPC = cokebear
*/

var status = 0;

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 ("Pick a Category#e#d" +
                 "#k\r\n#L80##rTimeless Warrior" +
                 "#k\r\n#L81##rTImeless THeif" +
                 "#k\r\n#L82##rTimeless Mage" +
                 "#k\r\n#L83##rTImeless Bowmen" +
                 "#k\r\n#L84##rTimeless Pirate" +
                 "#k\r\n#L85##retcc" +
                 "#k\r\n#L87##retccc" +
                 "#k\r\n#L88##retccccc" +
                 "#k\r\n#L86##retccccc");
	  } else if (selection == 0) {
		cm.openShop (5440);
		cm.dispose();
	  } else if (selection == 1) {
		cm.openShop (5441);
		cm.dispose();
	  } else if (selection == 2) {
		cm.openShop (5442);
		cm.dispose();
	  } else if (selection == 3) {
		cm.openShop (5443);
		cm.dispose();
	  } else if (selection == 4) {
		cm.openShop (5444);
		cm.dispose();
	  } else if (selection == 5) {
		cm.openShop (5450);
                   cm.dispose();
                   }
      }
}

I tried but failed =(
this script is for

this sql
/*Timeless shops */
/*includes, Cane, katara, dual gunbow, hand cannon, and shields*/
INSERT INTO shops
(`shopid`, `npcid`)
VALUES
(5440, 11000);
/*warrior*/
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5440, 1052155, 10000000, 1);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5440, 1082234, 10000000, 2);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5440, 1002776, 10000000, 3);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5440, 1072355, 10000000, 4);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5440, 1102172, 10000000, 5);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5440, 1092058, 10000000, 6);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5440, 1302081, 10000000, 7);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5440, 1312037, 10000000, 8);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5440, 1322060, 10000000, 9);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5440, 1402046, 10000000, 10);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5440, 1412033, 10000000, 11);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5440, 1422037, 10000000, 12);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5440, 1432047, 10000000, 13);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5440, 1442063, 10000000, 14);
INSERT INTO shops
(`shopid`, `npcid`)
VALUES
(5441, 11000);
/*thief*/
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5441, 1052158, 10000000, 1);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5441, 1082237, 10000000, 2);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5441, 1002779, 10000000, 3);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5441, 1072358, 10000000, 4);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5441, 1102172, 10000000, 5);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5441, 1092059, 10000000, 6);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5441, 1472068, 10000000, 7);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5441, 1342011, 10000000, 8);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5441, 1332073, 10000000, 9);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5441, 1332074, 10000000, 10);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5441, 1362016, 10000000, 11);
INSERT INTO shops
(`shopid`, `npcid`)
VALUES
(5442, 11000);
/*mage*/
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5442, 1052156, 10000000, 1);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5442, 1082235, 10000000, 2);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5442, 1002777, 10000000, 3);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5442, 1072356, 10000000, 4);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5442, 1102172, 10000000, 5);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5442, 1092057, 10000000, 6);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5442, 1372044, 10000000, 7);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5442, 1382057, 10000000, 8);
INSERT INTO shops
(`shopid`, `npcid`)
VALUES
(5443, 11000);
/*bowman*/
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5443, 1052157, 10000000, 1);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5443, 1082236, 10000000, 2);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5443, 1002778, 10000000, 3);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5443, 1072357, 10000000, 4);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5443, 1102172, 10000000, 5);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5443, 1452057, 10000000, 6);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5443, 1462050, 10000000, 7);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5443, 1522015, 10000000, 8);
INSERT INTO shops
(`shopid`, `npcid`)
VALUES
(5444, 11000);
/*pirate*/
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5444, 1052159, 10000000, 1);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5444, 1082238, 10000000, 2);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5444, 1002780, 10000000, 3);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5444, 1072359, 10000000, 4);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5444, 1102172, 10000000, 5);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5444, 1482023, 10000000, 6);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5444, 1492023, 10000000, 7);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5444, 1532015, 10000000, 8);/*Canes*/
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5078, 2043601, 1337, 337);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5078, 2043602, 1337, 338);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5078, 2043603, 1337, 339);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5078, 2043604, 1337, 340);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5078, 2043605, 1337, 341);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5078, 2043606, 1337, 342);
/*Hand Cannons*/
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5078, 2045301, 1337, 343);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5078, 2045302, 1337, 344);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5078, 2045303, 1337, 345);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5078, 2045304, 1337, 346);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5078, 2045305, 1337, 347);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5078, 2045306, 1337, 348);
/*Dual bowguns*/
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5078, 2045201, 1337, 349);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5078, 2045202, 1337, 350);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5078, 2045203, 1337, 351);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5078, 2045204, 1337, 352);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5078, 2045205, 1337, 353);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5078, 2045206, 1337, 354);
/*white scroll*/
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5078, 2340000, 100000, 355);
/*belts*/
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5078, 2041301, 1337, 356);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5078, 2041302, 1337, 357);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5078, 2041303, 1337, 358);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5078, 2041304, 1337, 359);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5078, 2041305, 1337, 360);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5078, 2041306, 1337, 361);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5078, 2041307, 1337, 362);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5078, 2041308, 1337, 363);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5078, 2041309, 1337, 364);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5078, 2041310, 1337, 365);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5078, 2041311, 1337, 366);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5078, 2041312, 1337, 367);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5078, 2041313, 1337, 368);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5078, 2041314, 1337, 369);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5078, 2041315, 1337, 370);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5078, 2041316, 1337, 371);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5078, 2041317, 1337, 372);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5078, 2041318, 1337, 373);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5078, 2041319, 1337, 374);
/*earrings*/
/*no DEF or HP scrolls*/
/*no STR scrolls lol wtf*/
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5078, 2040301, 1337, 375);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5078, 2040302, 1337, 376);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5078, 2040303, 1337, 377);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5078, 2040304, 1337, 378);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5078, 2040305, 1337, 379);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5078, 2040306, 1337, 380);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5078, 2040307, 1337, 381);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5078, 2040313, 1337, 382);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5078, 2040314, 1337, 383);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5078, 2040315, 1337, 384);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5078, 2040316, 1337, 385);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5078, 2040317, 1337, 386);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5078, 2040318, 1337, 387);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5078, 2040319, 1337, 388);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5078, 2040320, 1337, 389);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5078, 2040321, 1337, 390);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5078, 2040322, 1337, 391);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5078, 2040323, 1337, 392);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5078, 2040329, 1337, 393);
/*eye accesory*/
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5078, 2040330, 1337, 394);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5078, 2040331, 1337, 395);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5078, 2040233, 1337, 396);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5078, 2040234, 1337, 397);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5078, 2040235, 1337, 398);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5078, 2040236, 1337, 399);
/*Kataras*/
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5078, 2043400, 1337, 400);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5078, 2043401, 1337, 401);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5078, 2043402, 1337, 402);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5078, 2043403, 1337, 403);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5078, 2043404, 1337, 404);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5078, 2043405, 1337, 405);INSERT INTO shops
(`shopid`, `npcid`)
VALUES
(5450, 11000);
/*Mastery Books 20 ONLY*/
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290024, 30000000, 1);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290034, 30000000, 2);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290036, 30000000, 3);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290042, 30000000, 4);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290052, 30000000, 5);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290054, 30000000, 6);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290058, 30000000, 7);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290062, 30000000, 8);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290064, 30000000, 9);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290068, 30000000, 10);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290072, 30000000, 11);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290096, 30000000, 12);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290126, 30000000, 13);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290128, 30000000, 14);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290130, 30000000, 15);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290132, 30000000, 16);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290134, 30000000, 17);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290136, 30000000, 18);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290138, 30000000, 19);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290140, 30000000, 20);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290142, 30000000, 21);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290144, 30000000, 22);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290146, 30000000, 23);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290148, 30000000, 24);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290150, 30000000, 25);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290152, 30000000, 26);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290151, 30000000, 27);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290153, 30000000, 28);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290154, 30000000, 29);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290155, 30000000, 30);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290156, 30000000, 31);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290162, 30000000, 32);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290163, 30000000, 33);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290164, 30000000, 34);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290204, 30000000, 35);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290205, 30000000, 36);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290206, 30000000, 37);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290226, 30000000, 38);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290228, 30000000, 39);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290230, 30000000, 40);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290232, 30000000, 41);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290234, 30000000, 42);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290236, 30000000, 43);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290238, 30000000, 44);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290240, 30000000, 45);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290242, 30000000, 46);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290244, 30000000, 47);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290246, 30000000, 48);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290275, 30000000, 49);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290277, 30000000, 50);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290279, 30000000, 51);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290281, 30000000, 52);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290282, 30000000, 53);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290284, 30000000, 54);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290290, 30000000, 55);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290292, 30000000, 56);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290322, 30000000, 57);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290324, 30000000, 58);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290326, 30000000, 59);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290328, 30000000, 60);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290329, 30000000, 61);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290331, 30000000, 62);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290333, 30000000, 63);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290340, 30000000, 64);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290342, 30000000, 65);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290343, 30000000, 66);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290345, 30000000, 67);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290347, 30000000, 68);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290349, 30000000, 69);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290354, 30000000, 70);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290356, 30000000, 71);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290358, 30000000, 72);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290359, 30000000, 73);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290361, 30000000, 74);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290363, 30000000, 75);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290364, 30000000, 76);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290366, 30000000, 77);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290370, 30000000, 78);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290412, 30000000, 79);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290414, 30000000, 80);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290416, 30000000, 81);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290418, 30000000, 82);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290420, 30000000, 83);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290422, 30000000, 84);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290426, 30000000, 85);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290424, 30000000, 86);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290427, 30000000, 87);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290428, 30000000, 88);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290430, 30000000, 89);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290432, 30000000, 90);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290434, 30000000, 91);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290436, 30000000, 92);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290438, 30000000, 93);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290439, 30000000, 94);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290441, 30000000, 95);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290443, 30000000, 96);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290445, 30000000, 97);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290446, 30000000, 98);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290512, 30000000, 99);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290514, 30000000, 100);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290516, 30000000, 101);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290517, 30000000, 102);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290519, 30000000, 103);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290521, 30000000, 104);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290523, 30000000, 105);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290580, 30000000, 106);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290589, 30000000, 107);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290591, 30000000, 108);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290593, 30000000, 109);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290595, 30000000, 110);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290597, 30000000, 111);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290608, 30000000, 112);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290610, 30000000, 113);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290612, 30000000, 114);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290613, 30000000, 115);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290615, 30000000, 116);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290617, 30000000, 117);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290619, 30000000, 118);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290620, 30000000, 119);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290622, 30000000, 120);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290624, 30000000, 121);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290625, 30000000, 122);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290627, 30000000, 123);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290629, 30000000, 124);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290631, 30000000, 125);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290633, 30000000, 126);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290634, 30000000, 127);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290635, 30000000, 128);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290637, 30000000, 129);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290639, 30000000, 130);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290641, 30000000, 131);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290645, 30000000, 132);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290647, 30000000, 133);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290649, 30000000, 134);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290651, 30000000, 135);




INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290000, 30000000, 136);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290002, 30000000, 137);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290004, 30000000, 138);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290006, 30000000, 139);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290008, 30000000, 140);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290010, 30000000, 141);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290012, 30000000, 142);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290014, 30000000, 143);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290016, 30000000, 144);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290018, 30000000, 145);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290019, 30000000, 146);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290020, 30000000, 147);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290022, 30000000, 148);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290026, 30000000, 149);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290028, 30000000, 150);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290030, 30000000, 151);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290032, 30000000, 152);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290038, 30000000, 153);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290138, 30000000, 154);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290040, 30000000, 155);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290044, 30000000, 156);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290046, 30000000, 157);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290048, 30000000, 158);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290050, 30000000, 159);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290056, 30000000, 160);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290060, 30000000, 161);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290066, 30000000, 162);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290070, 30000000, 163);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290074, 30000000, 164);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290076, 30000000, 165);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290078, 30000000, 166);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290080, 30000000, 167);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290082, 30000000, 168);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290084, 30000000, 169);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290086, 30000000, 170);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290088, 30000000, 171);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290090, 30000000, 172);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290092, 30000000, 173);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290094, 30000000, 174);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290097, 30000000, 175);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290099, 30000000, 176);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290101, 30000000, 177);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290102, 30000000, 178);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290104, 30000000, 179);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290106, 30000000, 180);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290108, 30000000, 181);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290109, 30000000, 182);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290110, 30000000, 183);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290112, 30000000, 184);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290114, 30000000, 185);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290115, 30000000, 186);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290117, 30000000, 187);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290119, 30000000, 188);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290121, 30000000, 189);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290123, 30000000, 190);
INSERT INTO shopitems (shopid, itemid, price, position) VALUES (5450, 2290124, 30000000, 191);
 
Upvote 0
Experienced Elementalist
Joined
Apr 18, 2009
Messages
211
Reaction score
38
PHP:
/* 
@ 
@ 
@    NPC = cokebear 
*/ 

var status;

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

function action(mode, type, selection) { 
    if (mode == 1) {
		status++;
	} else {
		cm.dispose();
		return;
	}
	if (status == 0) { 
		cm.sendSimple ("Pick a Category#e#d" + 
                 "#k\r\n#L80##rTimeless Warrior" + 
                 "#k\r\n#L81##rTImeless THeif" + 
                 "#k\r\n#L82##rTimeless Mage" + 
                 "#k\r\n#L83##rTImeless Bowmen" + 
                 "#k\r\n#L84##rTimeless Pirate" + 
                 "#k\r\n#L85##retcc" + 
                 "#k\r\n#L87##retccc" + 
                 "#k\r\n#L88##retccccc" + 
                 "#k\r\n#L86##retccccc"); 
	} else if (status == 1) { // Selections need to be placed in a different status
		if (selection == 80) { // You have your selections starting at 80 for some reason rather than 0 hence it should be 80, 81, 82, etc.
			cm.openShop (5440); 
			cm.dispose(); 
		} else if (selection == 81) { 
			cm.openShop (5441); 
			cm.dispose(); 
		} else if (selection == 82) { 
			cm.openShop (5442); 
			cm.dispose(); 
		} else if (selection == 83) { 
			cm.openShop (5443); 
			cm.dispose(); 
		} else if (selection == 84) { 
			cm.openShop (5444); 
			cm.dispose(); 
		} else if (selection == 85) { 
			cm.openShop (5450); 
			cm.dispose(); 
		} 
	} 
}
 
Upvote 0
Experienced Elementalist
Joined
Jun 23, 2008
Messages
206
Reaction score
0
would anyone mind helping me code a npc corresponding to this shop list?
its from the aio shop thread... its jsut for a server my friend and i play on.
@nmb1gamer ?
PHP:
COMMON SHOPS:
      MEDAL shop: 10000
      HAT shop: 10001
      ACCESSORYFACE shop: 10002
      ACCESSORYEYE shop: 10003
      ACCESSORYEAR shop: 10004
      SHOE shop: 10005
      CAPE shop: 10006
      TOP shop: 10007
      GLOVE shop: 10008
      OVERALL shop: 10009
      BOTTOM shop: 10010
      SHIELD shop: 10012
      NOTREALLYSUREWHATTHISIS shop: 10013
      AXE1H shop: 10016
      AXE2H shop: 10017
      BLUNT1H shop: 10018
      BLUNT2H shop: 10019
      CLAW shop: 10021
      DAGGER shop: 10023
      GUN shop: 10024
      POLE_ARM shop: 10026
      SPEAR shop: 10027
      STAFF shop: 10028
      SWORD1H shop: 10029
      SWORD2H shop: 10030
      WAND shop: 10031
      SHOVEL shop: 10032
      PICKAXE shop: 10033
      DUAL_BOW shop: 10034
      CANNON shop: 10035
      CANE shop: 10036
      BAREHANDS shop: 10039
WARRIOR SHOPS:
      MEDAL shop: 10100
      HAT shop: 10101
      ACCESSORYFACE shop: 10102
      SHOE shop: 10105
      CAPE shop: 10106
      TOP shop: 10107
      GLOVE shop: 10108
      OVERALL shop: 10109
      BOTTOM shop: 10110
      SHIELD shop: 10112
      AXE1H shop: 10116
      AXE2H shop: 10117
      BLUNT1H shop: 10118
      BLUNT2H shop: 10119
      POLE_ARM shop: 10126
      SPEAR shop: 10127
      SWORD1H shop: 10129
      SWORD2H shop: 10130
MAGE SHOPS:
      MEDAL shop: 10200
      HAT shop: 10201
      ACCESSORYFACE shop: 10202
      SHOE shop: 10205
      CAPE shop: 10206
      TOP shop: 10207
      GLOVE shop: 10208
      OVERALL shop: 10209
      BOTTOM shop: 10210
      SHIELD shop: 10212
      STAFF shop: 10228
      WAND shop: 10231
ARCHER SHOPS:
      MEDAL shop: 10300
      HAT shop: 10301
      ACCESSORYFACE shop: 10302
      SHOE shop: 10305
      CAPE shop: 10306
      TOP shop: 10307
      GLOVE shop: 10308
      OVERALL shop: 10309
      BOTTOM shop: 10310
      BOW shop: 10320
      CROSSBOW shop: 10322
      DUAL_BOW shop: 10334
      CANNON shop: 10335
THIEF SHOPS:
      MEDAL shop: 10400
      HAT shop: 10401
      ACCESSORYFACE shop: 10402
      ACCESSORYEAR shop: 10404
      SHOE shop: 10405
      CAPE shop: 10406
      TOP shop: 10407
      GLOVE shop: 10408
      OVERALL shop: 10409
      BOTTOM shop: 10410
      SHIELD shop: 10412
      NOTREALLYSUREWHATTHISIS shop: 10413
      AXE1H shop: 10416
      BLUNT2H shop: 10419
      BOW shop: 10420
      CLAW shop: 10421
      CROSSBOW shop: 10422
      DAGGER shop: 10423
      GUN shop: 10424
      KNUCKLE shop: 10425
      SPEAR shop: 10427
      STAFF shop: 10428
      SWORD1H shop: 10429
      SWORD2H shop: 10430
      DUAL_BOW shop: 10434
      CANNON shop: 10435
      CANE shop: 10436
PIRATE SHOPS:
      MEDAL shop: 10500
      HAT shop: 10501
      ACCESSORYFACE shop: 10502
      SHOE shop: 10505
      CAPE shop: 10506
      GLOVE shop: 10508
      OVERALL shop: 10509
      GUN shop: 10524
      KNUCKLE shop: 10525
      CANNON shop: 10535
CASH ITEM SHOPS:
      HAT shop: 10601
      ACCESSORYFACE shop: 10602
      ACCESSORYEYE shop: 10603
      ACCESSORYEAR shop: 10604
      SHOE shop: 10605
      CAPE shop: 10606
      TOP shop: 10607
      GLOVE shop: 10608
      OVERALL shop: 10609
      BOTTOM shop: 10610
      RING shop: 10611
      SHIELD shop: 10612
      NOTREALLYSUREWHATTHISIS shop: 10613
      WEAPON shop: 10615
      BLUNT1H shop: 10618
      POLE_ARM shop: 10626
      SWORD1H shop: 10629
 
Upvote 0
Mythic Archon
Joined
Dec 25, 2011
Messages
723
Reaction score
97
would anyone mind helping me code a npc corresponding to this shop list?
its from the aio shop thread... its jsut for a server my friend and i play on.
@nmb1gamer ?
PHP:
COMMON SHOPS:
      MEDAL shop: 10000
      HAT shop: 10001
      ACCESSORYFACE shop: 10002
      ACCESSORYEYE shop: 10003
      ACCESSORYEAR shop: 10004
      SHOE shop: 10005
      CAPE shop: 10006
      TOP shop: 10007
      GLOVE shop: 10008
      OVERALL shop: 10009
      BOTTOM shop: 10010
      SHIELD shop: 10012
      NOTREALLYSUREWHATTHISIS shop: 10013
      AXE1H shop: 10016
      AXE2H shop: 10017
      BLUNT1H shop: 10018
      BLUNT2H shop: 10019
      CLAW shop: 10021
      DAGGER shop: 10023
      GUN shop: 10024
      POLE_ARM shop: 10026
      SPEAR shop: 10027
      STAFF shop: 10028
      SWORD1H shop: 10029
      SWORD2H shop: 10030
      WAND shop: 10031
      SHOVEL shop: 10032
      PICKAXE shop: 10033
      DUAL_BOW shop: 10034
      CANNON shop: 10035
      CANE shop: 10036
      BAREHANDS shop: 10039
WARRIOR SHOPS:
      MEDAL shop: 10100
      HAT shop: 10101
      ACCESSORYFACE shop: 10102
      SHOE shop: 10105
      CAPE shop: 10106
      TOP shop: 10107
      GLOVE shop: 10108
      OVERALL shop: 10109
      BOTTOM shop: 10110
      SHIELD shop: 10112
      AXE1H shop: 10116
      AXE2H shop: 10117
      BLUNT1H shop: 10118
      BLUNT2H shop: 10119
      POLE_ARM shop: 10126
      SPEAR shop: 10127
      SWORD1H shop: 10129
      SWORD2H shop: 10130
MAGE SHOPS:
      MEDAL shop: 10200
      HAT shop: 10201
      ACCESSORYFACE shop: 10202
      SHOE shop: 10205
      CAPE shop: 10206
      TOP shop: 10207
      GLOVE shop: 10208
      OVERALL shop: 10209
      BOTTOM shop: 10210
      SHIELD shop: 10212
      STAFF shop: 10228
      WAND shop: 10231
ARCHER SHOPS:
      MEDAL shop: 10300
      HAT shop: 10301
      ACCESSORYFACE shop: 10302
      SHOE shop: 10305
      CAPE shop: 10306
      TOP shop: 10307
      GLOVE shop: 10308
      OVERALL shop: 10309
      BOTTOM shop: 10310
      BOW shop: 10320
      CROSSBOW shop: 10322
      DUAL_BOW shop: 10334
      CANNON shop: 10335
THIEF SHOPS:
      MEDAL shop: 10400
      HAT shop: 10401
      ACCESSORYFACE shop: 10402
      ACCESSORYEAR shop: 10404
      SHOE shop: 10405
      CAPE shop: 10406
      TOP shop: 10407
      GLOVE shop: 10408
      OVERALL shop: 10409
      BOTTOM shop: 10410
      SHIELD shop: 10412
      NOTREALLYSUREWHATTHISIS shop: 10413
      AXE1H shop: 10416
      BLUNT2H shop: 10419
      BOW shop: 10420
      CLAW shop: 10421
      CROSSBOW shop: 10422
      DAGGER shop: 10423
      GUN shop: 10424
      KNUCKLE shop: 10425
      SPEAR shop: 10427
      STAFF shop: 10428
      SWORD1H shop: 10429
      SWORD2H shop: 10430
      DUAL_BOW shop: 10434
      CANNON shop: 10435
      CANE shop: 10436
PIRATE SHOPS:
      MEDAL shop: 10500
      HAT shop: 10501
      ACCESSORYFACE shop: 10502
      SHOE shop: 10505
      CAPE shop: 10506
      GLOVE shop: 10508
      OVERALL shop: 10509
      GUN shop: 10524
      KNUCKLE shop: 10525
      CANNON shop: 10535
CASH ITEM SHOPS:
      HAT shop: 10601
      ACCESSORYFACE shop: 10602
      ACCESSORYEYE shop: 10603
      ACCESSORYEAR shop: 10604
      SHOE shop: 10605
      CAPE shop: 10606
      TOP shop: 10607
      GLOVE shop: 10608
      OVERALL shop: 10609
      BOTTOM shop: 10610
      RING shop: 10611
      SHIELD shop: 10612
      NOTREALLYSUREWHATTHISIS shop: 10613
      WEAPON shop: 10615
      BLUNT1H shop: 10618
      POLE_ARM shop: 10626
      SWORD1H shop: 10629

PHP:
shopids = [id, id, id, etc]; // replace with the shop ids
names = ["", "", "", ""]; // names of the shops.

function start() {
    var text = "Hello. Please choose a shop:\r\n";
    for (var i = 0;i < shopids.length; i++) 
          text += "#L"+i+"#"+names[i]+"#l\r\n";
    cm.sendSimple(text);
}

function action(m,t,s) {
    if (m > 0) { 
       cm.openShop(shopids[s]);
    }
    cm.dispose();
}
 
Upvote 0
Experienced Elementalist
Joined
Jun 23, 2008
Messages
206
Reaction score
0
wtf did i do wrong here
just need an npc to open that shop...
PHP:
/* 
@ 
@ 
@    NPC =pikall
*/ 

var status;

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

function action(mode, type, selection) { 
    if (mode == 1) {
        status++;
    } else {
        cm.dispose();
        return;
    }
    if (status == 0) { 
        cm.sendSimple ("Pick a Category#e#d" + 
                 "#k\r\n#L0##ruse items");
    } else if (status == 1) {
        if (selection == 0) { 
            cm.openShop (5450); 
            cm.dispose();
        } 
    } 
}
 
Upvote 0
Experienced Elementalist
Joined
Apr 18, 2009
Messages
211
Reaction score
38
PHP:
cm.openShop (5450); 

should be

cm.openShop(5450);

There shouldn't be any spaces there.
 
Upvote 0
Newbie Spellweaver
Joined
Jan 4, 2013
Messages
69
Reaction score
2
I need help with this Lithium Boss PQ Reward NPC
Somehow it worked but it doesn't deduct points

Here is the script:

var points; var status = -1;
var sel;








function start() {
if (cm.getMapId() == 219000000) {
cm.sendSimple("#b#L40##m219010000##l\r\n#L41##m219020000##l");
cm.dispose();
return;
}
var record = cm.getQuestRecord(150001);
points = record.getCustomData() == null ? "0" : record.getCustomData();








cm.sendSimple("This is StarMs's Boss PQ Reward NPC. You have some points to spend?\n\r\n\r #b#L3#Current points#l \r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0# \n\r #b#L32##i5062000:#Trade 1000 Points for Miracle Cube#l#k \n\r #b#L36##i5062002:#Trade 1500 Points for Super Miracle Cube#l#k \n\r #b#L4##i1702347:#Trade 120,000 points (Fortune Flast)#l#k \n\r #b#L5##i1702118:#Trade 120,000 points (Janus Sword)#l#k \n\r #b#L6##i1702119:#Trade 120,000 points (Sachiel Sword)#l#k \n\r #b#L7##i1702120:#Trade 120,000 points (Veamoth Sword)#l#k \n\r #b#L8##i1112585:#Trade 50,000 points (Angelic Blessing Ring)#l#k \n\r #b#L9##i4000038:#Trade 1,000,000 points (Event Trophy)#l#k \n\r #b#L10##i4001126:#Trade 50,000 points (Maple Leaf)#l#k \n\r #b#L11##i4001126:#Trade 500,000 points (10x Maple Leaf)#l#k \n\r #b#L12##i1122150:#Trade 250,000 points (Dominator Pendant)#l#k \n\r #b#L13##i2046374:#Trade 30,000 points (Fragment of Distorted Time)#l#k \n\r #b#L14##i2049702:#Trade 100,000 points (Epic Potential Scroll 100%)#l#k \n\r #b#L15##i1112664:#Trade 150,000 points (Guardian's Eternal Ring)#l#k \n\r #b#L16##i1112665:#Trade 150,000 points (Berserker's Eternal Ring)#l#k \n\r #b#L17##i2046002:#Trade 25,000 points (1H Weapon for ATT 50%)#l#k \n\r #b#L18##i2046003:#Trade 25,000 points (1H Weapon for M.ATK 50%)#l#k \n\r #b#L19##i2046102:#Trade 25,000 points (2H Weapon for ATT 50%)#l#k \n\r #b#L20##i2046103:#Trade 25,000 points (2H Weapon for M.ATT 50%)#l#k \n\r #b#L31##i2049003:#Trade 10,000 points (Clean Slate 20%)#l#k" + (cm.isGMS() ? "\n\r #b#L34##i2450042:#Trade 5,000 points (2x Exp Coupon - Last for 1 Hour)#l#k" : "") + "\n\r #b#L21##i2070018:#Trade 5,000 points (Balanced Fury)#l#k \n\r #b#L35##i2100008:#Trade 5,000 points (Summon Sack)#l#k \n\r #b#L27##i2340000:#Trade 75,000 points (White Scroll)#l#k");








}








function action(mode, type, selection) {
if (mode == 1) {
status++;
if (status == 0) {
sel = selection;
switch (selection) {
case 0:
case 1:
case 2:
case 28:
cm.warp(980010000,0);
break;
case 3:
cm.sendOk("#bCurrent Points : " + points);
break;
case 4: // Fortune Flast
var record = cm.getQuestRecord(150001);
var intPoints = parseInt(points);








if (intPoints >= 120000) {
if (cm.canHold(1702347)) {
intpoints = - 120000;
record.setCustomData(""+intPoints+"");
cm.gainItem(1702347, 1);
cm.sendOk("Enjoy");
} else {
cm.sendOk("Please check if you have sufficient inventory slot for it.")
}
} else {
cm.sendOk("Please check if you have sufficient points for it, #bCurrent Points : " + points);
}
break;
case 5: // Janus Sword
var record = cm.getQuestRecord(150001);
var intPoints = parseInt(points);








if (intPoints >= 120000) {
if (cm.canHold(1702118)) {
intpoints = - 120000;
record.setCustomData(""+intPoints+"");
cm.gainItem(1702118, 1);
cm.sendOk("Enjoy");
} else {
cm.sendOk("Please check if you have sufficient inventory slot for it.")
}
} else {
cm.sendOk("Please check if you have sufficient points for it, #bCurrent Points : " + points);
}
break;
case 6: // Sachiel Sword
var record = cm.getQuestRecord(150001);
var intPoints = parseInt(points);








if (intPoints >= 120000) {
if (cm.canHold(1702119)) {
intpoints = - 120000;
record.setCustomData(""+intPoints+"");
cm.gainItem(1702119, 1);
cm.sendOk("Enjoy");
} else {
cm.sendOk("Please check if you have sufficient inventory slot for it.")
}
} else {
cm.sendOk("Please check if you have sufficient points for it, #bCurrent Points : " + points);
}
break;
case 7: // Veamoth Sword
var record = cm.getQuestRecord(150001);
var intPoints = parseInt(points);








if (intPoints >= 120000) {
if (cm.canHold(1702120)) {
intpoints = - 120000;
record.setCustomData(""+intPoints+"");
cm.gainItem(1702120, 1);
cm.sendOk("Enjoy");
} else {
cm.sendOk("Please check if you have sufficient inventory slot for it.")
}
} else {
cm.sendOk("Please check if you have sufficient points for it, #bCurrent Points : " + points);
}
break;
case 8: // Angelic Blessing Ring
var record = cm.getQuestRecord(150001);
var intPoints = parseInt(points);








if (intPoints >= 50000) {
if (cm.canHold(1112585)) {
intpoints = - 50000;
record.setCustomData(""+intPoints+"");
cm.gainItem(1112585, 1);
cm.sendOk("Enjoy");
} else {
cm.sendOk("Please check if you have sufficient inventory slot for it.")
}
} else {
cm.sendOk("Please check if you have sufficient points for it, #bCurrent Points : " + points);
}
break;
case 9: // Event Trophy
var record = cm.getQuestRecord(150001);
var intPoints = parseInt(points);








if (intPoints >= 1000000) {
if (cm.canHold(4000038)) {
intpoints = - 1000000;
record.setCustomData(""+intPoints+"");
cm.gainItem(4000038, 1);
cm.sendOk("Enjoy");
} else {
cm.sendOk("Please check if you have sufficient inventory slot for it.")
}
} else {
cm.sendOk("Please check if you have sufficient points for it, #bCurrent Points : " + points);
}
break;
case 10: // Maple Leaf
var record = cm.getQuestRecord(150001);
var intPoints = parseInt(points);








if (intPoints >= 120000) {
if (cm.canHold(4001126)) {
intpoints = - 120000;
record.setCustomData(""+intPoints+"");
cm.gainItem(4001126, 1);
cm.sendOk("Enjoy");
} else {
cm.sendOk("Please check if you have sufficient inventory slot for it.")
}
} else {
cm.sendOk("Please check if you have sufficient points for it, #bCurrent Points : " + points);
}
break;
case 11: // Maple Leaf x 10
var record = cm.getQuestRecord(150001);
var intPoints = parseInt(points);








if (intPoints >= 500000) {
if (cm.canHold(4001126)) {
intpoints = - 500000;
record.setCustomData(""+intPoints+"");
cm.gainItem(4001126, 10);
cm.sendOk("Enjoy");
} else {
cm.sendOk("Please check if you have sufficient inventory slot for it.")
}
} else {
cm.sendOk("Please check if you have sufficient points for it, #bCurrent Points : " + points);
}
break;
case 12: // Dominator Pendant
var record = cm.getQuestRecord(150001);
var intPoints = parseInt(points);








if (intPoints >= 250000) {
if (cm.canHold(1122150)) {
intpoints = - 250000;
record.setCustomData(""+intPoints+"");
cm.gainItem(1122150, 1);
cm.sendOk("Enjoy");
} else {
cm.sendOk("Please check if you have sufficient inventory slot for it.")
}
} else {
cm.sendOk("Please check if you have sufficient points for it, #bCurrent Points : " + points);
}
break;
case 13: // Fragment of Distorted Time
var record = cm.getQuestRecord(150001);
var intPoints = parseInt(points);








if (intPoints >= 30000) {
if (cm.canHold(2046374)) {
intpoints = - 30000;
record.setCustomData(""+intPoints+"");
cm.gainItem(2046374, 1);
cm.sendOk("Enjoy");
} else {
cm.sendOk("Please check if you have sufficient inventory slot for it.")
}
} else {
cm.sendOk("Please check if you have sufficient points for it, #bCurrent Points : " + points);
}
break;
case 14: // Epic Potential 100%
var record = cm.getQuestRecord(150001);
var intPoints = parseInt(points);








if (intPoints >= 100000) {
if (cm.canHold(2049702)) {
intpoints = - 100000;
record.setCustomData(""+intPoints+"");
cm.gainItem(2049702, 1);
cm.sendOk("Enjoy");
} else {
cm.sendOk("Please check if you have sufficient inventory slot for it.")
}
} else {
cm.sendOk("Please check if you have sufficient points for it, #bCurrent Points : " + points);
}
break;
case 15: // Guardian's Eternal Ring
var record = cm.getQuestRecord(150001);
var intPoints = parseInt(points);








if (intPoints >= 150000) {
if (cm.canHold(1112664)) {
intpoints = - 150000;
record.setCustomData(""+intPoints+"");
cm.gainItem(1112664, 1);
cm.sendOk("Enjoy");
} else {
cm.sendOk("Please check if you have sufficient inventory slot for it.")
}
} else {
cm.sendOk("Please check if you have sufficient points for it, #bCurrent Points : " + points);
}
break;
case 16: // Berserker's Eternal Ring
var record = cm.getQuestRecord(150001);
var intPoints = parseInt(points);








if (intPoints >= 150000) {
if (cm.canHold(1112665)) {
intpoints = - 150000;
record.setCustomData(""+intPoints+"");
cm.gainItem(1112665, 1);
cm.sendOk("Enjoy");
} else {
cm.sendOk("Please check if you have sufficient inventory slot for it.")
}
} else {
cm.sendOk("Please check if you have sufficient points for it, #bCurrent Points : " + points);
}
break;
case 17: // 1H Atk 50%
var record = cm.getQuestRecord(150001);
var intPoints = parseInt(points);








if (intPoints >= 25000) {
if (cm.canHold(2046002)) {
intpoints = - 25000;
record.setCustomData(""+intPoints+"");
cm.gainItem(2046002, 1);
cm.sendOk("Enjoy");
} else {
cm.sendOk("Please check if you have sufficient inventory slot for it.")
}
} else {
cm.sendOk("Please check if you have sufficient points for it, #bCurrent Points : " + points);
}
break;
case 18: // 1H M.Atk 50%
var record = cm.getQuestRecord(150001);
var intPoints = parseInt(points);








if (intPoints >= 25000) {
if (cm.canHold(2046003)) {
intpoints = - 25000;
record.setCustomData(""+intPoints+"");
cm.gainItem(2046003, 1);
cm.sendOk("Enjoy");
} else {
cm.sendOk("Please check if you have sufficient inventory slot for it.")
}
} else {
cm.sendOk("Please check if you have sufficient points for it, #bCurrent Points : " + points);
}
break;
case 19: // 2H Atk 50%
var record = cm.getQuestRecord(150001);
var intPoints = parseInt(points);








if (intPoints >= 25000) {
if (cm.canHold(2046102)) {
intpoints = - 25000;
record.setCustomData(""+intPoints+"");
cm.gainItem(2046102, 1);
cm.sendOk("Enjoy");
} else {
cm.sendOk("Please check if you have sufficient inventory slot for it.")
}
} else {
cm.sendOk("Please check if you have sufficient points for it, #bCurrent Points : " + points);
}
break;
case 20: // 2H M.Atk 50%
var record = cm.getQuestRecord(150001);
var intPoints = parseInt(points);








if (intPoints >= 25000) {
if (cm.canHold(2046103)) {
intpoints = - 25000;
record.setCustomData(""+intPoints+"");
cm.gainItem(2046103, 1);
cm.sendOk("Enjoy");
} else {
cm.sendOk("Please check if you have sufficient inventory slot for it.")
}
} else {
cm.sendOk("Please check if you have sufficient points for it, #bCurrent Points : " + points);
}
break;
case 21: // Balanced Fury
var record = cm.getQuestRecord(150001);
var intPoints = parseInt(points);








if (intPoints >= 5000) {
if (cm.canHold(2070018)) {
intpoints = - 5000;
record.setCustomData(""+intPoints+"");
cm.gainItem(2070018, 1);
cm.sendOk("Enjoy");
} else {
cm.sendOk("Please check if you have sufficient inventory slot for it.")
}
} else {
cm.sendOk("Please check if you have sufficient points for it, #bCurrent Points : " + points);
}
break;
case 22: // Fairy Pendant
var record = cm.getQuestRecord(150001);
var intPoints = parseInt(points);








if (intPoints >= 30000) {
if (cm.canHold(1122017)) {
intpoints = - 30000;
record.setCustomData(""+intPoints+"");
cm.gainItemPeriod(1122017, 1, 1);
cm.sendOk("Enjoy");
} else {
cm.sendOk("Please check if you have sufficient inventory slot for it.")
}
} else {
cm.sendOk("Please check if you have sufficient points for it, #bCurrent Points : " + points);
}
break;
case 27:
var record = cm.getQuestRecord(150001);
var intPoints = parseInt(points);








if (intPoints >= 75000) {
if (cm.canHold(2340000)) {
intpoints = - 75000;
record.setCustomData(""+intPoints+"");
cm.gainItem(2340000, 1);
cm.sendOk("Enjoy");
} else {
cm.sendOk("Please check if you have sufficient inventory slot for it.")
}
} else {
cm.sendOk("Please check if you have sufficient points for it, #bCurrent Points : " + points);
}
break;
case 29:
var record = cm.getQuestRecord(150001);
var intPoints = parseInt(points);








if (intPoints >= 15000) {
if (cm.canHold(5490001)) {
intpoints = - 15000;
record.setCustomData(""+intPoints+"");
cm.gainItem(5490001, 1);
cm.sendOk("Enjoy");
} else {
cm.sendOk("Please check if you have sufficient inventory slot for it.")
}
} else {
cm.sendOk("Please check if you have sufficient points for it, #bCurrent Points : " + points);
}
break;
case 30:
var record = cm.getQuestRecord(150001);
var intPoints = parseInt(points);








if (intPoints >= 30000) {
if (cm.canHold(5490000)) {
intpoints = - 30000;
record.setCustomData(""+intPoints+"");
cm.gainItem(5490000, 1);
cm.sendOk("Enjoy");
} else {
cm.sendOk("Please check if you have sufficient inventory slot for it.")
}
} else {
cm.sendOk("Please check if you have sufficient points for it, #bCurrent Points : " + points);
}
break;
case 31: // Clean Slate 20%
var record = cm.getQuestRecord(150001);
var intPoints = parseInt(points);








if (intPoints >= 10000) {
if (cm.canHold(2049003)) {
intpoints = - 10000;
record.setCustomData(""+intPoints+"");
cm.gainItem(2049003, 1);
cm.sendOk("Enjoy");
} else {
cm.sendOk("Please check if you have sufficient inventory slot for it.")
}
} else {
cm.sendOk("Please check if you have sufficient points for it, #bCurrent Points : " + points);
}
break;
case 34: // 2x Exp Coupon
var record = cm.getQuestRecord(150001);
var intPoints = parseInt(points);








if (intPoints >= 5000) {
if (cm.canHold(2450042)) {
intpoints = - 5000;
record.setCustomData(""+intPoints+"");
cm.gainItem(2450042, 1);
cm.sendOk("Enjoy");
} else {
cm.sendOk("Please check if you have sufficient inventory slot for it.")
}
} else {
cm.sendOk("Please check if you have sufficient points for it, #bCurrent Points : " + points);
}
case 32: // Cube
var record = cm.getQuestRecord(150001);
var intPoints = parseInt(points);








if (intPoints >= 1000) {
if (cm.canHold(5062000)) {
intpoints = - 1000;
record.setCustomData(""+intPoints+"");
cm.gainItem(5062000, 1);
cm.sendOk("Enjoy");
} else {
cm.sendOk("Please check if you have sufficient inventory slot for it.")
}
} else {
cm.sendOk("Please check if you have sufficient points for it, #bCurrent Points : " + points);
}
break;
case 36: // S Cube
var record = cm.getQuestRecord(150001);
var intPoints = parseInt(points);








if (intPoints >= 1500) {
if (cm.canHold(5062002)) {
intpoints = - 1500;
record.setCustomData(""+intPoints+"");
cm.gainItem(5062002, 1);
cm.sendOk("Enjoy");
} else {
cm.sendOk("Please check if you have sufficient inventory slot for it.")
}
} else {
cm.sendOk("Please check if you have sufficient points for it, #bCurrent Points : " + points);
}
break;
case 38:
var record = cm.getQuestRecord(150001);
var intPoints = parseInt(points);








if (intPoints >= 75000) {
if (cm.canHold(2530000)) {
intpoints = - 75000;
record.setCustomData(""+intPoints+"");
cm.gainItem(2530000, 1);
cm.sendOk("Enjoy");
} else {
cm.sendOk("Please check if you have sufficient inventory slot for it.")
}
} else {
cm.sendOk("Please check if you have sufficient points for it, #bCurrent Points : " + points);
}
break;
case 39:
var record = cm.getQuestRecord(150001);
var intPoints = parseInt(points);








if (intPoints >= 150000) {
if (cm.canHold(2531000)) {
intpoints = - 150000;
record.setCustomData(""+intPoints+"");
cm.gainItem(2531000, 1);
cm.sendOk("Enjoy");
} else {
cm.sendOk("Please check if you have sufficient inventory slot for it.")
}
} else {
cm.sendOk("Please check if you have sufficient points for it, #bCurrent Points : " + points);
}
break;
case 35: // Summon Sack
var record = cm.getQuestRecord(150001);
var intPoints = parseInt(points);








if (intPoints >= 5000) {
if (cm.canHold(2100008)) {
intpoints = - 5000;
record.setCustomData(""+intPoints+"");
cm.gainItem(2100008, 1);
cm.sendOk("Enjoy");
} else {
cm.sendOk("Please check if you have sufficient inventory slot for it.")
}
} else {
cm.sendOk("Please check if you have sufficient points for it, #bCurrent Points : " + points);
}
break;
case 40:
cm.warp(219010000,0);
break;
case 41:
cm.warp(219020000,0);
break;
}
} else {
var record = cm.getQuestRecord(150001);
var intPoints = parseInt(points);
if (sel == 32) {
if (selection >= 1 && selection <= (intPoints / 1000)) {
if (selection > (intPoints / 1000)) {
cm.sendOk("You can only get max " + (intPoints / 1000) + " Scrolls. 1 Scroll = 1000 points.");
} else if (!cm.canHold(5062000, selection)) {
cm.sendOk("Please make space in CASH tab.");
} else {
cm.gainItem(5062000, selection);
intpoints = - selection * 1000;
record.setCustomData(""+intPoints+"");
cm.sendOk("You have gained " + selection + " Scrolls and lost " + (selection * 1000) + " points. Current Points: " + intPoints);
}
}
} else if (sel == 33) {
if (selection >= 1 && selection <= cm.getPlayer().itemQuantity(5062000)) {
if (intPoints > (2147483647 - (selection * 1000))) {
cm.sendOk("You have too many points.");
} else {
cm.gainItem(5062000, -selection);
intPoints =+ selection * 1000;
record.setCustomData(""+intPoints+"");
cm.sendOk("You have lost " + selection + " Scrolls and gained " + (selection * 1000) + " points. Current Points: " + intPoints);
}
}
} else if (sel == 36) {
if (selection >= 1 && selection <= (intPoints / 10000)) {
if (selection > (intPoints / 10000)) {
cm.sendOk("You can only get max " + (intPoints / 10000) + ". 1 Item = 10000 points.");
} else if (!cm.canHold(5062002, selection)) {
cm.sendOk("Please make space in SETUP tab.");
} else {
cm.gainItem(5062002, selection);
intpoints = - selection * 10000;
record.setCustomData(""+intPoints+"");
cm.sendOk("You have gained " + selection + " and lost " + (selection * 10000) + " points. Current Points: " + intPoints);
}
}
} else if (sel == 37) {
if (selection >= 1 && selection <= cm.getPlayer().itemQuantity(5062002)) {
if (intPoints > (2147483647 - (selection *10000))) {
cm.sendOk("You have too many points.");
} else {
cm.gainItem(5062002, -selection);
intPoints =+ selection * 10000;
record.setCustomData(""+intPoints+"");
cm.sendOk("You have lost " + selection + " and gained " + (selection * 10000) + " points. Current Points: " + intPoints);
}
}
}
cm.dispose();
}
}
if (selection != 32 && selection != 33 && selection != 36 && selection != 37) {
cm.dispose();
}
}
 
Last edited:
Upvote 0
Nae-un <33
Joined
Jun 23, 2012
Messages
554
Reaction score
70
This is pretty convoluted. Is there anyway you can clean this up a bit before you submit it? My eyes are straining to absorb the information. I've had a pretty hectic day and don't want to undergo deciphering that huge block of mess unless it's in proper order.

wtf did i do wrong here
just need an npc to open that shop...
PHP:
/* 
@ 
@ 
@    NPC =pikall
*/ 

var status;

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

function action(mode, type, selection) { 
    if (mode == 1) {
        status++;
    } else {
        cm.dispose();
        return;
    }
    if (status == 0) { 
        cm.sendSimple ("Pick a Category#e#d" + 
                 "#k\r\n#L0##ruse items");
    } else if (status == 1) {
        if (selection == 0) { 
            cm.openShop (5450); 
            cm.dispose();
        } 
    } 
}

Just use the script Liv3 provided. It seems to be a perfect shortcut to the huge block of mess you want to put together.
 
Upvote 0
Back
Top