Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[Release]The 1st 2nd 3rd 4th Job NPC Script. [Rev007 Fixed. Add screenshots]

Status
Not open for further replies.
Newbie Spellweaver
Joined
Oct 20, 2007
Messages
64
Reaction score
3
1st 2nd 3rd 4th job NPC is NX's.

If you can't change the job. Please look the screenshots

add over all skill points. and make sure your ap >= 25. which job




My english is very bad. Thx.

Please backup your old file first.

then follow this.


henesys.cpp

the code.

Code:
#include "NPCs.h"
#include "NPCsScripts.h"
#include "Player.h"
#include "Levels.h"
#include "Skills.h"
#include "SkillsPacket.h"
 
//1stjob
void NPCsScripts::npc_1012100(NPC *npc) 
{
Player* player = npc->getPlayer();
int state = npc->getState();
if(state ==0)
{
    if(player->getJob() == 000)
    {
        if(player->getLevel() >= 10 && player->getDex() >= 25)
        {
            npc->addText("Hey You wanna be a 1st Job bowman(GongShou)?");
            state = 1;
            npc->sendYesNo();
        }
        else
        {
            npc->addText("Sorry You Need To Be Level 10 & Above");
                    npc->sendOK();
            npc->end();
        }
          }
}
else if(state == 1)
{
if(npc->getSelected() == YES)
    {
        player->setJob(300);
        npc->addText("Congrats, you have becomed an archer the first step to the greatest of all bowman!\n");
                npc->setSP(player->getSp() + 1);
                npc->sendOK();
        npc->end();
    }
    else
    {
        npc->addText("I See..If You Changed your mind please come back here ;)");
        npc->end();
    }
}
}
 
void NPCsScripts::npc_1052001(NPC *npc) //job
{
Player* player = npc->getPlayer();
int state = npc->getState();
if(state ==0)
{
    if(player->getJob() == 000)
    {
        if(player->getLevel() >= 10 && player->getLuk() >= 25)
        {
            npc->addText("Hey You wanna be a 1st Job Thief(FeiXia)?");
            state = 1;
            npc->sendYesNo();
        }
        else
        {
            npc->addText("Sorry You Need To Be Level 10 & Above");
                    npc->sendOK();
            npc->end();
        }
          }
}
else if(state == 1)
{
if(npc->getSelected() == YES)
    {
        player->setJob(400);
        npc->addText("Congrats, you have becomed an archer the first step to the greatest of all Thief!\n");
                npc->setSP(player->getSp() + 1);
                npc->sendOK();
        npc->end();
    }
    else
    {
        npc->addText("I See..If You Changed your mind please come back here ;)");
        npc->end();
    }
}
}
 
 
void NPCsScripts::npc_1032001(NPC *npc) //job
{
Player* player = npc->getPlayer();
int state = npc->getState();
if(state ==0)
{
    if(player->getJob() == 000)
    {
        if(player->getLevel() >= 8 && player->getInt() >= 20)
        {
            npc->addText("Hey You wanna be a 1st Job Magician(FaShi)?");
            state = 1;
            npc->sendYesNo();
        }
        else
        {
            npc->addText("Sorry You Need To Be Level 8 & Above");
                    npc->sendOK();
            npc->end();
        }
          }
}
else if(state == 1)
{
if(npc->getSelected() == YES)
    {
        player->setJob(200);
        npc->addText("Congrats, you have becomed an archer the first step to the greatest of all Magician!\n");
                npc->setSP(player->getSp() + 1);
                npc->sendOK();
        npc->end();
    }
    else
    {
        npc->addText("I See..If You Changed your mind please come back here ;)");
        npc->end();
    }
}
}
 
 
 
