Results 1 to 8 of 8
  1. #1
    Orteez's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Posts
    62
    Reputation
    10
    Thanks
    1
    My Mood
    Relaxed

    Having Trouble Running This Program

    I don't know how to fix the errors. Omg when I copy and paste it the indenting shit messes up.


    1.
    #include "NPCs.h"
    2.
    #include "NPCsScripts.h"
    3.

    4.

    5.
    void NPCsScripts::npc_2100(NPC* npc){
    6.
    int state = npc->getState();
    7.
    int map = npc->getPlayerMap();
    8.
    if(npc->getPlayerMap() == 0){
    9.
    if(state == 0){
    10.
    npc->addText("Welcome to the world of MapleStory. The purpose of this training camp is to ");
    11.
    npc->addText("help beginners. Would you like to enter this training camp? Some people start thier journey ");
    12.
    npc->addText(" without taking the training program. But I strongly recommend you take the training program first.");
    13.
    npc->sendYesNo();
    14.
    }
    15.
    else if(state == 1){
    16.
    if(npc->getSelected() == YES){
    17.
    npc->addText("Ok then, I will let you enter the training camp. Please follow your instructor's lead.");
    18.
    npc->sendNext();
    19.
    }
    20.
    else {
    21.
    npc->addText("Do you really wanted to start your journey right away?");
    22.
    npc->setState(npc->getState()+1);
    23.
    npc->sendYesNo();
    24.
    }
    25.
    }
    26.
    else if(state == 2){
    27.
    npc->teleport(1);
    28.
    npc->end();
    29.
    }
    30.
    else if(state == 3){
    31.
    if(npc->getSelected() == NO){
    32.
    npc->addText("Please talk to me again when you finally made your decision.");
    33.
    npc->sendNext();
    34.
    npc->end();
    35.
    }
    36.
    else{
    37.
    npc->addText("It seems like you want to start your journey without taking the ");
    38.
    npc->addText("training program. Then, I will let you move on the training ground. Be careful~");
    39.
    npc->sendNext();
    40.
    }
    41.
    }
    42.
    else if(state == 4){
    43.
    npc->teleport(40000);
    44.
    npc->end();
    45.
    }
    46.
    }
    47.
    else if (map == 1){
    48.
    if(state == 0){
    49.
    npc->addText("The is the image room where your first training program begins. ");
    50.
    npc->addText("In this room, you will have an advance look into the job of your choice. ");
    51.
    npc->sendNext();
    52.
    }
    53.
    else if(state == 1){
    54.
    npc->addText("Once you train hard enough, you will be entitled to occupy a job. ");
    55.
    npc->addText("You can become a Bowman in Henesys, a Magician in Ellinia, a Warrior in Perion, and a Thief in Kerening City..");
    56.
    npc->sendBackOK();
    57.
    }
    58.
    else if(state == 2){
    59.
    npc->end();
    60.
    }
    61.
    }
    62.
    else{
    63.
    npc->end();
    64.
    }
    65.
    }
    66.

    67.
    void NPCsScripts::npc_2101(NPC* npc){
    68.
    int state = npc->getState();
    69.
    if(state == 0){
    70.
    npc->addText("Are you done with your training? ");
    71.
    npc->addText("If you wish, I will send you out from this training camp.");
    72.
    npc->sendYesNo();
    73.
    }
    74.
    else if(state == 1){
    75.
    if(npc->getSelected() == YES){
    76.
    npc->addText("Then, I will send you out from here. Good job.");
    77.
    npc->sendNext();
    78.
    }
    79.
    else{
    80.
    npc->addText("Haven't you finish the training program yet? ");
    81.
    npc->addText("If you want to leave this place, please do not hesitate to tell me.");
    82.
    npc->sendOK();
    83.
    }
    84.
    }
    85.
    else if(state == 2){
    86.
    if(npc->getSelected() == YES){
    87.
    npc->teleport(3);
    88.
    }
    89.
    npc->end();
    90.
    }
    91.
    }
    92.

    93.
    void QuestsScripts::npc_2000s(NPC* npc){
    94.
    int state = npc->getState();
    95.
    if(state == 0){
    96.
    npc->addText("Hey there, Pretty~ I am Roger who teachs you adroable new Maplers with lots of information.");
    97.
    npc->sendNext();
    98.
    }
    99.
    else if(state == 1){
    100.
    npc->addText("I know you are busy! Please spare me some time~ I can teach you some useful information! Ahahaha!");
    101.
    npc->sendBackNext();
    102.
    }
    103.
    else if(state == 2){
    104.
    npc->addText("So..... Let me just do this for fun! Abaracadabra~!");
    105.
    npc->sendAcceptDecline();
    106.
    }
    107.
    else if(state == 3){
    108.
    if(npc->getSelected() == ACCEPT){
    109.
    npc->setPlayerHP(25);
    110.
    npc->giveItem(2010007, 1);
    111.
    npc->addQuest(1021);
    112.
    npc->setState(npc->getState()+1);
    113.
    npc->addText("Surprised? If HP becomes 0, then you are in trouble. Now, I will give you #r#t2010007##k. Please take it. ");
    114.
    npc->addText("You will feel stronger. Open the Item window and double click to consume. Hey, It's very simple to open the Item window. Just press #bI#k on your keyboard.");
    115.
    npc->sendNext();
    116.
    }
    117.
    else{
    118.
    npc->addText("I can't believe you just have turned down a attractive guys like me!");
    119.
    npc->sendNext();
    120.
    npc->end();
    121.
    }
    122.
    }
    123.
    else if(state == 4){
    124.
    npc->addText("Surprised? If HP becomes 0, then you are in trouble. Now, I will give you #r#t2010007##k. Please take it. ");
    125.
    npc->addText("You will feel stronger. Open the Item window and double click to consume. Hey, It's very simple to open the Item window. Just press #bI#k on your keyboard.");
    126.
    npc->sendNext();
    127.
    }
    128.
    else if(state == 5){
    129.
    npc->addText("Please take all #t2010007#s that I gave you. You will be able to see the HP bar increasing. ");
    130.
    npc->addText("Please talk to me again when you recover your HP 100%");
    131.
    npc->sendBackOK();
    132.
    }
    133.
    else if(state == 6){
    134.
    npc->end();
    135.
    }
    136.
    }
    137.
    void QuestsScripts::npc_2000e(NPC* npc){
    138.
    int state = npc->getState();
    139.
    if(state == 0){
    140.
    npc->addText("How easy is it to consume the item? Simple, right? You can set a #bhotkey#k on the right bottom slot. Haha you didn't know that! right? ");
    141.
    npc->addText("Oh, and if you are a begineer, HP will automatically recover itself as time goes by. Well it takes time but this is one of the strategies for the beginners.");
    142.
    npc->sendNext();
    143.
    }
    144.
    else if(state == 1){
    145.
    npc->addText("Alright! Now that you have learned alot, I will give you a present. This is a must for your travle in Maple World, so thank me! Please use this under emergency cases!");
    146.
    npc->sendBackNext();
    147.
    }
    148.
    else if(state == 2){
    149.
    npc->addText("Okay, this is all I can teach you. I know it's sad but it is time to say good bye. Well tack care of yourself and Good luck my friend!\r\n\r\n");
    150.
    npc->addText("#fUI/UIWindow.img/QuestIcon/4/0#\r\n#v2010000# 3 #t2010000#\r\n#v2010009# 3 #t2010009#\r\n\r\n#fUI/UIWindow.img/QuestIcon/8/0# 10 exp");
    151.
    npc->sendBackNext();
    152.
    }
    153.
    else if(state == 3){
    154.
    npc->endQuest(1021);
    155.
    npc->giveItem(2010000, 3);
    156.
    npc->giveItem(2010009, 3);
    157.
    npc->giveEXP(10);
    158.
    npc->end();
    159.

    160.
    }
    161.

    162.
    }
    163.

    164.
    void NPCsScripts::npc_9101001(NPC* npc){
    165.
    int state = npc->getState();
    166.
    if(state == 0){
    167.
    npc->addText("You have finished all your trainings. Good job. ");
    168.
    npc->addText("You seem to be ready to start with the journey right away! Good , I will let you on to the next place.");
    169.
    npc->sendNext();
    170.
    }
    171.
    else if(state == 1){
    172.
    npc->addText("But remember, once you get out of here, you will enter a village full with monsters. Well them, good bye!");
    173.
    npc->sendBackNext();
    174.
    }
    175.
    else if(state == 2){
    176.
    npc->teleport(40000);
    177.
    npc->end();
    178.

    179.
    }
    180.
    }
    181.

    182.
    void NPCsScripts::npc_2020005(NPC* npc){
    183.
    char npcs[10][20] = {"0022000", "2012019", "2030002", "2030009", "2081006", "1061013", "2010003", "1052006", "1061000", "2060003"};
    184.
    char npcnames[10][20] = {"Shanks", "Moppie", "Corporal Easy", "Glivver", "Moira", "Gwin", "Neve", "Jake", "Chrishrama", "Melias"};
    185.
    char npcmaps[10][30] = {"Southperry", "Orbis", "Cloud Park VI", "Ice Valley II", "Cave of Life - Entrance", "Another Entrance", "Orbis Park", "Subway Ticketing Booth", "Sleepywood", "Department Store"};
    186.
    char scrolls[14][20] = {"2043001", "2043101", "2043201", "2043301", "2043701", "2043801", "2044001", "2044101", "2044201", "2044301", "2044401", "2044501", "2044601", "2044701"};
    187.
    int state = npc->getState();
    188.
    if(state == 0){
    189.
    npc->addText("In my old age, I've forgotten many of my friends names from far and distant lands. Can you help me remember them?");
    190.
    npc->sendAcceptDecline();
    191.
    }
    192.
    else if(state == 1){
    193.
    if(npc->getSelected() == DECLINE){
    194.
    npc->end();
    195.
    return;
    196.
    }
    197.
    npc->addText("Thank you. My mind's sharpness has left me years ago *chuckles*. My pocketbook still contains many pictures of friends from long ages past. Many of my friends I'm sure you'll find very familiar, ");
    198.
    npc->addText("however some of my newer friends will probably be just as difficult for you as it is for me. I'm sure you've had the ability to meet all of these people. After all, that ship in Cloud City can only take you so far, mmm?");
    199.
    npc->sendNext();
    200.
    }
    201.
    else if(state == 2){
    202.
    npc->addText("I have two questions for you for every picture in my pocketbook, and I have ten forgetful memories. #bIf you could be so kind as to not only tell me the name of the person, but also where I might find that person?#k ");
    203.
    npc->addText("Should you say something that perhaps jogs my memory a bit, perhaps I will reward you. Take as long as you like - by Merlin's beard I'm in no hurry. Are you ready to begin this quiz?");
    204.
    npc->sendYesNo();
    205.
    }
    206.
    else if(state >= 3 && state <= 32){
    207.
    if(npc->getSelected() == NO){
    208.
    npc->end();
    209.
    return;
    210.
    }
    211.
    if((state-3)%3 == 0){
    212.
    if(state-3!=0){
    213.
    if(strcmp(npc->getText(), npcmaps[(state-3)/3-1]) == 0){
    214.
    npc->setVariable("count", npc->getVariable("count")+1);
    215.
    }
    216.
    }
    217.
    if((state-3)/3+1>=10){
    218.
    npc->addChar(((state-3)/3)/10+'1');
    219.
    npc->addChar(((state-3)/3+1)%10+'0');
    220.
    }
    221.
    else
    222.
    npc->addChar((state-3)/3+'1');
    223.
    npc->addText(".\r\n#fNpc/");
    224.
    npc->addText(npcs[(state-3)/3]);
    225.
    npc->addText(".img/stand/0#");
    226.
    npc->sendNext();
    227.
    }
    228.
    else if((state-3)%3 == 1){
    229.
    npc->addText("What is his name?");
    230.
    npc->sendGetText();
    231.
    }
    232.
    else if((state-3)%3 == 2){
    233.
    if(strcmp(npc->getText(), npcnames[(state-3)/3]) == 0){
    234.
    npc->setVariable("count", npc->getVariable("count")+1);
    235.
    }
    236.
    npc->addText("And where can I find him?");
    237.
    npc->sendGetText();
    238.
    }
    239.
    }
    240.
    else if(state == 33){
    241.
    if(strcmp(npc->getText(), npcmaps[(state-3)/3-1]) == 0){
    242.
    npc->setVariable("count", npc->getVariable("count")+1);
    243.
    }
    244.
    npc->addText("Thank you so much for hel... hold on just a moment. Ah, dear me! I left a list of these people's names in here should I ever forget. Wonderful, now I feel foolish! ");
    245.
    npc->addText("Well, a deal is a deal. I'll reward you based upon the ones you got correct.");
    246.
    npc->sendNext();
    247.
    }
    248.
    else if(state == 34){
    249.
    int count = npc->getVariable("count");
    250.
    if(count <= 5){
    251.
    npc->addText("You get nothing. You don't know your NPC!");
    252.
    }
    253.
    else if(count <= 10){
    254.
    npc->addText("#fUI/UIWindow.img/QuestIcon/7/0#\r\n#fItem/Special/0900.img/09000003/iconRaw/0# 1,000,000 Mesos");
    255.
    }
    256.
    else if(count <= 15){
    257.
    npc->addText("#fUI/UIWindow.img/QuestIcon/7/0#\r\n#fItem/Special/0900.img/09000003/iconRaw/0# 3,000,000 Mesos\r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0#\r\n#v2070005# #t2070005#");
    258.
    }
    259.
    else if(count <= 19){
    260.
    npc->addText("#fUI/UIWindow.img/QuestIcon/7/0#\r\n#fItem/Special/0900.img/09000003/iconRaw/0# 10,000,000 Mesos\r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0#\r\n#v2070005# #t2070005#\r\n\r\n#fUI/UIWindow.img/QuestIcon/3/0#");
    261.
    for(int i=0; i<14; i++){
    262.
    npc->addText("\r\n#L");
    263.
    if(i>=10)
    264.
    npc->addChar(i/10+'0');
    265.
    npc->addChar(i%10+'0');
    266.
    npc->addText("##v");
    267.
    npc->addText(scrolls[i]);
    268.
    npc->addText("# #t");
    269.
    npc->addText(scrolls[i]);
    270.
    npc->addText("##l");
    271.
    }
    272.
    npc->addText("\r\n");
    273.
    }
    274.
    else{
    275.
    npc->addText("#fUI/UIWindow.img/QuestIcon/7/0#\r\n#fItem/Special/0900.img/09000003/iconRaw/0# 12,000,000 Mesos\r\n\r\n#fUI/UIWindow.img/QuestIcon/4/0#\r\n#v2070006# #t2070006#\r\n#v4001102# Alcaster's Statue\r\n\r\n#fUI/UIWindow.img/QuestIcon/3/0#");
    276.
    for(int i=0; i<14; i++){
    277.
    npc->addText("\r\n#L");
    278.
    if(i>=10)
    279.
    npc->addChar(i/10+'0');
    280.
    npc->addChar(i%10+'0');
    281.
    npc->addText("##v");
    282.
    npc->addText(scrolls[i]);
    283.
    npc->addText("# #t");
    284.
    npc->addText(scrolls[i]);
    285.
    npc->addText("##l");
    286.
    }
    287.
    npc->addText("\r\n");
    288.
    }
    289.
    if(count>15)
    290.
    npc->sendSimple();
    291.
    else
    292.
    npc->sendOK();
    293.
    }
    294.
    else if(state == 35){
    295.
    int count = npc->getVariable("count");
    296.
    if(count <= 5){
    297.
    }
    298.
    else if(count <= 10){
    299.
    npc->giveMesos(1000000);
    300.
    }
    301.
    else if(count <= 15){
    302.
    npc->giveMesos(3000000);
    303.
    npc->giveItem(2070005, 1);
    304.
    }
    305.
    else if(count <= 19){
    306.
    npc->giveMesos(10000000);
    307.
    npc->giveItem(2070005, 1);
    308.
    npc->giveItem(strval(scrolls[npc->getSelected()]), 1);
    309.
    }
    310.
    else {
    311.
    npc->giveMesos(12000000);
    312.
    npc->giveItem(4001102, 1);
    313.
    npc->giveItem(2070006, 1);
    314.
    npc->giveItem(strval(scrolls[npc->getSelected()]), 1);
    315.
    }
    316.
    npc->end();
    317.

    318.
    }
    319.
    }
    320.

    321.

    322.
    /* void NPCsScripts::npc_2100(NPC* npc){
    323.
    char arr[2][90] = {"60000", "221000300"};
    324.
    int state = npc->getState();
    325.
    if(state == 0){
    326.
    npc->addText("#bBe prepared#k ))");
    327.
    npc->sendNext();
    328.
    }
    329.
    else if(state == 1){
    330.
    npc->addText("CHOOOOOSE! BOHAHAHAHAHAH )#b");
    331.
    for(int i=0; i<2; i++){
    332.
    npc->addText("\r\n#L");
    333.
    npc->addChar(i+'0');
    334.
    npc->addText("##m");
    335.
    npc->addText(arr[i]);
    336.
    npc->addText("##l");
    337.
    }
    338.
    npc->sendSimple();
    339.
    }
    340.
    else if(state == 2){
    341.
    npc->teleport(strval(arr[npc->getSelected()]));
    342.
    npc->end();
    343.
    }
    344.
    }
    345.
    */
    346.

    347.
    void NPCsScripts::npc_22000(NPC* npc){
    348.
    int state = npc->getState();
    349.
    int map = npc->getPlayerMap();
    350.
    if(npc->getPlayerMap() == 0){
    351.
    if(state == 0){
    352.
    npc->addText("Hey hows it going, I'm Shanks, the Driver of this magnificent ship ");
    353.
    npc->addText("Are you getting tired of this place, well I can take you out of here FOREVER!!");
    354.
    npc->addText("Just a warning though, once you leave, you will enter the real world, and it is much harder to survive out there, trust me");
    355.
    npc->sendYesNo();
    356.
    }
    357.
    else if(state == 1){
    358.
    if(npc->getSelected() == YES){
    359.
    npc->addText("Ok then, I'm going to get you out of this place, say goodbye to this place forever, and hey, dont forget to visit me.");
    360.
    npc->sendNext();
    361.
    }
    362.
    else {
    363.
    npc->addText("Are you positive you dont want to leave this place?");
    364.
    npc->setState(npc->getState()+1);
    365.
    npc->sendYesNo();
    366.
    }
    367.
    }
    368.
    else if(state == 2){
    369.
    npc->teleport(1);
    370.
    npc->end();
    371.
    }
    372.
    else if(state == 3){
    373.
    if(npc->getSelected() == NO){
    374.
    npc->addText("Please talk to me once you can get a yes so I can take you out of here, I've got important things to do you know.");
    375.
    npc->sendNext();
    376.
    npc->end();
    377.
    }
    378.
    }
    379.
    else if(state == 4){
    380.
    npc->teleport(40000);
    381.
    npc->end();

  2. #2
    yodaliketaco's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    winsock.dll
    Posts
    646
    Reputation
    45
    Thanks
    511
    My Mood
    Tired
    Please use code tags. Without them, we cannot easily read the program.

  3. #3
    Fourth Hokage's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Posts
    165
    Reputation
    10
    Thanks
    1
    My Mood
    Confused
    What Program Is This Anyways? o.o

  4. #4
    ж‡ Haxεr4€vεr ‡ж's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    108
    Reputation
    10
    Thanks
    19
    My Mood
    Relaxed
    I'm think this a a Runescape Private server code, Not sure though. Fourth Hokage, Like your Signature, They very bottom part.

  5. #5
    BassSR's Avatar
    Join Date
    May 2010
    Gender
    male
    Posts
    5,824
    Reputation
    570
    Thanks
    330
    go to a coding section


  6. #6
    bugblg's Avatar
    Join Date
    May 2009
    Gender
    female
    Posts
    1
    Reputation
    10
    Thanks
    0
    What Program Is This Anyways? o.o

  7. #7
    aanthonyz's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    Hitler's Minivan
    Posts
    483
    Reputation
    27
    Thanks
    77
    My Mood
    Relaxed
    This is for Maplestory...

    he is using info like:

    Mesos,Bowman in Henesys,Magician in Ellinia, Warrior in Perion,Thief in Kerening City

    This is basically what a NPC would say in the game to new beginners who want to start.


    Edit:
    This is for a private server too because I saw this:

    Code:
    npc->giveMesos(12000000);
    Last edited by aanthonyz; 11-03-2010 at 06:28 AM.
    "The best way to predict your future is to create it."

    Contributions I made:

    DirectX E-Books
    Hacking Tools
    Hacking into a PC

    Need Help?
    Send me a PM, or send me a email at : aanthonyz10@gmail.com

    Click My Dragon:


  8. #8
    ericsmart's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    41
    Reputation
    10
    Thanks
    1
    THX FOR THAT!!!

Similar Threads

  1. looking for account have 25 hacks in this program
    By samkill in forum Trade Accounts/Keys/Items
    Replies: 5
    Last Post: 03-24-2013, 01:23 PM
  2. Help, having trouble running hacks
    By t3hfrug in forum WarRock Discussions
    Replies: 10
    Last Post: 08-09-2010, 02:17 AM
  3. Hey guys This is for all of you having trouble out there
    By kimjong2sux in forum Combat Arms Help
    Replies: 6
    Last Post: 07-16-2010, 07:59 AM
  4. You Have To See This
    By A7X Oblivian in forum Gunz General
    Replies: 0
    Last Post: 02-08-2006, 02:33 PM