Added Profession Master Badges

This commit is contained in:
Ziggeh
2013-12-10 00:07:39 +01:00
parent 6f42cb6ebb
commit e3d4fd8aaa
13 changed files with 156 additions and 1 deletions
+2 -1
View File
@@ -338,6 +338,7 @@ public class PlayerService implements INetworkDispatch {
creature.playEffectObject("clienteffect/level_granted.cef", "");
creature.getClient().getSession().write((new ClientMfdStatusUpdateMessage((float) ((creature.getLevel() == 90) ? 90 : (creature.getLevel() + 1)), "/GroundHUD.MFDStatus.vsp.role.targetLevel")).serialize());
creature.setLevel(((Integer) experienceTable.getObject(i, 0)).shortValue());
core.scriptService.callScript("scripts/collections/", "addMasterBadge", "master_" + player.getProfession(), core, creature);
// 3. Add the relevant health/action and expertise points.
float luck = (((((float) (core.scriptService.getMethod("scripts/roadmap/", player.getProfession(), "getLuck").__call__().asInt()) + (core.scriptService.getMethod("scripts/roadmap/", creature.getStfName(), "getLuck").__call__().asInt())) / ((float) 90)) * ((float) creature.getLevel())) - ((float) creature.getSkillModBase("luck")));
@@ -470,7 +471,7 @@ public class PlayerService implements INetworkDispatch {
}
}
}
}
}
}
}
} catch (InstantiationException | IllegalAccessException e) {