void NPCsScripts::npc_1022000(NPC *npc) //job
{
Player* player = npc->getPlayer();
int state = npc->getState();
if(state ==0)
{
    if(player->getJob() == 000)
    {
        if(player->getLevel() >= 10 && player->getStr() >= 35)
        {
            npc->addText("Hey You wanna be a 1st Job Warrior(ZhanShi)?");
            state = 1;
            npc->sendYesNo();
        }
        else
        {
            npc->addText("Sorry You Need To Be Level 10 & Above");
                    npc->sendOK();
            npc->end();
        }
          }
}
else if(state == 1)
{
if(npc->getSelected() == YES)
    {
        player->setJob(100);
        npc->addText("Congrats, you have becomed an archer the first step to the greatest of all Warrior!\n");
                npc->setSP(player->getSp() + 1);
                npc->sendOK();
        npc->end();
    }
    else
    {
        npc->addText("I See..If You Changed your mind please come back here ;)");
        npc->end();
    }
}
}
 
 
//2ndjob
 
void NPCsScripts::npc_1072000(NPC* npc) //zhanshi
{
Player* player = npc->getPlayer();
int state = npc->getState();
if(state == 0)
{
    if(player->getJob() == 100)
    {
        if(player->getLevel() >= 30 && player->getStr() >= 35)
        {
        npc->addText("Hey You wanna be a 2nd Job \r\n\r\n#L0#Fighter(JianKe)#l\r\n#L1#Page(ZhunQishi)#l\r\n#L2#Spearman(QiangZhanshi)#l");
        npc->sendSimple();
        }
        else
        {
            npc->addText("Sorry You Need To Be Level 30 & Above");
                    npc->sendOK();
            npc->end();
        }
    }
}
else if(state == 1)
{
int type = npc->getSelected();
npc->setVariable("type", type);
    if(type == 0)
        { // jianke
            player->setJob(110);
                npc->setSP(player->getSp() + 1);
        npc->addText("Congrats, You have a 2nd job.\n");
                npc->sendOK();
        npc->end();
            }
    else if(type == 1)
        { // zhunqishi
            player->setJob(120);
                npc->setSP(player->getSp() + 1);
        npc->giveItem(02022176,1000);
        npc->addText("Congrats, You have a 2nd job.\n");
                npc->sendOK();
        npc->end();
            }
        else if(type == 2)
            { // qiangzhanshi
                player->setJob(130);
                    npc->setSP(player->getSp() + 1);
        npc->addText("Congrats, You have a 2nd job.\n");
                    npc->sendOK();
            npc->end();
            }
        }
}
 
 
void NPCsScripts::npc_1072002(NPC* npc) //gongjianshou
{
Player* player = npc->getPlayer();
int state = npc->getState();
if(state == 0)
{
    if(player->getJob() == 300)
    {
        if(player->getLevel() >= 30 && player->getDex() >= 25)
        {
        npc->addText("Hey You wanna be a 2nd Job \r\n\r\n#L0#Hunter(LieRen)#l\r\n#L1#Crossbowman(NuShou)#l");
        npc->sendSimple();
        }
        else
        {
            npc->addText("Sorry You Need To Be Level 30 & Above");
                    npc->sendOK();
            npc->end();
        }
    }
}
else if(state == 1)
{
int type = npc->getSelected();
npc->setVariable("type", type);
    if(type == 0)
        {
        player->setJob(310);
                npc->setSP(player->getSp() + 1);
        npc->addText("Congrats, You have a 2nd job.\n");
                npc->sendOK();
        npc->end();
            }
    else if(type == 1)
        {
        player->setJob(320);
                npc->setSP(player->getSp() + 1);
        npc->addText("Congrats, You have a 2nd job.\n");
                npc->sendOK();
        npc->end();
        }
    }
}
 
 
void NPCsScripts::npc_1072001(NPC* npc) //mofashi
{
Player* player = npc->getPlayer();
int state = npc->getState();
if(state == 0)
{
    if(player->getJob() == 200)
    {
        if(player->getLevel() >= 30 && player->getInt() >= 25)
        {
        npc->addText("Hey You wanna be a 2nd Job \r\n\r\n#L0#Fire/Poison Wizard(HuoDu)#l\r\n#L1#Ice ghtning Wizard(BingLei)#l\r\n#L2#Cleric(MuShi)#l");
        npc->sendSimple();
        }
        else
        {
            npc->addText("Sorry You Need To Be Level 30 & Above");
                    npc->sendOK();
            npc->end();
        }
    }
}
else if(state == 1)
{
int type = npc->getSelected();
npc->setVariable("type", type);
    if(type == 0)
        { 
        player->setJob(210);
                npc->setSP(player->getSp() + 1);
        npc->addText("Congrats, You have a 2nd job.\n");
                npc->sendOK();
        npc->end();
            }
    else if(type == 1)
        {
        player->setJob(220);
                npc->setSP(player->getSp() + 1);
        npc->addText("Congrats, You have a 2nd job.\n");
                npc->sendOK();
        npc->end();
            }
        else if(type == 2)
            {
            player->setJob(230);
                    npc->setSP(player->getSp() + 1);
        npc->addText("Congrats, You have a 2nd job.\n");
                    npc->sendOK();
            npc->end();
            }
        }
}
 
 
void NPCsScripts::npc_1072003(NPC* npc) //feixia
{
Player* player = npc->getPlayer();
int state = npc->getState();
if(state == 0)
{
    if(player->getJob() == 400)
    {
        if(player->getLevel() >= 30 && player->getDex() >= 25)
        {
        npc->addText("Hey You wanna be a 2nd Job \r\n\r\n#L0#Fire/Assassin(Biao)#l\r\n#L1#Bandit(Dao)#l");
        npc->sendSimple();
        }
        else
        {
            npc->addText("Sorry You Need To Be Level 30 & Above");
                    npc->sendOK();
            npc->end();
        }
    }
}
else if(state == 1)
{
int type = npc->getSelected();
npc->setVariable("type", type);
    if(type == 0)
        { 
        player->setJob(410);
                npc->setSP(player->getSp() + 1);
        npc->addText("Congrats, You have a 2nd job.\n");
                npc->sendOK();
        npc->end();
            }
    else if(type == 1)
        {
        player->setJob(420);
                npc->setSP(player->getSp() + 1);
        npc->addText("Congrats, You have a 2nd job.\n");
                npc->sendOK();
        npc->end();
            }
        }
}
 
 
//3rd job
 
