Step 1. - Direct to Src/Gameserver/model/gameobjects/player/PlayerCommonData.java and open it.
Step 2. - Search for:
Step 3. - Replace the method with this:public void setPlayerClass(PlayerClass playerClass) {
Step 4. - Save the Class file, compile the server, and enjoy.public void setPlayerClass(PlayerClass playerClass) { Player player = getPlayer(); if(playerClass == PlayerClass.WARRIOR || playerClass == PlayerClass.SCOUT || playerClass == PlayerClass.MAGE || playerClass == PlayerClass.PRIEST) { this.playerClass = playerClass; } if(playerClass == PlayerClass.GLADIATOR) { ItemService.addItem(player, 100900684, 1); //WEAPON ItemService.addItem(player, 182400001, 1000000); // KINAH this.playerClass = playerClass; SkillLearnService.addMissingSkills(player); } }
I won't give my entire configurations that I've implemented, because I don't just want to give everything on a silver plate. You can add more items to the classes by using the addItem method.
PlayerClasses - Replace ".GLADIATOR":
What does this essentially do?- SPIRIT_MASTER - RANGER - ASSASSIN - TEMPLAR - SORCEROR - CHANTER - CLERIC
This combined with Instant 2nd Class (Assassin/Ranger etc) will give you starter gear for your character, or your player's newly created characters.
Sample:
Freshly Created Character (Instant LV55) + Instant StormWing Set
Downsides:
The downside with this is that it goes against the //set class # command because everytime you use the //set class # command on a target or yourself, the specified gear will be added. However, I don't see a reason for an Admin/GM to use this command on an Instant LV55 PvP server which this is designed for. So no worries.
LeRaz0r
Ragezone