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!

Blue Moon Ms Custom Npcs(TitanMs)

Junior Spellweaver
Joined
Jun 20, 2008
Messages
102
Reaction score
0
Npc 1
Sera
She Allows You To Start As A Level 120 With The User Selected Job
NOTE: Pirate Is Not Added Due To The Fact That It Is Not Complete
Script:
Code:
void npc_main(NPC @npc){
	Player@ player = npc.getPlayer();
	int state = npc.getState();
	int type = npc.getSelected();
	npc.setVariable("type", type);
if(state == 0){
    npc.addText("Hey, Wanna Start As A Pro?");
    npc.addText("Well You Can!");
    npc.addText("Just Click What Job You Want To Be When You Click Next!");
    npc.sendNext();
    }else if(state == 1){
    npc.addText("If You Wish To Not Advance To A Level 120 Then Click No Thanks At The End");
    npc.addText("Click Which Job You Would Like To Be");
    npc.addText("You Will Also Recive The Correct Amount of Ap And Sp To");
    npc.addText("You Will Also Be Transported To Henesys");
    npc.addText("\r\n#L0#Fire/Poison Arch Mage#l\r\n#L1#Ice/Lightning Arch Mage#l\r\n#L2#Bishop#l\r\n#L3#Hero#l\r\n#L4#Dark Knight#l\r\n#L5#Paladin#l\r\n#L6#Night Lord#l\r\n#L7#Shadower#l\r\n#L8#Bow Master#l\r\n#L9#Marks Man#l\r\n#L10#No Thanks#l#k");
    npc.sendSimple();
    }else if(state == 2){
        if(type == 0){
            player.setJob(212);
            player.setSP(366);
            player.setAP(600);
            player.changeMap(100000000);
            npc.addText("You Are Now A Fire/Poison Arch Mage!");
            npc.sendOK();
            npc.end();
        }else if(type == 1){
            player.setJob(222);
            player.setSP(366);
            player.setAP(600);
            player.changeMap(100000000);
            npc.addText("You Are Now A Ice/Lightning Arch Mage!");
            npc.sendOK();
            npc.end();
        }else if(type == 2){
            player.setJob(232);
            player.setSP(366);
            player.setAP(600);
            player.changeMap(100000000);
            npc.addText("You Are Now A Bishop!");
            npc.sendOK();
            npc.end();
        }else if(type == 3){
            player.setJob(112);
            player.setSP(330);
            player.setAP(600);
            player.changeMap(100000000);
            npc.addText("You Are Now A Hero!");
            npc.sendOK();
            npc.end();
        }else if(type == 4){
            player.setJob(132);
            player.setSP(330);
            player.setAP(600);
            player.changeMap(100000000);
            npc.addText("You Are Now A Dark Knight!");
            npc.sendOK();
            npc.end();
        }else if(type == 5){
            player.setJob(122);
            player.setSP(330);
            player.setAP(600);
            player.changeMap(100000000);
            npc.addText("You Are Now A Paladin!");
            npc.sendOK();
            npc.end();
        }else if(type == 6){
            player.setJob(412);
            player.setSP(330);
            player.setAP(600);
            player.changeMap(100000000);
            npc.addText("You Are Now A Night Lord!");
            npc.sendOK();
            npc.end();
        }else if(type == 7){
            player.setJob(422);
            player.setSP(330);
            player.setAP(600);
            player.changeMap(100000000);
            npc.addText("You Are Now A Shadower!");
            npc.sendOK();
            npc.end();
        }else if(type == 8){
            player.setJob(312);
            player.setSP(330);
            player.setAP(600);
            player.changeMap(100000000);
            npc.addText("You Are Now A Bow Master!");
            npc.sendOK();
            npc.end();
        }else if(type == 9){
            player.setJob(322);
            player.setSP(330);
            player.setAP(600);
            player.changeMap(100000000);
            npc.addText("You Are Now A Marks Man!");
            npc.sendOK();
            npc.end();
        }else if(type == 10){
            player.changeMap(3);
            npc.end();
        }
    }
}

Npc 2:
Chef(lith Harbor)
Takes You To Nx Map(Requires Custom Map) Or Rebirth(Requires Npc 1)
Script:
Code:
void npc_main(NPC @npc){
Player@ player = npc.getPlayer();
int state = npc.getState();
int type = npc.getSelected();
npc.setVariable("type", type);
if(state == 0){
    npc.addText("Hey, Wats Up?");
    npc.addText("\r\n#L0#Go to The Nx Grounds(5,000,000 mesos)#l\r\n#L1#Get Reborn#l#k");
    npc.sendSimple();
    }else if(state == 1){
        if(type == 0){
            if(player.getMesos() >= 5000000){
                npc.end();
                player.giveMesos(-5000000);
                player.changeMap(600010000);
            }else{
                npc.addText("You do not have enough mesos.");
                npc.sendOK();
                npc.end();
        }if(type == 2){
            player.changeMap(0);
            npc.end();
        }
    }
}
}