void NPCsScripts::npc_2020010(NPC* npc) //gongjianshou
{
Player* player = npc->getPlayer();
int state = npc->getState();
if(state == 0)
{
    if(player->getJob() == 310)
    {
        if(player->getLevel() >= 70 && player->getDex() >= 25)
        {
        npc->addText("Hey You wanna be a 3rd Job Ranger(SheShou)");
        npc->sendYesNo();
        }
        else
        {
            npc->addText("Sorry You Need To Be Level 70 & Above");
                    npc->sendOK();
            npc->end();
        }
    }
    else
    {
        if(player->getLevel() >= 70 && player->getDex() >= 25)
        {
        npc->addText("Hey You wanna be a 3rd Job Sniper(YouXia)");
        npc->sendYesNo();
        }
        else
        {
            npc->addText("Sorry You Need To Be Level 70 & Above");
                    npc->sendOK();
            npc->end();
        }
    }
}
else if(state == 1)
{
if(npc->getSelected() == YES)
    {
        if(player->getJob() == 310)
        {
        player->setJob(311);
        npc->addText("Congrats, You have a 3rd job.\n");
                npc->setSP(player->getSp() + 1);
                npc->sendOK();
        npc->end();
        }
        else
        {
        player->setJob(321);
        npc->addText("Congrats, You have a 3rd job.\n");
                npc->setSP(player->getSp() + 1);
                npc->sendOK();
        npc->end();
        }
    }
}
}
 
 
 
