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!

#stat command Auto Stat distribution

Newbie Spellweaver
Joined
Jun 6, 2008
Messages
59
Reaction score
3
hi~ im from Korean...
made a 'Return'

commandProcessor.java in

add

} else if (splitted[0].equals("#stat")) {
if(c.getPlayer().getJob().equals(net.sf.odinms.cli ent.MapleJob.WARRIOR)
||c.getPlayer().getJob().equals(net.sf.odinms.clie nt.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.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.HERO)
||c.getPlayer().getJob().equals(net.sf.odinms.clie nt.MapleJob.PALADIN)
||c.getPlayer().getJob().equals(net.sf.odinms.clie nt.MapleJob.DARKKNIGHT)) {
int warStr = c.getChannelServer().getwarStr();
int warDex = c.getChannelServer().getwarDex();
int statLevel = c.getChannelServer().getstatLevel();

if (c.getPlayer().getLevel() < statLevel) {
mc.dropMessage( statLevel+"레벨이 아니십니다.");
} else if (player.getDex() >= 100) {
player.setStr(player.getStr() + 5);
player.setRemainingAp(player.getRemainingAp() - 5);
player.updateSingleStat(MapleStat.STR, player.getStr() + 5);
player.updateSingleStat(MapleStat.AVAILABLEAP, player.getRemainingAp() - 5);
mc.dropMessage("근력 5개 를 올렸습니다.");
} else if (player.getRemainingAp() < (warStr+warDex)) {
mc.dropMessage( (warStr+warDex)+"개의 SP 가 부족합니다.");
} else {
player.setStr(player.getStr() + warStr);
player.setDex(player.getDex() + warDex);
player.setRemainingAp(player.getRemainingAp() -(warStr+warDex));
player.updateSingleStat(MapleStat.STR, player.getStr());
player.updateSingleStat(MapleStat.DEX, player.getDex());
player.updateSingleStat(MapleStat.AVAILABLEAP, player.getRemainingAp());
}
} else if(c.getPlayer().getJob().equals(net.sf.odinms.cli ent.MapleJob.MAGICIAN)
||c.getPlayer().getJob().equals(net.sf.odinms.clie nt.MapleJob.FP_WIZARD)
||c.getPlayer().getJob().equals(net.sf.odinms.clie nt.MapleJob.IL_WIZARD)
||c.getPlayer().getJob().equals(net.sf.odinms.clie nt.MapleJob.CLERIC)
||c.getPlayer().getJob().equals(net.sf.odinms.clie nt.MapleJob.FP_MAGE)
||c.getPlayer().getJob().equals(net.sf.odinms.clie nt.MapleJob.IL_MAGE)
||c.getPlayer().getJob().equals(net.sf.odinms.clie nt.MapleJob.PRIEST)
||c.getPlayer().getJob().equals(net.sf.odinms.clie nt.MapleJob.FP_ARCHMAGE)
||c.getPlayer().getJob().equals(net.sf.odinms.clie nt.MapleJob.IL_ARCHMAGE)
||c.getPlayer().getJob().equals(net.sf.odinms.clie nt.MapleJob.BISHOP)) {
int magInt = c.getChannelServer().getmagInt();
int magLuk = c.getChannelServer().getmagLuk();
int statLevel = c.getChannelServer().getstatLevel();

if (c.getPlayer().getLevel() < statLevel) {
mc.dropMessage( statLevel+"레벨이 아니십니다.");
} else if (player.getLuk() >= 113) {
player.setInt(player.getInt() + 5);
player.setRemainingAp(player.getRemainingAp() - 5);
player.updateSingleStat(MapleStat.INT, player.getInt() + 5);
player.updateSingleStat(MapleStat.AVAILABLEAP, player.getRemainingAp() - 5);
mc.dropMessage("지능 5개 를 올렸습니다.");
} else if (player.getRemainingAp() < (magInt+magLuk)) {
mc.dropMessage( (magInt+magLuk)+"개의 SP 가 부족합니다.");
} else {
player.setInt(player.getInt() + magInt);
player.setLuk(player.getLuk() + magLuk);
player.setRemainingAp(player.getRemainingAp() -(magInt+magLuk));
player.updateSingleStat(MapleStat.INT, player.getInt());
player.updateSingleStat(MapleStat.LUK, player.getLuk());
player.updateSingleStat(MapleStat.AVAILABLEAP, player.getRemainingAp());
}
} else if(c.getPlayer().getJob().equals(net.sf.odinms.cli ent.MapleJob.BOWMAN)
||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.RANGER)
||c.getPlayer().getJob().equals(net.sf.odinms.clie nt.MapleJob.CRUSADER)
||c.getPlayer().getJob().equals(net.sf.odinms.clie nt.MapleJob.SNIPER)
||c.getPlayer().getJob().equals(net.sf.odinms.clie nt.MapleJob.BOWMASTER)
||c.getPlayer().getJob().equals(net.sf.odinms.clie nt.MapleJob.CROSSBOWMASTER)) {
int bowDex = c.getChannelServer().getbowDex();
int bowStr = c.getChannelServer().getbowStr();
int statLevel = c.getChannelServer().getstatLevel();

if (c.getPlayer().getLevel() < statLevel) {
mc.dropMessage( statLevel+"레벨이 아니십니다.");
} else if (player.getStr() >= 115) {
player.setDex(player.getDex() + 5);
player.setRemainingAp(player.getRemainingAp() - 5);
player.updateSingleStat(MapleStat.DEX, player.getDex() + 5);
player.updateSingleStat(MapleStat.AVAILABLEAP, player.getRemainingAp() - 5);
mc.dropMessage("민첩 5개 를 올렸습니다.");
} else if (player.getRemainingAp() < (bowDex+bowStr)) {
mc.dropMessage( (bowDex+bowStr)+"개의 SP 가 부족합니다.");
} else {
player.setDex(player.getDex() + bowDex);
player.setStr(player.getStr() + bowStr);
player.setRemainingAp(player.getRemainingAp() -(bowDex+bowStr));
player.updateSingleStat(MapleStat.DEX, player.getDex());
player.updateSingleStat(MapleStat.STR, player.getStr());
player.updateSingleStat(MapleStat.AVAILABLEAP, player.getRemainingAp());
}
} else if(c.getPlayer().getJob().equals(net.sf.odinms.cli ent.MapleJob.BOWMAN)
||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.RANGER)
||c.getPlayer().getJob().equals(net.sf.odinms.clie nt.MapleJob.CRUSADER)
||c.getPlayer().getJob().equals(net.sf.odinms.clie nt.MapleJob.SNIPER)
||c.getPlayer().getJob().equals(net.sf.odinms.clie nt.MapleJob.BOWMASTER)
||c.getPlayer().getJob().equals(net.sf.odinms.clie nt.MapleJob.CROSSBOWMASTER)) {
int thiLuk = c.getChannelServer().getthiLuk();
int thiDex = c.getChannelServer().getthiDex();
int statLevel = c.getChannelServer().getstatLevel();

if (c.getPlayer().getLevel() < statLevel) {
mc.dropMessage( statLevel+"레벨이 아니십니다.");
} else if (player.getDex() >= 150) {
player.setLuk(player.getLuk() + 5);
player.setRemainingAp(player.getRemainingAp() - 5);
player.updateSingleStat(MapleStat.LUK, player.getLuk() + 5);
player.updateSingleStat(MapleStat.AVAILABLEAP, player.getRemainingAp() - 5);
mc.dropMessage("행운 5개 를 올렸습니다.");
} else if (player.getRemainingAp() < (thiLuk+thiDex)) {
mc.dropMessage( (thiLuk+thiDex)+"개의 SP 가 부족합니다.");
} else {
player.setLuk(player.getLuk() + thiLuk);
player.setDex(player.getDex() + thiDex);
player.setRemainingAp(player.getRemainingAp() - (thiLuk+thiDex));
player.updateSingleStat(MapleStat.LUK, player.getLuk());
player.updateSingleStat(MapleStat.DEX, player.getDex());
player.updateSingleStat(MapleStat.AVAILABLEAP, player.getRemainingAp());
}
}
 
