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:
Then add this to NPCsScripts.h:
under:
And then this:
Under:
Thanks for watching. Please notify me if you encounter any problems.
// Doggsmo
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