void NPCsScripts::npc_2020008(NPC* npc) //zhanshi
{
Player* player = npc->getPlayer();
int state = npc->getState();
if(state == 0)
{
    if(player->getJob() == 110)
    {
        if(player->getLevel() >= 70 && player->getStr() >= 35)
        {
        npc->addText("Hey You wanna be a 3rd Job Crusader");
        npc->sendYesNo();
        }
        else
        {
            npc->addText("Sorry You Need To Be Level 70 & Above");
                    npc->sendOK();
            npc->end();
        }
    }
    else if(player->getJob() == 120)
    {
        if(player->getLevel() >= 70 && player->getStr() >= 35)
        {
        npc->addText("Hey You wanna be a 3rd Job White Knight");
        npc->sendYesNo();
        }
        else
        {
            npc->addText("Sorry You Need To Be Level 70 & Above");
                    npc->sendOK();
            npc->end();
        }
    }
    else if(player->getJob() == 130)
    {
        if(player->getLevel() >= 70 && player->getStr() >= 35)
        {
        npc->addText("Hey You wanna be a 3rd Job Dragon Knight");
        npc->sendYesNo();
        }
        else
        {
            npc->addText("Sorry You Need To Be Level 70 & Above");
                    npc->sendOK();
            npc->end();
        }
    }
}
else if(state == 1)
{
if(npc->getSelected() == YES)
    {
        if(player->getJob() == 110)
        {
        player->setJob(111);
        npc->addText("Congrats, You have a 3rd job.\n");
                npc->setSP(player->getSp() + 1);
                npc->sendOK();
        npc->end();
        }
        else if(player->getJob() == 120)
        {
        player->setJob(121);
        npc->addText("Congrats, You have a 3rd job.\n");
                npc->setSP(player->getSp() + 1);
                npc->sendOK();
        npc->end();
        }
        else if(player->getJob() == 130)
        {
        player->setJob(131);
        npc->addText("Congrats, You have a 3rd job.\n");
                npc->setSP(player->getSp() + 1);
                npc->sendOK();
        npc->end();
        }
    }
}
}
 
 
void NPCsScripts::npc_2020009(NPC* npc) //mofashi
{
Player* player = npc->getPlayer();
int state = npc->getState();
if(state == 0)
{
    if(player->getJob() == 210)
    {
        if(player->getLevel() >= 70 && player->getInt() >= 25)
        {
        npc->addText("Hey You wanna be a 3rd Job Fire/Poison Wizard");
        npc->sendYesNo();
        }
        else
        {
            npc->addText("Sorry You Need To Be Level 70 & Above");
                    npc->sendOK();
            npc->end();
        }
    }
    else if(player->getJob() == 220)
    {
        if(player->getLevel() >= 70 && player->getInt() >= 25)
        {
        npc->addText("Hey You wanna be a 3rd Job Ice ghtning Wizard");
        npc->sendYesNo();
        }
        else
        {
            npc->addText("Sorry You Need To Be Level 70 & Above");
                    npc->sendOK();
            npc->end();
        }
    }
    else if(player->getJob() == 230)
    {
        if(player->getLevel() >= 70 && player->getInt() >= 25)
        {
        npc->addText("Hey You wanna be a 3rd Job Cleric");
        npc->sendYesNo();
        }
        else
        {
            npc->addText("Sorry You Need To Be Level 70 & Above");
                    npc->sendOK();
            npc->end();
        }
    }
}
else if(state == 1)
{
if(npc->getSelected() == YES)
    {
        if(player->getJob() == 210)
        {
        player->setJob(211);
        npc->addText("Congrats, You have a 3rd job.\n");
                npc->setSP(player->getSp() + 1);
                npc->sendOK();
        npc->end();
        }
        else if(player->getJob() == 220)
        {
        player->setJob(221);
        npc->addText("Congrats, You have a 3rd job.\n");
                npc->setSP(player->getSp() + 1);
                npc->sendOK();
        npc->end();
        }
        else if(player->getJob() == 230)
        {
        player->setJob(231);
        npc->addText("Congrats, You have a 3rd job.\n");
                npc->setSP(player->getSp() + 1);
                npc->sendOK();
        npc->end();
        }
    }
}
}
 
 
void NPCsScripts::npc_2020011(NPC* npc) //feixia
{
Player* player = npc->getPlayer();
int state = npc->getState();
if(state == 0)
{
    if(player->getJob() == 410)
    {
        if(player->getLevel() >= 70 && player->getLuk() >= 25)
        {
        npc->addText("Hey You wanna be a 3rd Job Hermit");
        npc->sendYesNo();
        }
        else
        {
            npc->addText("Sorry You Need To Be Level 70 & Above");
                    npc->sendOK();
            npc->end();
        }
    }
    else
    {
        if(player->getLevel() >= 70 && player->getLuk() >= 25)
        {
        npc->addText("Hey You wanna be a 3rd Job Chief Bandit");
        npc->sendYesNo();
        }
        else
        {
            npc->addText("Sorry You Need To Be Level 70 & Above");
                    npc->sendOK();
            npc->end();
        }
    }
}
else if(state == 1)
{
if(npc->getSelected() == YES)
    {
        if(player->getJob() == 410)
        {
        player->setJob(411);
        npc->addText("Congrats, You have a 3rd job.\n");
                npc->setSP(player->getSp() + 1);
                npc->sendOK();
        npc->end();
        }
        else
        {
        player->setJob(421);
        npc->addText("Congrats, You have a 3rd job.\n");
                npc->setSP(player->getSp() + 1);
                npc->sendOK();
        npc->end();
        }
    }
}
}
 
 
 
