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!

4th Job NPCs. Working.

Newbie Spellweaver
Joined
Apr 7, 2008
Messages
10
Reaction score
0
Hey guys :)

This is my first release and i dont know if anyone have released it yet but here you guys go anyway.

Make a new item in the Source Files directoy to the left in VC++. Name it 4thJob

Add this to the file:
Code:
[SIZE=2][COLOR=#0000ff]#include[/COLOR][/SIZE][SIZE=2][COLOR=#a31515]"NPCs.h"[/COLOR][/SIZE]
[SIZE=2][COLOR=#0000ff]#include[/COLOR][/SIZE][SIZE=2][COLOR=#a31515]"NPCsScripts.h"[/COLOR][/SIZE]
[SIZE=2][COLOR=#0000ff]#include[/COLOR][/SIZE][SIZE=2][COLOR=#a31515]"Player.h"[/COLOR][/SIZE]
[SIZE=2][COLOR=#0000ff]#include[/COLOR][/SIZE][SIZE=2][COLOR=#a31515]"Levels.h"[/COLOR][/SIZE]
 
[SIZE=2][COLOR=#008000]//Created by Doggsmo[/COLOR][/SIZE]
[SIZE=2][COLOR=#0000ff]void[/COLOR][/SIZE][SIZE=2][COLOR=#000000] NPCsScripts::npc_2081100(NPC *npc) [/COLOR][/SIZE][SIZE=2][COLOR=#008000]//4rd Job Warrior[/COLOR][/SIZE]
[SIZE=2]{[/SIZE]
[SIZE=2]Player* player = npc->getPlayer();[/SIZE]
[SIZE=2][COLOR=#0000ff]int[/COLOR][/SIZE][SIZE=2] state = npc->getState();[/SIZE]
[SIZE=2][COLOR=#0000ff]if[/COLOR][/SIZE][SIZE=2](state == 0)[/SIZE]
[SIZE=2]{[/SIZE]
[SIZE=2][COLOR=#0000ff]if[/COLOR][/SIZE][SIZE=2](player->getJob() == 111 || player->getJob() == 121 || player->getJob() == 131)[/SIZE]
[SIZE=2]{[/SIZE]
[SIZE=2][COLOR=#0000ff]if[/COLOR][/SIZE][SIZE=2](player->getLevel() >= 120)[/SIZE]
[SIZE=2]{[/SIZE]
[SIZE=2]npc->addText([/SIZE][SIZE=2][COLOR=#a31515]"Who are you? Hmm, you look like a fine warrior to me. But there is still much to learn. Do you want to become stronger?"[/COLOR][/SIZE][SIZE=2]);[/SIZE]
[SIZE=2]npc->sendYesNo();[/SIZE]
[SIZE=2]}[/SIZE]
[SIZE=2][COLOR=#0000ff]else[/COLOR][/SIZE]
[SIZE=2]{[/SIZE]
[SIZE=2]npc->addText([/SIZE][SIZE=2][COLOR=#a31515]"You must be level 120."[/COLOR][/SIZE][SIZE=2]);[/SIZE]
[SIZE=2]npc->sendOK();[/SIZE]
[SIZE=2]npc->end();[/SIZE]
[SIZE=2]}[/SIZE]
[SIZE=2]}[/SIZE]
[SIZE=2]}[/SIZE]
[SIZE=2][COLOR=#0000ff]else[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]if[/COLOR][/SIZE][SIZE=2](state == 1) {[/SIZE]
[SIZE=2]npc->addText([/SIZE][SIZE=2][COLOR=#a31515]"Now go to Kusco in Leafe to get your skills! Good luck on your journey!"[/COLOR][/SIZE][SIZE=2]);[/SIZE]
[SIZE=2]npc->sendOK();[/SIZE]
[SIZE=2][COLOR=#0000ff]if[/COLOR][/SIZE][SIZE=2](npc->getSelected() == YES)[/SIZE]
[SIZE=2]{[/SIZE]
[SIZE=2][COLOR=#0000ff]if[/COLOR][/SIZE][SIZE=2](player->getJob() == 121) {[/SIZE]
[SIZE=2]player->setJob(122);[/SIZE]
[SIZE=2]}[/SIZE]
[SIZE=2][COLOR=#0000ff]if[/COLOR][/SIZE][SIZE=2](player->getJob() == 111) {[/SIZE]
[SIZE=2]player->setJob(112);[/SIZE]
[SIZE=2]}[/SIZE]
[SIZE=2][COLOR=#0000ff]if[/COLOR][/SIZE][SIZE=2](player->getJob() == 131) {[/SIZE]
[SIZE=2]player->setJob(132);[/SIZE]
[SIZE=2]}[/SIZE]
[SIZE=2]}[/SIZE]
[SIZE=2]npc->setSp(player->getSp()+1);[/SIZE]
[SIZE=2]npc->end();[/SIZE]
[SIZE=2]}[/SIZE]
[SIZE=2]}[/SIZE]
[SIZE=2][COLOR=#0000ff]void[/COLOR][/SIZE][SIZE=2][COLOR=#000000] NPCsScripts::npc_2081300(NPC *npc) [/COLOR][/SIZE][SIZE=2][COLOR=#008000]//4rd Job Bowman[/COLOR][/SIZE]
[SIZE=2]{[/SIZE]
[SIZE=2]Player* player = npc->getPlayer();[/SIZE]
[SIZE=2][COLOR=#0000ff]int[/COLOR][/SIZE][SIZE=2] state = npc->getState();[/SIZE]
[SIZE=2][COLOR=#0000ff]if[/COLOR][/SIZE][SIZE=2](state == 0)[/SIZE]
[SIZE=2]{[/SIZE]
[SIZE=2][COLOR=#0000ff]if[/COLOR][/SIZE][SIZE=2](player->getJob() == 311 || player->getJob() == 321)[/SIZE]
[SIZE=2]{[/SIZE]
[SIZE=2][COLOR=#0000ff]if[/COLOR][/SIZE][SIZE=2](player->getLevel() >= 120)[/SIZE]
[SIZE=2]{[/SIZE]
[SIZE=2]npc->addText([/SIZE][SIZE=2][COLOR=#a31515]"Who are you? Hmm, you look like a fine bowman to me. But there is still much to learn. Do you want to become stronger?"[/COLOR][/SIZE][SIZE=2]);[/SIZE]
[SIZE=2]npc->sendYesNo();[/SIZE]
[SIZE=2]}[/SIZE]
[SIZE=2][COLOR=#0000ff]else[/COLOR][/SIZE]
[SIZE=2]{[/SIZE]
[SIZE=2]npc->addText([/SIZE][SIZE=2][COLOR=#a31515]"You must be level 120."[/COLOR][/SIZE][SIZE=2]);[/SIZE]
[SIZE=2]npc->sendOK();[/SIZE]
[SIZE=2]npc->end();[/SIZE]
[SIZE=2]}[/SIZE]
[SIZE=2]}[/SIZE]
[SIZE=2]}[/SIZE]
[SIZE=2][COLOR=#0000ff]else[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]if[/COLOR][/SIZE][SIZE=2](state == 1) {[/SIZE]
[SIZE=2]npc->addText([/SIZE][SIZE=2][COLOR=#a31515]"Now go to Kusco in Leafe to get your skills! Good luck on your journey!"[/COLOR][/SIZE][SIZE=2]);[/SIZE]
[SIZE=2]npc->sendOK();[/SIZE]
[SIZE=2][COLOR=#0000ff]if[/COLOR][/SIZE][SIZE=2](npc->getSelected() == YES)[/SIZE]
[SIZE=2]{[/SIZE]
[SIZE=2][COLOR=#0000ff]if[/COLOR][/SIZE][SIZE=2](player->getJob() == 321) {[/SIZE]
[SIZE=2]player->setJob(122);[/SIZE]
[SIZE=2]}[/SIZE]
[SIZE=2][COLOR=#0000ff]if[/COLOR][/SIZE][SIZE=2](player->getJob() == 311) {[/SIZE]
[SIZE=2]player->setJob(112);[/SIZE]
[SIZE=2]}[/SIZE]
[SIZE=2]}[/SIZE]
[SIZE=2]npc->setSp(player->getSp()+1);[/SIZE]
[SIZE=2]npc->end();[/SIZE]
[SIZE=2]}[/SIZE]
[SIZE=2]}[/SIZE]
[SIZE=2][COLOR=#0000ff]void[/COLOR][/SIZE][SIZE=2][COLOR=#000000] NPCsScripts::npc_2081200(NPC *npc) [/COLOR][/SIZE][SIZE=2][COLOR=#008000]//4rd Job Magican[/COLOR][/SIZE]
[SIZE=2]{[/SIZE]
[SIZE=2]Player* player = npc->getPlayer();[/SIZE]
[SIZE=2][COLOR=#0000ff]int[/COLOR][/SIZE][SIZE=2] state = npc->getState();[/SIZE]
[SIZE=2][COLOR=#0000ff]if[/COLOR][/SIZE][SIZE=2](state == 0)[/SIZE]
[SIZE=2]{[/SIZE]
[SIZE=2][COLOR=#0000ff]if[/COLOR][/SIZE][SIZE=2](player->getJob() == 211 || player->getJob() == 221 || player->getJob() == 231)[/SIZE]
[SIZE=2]{[/SIZE]
[SIZE=2][COLOR=#0000ff]if[/COLOR][/SIZE][SIZE=2](player->getLevel() >= 120)[/SIZE]
[SIZE=2]{[/SIZE]
[SIZE=2]npc->addText([/SIZE][SIZE=2][COLOR=#a31515]"Who are you? Hmm, you look like a fine magican to me. But there is still much to learn. Do you want to become stronger?"[/COLOR][/SIZE][SIZE=2]);[/SIZE]
[SIZE=2]npc->sendYesNo();[/SIZE]
[SIZE=2]}[/SIZE]
[SIZE=2][COLOR=#0000ff]else[/COLOR][/SIZE]
[SIZE=2]{[/SIZE]
[SIZE=2]npc->addText([/SIZE][SIZE=2][COLOR=#a31515]"You must be level 120."[/COLOR][/SIZE][SIZE=2]);[/SIZE]
[SIZE=2]npc->sendOK();[/SIZE]
[SIZE=2]npc->end();[/SIZE]
[SIZE=2]}[/SIZE]
[SIZE=2]}[/SIZE]
[SIZE=2]}[/SIZE]
[SIZE=2][COLOR=#0000ff]else[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]if[/COLOR][/SIZE][SIZE=2](state == 1) {[/SIZE]
[SIZE=2]npc->addText([/SIZE][SIZE=2][COLOR=#a31515]"Now go to Kusco in Leafe to get your skills! Good luck on your journey!"[/COLOR][/SIZE][SIZE=2]);[/SIZE]
[SIZE=2]npc->sendOK();[/SIZE]
[SIZE=2][COLOR=#0000ff]if[/COLOR][/SIZE][SIZE=2](npc->getSelected() == YES)[/SIZE]
[SIZE=2]{[/SIZE]
[SIZE=2][COLOR=#0000ff]if[/COLOR][/SIZE][SIZE=2](player->getJob() == 221) {[/SIZE]
[SIZE=2]player->setJob(222);[/SIZE]
[SIZE=2]}[/SIZE]
[SIZE=2][COLOR=#0000ff]if[/COLOR][/SIZE][SIZE=2](player->getJob() == 211) {[/SIZE]
[SIZE=2]player->setJob(212);[/SIZE]
[SIZE=2]}[/SIZE]
[SIZE=2][COLOR=#0000ff]if[/COLOR][/SIZE][SIZE=2](player->getJob() == 231) {[/SIZE]
[SIZE=2]player->setJob(232);[/SIZE]
[SIZE=2]}[/SIZE]
[SIZE=2]}[/SIZE]
[SIZE=2]npc->setSp(player->getSp()+1);[/SIZE]
[SIZE=2]npc->end();[/SIZE]
[SIZE=2]}[/SIZE]
[SIZE=2]}[/SIZE]
[SIZE=2][COLOR=#0000ff]void[/COLOR][/SIZE][SIZE=2][COLOR=#000000] NPCsScripts::npc_2081400(NPC *npc) [/COLOR][/SIZE][SIZE=2][COLOR=#008000]//4rd Job Thief[/COLOR][/SIZE]
[SIZE=2]{[/SIZE]
[SIZE=2]Player* player = npc->getPlayer();[/SIZE]
[SIZE=2][COLOR=#0000ff]int[/COLOR][/SIZE][SIZE=2] state = npc->getState();[/SIZE]
[SIZE=2][COLOR=#0000ff]if[/COLOR][/SIZE][SIZE=2](state == 0)[/SIZE]
[SIZE=2]{[/SIZE]
[SIZE=2][COLOR=#0000ff]if[/COLOR][/SIZE][SIZE=2](player->getJob() == 411 || player->getJob() == 421)[/SIZE]
[SIZE=2]{[/SIZE]
[SIZE=2][COLOR=#0000ff]if[/COLOR][/SIZE][SIZE=2](player->getLevel() >= 120)[/SIZE]
[SIZE=2]{[/SIZE]
[SIZE=2]npc->addText([/SIZE][SIZE=2][COLOR=#a31515]"Who are you? Hmm, you look like a fine thief to me. But there is still much to learn. Do you want to become stronger?"[/COLOR][/SIZE][SIZE=2]);[/SIZE]
[SIZE=2]npc->sendYesNo();[/SIZE]
[SIZE=2]}[/SIZE]
[SIZE=2][COLOR=#0000ff]else[/COLOR][/SIZE]
[SIZE=2]{[/SIZE]
[SIZE=2]npc->addText([/SIZE][SIZE=2][COLOR=#a31515]"You must be level 120."[/COLOR][/SIZE][SIZE=2]);[/SIZE]
[SIZE=2]npc->sendOK();[/SIZE]
[SIZE=2]npc->end();[/SIZE]
[SIZE=2]}[/SIZE]
[SIZE=2]}[/SIZE]
[SIZE=2]}[/SIZE]
[SIZE=2][COLOR=#0000ff]else[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]if[/COLOR][/SIZE][SIZE=2](state == 1) {[/SIZE]
[SIZE=2]npc->addText([/SIZE][SIZE=2][COLOR=#a31515]"Now go to Kusco in Leafe to get your skills! Good luck on your journey!"[/COLOR][/SIZE][SIZE=2]);[/SIZE]
[SIZE=2]npc->sendOK();[/SIZE]
[SIZE=2][COLOR=#0000ff]if[/COLOR][/SIZE][SIZE=2](npc->getSelected() == YES)[/SIZE]
[SIZE=2]{[/SIZE]
[SIZE=2][COLOR=#0000ff]if[/COLOR][/SIZE][SIZE=2](player->getJob() == 421) {[/SIZE]
[SIZE=2]player->setJob(422);[/SIZE]
[SIZE=2]}[/SIZE]
[SIZE=2][COLOR=#0000ff]if[/COLOR][/SIZE][SIZE=2](player->getJob() == 411) {[/SIZE]
[SIZE=2]player->setJob(412);[/SIZE]
[SIZE=2]}[/SIZE]
[SIZE=2]}[/SIZE]
[SIZE=2]npc->setSp(player->getSp()+1);[/SIZE]
[SIZE=2]npc->end();[/SIZE]
[SIZE=2]}[/SIZE]
[SIZE=2]}[/SIZE]

Then add this to NPCsScripts.h:
Code:
[SIZE=2][COLOR=#0000ff]case[/COLOR][/SIZE][SIZE=2] 2081100: npc_2081100(npc); [/SIZE][SIZE=2][COLOR=#0000ff]break[/COLOR][/SIZE][SIZE=2]; [/SIZE][SIZE=2][COLOR=#008000]// 4th warrior[/COLOR][/SIZE]
[SIZE=2][COLOR=#0000ff]case[/COLOR][/SIZE][SIZE=2] 2081200: npc_2081200(npc); [/SIZE][SIZE=2][COLOR=#0000ff]break[/COLOR][/SIZE][SIZE=2]; [/SIZE][SIZE=2][COLOR=#008000]// 4th magcian[/COLOR][/SIZE]
[SIZE=2][COLOR=#0000ff]case[/COLOR][/SIZE][SIZE=2] 2081300: npc_2081300(npc); [/SIZE][SIZE=2][COLOR=#0000ff]break[/COLOR][/SIZE][SIZE=2]; [/SIZE][SIZE=2][COLOR=#008000]// 4th bowman[/COLOR][/SIZE]
[SIZE=2][COLOR=#0000ff]case[/COLOR][/SIZE][SIZE=2] 2081400: npc_2081400(npc); [/SIZE][SIZE=2][COLOR=#0000ff]break[/COLOR][/SIZE][SIZE=2]; [/SIZE][SIZE=2][COLOR=#008000]// 4th thief[/COLOR][/SIZE]

under:
Code:
case 9900001: npc_9900001(npc); break;

And then this:
Code:
[SIZE=2][COLOR=#0000ff]static[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]void[/COLOR][/SIZE][SIZE=2] npc_2081100(NPC* npc); [/SIZE][SIZE=2][COLOR=#008000]//4th warrior[/COLOR][/SIZE]
[SIZE=2][COLOR=#0000ff]static[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]void[/COLOR][/SIZE][SIZE=2] npc_2081200(NPC* npc); [/SIZE][SIZE=2][COLOR=#008000]//4th magican[/COLOR][/SIZE]
[SIZE=2][COLOR=#0000ff]static[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]void[/COLOR][/SIZE][SIZE=2] npc_2081300(NPC* npc); [/SIZE][SIZE=2][COLOR=#008000]//4th bowman[/COLOR][/SIZE]
[SIZE=2][COLOR=#0000ff]static[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]void[/COLOR][/SIZE][SIZE=2] npc_2081400(NPC* npc); [/SIZE][SIZE=2][COLOR=#008000]//4th thief[/COLOR][/SIZE]

Under:
Code:
[SIZE=2][COLOR=#0000ff]static[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]void[/COLOR][/SIZE][SIZE=2][COLOR=#000000] npc_9900001(NPC* npc);[/COLOR][/SIZE]

Thanks for watching. Please notify me if you encounter any problems.

// Doggsmo
 
Delta
Loyal Member
Joined
Apr 4, 2008
Messages
951
Reaction score
305
Re: [RELEASE] 4th Job NPCs. Working.

Great job =) and don't worry anyone that either has released it or has it. It just plainly isnt working so good work.
 
Junior Spellweaver
Joined
Apr 6, 2008
Messages
116
Reaction score
0
Re: [RELEASE] 4th Job NPCs. Working.

I think this are the real ones (didn't check) so in Leafre
 
Newbie Spellweaver
Joined
Jul 9, 2007
Messages
47
Reaction score
0
Re: [RELEASE] 4th Job NPCs. Working.

My 4th Job NPC actually gives you all the skills when you make your job.

why not release it then , to save others the time to add it all themselves
 
Junior Spellweaver
Joined
Apr 10, 2008
Messages
176
Reaction score
3
Re: [RELEASE] 4th Job NPCs. Working.

where can i find the npc in leafre?
 
Experienced Elementalist
Joined
Apr 3, 2008
Messages
290
Reaction score
0
Re: [RELEASE] 4th Job NPCs. Working.

the 4th job npcs are like 2 portals left of leafre but i dont know if that portal works yet ? at least not for me it brings me to ellinia =[

annd kusco is the storage guy under cody in leafre =P
 
Junior Spellweaver
Joined
Apr 10, 2008
Messages
176
Reaction score
3
Re: [RELEASE] 4th Job NPCs. Working.

doent work for me. i click on teh npc, nothing happens
 
Newbie Spellweaver
Joined
Dec 23, 2007
Messages
89
Reaction score
8
Re: [RELEASE] 4th Job NPCs. Working.

the 4th job npcs are like 2 portals left of leafre but i dont know if that portal works yet ? at least not for me it brings me to ellinia =[

annd kusco is the storage guy under cody in leafre =P

You're wrong, 2 maps to the left is the teleport to elinia you have to drop there some seed forgot the name.
The teleport to the 4th job NPCs is in Valley of the Antelope but it doesn't works so you have to make a NPC who teleports there.

And someone released that Kusco will sell most 4th job skills.
 
Junior Spellweaver
Joined
Apr 10, 2008
Messages
176
Reaction score
3
Re: [RELEASE] 4th Job NPCs. Working.

sure teleporter works but the npcs arent working
 
Newbie Spellweaver
Joined
Apr 15, 2008
Messages
29
Reaction score
0
Re: [RELEASE] 4th Job NPCs. Working.

Someone else released 4th job NPCs that worked fine for me but good work seeing a some things work for some and others don't. By the way for anyone who wants to know the NPCs are at Leafre: Forest of the Priest.
 
Newbie Spellweaver
Joined
Apr 7, 2008
Messages
10
Reaction score
0
Re: [RELEASE] 4th Job NPCs. Working.

Does all NPCs not work or is it only any specific NPC?

Btw the portal works for me and sure i can make a NPC make u go to Forest of the Priest.
 
Newbie Spellweaver
Joined
Dec 23, 2007
Messages
89
Reaction score
8
Re: [RELEASE] 4th Job NPCs. Working.

You need to code the portal to make it work :O its like FM portals at the start and scrolls, it stuck your char and you have to dc
 
Newbie Spellweaver
Joined
Apr 7, 2008
Messages
10
Reaction score
0
Re: [RELEASE] 4th Job NPCs. Working.

oO

I didnt know. Ima try to fix that. Gonna take some npc from Leafre then ;P
 
Experienced Elementalist
Joined
Apr 13, 2008
Messages
211
Reaction score
0
Re: [RELEASE] 4th Job NPCs. Working.

can you click edit->save without editing anything?
it will fix the text in {code}
 
Newbie Spellweaver
Joined
Aug 8, 2008
Messages
54
Reaction score
0
Re: [RELEASE] 4th Job NPCs. Working.

hey guys can u teach me how to add codes in my cpp stuff becauz everytime i add a code and build it after that it always says 1 failed and 2 or 3 up to date so please help me
 
Newbie Spellweaver
Joined
Aug 8, 2008
Messages
54
Reaction score
0
Re: [RELEASE] 4th Job NPCs. Working.

hey guys can u tell me how to add codes in my cpp becauz everytime i add a code in and then i build it it always says 1 failed and like 2 or 3 up to date
 
Back
Top