Newbie Spellweaver
Joined
Apr 13, 2008
Messages
16
Reaction score
0
You Change It
레벨이 아니십니다 -> you don't equal level
지능 5개 를 올렸습니다 -> Int 5 increase
개의 SP 가 부족합니다 -> ~ as well as Ap you don't have

I think It
amm. I Can't English Very Well..
 
Junior Spellweaver
Joined
Jul 19, 2008
Messages
151
Reaction score
0
didn't qwerty make a better version and someone improved qwerty's version so theres a limit?
 
Banned
Banned
Joined
Sep 25, 2006
Messages
295
Reaction score
1
Re: [Release] #stat command Auto Stat distribution

I made a setstat function that handles a lot of the stats...
 
Master Summoner
Loyal Member
Joined
Jul 27, 2008
Messages
583
Reaction score
0
Re: [Release] #stat command Auto Stat distribution

why you bump this korean thing?
 
Master Summoner
Joined
May 31, 2008
Messages
524
Reaction score
1
Re: [Release] #stat command Auto Stat distribution

These stupid thread bumper are Ducking stupid...
 
Newbie Spellweaver
Joined
Apr 4, 2008
Messages
96
Reaction score
0
Re: [Release] #stat command Auto Stat distribution

what use for this command?o_O
 
Supreme Arcanarch
Loyal Member
Joined
Jul 21, 2008
Messages
969
Reaction score
1
Re: [Release] #stat command Auto Stat distribution

Why did you bump this thread?
 
Experienced Elementalist
Joined
Jun 15, 2008
Messages
299
Reaction score
0
Re: [Release] #stat command Auto Stat distribution

0_0?
 
Back
Top