//4th job
 
void NPCsScripts::npc_2081300(NPC* npc) //gongjianshou
{
Player* player = npc->getPlayer();
int state = npc->getState();
if(state == 0)
{
    if(player->getJob() == 311)
    {
        if(player->getLevel() >= 120 && player->getDex() >= 25)
        {
        npc->addText("Hey You wanna be a 4th Job Bow Master");
        npc->sendYesNo();
        }
        else
        {
            npc->addText("Sorry You Need To Be Level 120 & Above");
                    npc->sendOK();
            npc->end();
        }
    }
    else if(player->getJob() == 321)
    {
        if(player->getLevel() >= 120 && player->getDex() >= 25)
        {
        npc->addText("Hey You wanna be a 4th Job Crossbow Master");
        npc->sendYesNo();
        }
        else
        {
            npc->addText("Sorry You Need To Be Level 120 & Above");
                    npc->sendOK();
            npc->end();
        }
    }
}
else if(state == 1)
{
if(npc->getSelected() == YES)
    {
        if(player->getJob() == 311)
        {
        player->setJob(312);
        npc->addText("Congrats, You have a 4th job.\n");
                npc->setSP(player->getSp() + 1);
                npc->sendOK();
        npc->end();
        }
        else if(player->getJob() == 321)
        {
        player->setJob(322);
        npc->addText("Congrats, You have a 4th job.\n");
                npc->setSP(player->getSp() + 1);
                npc->sendOK();
        npc->end();
        }
    }
}
}
 
 
 
