forked from MagicBane/Server
xp and conc granted for noob
This commit is contained in:
@@ -546,8 +546,17 @@ public enum InterestManager implements Runnable {
|
||||
return;
|
||||
}
|
||||
}
|
||||
if(player.getPromotionClass() == null){
|
||||
if(player.getLevel() < 25){
|
||||
ItemBase itemBase = ItemBase.getItemBase(980066);
|
||||
boolean hasConc = false;
|
||||
for(Item item : player.getCharItemManager().getInventory())
|
||||
if(item.getItemBase().equals(itemBase))
|
||||
hasConc = true;
|
||||
|
||||
if(!hasConc){
|
||||
MobLoot ml = new MobLoot(player,itemBase,false);
|
||||
ml.promoteToItem(player);
|
||||
}
|
||||
}
|
||||
if(player.getPromotionClass() == null){
|
||||
player.grantXP(200000 - player.getExp());
|
||||
|
||||
Reference in New Issue
Block a user