[Howto] Give instant Gear on new Character

Results 1 to 7 of 7
  1. #1
    Proficient Member LeRaz0r is offline
    MemberRank
    Dec 2011 Join Date
    162Posts

    [Howto] Give instant Gear on new Character

    Hey. This is something I find matches together pretty decently with my other tutorial posted here:

    http://forum.ragezone.com/f588/howto...5-lvxx-825015/


    Step 1. - Direct to Src/Gameserver/model/gameobjects/player/PlayerCommonData.java and open it.

    Step 2. - Search for:
    Code:
    public void setPlayerClass(PlayerClass playerClass) {

    Step 3. - Replace the method with this:

    Code:
        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);
    		}
     }

    Step 4. - Save the Class file, compile the server, and enjoy.



    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":
    Code:
    - SPIRIT_MASTER
    - RANGER
    - ASSASSIN
    - TEMPLAR
    - SORCEROR
    - CHANTER
    - CLERIC

    What does this essentially do?

    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.



  2. #2
    Member hisync is offline
    MemberRank
    Feb 2008 Join Date
    93Posts

    Re: [Howto] Give instant Gear on new Character

    How about adding 2 swords sir or 2 rings and 2 earrings. You can also go directly to player_initial_data.xml then add everything there without worrying the //set class command

  3. #3
    Eternity Aion IcedEarth is offline
    MemberRank
    Jul 2008 Join Date
    Jõhvi, EstoniaLocation
    230Posts

    Re: [Howto] Give instant Gear on new Character

    To give 2 different items just change this
    ItemService.addItem(player, ITEMID, AMOUNT);

  4. #4
    Proficient Member =ecsTazy= is offline
    MemberRank
    Feb 2009 Join Date
    -Romania-Location
    168Posts

    Re: [Howto] Give instant Gear on new Character

    thank's!

  5. #5
    Apprentice joker294 is offline
    MemberRank
    Jun 2012 Join Date
    23Posts

    Re: [Howto] Give instant Gear on new Character

    thanks for the share, im new in playing aion and this help me a lot..

  6. #6
    Apprentice Milutz94 is offline
    MemberRank
    Dec 2011 Join Date
    Calarasi, ROLocation
    12Posts

    Re: [Howto] Give instant Gear on new Character

    Items are already equiped or he needs lvl 55 to equip?
    Edit: It's not working, what compile means? i need to run "Build&Copy Aion Server" again?
    Last edited by Milutz94; 07-08-12 at 04:01 PM.

  7. #7
    Apprentice joker294 is offline
    MemberRank
    Jun 2012 Join Date
    23Posts

    Re: [Howto] Give instant Gear on new Character

    Just love seeing the cool equipped pic... kick ass



Advertisement