void NPCsScripts::npc_2081100(NPC* npc) //zhanshi
{
Player* player = npc->getPlayer();
int state = npc->getState();
if(state == 0)
{
    if(player->getJob() == 111)
    {
        if(player->getLevel() >= 120 && player->getStr() >= 35)
        {
        npc->addText("Hey You wanna be a 4th Job Crusader");
        npc->sendYesNo();
        }
        else
        {
            npc->addText("Sorry You Need To Be Level 120 & Above");
                    npc->sendOK();
            npc->end();
        }
    }
    else if(player->getJob() == 121)
    {
        if(player->getLevel() >= 120 && player->getStr() >= 35)
        {
        npc->addText("Hey You wanna be a 4th Job White Knight");
        npc->sendYesNo();
        }
        else
        {
            npc->addText("Sorry You Need To Be Level 120 & Above");
                    npc->sendOK();
            npc->end();
        }
    }
    else if(player->getJob() == 131)
    {
        if(player->getLevel() >= 120 && player->getStr() >= 35)
        {
        npc->addText("Hey You wanna be a 4th Job Dragon Knight");
        npc->sendYesNo();
        }
        else
        {
            npc->addText("Sorry You Need To Be Level 120 & Above");
                    npc->sendOK();
            npc->end();
        }
    }
}
else if(state == 1)
{
if(npc->getSelected() == YES)
    {
        if(player->getJob() == 111)
        {
        player->setJob(112);
        npc->addText("Congrats, You have a 4th job.\n");
                npc->setSP(player->getSp() + 1);
                npc->sendOK();
        npc->end();
        }
        else if(player->getJob() == 121)
        {
        player->setJob(122);
        npc->addText("Congrats, You have a 4th job.\n");
                npc->setSP(player->getSp() + 1);
                npc->sendOK();
        npc->end();
        }
        else if(player->getJob() == 131)
        {
        player->setJob(132);
        npc->addText("Congrats, You have a 4th job.\n");
                npc->setSP(player->getSp() + 1);
                npc->sendOK();
        npc->end();
        }
    }
}
}
 
 
void NPCsScripts::npc_2081200(NPC* npc) //mofashi
{
Player* player = npc->getPlayer();
int state = npc->getState();
if(state == 0)
{
    if(player->getJob() == 211)
    {
        if(player->getLevel() >= 120 && player->getInt() >= 25)
        {
        npc->addText("Hey You wanna be a 4th Job Fire/Poison Arch Mage");
        npc->sendYesNo();
        }
        else
        {
            npc->addText("Sorry You Need To Be Level 120 & Above");
                    npc->sendOK();
            npc->end();
        }
    }
    else if(player->getJob() == 221)
    {
        if(player->getLevel() >= 120 && player->getInt() >= 25)
        {
        npc->addText("Hey You wanna be a 4th Job Ice ghtning Arch Mage");
        npc->sendYesNo();
        }
        else
        {
            npc->addText("Sorry You Need To Be Level 120 & Above");
                    npc->sendOK();
            npc->end();
        }
    }
    else if(player->getJob() == 231)
    {
        if(player->getLevel() >= 120 && player->getInt() >= 25)
        {
        npc->addText("Hey You wanna be a 4th Job Bishop");
        npc->sendYesNo();
        }
        else
        {
            npc->addText("Sorry You Need To Be Level 120 & Above");
                    npc->sendOK();
            npc->end();
        }
    }
}
else if(state == 1)
{
if(npc->getSelected() == YES)
    {
        if(player->getJob() == 211)
        {
        player->setJob(212);
        npc->addText("Congrats, You have a 4th job.\n");
                npc->setSP(player->getSp() + 1);
                npc->sendOK();
        npc->end();
        }
        else if(player->getJob() == 221)
        {
        player->setJob(222);
        npc->addText("Congrats, You have a 4th job.\n");
                npc->setSP(player->getSp() + 1);
                npc->sendOK();
        npc->end();
        }
        else if(player->getJob() == 231)
        {
        player->setJob(232);
        npc->addText("Congrats, You have a 4th job.\n");
                npc->setSP(player->getSp() + 1);
                npc->sendOK();
        npc->end();
        }
    }
}
}
 
 
void NPCsScripts::npc_2081400(NPC* npc) //feixia
{
Player* player = npc->getPlayer();
int state = npc->getState();
if(state == 0)
{
    if(player->getJob() == 411)
    {
        if(player->getLevel() >= 120 && player->getLuk() >= 25)
        {
        npc->addText("Hey You wanna be a 4th Job Nights Lord");
        npc->sendYesNo();
        }
        else
        {
            npc->addText("Sorry You Need To Be Level 120 & Above");
                    npc->sendOK();
            npc->end();
        }
    }
    else if(player->getJob() == 421)
    {
        if(player->getLevel() >= 120 && player->getLuk() >= 25)
        {
        npc->addText("Hey You wanna be a 4th Job Shadower");
        npc->sendYesNo();
        }
        else
        {
            npc->addText("Sorry You Need To Be Level 120 & Above");
                    npc->sendOK();
            npc->end();
        }
    }
}
else if(state == 1)
{
if(npc->getSelected() == YES)
    {
        if(player->getJob() == 411)
        {
        player->setJob(412);
        npc->addText("Congrats, You have a 4th job.\n");
                npc->setSP(player->getSp() + 1);
                npc->sendOK();
        npc->end();
        }
        else if(player->getJob() == 421)
        {
        player->setJob(422);
        npc->addText("Congrats, You have a 4th job.\n");
                npc->setSP(player->getSp() + 1);
                npc->sendOK();
        npc->end();
        }
    }
}
}


add these codes to NPCsScripts.h


