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!

Automatic Job Changer

Status
Not open for further replies.
Junior Spellweaver
Joined
Jun 20, 2008
Messages
102
Reaction score
0
Anther Release For Titan! :D

This Version Lets You Change Your Job With Out Clicking Much
Just Make Sure Your level 70 or 120 With Your latest Job Adv
Then When You Click Next It Will Automatically Change Your Job To Your Next Job Adv

Script:

Code:
#include "Players.h"
#include "Player.h"
#include "NPCs.h"
#include "NPCsScripts.h"

void NPCsScripts::npc_9010009(NPC* npc){
	Player* player = npc->getPlayer();
	int state = npc->getState();
	int type = npc->getSelected();
	if(state == 0){
		npc->addText("Level Up To 70 Or 120 But To Lazy To Change Your Job?");
		npc->addText("Well I Can Change Your Job With One Click :D");
		npc->addText("Note Only Available For 3nd Job Adv and Up");
		npc->sendYesNo();
	}else{
		npc->addText("Bye Then");
		npc->sendOK();
		npc->end();
	}
	if(state == 1){
		npc->addText("When You Click Next You Will Be Automaticly Change Your Job");
		npc->addText("Are You Ready?");
		npc->sendNext();
	}
	if(state == 2){
		if(player->getLevel() >= 70 && player->getJob() == 110){//Fighter To Crusader
			player->setJob(111);
			npc->setSp(player->getSp()+1);
			npc->end();
		}
		else if(player->getLevel() >= 120 && player->getJob() == 111){//Crusader To Hero
			player->setJob(112);
			npc->setSp(player->getSp()+1);
			npc->end();
		}
		else if(player->getLevel() >= 70 && player->getJob() == 120){//Page To White Knight
			player->setJob(121);
			npc->setSp(player->getSp()+1);
			npc->end();
		}
		else if(player->getLevel() >= 120 && player->getJob() == 121){//White Knight To Paladin
			player->setJob(122);
			npc->setSp(player->getSp()+1);
			npc->end();
		}
		else if(player->getLevel() >= 70 && player->getJob() == 130){//Spear Man To Dragon Knight
			player->setJob(131);
			npc->setSp(player->getSp()+1);
			npc->end();
		}
		else if(player->getLevel() >= 120 && player->getJob() == 131){//Dark Night To Dark Knight
			player->setJob(132);
			npc->setSp(player->getSp()+1);
			npc->end();
		}
		else if(player->getLevel() >= 70 && player->getJob() == 210){//Fire/Poison Wizard To Fire/Poison Mage
			player->setJob(211);
			npc->setSp(player->getSp()+1);
			npc->end();
		}
		else if(player->getLevel() >= 120 && player->getJob() == 210){//Fire/Poison Mage To Fire/Poison Arch Mage
			player->setJob(121);
			npc->setSp(player->getSp()+1);
			npc->end();
		}
		else if(player->getLevel() >= 70 && player->getJob() == 220){//Ice/Lightning Wizard To Ice/Lightning Mage
			player->setJob(221);
			npc->setSp(player->getSp()+1);
			npc->end();
		}
		else if(player->getLevel() >= 120 && player->getJob() == 221){//Ice/Lightning Mage To Ice/Lightning Arch Mage
			player->setJob(222);
			npc->setSp(player->getSp()+1);
			npc->end();
		}
		else if(player->getLevel() >= 70 && player->getJob() == 230){//Cleric To Priest
			player->setJob(231);
			npc->setSp(player->getSp()+1);
			npc->end();
		}
		else if(player->getLevel() >= 120 && player->getJob() == 231){//Priest To Bishop
			player->setJob(232);
			npc->setSp(player->getSp()+1);
			npc->end();
		}
		else if(player->getLevel() >= 70 && player->getJob() == 310){//Hunter To Ranger
			player->setJob(311);
			npc->setSp(player->getSp()+1);
			npc->end();
		}
		else if(player->getLevel() >= 120 && player->getJob() == 311){//Ranger To Bow Master
			player->setJob(312);
			npc->setSp(player->getSp()+1);
			npc->end();
		}
		else if(player->getLevel() >= 70 && player->getJob() == 320){//Crossbow Man To Sniper
			player->setJob(321);
			npc->setSp(player->getSp()+1);
			npc->end();
		}
		else if(player->getLevel() >= 120 && player->getJob() == 321){//Sniper To Marks Man
			player->setJob(322);
			npc->setSp(player->getSp()+1);
			npc->end();
		}
		else if(player->getLevel() >= 70 && player->getJob() == 410){//Assassin To Hertmit
			player->setJob(411);
			npc->setSp(player->getSp()+1);
			npc->end();
		}
		else if(player->getLevel() >= 120 && player->getJob() == 411){//Hermit To Night Lord
			player->setJob(412);
			npc->setSp(player->getSp()+1);
			npc->end();
		}
		else if(player->getLevel() >= 70 && player->getJob() == 420){//Bandit To Cheif Bandit
			player->setJob(421);
			npc->setSp(player->getSp()+1);
			npc->end();
		}
		else if(player->getLevel() >= 120 && player->getJob() == 421){//Cheif Bandit To Shadower
			player->setJob(422);
			npc->setSp(player->getSp()+1);
			npc->end();
		}
	}
}

Code:
case 9010009: npc_9010009(npc); break;
static void npc_9010009(NPC* npc);
InStruction:
Download The Script
Then Extract Job Changer.cpp and Put It In Maplestoryserver Folder
Then Open MapleStoryServer.sln
Expand The Npc Section And Drag The Job Changer.cpp To The Npc Section

Then Add These Lines To NpcScripts.h
Code:
case 9010009: npc_9010009(npc); break;
static void npc_9010009(NPC* npc);


Compile And Your Done!


All Credit Go To Me Except The Fact That It Was Not My Idea
I Created This From Scratch And Going To Improve It As Much As I Can
 

Attachments

You must be registered for see attachments list
Banned
Banned
Joined
May 30, 2008
Messages
726
Reaction score
1
Re: [Release]Automatic Job Changer

Good release but i rather my players to move and not be lazy
 
Experienced Elementalist
Joined
May 28, 2007
Messages
264
Reaction score
2
Re: [Release]Automatic Job Changer

Good release, this might be useful.
 
Newbie Spellweaver
Joined
Jun 17, 2008
Messages
96
Reaction score
0
Re: [Release]Automatic Job Changer

nice . i should inform this to my titan source friend .
 
Junior Spellweaver
Joined
Jun 20, 2008
Messages
102
Reaction score
0
Re: [Release]Automatic Job Changer

the Script is So Neat huh :D
 
Status
Not open for further replies.
Back
Top