Welcome to MaxCheaters.com

Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads

Code Custom Race Starting Items


Recommended Posts

90% ok so the Orc this not working the magician and fight are coming with the same items

 

 

public static boolean ENABLE_ORC_FIGHTER_REWARD;
public static boolean ENABLE_ORC_MAGE_REWARD;
[/code/
 
[code]
public static int ORC_M_HELM_ID;
    public static int ORC_M_CHEST_ID;
    public static int ORC_M_LEGS_ID;
    public static int ORC_M_BOOTS_ID;
    public static int ORC_M_GLOVES_ID;
    public static int ORC_M_WEAPON_ID;
    public static int ORC_F_HELM_ID;
    public static int ORC_F_CHEST_ID;
    public static int ORC_F_LEGS_ID;
    public static int ORC_F_BOOTS_ID;
    public static int ORC_F_GLOVES_ID;
    public static int ORC_F_WEAPON_ID;
[/code]
 
[code]
ENABLE_ORC_FIGHTER_REWARD = Boolean.parseBoolean(L2JWZModSettings.getProperty("EnableOrcFighterReward", "True"));
ENABLE_ORC_MAGE_REWARD = Boolean.parseBoolean(L2JWZModSettings.getProperty("EnableOrcMageReward", "True"));
[/code]
 
[code]
ORC_M_HELM_ID = Integer.parseInt(L2JWZModSettings.getProperty("OrcMageHelmID", ""));
            ORC_M_CHEST_ID = Integer.parseInt(L2JWZModSettings.getProperty("OrcMageChestID", ""));
            ORC_M_LEGS_ID = Integer.parseInt(L2JWZModSettings.getProperty("OrcMageLegsID", ""));
            ORC_M_BOOTS_ID = Integer.parseInt(L2JWZModSettings.getProperty("OrcMageBootsID", ""));
            ORC_M_GLOVES_ID = Integer.parseInt(L2JWZModSettings.getProperty("OrcMageGlovesID", ""));
            ORC_M_WEAPON_ID = Integer.parseInt(L2JWZModSettings.getProperty("OrcMageWeaponID", ""));
            ORC_F_HELM_ID = Integer.parseInt(L2JWZModSettings.getProperty("OrcFighterHelmID", ""));
            ORC_F_CHEST_ID = Integer.parseInt(L2JWZModSettings.getProperty("OrcFighterChestID", ""));
            ORC_F_LEGS_ID = Integer.parseInt(L2JWZModSettings.getProperty("OrcFighterLegsID", ""));
            ORC_F_BOOTS_ID = Integer.parseInt(L2JWZModSettings.getProperty("OrcFighterBootsID", ""));
            ORC_F_GLOVES_ID = Integer.parseInt(L2JWZModSettings.getProperty("OrcFighterGlovesID", ""));
            ORC_F_WEAPON_ID = Integer.parseInt(L2JWZModSettings.getProperty("OrcFighterWeaponID", ""));
[/code]
 
[code]
if (Config.ENABLE_ORC_FIGHTER_REWARD)
                {
                        if (newChar.getRace() == Race.Orc && !newChar.isMageClass())
                       {
                               final L2ItemInstance Helm = newChar.getInventory().addItem("Init", Config.ORC_F_HELM_ID, 1, newChar, null);

                               final L2ItemInstance Chest = newChar.getInventory().addItem("Init", Config.ORC_F_CHEST_ID, 1, newChar, null);

                               final L2ItemInstance Legs = newChar.getInventory().addItem("Init", Config.ORC_F_LEGS_ID, 1, newChar, null);

                               final L2ItemInstance Boots = newChar.getInventory().addItem("Init", Config.ORC_F_BOOTS_ID, 1, newChar, null);

                               final L2ItemInstance Gloves = newChar.getInventory().addItem("Init", Config.ORC_F_GLOVES_ID, 1, newChar, null);

                               final L2ItemInstance Weap = newChar.getInventory().addItem("Init", Config.ORC_F_WEAPON_ID, 1, newChar, null);
                       }
               }
               
        if (Config.ENABLE_ORC_MAGE_REWARD)
               {
                       if (newChar.getRace() == Race.Orc && newChar.isMageClass())
                       {
                               final L2ItemInstance Helm = newChar.getInventory().addItem("Init", Config.ORC_M_HELM_ID, 1, newChar, null);

                               final L2ItemInstance Chest = newChar.getInventory().addItem("Init", Config.ORC_M_CHEST_ID, 1, newChar, null);

                               final L2ItemInstance Legs = newChar.getInventory().addItem("Init", Config.ORC_M_LEGS_ID, 1, newChar, null);

                               final L2ItemInstance Boots = newChar.getInventory().addItem("Init", Config.ORC_M_BOOTS_ID, 1, newChar, null);

                               final L2ItemInstance Gloves = newChar.getInventory().addItem("Init", Config.ORC_M_GLOVES_ID, 1, newChar, null);

                               final L2ItemInstance Weap = newChar.getInventory().addItem("Init", Config.ORC_M_WEAPON_ID, 1, newChar, null);
                       }
                }         
[/code]
 
[code]
# New players Starting Items ( Orc )
# Orc Fighter
# Default: False
EnableOrcFighterReward = True
OrcFighterHelmID = 43
OrcFighterChestID = 23
OrcFighterLegsID = 2386
OrcFighterBootsID = 39
OrcFighterGlovesID = 49
OrcFighterWeaponID = 2
# Orc Mage
# Default: False
EnableOrcMageReward = False
OrcMageHelmID = 43
OrcMageChestID = 1101
OrcMageLegsID = 1104
OrcMageBootsID = 39
OrcMageGlovesID = 49
OrcMageWeaponID = 6

 

even the Orc mage being false, he is coming with the items Fighter

Share this post


Link to post
Share on other sites
  • 2 weeks later...
  • Replies 33
  • Created
  • Last Reply

Top Posters In This Topic

as SweeTs said, on aCis, equiping works perfectly, if you want to add custom starting items, you just have to go in classes .xml in every class (darkfighter, humanfighter etc) and change this line on the first class of the xml which is the parent class of the race (Human Fighter,DE Fighter, Elf Fighter, DE Mage):

 

<items val="X;Y;Z;A;B" />

 

but be aware that you have to put the weapon as the last equiping item on the list cause if you put it first it will equip only this and will ignore the rest, and if you put it 3rd f.e. the 4th,5th etc item wont be equiped.

 

So lets say you want to put:

Chest = 395 (Manticore Skin Shirt)

Legs = 417 (Manticore Skin Gaiters)

Gloves = 2448 (Manticore Skin Gloves)

Boots = 2424 (Manticore Skin Boots)

Helm = 2412 (Plate Helmet)

Rings = 882 (Mithril Ring)

Earings = 851 (Omen Beast's Earring)

Neck = 914 (Necklace of Darkness)

WeaponEquipped = 2499 (Elven Long Sword)

AltWeapon = 225 (Mithril Dagger)

 

 

You have to make the list like this:

 

<items val="395;417;2424;2448;2412;914;851;851;882;882;225;2499" />

 

so its like: ArmorPiece1;..;ArmorPieceN;Jewel1;...;Jewel5;AltWep;EquippedWep

 

Be carefull you put first the AltWepons which you want to be on inventory and LAST the equipped one, the one you want the new Char to hold on his hands. Also after the red (the Equipping Weapon) you can add other non equipping items w/e you want, for example a custom item like an extractable chest or w/e you DONT WANT to be equipped (except if its weapon type you have to put before equipped weapon as I said)!

 

 

All these is about aCis starting char items and how you can set them properly...

 

Now about the code of the maker, as someone said, you can make configs only for Fighter and Mage armor (instead of ElfMageHelm etc) you can make it something like this:

 

MageStartingArmor= X,Y,Z,...,N

FighterStartingArmor = A,B,...,N

 

and after you can make for weapons:

FighterWeps = X,Y (some standard weps used by all races)

MageWeps = (Here I suppose one kind of weap can fit all mage races)

 

And finally you can add some fighter weapon configs for special races like dwarf (add blunt) orc (add fists) etc...

 

So that way you have way less configs and you make it also the same way you made it in you first version... If I was in your place I would use aCis way for this, its simpler, easier and flexible for configure different equipment for every class...

 

Sorry for long post, I just wanted to help!

Edited by DaFFyNaSH

Share this post


Link to post
Share on other sites
  • 1 year later...

 

Custom Race Starting Items v1

 

 

# New players Starting Items ( Human )
# Default: False
EnableHumanReward = False
# Human Fighter
HumanFighterHelmID = 
HumanFighterChestID = 
HumanFighterLegsID = 
HumanFighterBootsID = 
HumanFighterGlovesID = 
HumanFighterWeaponID = 
# Human Mage
HumanMageHelmID = 
HumanMageChestID = 
HumanMageLegsID = 
HumanMageBootsID = 
HumanMageGlovesID = 
HumanMageWeaponID = 

# New players Starting Items ( Elf )
# Default: False
EnableElfReward = False
# Elf Fighter
ElfFighterHelmID = 
ElfFighterChestID = 
ElfFighterLegsID = 
ElfFighterBootsID = 
ElfFighterGlovesID = 
ElfFighterWeaponID = 
# Elf Mage
ElfMageHelmID = 
ElfMageChestID = 
ElfMageLegsID = 
ElfMageBootsID = 
ElfMageGlovesID = 
ElfMageWeaponID = 

# New players Starting Items ( DarkElf )
# Default: False
EnableDEReward = False
# DarkElf Fighter
DEFighterHelmID = 
DEFighterChestID = 
DEFighterLegsID = 
DEFighterBootsID = 
DEFighterGlovesID = 
DEFighterWeaponID = 
# DarkElf Mage
DEMageHelmID = 
DEMageChestID = 
DEMageLegsID = 
DEMageBootsID = 
DEMageGlovesID = 
DEMageWeaponID = 

# New players Starting Items ( Orc )
# Default: False
EnableOrcReward = False
# Orc Fighter
OrcFighterHelmID = 
OrcFighterChestID = 
OrcFighterLegsID = 
OrcFighterBootsID = 
OrcFighterGlovesID = 
OrcFighterWeaponID =
# Orc Mage
OrcMageHelmID = 
OrcMageChestID = 
OrcMageLegsID = 
OrcMageBootsID = 
OrcMageGlovesID = 
OrcMageWeaponID = 

# New players Starting Items ( Dwarf )
# Default: False
EnableDwarfReward = False
# Dwarf Fighter
DwarfFighterHelmID = 
DwarfFighterChestID = 
DwarfFighterLegsID = 
DwarfFighterBootsID = 
DwarfFighterGlovesID = 
DwarfFighterWeaponID = 

http://pastebin.com/ywGtFmGY

 

 

Credits : (Me) iSparky

 

Edit: Ignore this :P

 

 

@@ -233,8 +498,7 @@
               
                // Shortcuts
                newChar.registerShortCut(new L2ShortCut(0, 0, 3, 2, -1, 1)); // Attack
-               newChar.registerShortCut(new L2ShortCut(3, 0, 3, 5, -1, 1)); // Take
-               newChar.registerShortCut(new L2ShortCut(10, 0, 3, 0, -1, 1)); // Sit
+               newChar.registerShortCut(new L2ShortCut(1, 0, 3, 5, -1, 1)); // Take
               
                final ItemTable itemTable = ItemTable.getInstance();
                final L2Item[] items = template.getItems();

 

have code for acis 364 and 365?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.