Code:
case 1012100: npc_1012100(npc); break; //1st
case 1052001: npc_1052001(npc); break;
case 1032001: npc_1032001(npc); break;
case 1022000: npc_1022000(npc); break;
case 1072000: npc_1072000(npc); break;//2nd
case 1072001: npc_1072001(npc); break;
case 1072002: npc_1072002(npc); break;
case 1072003: npc_1072003(npc); break;
case 2020010: npc_2020010(npc); break;//3rd
case 2020008: npc_2020008(npc); break;
case 2020008: npc_2020009(npc); break;
case 2020008: npc_2020011(npc); break;
case 2081100: npc_2081100(npc); break;//4th
case 2081200: npc_2081200(npc); break;
case 2081300: npc_2081300(npc); break;
case 2081400: npc_2081400(npc); break;

before

default: npc->end(); break;

add these codes to npcsscripts.h

Code:
static void npc_1052001(NPC* npc);
static void npc_1012100(NPC* npc);
static void npc_1032001(NPC* npc);
static void npc_1022000(NPC* npc);
static void npc_1072000(NPC* npc); 
static void npc_1072001(NPC* npc);
static void npc_1072002(NPC* npc);
static void npc_1072003(NPC* npc);
static void npc_2020010(NPC* npc);
static void npc_2020008(NPC* npc);
static void npc_2020009(NPC* npc);
static void npc_2020011(NPC* npc);
static void npc_2081100(NPC* npc); 
static void npc_2081200(NPC* npc);
static void npc_2081300(NPC* npc);
static void npc_2081400(NPC* npc);

before

}; #endif


If you want to add teleport to go to the 4th job NPC's place.
follow me.

open mapleisland.cpp

find

void NPCsScripts::npc_9200000(NPC* npc){
......
......
...... }

change it to

Code:
void NPCsScripts::npc_9200000(NPC* npc){
int state = npc->getState();
if(state == 0){
npc->addText("Hi I am the Vip Cab - I can take you to\r\n#L0#Henesy#l\r\n#L1#Ellinia#l\r\n#L2#Lith Harbour#l\r\n#L3#Parion#l\r\n#L4#Kerning City#l\r\n#L5#Amoria#l\r\n#L6#LeaFre#l\r\n#L7#Ludi#l\r\n#L8#Orbis#l\r\n#L9#Herb Town#l\r\n#L10#Mu Lung#l\r\n#L11#3rd Job Place#l\r\n#L12#4th Job Place#l");
npc->sendSimple();
}
if(state == 1){
int type = npc->getSelected();
npc->end();
npc->setVariable("type", type);
if(type == 0){ // Henesy
npc->teleport(100000000);
}
else if(type == 1){ // Ellinia
npc->teleport(101000000);
}
else if(type == 2){ // Lith
npc->teleport(104000000);
}
else if(type == 3){ // Parion
npc->teleport(102000000);
}
else if(type == 4){ // Kerning City
npc->teleport(103000000);
}
else if(type == 5){ // Amoria
npc->teleport(680000000);
}
else if(type == 6){ // Leafre
npc->teleport(240000000);
}
else if(type == 7){ // Ludi
npc->teleport(220000000);
}
else if(type == 8){ // Orbis
npc->teleport(200000000);
}
else if(type == 9){ // Herbtown
npc->teleport(251000000);
}
else if(type == 10){ // Mu Lung
npc->teleport(250000000);
}
else if(type == 11){ // 3rd
npc->teleport(211000001);
}
else if(type == 12){ // 4th
npc->teleport(240010501);
}
}
}

If you don't find it add it

and add these code in npcsscripts.h

case 9200000: npc_9200000(npc); break;

before

default: npc->end(); break;

static void npc_9200000(NPC* npc);

before

}; #endif


:::multi screenshots

oung - [Release]The 1st 2nd 3rd 4th Job NPC Script. [Rev007 Fixed. Add screenshots] - RaGEZONE Forums


oung - [Release]The 1st 2nd 3rd 4th Job NPC Script. [Rev007 Fixed. Add screenshots] - RaGEZONE Forums


oung - [Release]The 1st 2nd 3rd 4th Job NPC Script. [Rev007 Fixed. Add screenshots] - RaGEZONE Forums


