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!

job command auto givejob

Newbie Spellweaver
Joined
Jun 6, 2008
Messages
59
Reaction score
3
umm....

sorry im can not speak to english -_-
im from korea..

3,4 is job Autogive..
Second is job Help command :#job 0

commandprocessor.java in add

understand ;;;?


} else if (splitted[0].equals("#job")) {
if (c.getPlayer().getJob().equals(net.sf.odinms.clien t.MapleJob.WARRIOR)
||c.getPlayer().getJob().equals(net.sf.odinms.clie nt.MapleJob.MAGICIAN)
||c.getPlayer().getJob().equals(net.sf.odinms.clie nt.MapleJob.BOWMAN)
||c.getPlayer().getJob().equals(net.sf.odinms.clie nt.MapleJob.THIEF)) {
int twojobMeso = c.getChannelServer().gettwojobMeso();
int Level = 30;

if(c.getPlayer().getMeso() < twojobMeso) {
mc.dropMessage( twojobMeso+"tribal meso");
} else if (c.getPlayer().getLevel() < Level) {
mc.dropMessage( Level+"levels are insufficient.");
} else {
c.getPlayer().gainMeso(-twojobMeso, false);
if(c.getPlayer().getJob().equals(net.sf.odinms.cli ent.MapleJob.WARRIOR)) {
if (splitted[1].equals("1")) {
c.getPlayer().changeJob(MapleJob.getById(110));
mc.dropMessage("[Fighter]is gain Job");
} else if (splitted[1].equals("2")) {
c.getPlayer().changeJob(MapleJob.getById(120));
mc.dropMessage("[Page]is gain Job");
} else if (splitted[1].equals("3")) {
c.getPlayer().changeJob(MapleJob.getById(130));
mc.dropMessage("[SpearMan]is gain Job");
} else if (splitted[1].equals("0")) {
mc.dropMessage("Fighter : 1 / Page : 2 / SpearMan : 3");
}
} else if(c.getPlayer().getJob().equals(net.sf.odinms.cli ent.MapleJob.MAGICIAN)) {
if (splitted[1].equals("1")) {
c.getPlayer().changeJob(MapleJob.getById(210));
mc.dropMessage("[Wizard]is gain Job");
} else if (splitted[1].equals("2")) {
c.getPlayer().changeJob(MapleJob.getById(220));
mc.dropMessage("[Wizard]is gain Job");
} else if (splitted[1].equals("3")) {
c.getPlayer().changeJob(MapleJob.getById(230));
mc.dropMessage("[Cleric]is gain Job");
} else if (splitted[1].equals("0")) {
mc.dropMessage("F,P Wizard : 1 / I,L Wizard : 2 / Cleric : 3");
}
} else if(c.getPlayer().getJob().equals(net.sf.odinms.cli ent.MapleJob.THIEF)) {
if (splitted[1].equals("1")) {
c.getPlayer().changeJob(MapleJob.getById(410));
mc.dropMessage("[어쎄신]is gain Job");
} else if (splitted[1].equals("2")) {
c.getPlayer().changeJob(MapleJob.getById(420));
mc.dropMessage("[시프]is gain Job");
} else if (splitted[1].equals("0")) {
mc.dropMessage("Assassin : 1번 / Thief : 2");
}
} else if(c.getPlayer().getJob().equals(net.sf.odinms.cli ent.MapleJob.BOWMAN)) {
if (splitted[1].equals("1")) {
c.getPlayer().changeJob(MapleJob.getById(310));
mc.dropMessage("[Hunter]is gain Job");
} else if (splitted[1].equals("2")) {
c.getPlayer().changeJob(MapleJob.getById(320));
mc.dropMessage("[CrossBowman]is gain Job");
} else if (splitted[1].equals("0")) {
mc.dropMessage("Hunter : 1번 / CrossBowman : 2번");
}
}
}
} else if(c.getPlayer().getJob().equals(net.sf.odinms.cli ent.MapleJob.FIGHTER)
||c.getPlayer().getJob().equals(net.sf.odinms.clie nt.MapleJob.PAGE)
||c.getPlayer().getJob().equals(net.sf.odinms.clie nt.MapleJob.SPEARMAN)
||c.getPlayer().getJob().equals(net.sf.odinms.clie nt.MapleJob.IL_WIZARD)
||c.getPlayer().getJob().equals(net.sf.odinms.clie nt.MapleJob.FP_WIZARD)
||c.getPlayer().getJob().equals(net.sf.odinms.clie nt.MapleJob.CLERIC)
||c.getPlayer().getJob().equals(net.sf.odinms.clie nt.MapleJob.HUNTER)
||c.getPlayer().getJob().equals(net.sf.odinms.clie nt.MapleJob.CROSSBOWMAN)
||c.getPlayer().getJob().equals(net.sf.odinms.clie nt.MapleJob.ASSASSIN)
||c.getPlayer().getJob().equals(net.sf.odinms.clie nt.MapleJob.BANDIT)) {

int threejobMeso = c.getChannelServer().getthreejobMeso();
int Level = 70;

if(c.getPlayer().getMeso() < threejobMeso) {
mc.dropMessage( threejobMeso+"tribal meso");
} else if (c.getPlayer().getLevel() < Level) {
mc.dropMessage( Level+"levels are insufficient.");
} else {
c.getPlayer().gainMeso(-threejobMeso, false);
if(c.getPlayer().getJob().equals(net.sf.odinms.cli ent.MapleJob.FIGHTER)) {
c.getPlayer().changeJob(MapleJob.getById(111));
mc.dropMessage("[Crusader]is gain Job");
} else if(c.getPlayer().getJob().equals(net.sf.odinms.cli ent.MapleJob.PAGE)) {
c.getPlayer().changeJob(MapleJob.getById(121));
mc.dropMessage("[Night]is gain Job");
} else if(c.getPlayer().getJob().equals(net.sf.odinms.cli ent.MapleJob.SPEARMAN)) {
c.getPlayer().changeJob(MapleJob.getById(131));
mc.dropMessage("[Dragon Knight]is gain Job");
} else if(c.getPlayer().getJob().equals(net.sf.odinms.cli ent.MapleJob.FP_WIZARD)) {
c.getPlayer().changeJob(MapleJob.getById(211));
mc.dropMessage("[Mage]is gain Job");
} else if(c.getPlayer().getJob().equals(net.sf.odinms.cli ent.MapleJob.IL_WIZARD)) {
c.getPlayer().changeJob(MapleJob.getById(221));
mc.dropMessage("[Mage]is gain Job");
} else if(c.getPlayer().getJob().equals(net.sf.odinms.cli ent.MapleJob.CLERIC)) {
c.getPlayer().changeJob(MapleJob.getById(231));
mc.dropMessage("[Priest]is gain Job");
} else if(c.getPlayer().getJob().equals(net.sf.odinms.cli ent.MapleJob.HUNTER)) {
c.getPlayer().changeJob(MapleJob.getById(311));
mc.dropMessage("[Ranger]is gain Job");
} else if(c.getPlayer().getJob().equals(net.sf.odinms.cli ent.MapleJob.CROSSBOWMAN)) {
c.getPlayer().changeJob(MapleJob.getById(321));
mc.dropMessage("[Sniper]is gain Job");
} else if(c.getPlayer().getJob().equals(net.sf.odinms.cli ent.MapleJob.ASSASSIN)) {
c.getPlayer().changeJob(MapleJob.getById(411));
mc.dropMessage("[Hermit]is gain Job");
} else if(c.getPlayer().getJob().equals(net.sf.odinms.cli ent.MapleJob.BANDIT)) {
c.getPlayer().changeJob(MapleJob.getById(421));
mc.dropMessage("[ThiefMaster]is gain Job");
}
}
} else if( c.getPlayer().getJob().equals(net.sf.odinms.client .MapleJob.CRUSADER)
||c.getPlayer().getJob().equals(net.sf.odinms.clie nt.MapleJob.WHITEKNIGHT)
||c.getPlayer().getJob().equals(net.sf.odinms.clie nt.MapleJob.DRAGONKNIGHT)
||c.getPlayer().getJob().equals(net.sf.odinms.clie nt.MapleJob.IL_MAGE)
||c.getPlayer().getJob().equals(net.sf.odinms.clie nt.MapleJob.FP_MAGE)
||c.getPlayer().getJob().equals(net.sf.odinms.clie nt.MapleJob.PRIEST)
||c.getPlayer().getJob().equals(net.sf.odinms.clie nt.MapleJob.RANGER)
||c.getPlayer().getJob().equals(net.sf.odinms.clie nt.MapleJob.SNIPER)
||c.getPlayer().getJob().equals(net.sf.odinms.clie nt.MapleJob.HERMIT)
||c.getPlayer().getJob().equals(net.sf.odinms.clie nt.MapleJob.CHIEFBANDIT)) {

int fourjobMeso = c.getChannelServer().getfourjobMeso();
int Level = 120;

if(c.getPlayer().getMeso() < fourjobMeso) {
mc.dropMessage( fourjobMeso+"tribal meso");
} else if (c.getPlayer().getLevel() < Level) {
mc.dropMessage( Level+"levels are insufficient.");
} else {
c.getPlayer().gainMeso(-fourjobMeso, false);
if(c.getPlayer().getJob().equals(net.sf.odinms.cli ent.MapleJob.CRUSADER)) {
c.getPlayer().changeJob(MapleJob.getById(112));
mc.dropMessage("[Hero]is gain Job");
} else if(c.getPlayer().getJob().equals(net.sf.odinms.cli ent.MapleJob.WHITEKNIGHT)) {
c.getPlayer().changeJob(MapleJob.getById(122));
mc.dropMessage("[Paladin]is gain Job");
} else if(c.getPlayer().getJob().equals(net.sf.odinms.cli ent.MapleJob.DRAGONKNIGHT)) {
c.getPlayer().changeJob(MapleJob.getById(132));
mc.dropMessage("[DarkKnight]is gain Job");
} else if(c.getPlayer().getJob().equals(net.sf.odinms.cli ent.MapleJob.FP_MAGE)) {
c.getPlayer().changeJob(MapleJob.getById(212));
mc.dropMessage("[ArchMage]is gain Job");
} else if(c.getPlayer().getJob().equals(net.sf.odinms.cli ent.MapleJob.IL_MAGE)) {
c.getPlayer().changeJob(MapleJob.getById(222));
mc.dropMessage("[ArchMage]is gain Job");
} else if(c.getPlayer().getJob().equals(net.sf.odinms.cli ent.MapleJob.PRIEST)) {
c.getPlayer().changeJob(MapleJob.getById(232));
mc.dropMessage("[Bishop]is gain Job");
} else if(c.getPlayer().getJob().equals(net.sf.odinms.cli ent.MapleJob.RANGER)) {
c.getPlayer().changeJob(MapleJob.getById(312));
mc.dropMessage("[Bowmaster]is gain Job");
} else if(c.getPlayer().getJob().equals(net.sf.odinms.cli ent.MapleJob.SNIPER)) {
c.getPlayer().changeJob(MapleJob.getById(322));
mc.dropMessage("[CrossBowMaster]is gain Job");
} else if(c.getPlayer().getJob().equals(net.sf.odinms.cli ent.MapleJob.HERMIT)) {
c.getPlayer().changeJob(MapleJob.getById(412));
mc.dropMessage("[KnightLoad]is gain Job");
} else if(c.getPlayer().getJob().equals(net.sf.odinms.cli ent.MapleJob.CHIEFBANDIT)) {
c.getPlayer().changeJob(MapleJob.getById(422));
mc.dropMessage("[shadower]is gain Job");
}
}
}
 
Newbie Spellweaver
Joined
Apr 13, 2008
Messages
16
Reaction score
0
Re: #job command auto givejob

You Change It
어쎄신 -> ASSASSIN
시프 -> THIEF
1번 -> 1st
2번 -> 2nd
 
Newbie Spellweaver
Joined
Jul 1, 2008
Messages
5
Reaction score
0
Re: [Release] #job command auto givejob

The see Korean on foreign

they see Chinese, Invisible Korean

they can't see Korean


-->안녕

-->麻當#

it's good Script :D !!

TK
 
Newbie Spellweaver
Joined
May 12, 2008
Messages
87
Reaction score
0
Re: [Release] #job command auto givejob

can u do this more orgenize
 
Newbie Spellweaver
Joined
Jun 19, 2008
Messages
35
Reaction score
0
Re: [Release] #job command auto givejob

give the guy a break. hes from korea and his english is not great.
but its not end of the world. o_O;

Also Thanks ;D.
 
Isenheart .
Loyal Member
Joined
Jul 26, 2008
Messages
476
Reaction score
0
Re: [Release] #job command auto givejob

When people dosn't insert
Code:
 or [quote] i'm getting confused x]
 
Newbie Spellweaver
Joined
Jun 6, 2008
Messages
59
Reaction score
3
Re: [Release] #job command auto givejob

the see korean on foreign

they see chinese, invisible korean

they can't see korean


-->안녕

-->麻當#

it's good script :d !!

Tk


thanq~~
 
Custom Title Activated
Loyal Member
Joined
Apr 29, 2008
Messages
1,297
Reaction score
509
Re: [Release] #job command auto givejob

Reorganized to be more neat
I think this is useful xP
Code:
	} else if (splitted[0].equals("@job")) {
		if (c.getPlayer().getJob().equals(net.sf.odinms.client.MapleJob.WARRIOR)
||c.getPlayer().getJob().equals(net.sf.odinms.clie nt.MapleJob.MAGICIAN)
||c.getPlayer().getJob().equals(net.sf.odinms.clie nt.MapleJob.BOWMAN)
||c.getPlayer().getJob().equals(net.sf.odinms.clie nt.MapleJob.THIEF)) {
int Level = 30;

		} if (c.getPlayer().getLevel() < Level) {
			mc.dropMessage("Your not in the right level to change your job");
		} else {
			if(c.getPlayer().getJob().equals(net.sf.odinms.client.MapleJob.WARRIOR)) {
				if (splitted[1].equals("1")) {
					c.getPlayer().changeJob(MapleJob.getById(110));
					mc.dropMessage("[Fighter]is your current job now");
				} else if (splitted[1].equals("2")) {
					c.getPlayer().changeJob(MapleJob.getById(120));
					mc.dropMessage("[Page]is your current job now");
				} else if (splitted[1].equals("3")) {
					c.getPlayer().changeJob(MapleJob.getById(130));
					mc.dropMessage("[SpearMan]is your current job now");
				} else if (splitted[1].equals("0")) {
					mc.dropMessage("Fighter : 1 / Page : 2 / SpearMan : 3");
			}
			} else if(c.getPlayer().getJob().equals(net.sf.odinms.client.MapleJob.MAGICIAN)) {
				if (splitted[1].equals("1")) {
					c.getPlayer().changeJob(MapleJob.getById(210));
					mc.dropMessage("[Wizard]is your current job now");
				} else if (splitted[1].equals("2")) {
					c.getPlayer().changeJob(MapleJob.getById(220));
					mc.dropMessage("[Wizard]is your current job now");
				} else if (splitted[1].equals("3")) {
					c.getPlayer().changeJob(MapleJob.getById(230));
					mc.dropMessage("[Cleric]is your current job now");
			} else if (splitted[1].equals("0")) {
					mc.dropMessage("F - P Wizard : 1 / I - L Wizard : 2 / Cleric : 3");
			}
			} else if(c.getPlayer().getJob().equals(net.sf.odinms.client.MapleJob.THIEF)) {
				if (splitted[1].equals("1")) {
					c.getPlayer().changeJob(MapleJob.getById(410));
					mc.dropMessage("[Assasin]is your current job now");
				} else if (splitted[1].equals("2")) {
					c.getPlayer().changeJob(MapleJob.getById(420));
					mc.dropMessage("[Bandit]is your current job now");
				} else if (splitted[1].equals("0")) {
					mc.dropMessage("Assassin : 1 / Thief : 2");
			}
				} else if(c.getPlayer().getJob().equals(net.sf.odinms.client.MapleJob.BOWMAN)) {
					if (splitted[1].equals("1")) {
						c.getPlayer().changeJob(MapleJob.getById(310));
						mc.dropMessage("[Hunter]is your current job now");
					} else if (splitted[1].equals("2")) {
						c.getPlayer().changeJob(MapleJob.getById(320));
						mc.dropMessage("[Crossbowman]is your current job now");
					} else if (splitted[1].equals("0")) {
						mc.dropMessage("Hunter : 1 / CrossBowman : 2");
			}
		}
	}
} else if(c.getPlayer().getJob().equals(net.sf.odinms.client.MapleJob.FIGHTER)
||c.getPlayer().getJob().equals(net.sf.odinms.clie nt.MapleJob.PAGE)
||c.getPlayer().getJob().equals(net.sf.odinms.clie nt.MapleJob.SPEARMAN)
||c.getPlayer().getJob().equals(net.sf.odinms.clie nt.MapleJob.IL_WIZARD)
||c.getPlayer().getJob().equals(net.sf.odinms.clie nt.MapleJob.FP_WIZARD)
||c.getPlayer().getJob().equals(net.sf.odinms.clie nt.MapleJob.CLERIC)
||c.getPlayer().getJob().equals(net.sf.odinms.clie nt.MapleJob.HUNTER)
||c.getPlayer().getJob().equals(net.sf.odinms.clie nt.MapleJob.CROSSBOWMAN)
||c.getPlayer().getJob().equals(net.sf.odinms.clie nt.MapleJob.ASSASSIN)
||c.getPlayer().getJob().equals(net.sf.odinms.clie nt.MapleJob.BANDIT)) {
int Level = 70;

} if (c.getPlayer().getLevel() < Level) {
	mc.dropMessage("Your not in the right level to change your job");
	if(c.getPlayer().getJob().equals(net.sf.odinms.client.MapleJob.FIGHTER)) {
		c.getPlayer().changeJob(MapleJob.getById(111));
		mc.dropMessage("[Crusader]is your current job now");
	} else if(c.getPlayer().getJob().equals(net.sf.odinms.client.MapleJob.PAGE)) {
		c.getPlayer().changeJob(MapleJob.getById(121));
		mc.dropMessage("[Night]is your current job now");
	} else if(c.getPlayer().getJob().equals(net.sf.odinms.client.MapleJob.SPEARMAN)) {
		c.getPlayer().changeJob(MapleJob.getById(131));
		mc.dropMessage("[Dragon Knight]is your current job now");
	} else if(c.getPlayer().getJob().equals(net.sf.odinms.client.MapleJob.FP_WIZARD)) {
		c.getPlayer().changeJob(MapleJob.getById(211));
		mc.dropMessage("[Mage]is your current job now");
	} else if(c.getPlayer().getJob().equals(net.sf.odinms.client.MapleJob.IL_WIZARD)) {
		c.getPlayer().changeJob(MapleJob.getById(221));
		mc.dropMessage("[Mage]is your current job now");
	} else if(c.getPlayer().getJob().equals(net.sf.odinms.client.MapleJob.CLERIC)) {
		c.getPlayer().changeJob(MapleJob.getById(231));
		mc.dropMessage("[Priest]is your current job now");
	} else if(c.getPlayer().getJob().equals(net.sf.odinms.client.MapleJob.HUNTER)) {
		c.getPlayer().changeJob(MapleJob.getById(311));
		mc.dropMessage("[Ranger]is your current job now");
	} else if(c.getPlayer().getJob().equals(net.sf.odinms.client.MapleJob.CROSSBOWMAN)) {
		c.getPlayer().changeJob(MapleJob.getById(321));
		mc.dropMessage("[Sniper]is your current job now");
	} else if(c.getPlayer().getJob().equals(net.sf.odinms.client.MapleJob.ASSASSIN)) {
		c.getPlayer().changeJob(MapleJob.getById(411));
		mc.dropMessage("[Hermit]is your current job now");
	} else if(c.getPlayer().getJob().equals(net.sf.odinms.client.MapleJob.BANDIT)) {
		c.getPlayer().changeJob(MapleJob.getById(421));
		mc.dropMessage("[Chief Bandit]is your current job now");
		}
	}
} else if( c.getPlayer().getJob().equals(net.sf.odinms.client .MapleJob.CRUSADER)
||c.getPlayer().getJob().equals(net.sf.odinms.clie nt.MapleJob.WHITEKNIGHT)
||c.getPlayer().getJob().equals(net.sf.odinms.clie nt.MapleJob.DRAGONKNIGHT)
||c.getPlayer().getJob().equals(net.sf.odinms.clie nt.MapleJob.IL_MAGE)
||c.getPlayer().getJob().equals(net.sf.odinms.clie nt.MapleJob.FP_MAGE)
||c.getPlayer().getJob().equals(net.sf.odinms.clie nt.MapleJob.PRIEST)
||c.getPlayer().getJob().equals(net.sf.odinms.clie nt.MapleJob.RANGER)
||c.getPlayer().getJob().equals(net.sf.odinms.clie nt.MapleJob.SNIPER)
||c.getPlayer().getJob().equals(net.sf.odinms.clie nt.MapleJob.HERMIT)
||c.getPlayer().getJob().equals(net.sf.odinms.clie nt.MapleJob.CHIEFBANDIT)) {
int Level = 120;


	} if (c.getPlayer().getLevel() < Level) {
		mc.dropMessage("Your not in the right level to change your job");
	} else {
		if(c.getPlayer().getJob().equals(net.sf.odinms.client.MapleJob.CRUSADER)) {
			c.getPlayer().changeJob(MapleJob.getById(112));
			mc.dropMessage("[Hero]is your current job now");
		} else if(c.getPlayer().getJob().equals(net.sf.odinms.client.MapleJob.WHITEKNIGHT)) {
			c.getPlayer().changeJob(MapleJob.getById(122));
			mc.dropMessage("[Paladin]is your current job now");
		} else if(c.getPlayer().getJob().equals(net.sf.odinms.client.MapleJob.DRAGONKNIGHT)) {
			c.getPlayer().changeJob(MapleJob.getById(132));
			mc.dropMessage("[DarkKnight]is your current job now");
		} else if(c.getPlayer().getJob().equals(net.sf.odinms.client.MapleJob.FP_MAGE)) {
			c.getPlayer().changeJob(MapleJob.getById(212));
			mc.dropMessage("[ArchMage]is your current job now");
		} else if(c.getPlayer().getJob().equals(net.sf.odinms.client.MapleJob.IL_MAGE)) {
			c.getPlayer().changeJob(MapleJob.getById(222));
			mc.dropMessage("[ArchMage]is your current job now");
		} else if(c.getPlayer().getJob().equals(net.sf.odinms.client.MapleJob.PRIEST)) {
			c.getPlayer().changeJob(MapleJob.getById(232));
			mc.dropMessage("[Bishop]is your current job now");
		} else if(c.getPlayer().getJob().equals(net.sf.odinms.client.MapleJob.RANGER)) {
			c.getPlayer().changeJob(MapleJob.getById(312));
			mc.dropMessage("[Bowmaster]is your current job now");
		} else if(c.getPlayer().getJob().equals(net.sf.odinms.client.MapleJob.SNIPER)) {
			c.getPlayer().changeJob(MapleJob.getById(322));
			mc.dropMessage("[CrossBowmaster]is your current job now");
		} else if(c.getPlayer().getJob().equals(net.sf.odinms.client.MapleJob.HERMIT)) {
			c.getPlayer().changeJob(MapleJob.getById(412));
			mc.dropMessage("[KnightLord]is your current job now");
		} else if(c.getPlayer().getJob().equals(net.sf.odinms.client.MapleJob.CHIEFBANDIT)) {
			c.getPlayer().changeJob(MapleJob.getById(422));
			mc.dropMessage("[Shadower]is your current job now");
		}
	}
}
 
Junior Spellweaver
Joined
May 20, 2008
Messages
153
Reaction score
0
Re: [Release] #job command auto givejob

감사

Good work
 
Back
Top