Npc 3
Duey
Automatically Changes Your Job (3/4th Only)
Script:
Code:
void npc_main(NPC @npc){
	Player@ player = npc.getPlayer();
	int state = npc.getState();
	int type = npc.getSelected();
	npc.setVariable("type", type);
    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();
	}
	else if(state == 1){
		npc.addText("When You Click Next You Will Be Automaticly Change Your Job");
		npc.addText("Are You Ready?");
		npc.sendNext();
	}
	else if(state == 2){
		if(player.getLevel() >= 70 && player.getJob() == 110){//Fighter To Crusader
			player.setJob(111);
            player.setSP(player.getSP()+1);
			npc.end();
		}
		else if(player.getLevel() >= 120 && player.getJob() == 111){//Crusader To Hero
			player.setJob(112);
			player.setSP(player.getSP()+1);
			npc.end();
		}
		else if(player.getLevel() >= 70 && player.getJob() == 120){//Page To White Knight
			player.setJob(121);
			player.setSP(player.getSP()+1);
			npc.end();
		}
		else if(player.getLevel() >= 120 && player.getJob() == 121){//White Knight To Paladin
			player.setJob(122);
		    player.setSP(player.getSP()+1);
			npc.end();
		}
		else if(player.getLevel() >= 70 && player.getJob() == 130){//Spear Man To Dragon Knight
			player.setJob(131);
			player.setSP(player.getSP()+1);
			npc.end();
		}
		else if(player.getLevel() >= 120 && player.getJob() == 131){//Dark Night To Dark Knight
			player.setJob(132);
			player.setSP(player.getSP()+1);
			npc.end();
		}
		else if(player.getLevel() >= 70 && player.getJob() == 210){//Fire/Poison Wizard To Fire/Poison Mage
			player.setJob(211);
            player.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);
            player.setSP(player.getSP()+1);
			npc.end();
		}
		else if(player.getLevel() >= 70 && player.getJob() == 220){//Ice/Lightning Wizard To Ice/Lightning Mage
			player.setJob(221);
            player.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);
			player.setSP(player.getSP()+1);;
			npc.end();
		}
		else if(player.getLevel() >= 70 && player.getJob() == 230){//Cleric To Priest
			player.setJob(231);
            player.setSP(player.getSP()+1);
			npc.end();
		}
		else if(player.getLevel() >= 120 && player.getJob() == 231){//Priest To Bishop
			player.setJob(232);
            player.setSP(player.getSP()+1);
			npc.end();
		}
		else if(player.getLevel() >= 70 && player.getJob() == 310){//Hunter To Ranger
			player.setJob(311);
            player.setSP(player.getSP()+1);
			npc.end();
		}
		else if(player.getLevel() >= 120 && player.getJob() == 311){//Ranger To Bow Master
			player.setJob(312);
			player.setSP(player.getSP()+1);
			npc.end();
		}
		else if(player.getLevel() >= 70 && player.getJob() == 320){//Crossbow Man To Sniper
			player.setJob(321);
            player.setSP(player.getSP()+1);
			npc.end();
		}
		else if(player.getLevel() >= 120 && player.getJob() == 321){//Sniper To Marks Man
			player.setJob(322);
			player.setSP(player.getSP()+1);
			npc.end();
		}
		else if(player.getLevel() >= 70 && player.getJob() == 410){//Assassin To Hertmit
			player.setJob(411);
            player.setSP(player.getSP()+1);
			npc.end();
		}
		else if(player.getLevel() >= 120 && player.getJob() == 411){//Hermit To Night Lord
			player.setJob(412);
            player.setSP(player.getSP()+1);
			npc.end();
		}
		else if(player.getLevel() >= 70 && player.getJob() == 420){//Bandit To Cheif Bandit
			player.setJob(421);
            player.setSP(player.getSP()+1);
			npc.end();
		}
		else if(player.getLevel() >= 120 && player.getJob() == 421){//Cheif Bandit To Shadower
			player.setJob(422);
            player.setSP(player.getSP()+1);
			npc.end();
		}
	}
}

Download:
To Install Them On Your Server
Read The READ ME Included In The Folder


Credits:
All Npcs Coded All By My Self

ToDo:
Code A Skill Maxer

Got And Ideas?
I Could Try To Develop Them :p
 
Initiate Mage
Joined
Jul 29, 2008
Messages
23
Reaction score
0
Re: [Release]Blue Moon Ms Custom Npcs(TitanMs)

thanks!!!
looks good i'll try...

W00T first!
 
Initiate Mage
Joined
Jul 29, 2008
Messages
23
Reaction score
0
Re: [Release]Blue Moon Ms Custom Npcs(TitanMs)

thanks!!!
looks good i'll try...

W00T first!
 
Initiate Mage
Joined
Apr 21, 2008
Messages
73
Reaction score
0
Re: [Release]Blue Moon Ms Custom Npcs(TitanMs)

Good NPC's
But i think you should get ur Caps Lock off.
 
Junior Spellweaver
Joined
Jun 20, 2008
Messages
102
Reaction score
0
Re: [Release]Blue Moon Ms Custom Npcs(TitanMs)

Lol i Like To Be Clean And Proper :p
So I Just Cap Em
 
Experienced Elementalist
Member
Joined
Apr 23, 2008
Messages
240
Reaction score
0
Re: [Release]Blue Moon Ms Custom Npcs(TitanMs)

Thats kind of corrupted isn't it?
 
Back
Top