oung - [Release]The 1st 2nd 3rd 4th Job NPC Script. [Rev007 Fixed. Add screenshots] - RaGEZONE Forums


oung - [Release]The 1st 2nd 3rd 4th Job NPC Script. [Rev007 Fixed. Add screenshots] - RaGEZONE Forums


oung - [Release]The 1st 2nd 3rd 4th Job NPC Script. [Rev007 Fixed. Add screenshots] - RaGEZONE Forums



By the way. I want to find a unpacker. I want to unpack the
S-chinese client maplestory.exe Who can help me .

PLZ Stay your msn or hotmail . THX.
 
Last edited:
Experienced Elementalist
Joined
Apr 3, 2008
Messages
262
Reaction score
0
Re: [Share]The 1st 2nd Job NPC Script.

yes it worked i sorta customised how to install it cause i already had that npc file but ty !!!
 
Newbie Spellweaver
Joined
Apr 4, 2008
Messages
10
Reaction score
0
Re: [Share]The 1st 2nd Job NPC Script.

how to get it to work on the same npc o_o
 
Newbie Spellweaver
Joined
Apr 4, 2008
Messages
10
Reaction score
0
Re: [Share]The 1st 2nd Job NPC Script.

hao. xiexie.
 
Experienced Elementalist
Joined
Apr 3, 2008
Messages
262
Reaction score
0
Re: [Share]The 1st 2nd Job NPC Script.

worked bi**hes yay
 
Experienced Elementalist
Joined
Apr 2, 2008
Messages
255
Reaction score
0
Re: [Share]The 1st 2nd Job NPC Script.

oung u know grendel(mage instructor) at 005rev dosent make me a mage he gave me some quest :S but bowman warrior and thief are working but grendel has some weird quests
 
Newbie Spellweaver
Joined
Mar 19, 2007
Messages
11
Reaction score
0
Re: [Share]The 1st 2nd Job NPC Script.

does this work ?
 
Master Summoner
Joined
Apr 2, 2008
Messages
538
Reaction score
0
Re: [Share]The 1st 2nd Job NPC Script.

who the hell is storehouseboss and old -.-
 
Newbie Spellweaver
Joined
Nov 28, 2007
Messages
55
Reaction score
0
Re: [Share]The 1st 2nd Job NPC Script.

Oh you made a whole new NPC, I basically did the same thing you did, but I added it on to the current 1st Job NPC, but I havent gotten it to work yet.
 
Newbie Spellweaver
Joined
Oct 20, 2007
Messages
64
Reaction score
3
Re: [Release]The 1st 2nd 3rd 4th full Job NPC Script. [updated]

Now updated.
full job NPC script....
HAHA.
 
Newbie Spellweaver
Joined
Feb 16, 2007
Messages
11
Reaction score
0
Re: [Release]The 1st 2nd 3rd 4th full Job NPC Script. [updated]

can you help me i keep egtting weird npc erros
 
Initiate Mage
Joined
Apr 5, 2008
Messages
3
Reaction score
0
Re: [Release]The 1st 2nd 3rd 4th full Job NPC Script. [updated]

why do i get this error

2>NPCs.obj : error LNK2019: unresolved external symbol "private: static void __cdecl NPCsScripts::npc_1061100(class NPC *)" (?npc_1061100@NPCsScripts@@CAXPAVNPC@@@Z) referenced in function "public: static void __cdecl NPCsScripts::handle(int,class NPC *)" (?handle@NPCsScripts@@SAXHPAVNPC@@@Z)
 
Junior Spellweaver
Joined
Dec 30, 2005
Messages
107
Reaction score
0
Re: [Release]The 1st 2nd 3rd 4th full Job NPC Script. [updated]

My Errors

Code:
3>c:\users\newb\desktop\ms\maplestory\maplestoryserver\maplestoryserver\npcsscripts.h(42) : error C3861: 'npc_1012100': identifier not found
3>MapleIsland.cpp
3>c:\users\newb\desktop\ms\maplestory\maplestoryserver\maplestoryserver\npcsscripts.h(42) : error C3861: 'npc_1012100': identifier not found
 
Status
Not open for further replies.
Back
Top