Jump to content
  • 0

Free L2J Services


alextoti13

Question

11 answers to this question

Recommended Posts

  • 0

Nah ill try but im not skilled i want to learn from this :3

 

u said that u are good on Java also Skilled Person now what happened? someone reported you on another Community that u bought something and u didnt paid to person why u dont tell to people what u really are?

Link to comment
Share on other sites

  • 0

if u can, im searching a code for put hero aura in a specific set like, draco or imperial crusader only

 

Inventory.java

 +if (armorSet.isEnchanted20(player))
  +                     {
   +                        player.setHero(true);
    +                   }
+else
+return;
         +           
					if (armorSet.isEnchanted6(player)) // has all parts of set enchanted to 6 or more
					{

L2Armorset.java In the end add

   public boolean isEnchanted20(L2PcInstance player)
	    {
	         // Player don't have full set
	        if(!containAll(player))
	            return false;
	
	       Inventory inv = player.getInventory();
	
	        L2ItemInstance chestItem  = inv.getPaperdollItem(Inventory.PAPERDOLL_CHEST);
	        L2ItemInstance legsItem   = inv.getPaperdollItem(Inventory.PAPERDOLL_LEGS);
	        L2ItemInstance headItem   = inv.getPaperdollItem(Inventory.PAPERDOLL_HEAD);
	        L2ItemInstance glovesItem = inv.getPaperdollItem(Inventory.PAPERDOLL_GLOVES);
	        L2ItemInstance feetItem   = inv.getPaperdollItem(Inventory.PAPERDOLL_FEET);
	
	        if (chestItem.getId=Id) ||(chestItem.getEnchantLevel() < 20)
	            return false;
	        if (legsItem.getId=Id) ||(_legs != 0 && legsItem.getEnchantLevel() < 20)
	            return false;
	        if (glovesItem.getId=Id) ||(_gloves != 0 && glovesItem.getEnchantLevel() < 20)
	            return false;
	        if (headItem.getId=Id) ||(_head != 0 && headItem.getEnchantLevel() < 20)
	            return false;
	        if (feetItem.getId=Id) ||(_feet != 0 && feetItem.getEnchantLevel() < 20)
	            return false;
	
	        return true;
	    }
Edited by alextoti13
Link to comment
Share on other sites

  • 0

 

Inventory.java

 +if (armorSet.isEnchanted20(player))
  +                     {
   +                        player.setHero(true);
    +                   }
+else
+return;
         +           
					if (armorSet.isEnchanted6(player)) // has all parts of set enchanted to 6 or more
					{

L2Armorset.java In the end add

   public boolean isEnchanted20(L2PcInstance player)
	    {
	         // Player don't have full set
	        if(!containAll(player))
	            return false;
	
	       Inventory inv = player.getInventory();
	
	        L2ItemInstance chestItem  = inv.getPaperdollItem(Inventory.PAPERDOLL_CHEST);
	        L2ItemInstance legsItem   = inv.getPaperdollItem(Inventory.PAPERDOLL_LEGS);
	        L2ItemInstance headItem   = inv.getPaperdollItem(Inventory.PAPERDOLL_HEAD);
	        L2ItemInstance glovesItem = inv.getPaperdollItem(Inventory.PAPERDOLL_GLOVES);
	        L2ItemInstance feetItem   = inv.getPaperdollItem(Inventory.PAPERDOLL_FEET);
	
	        if (chestItem.getId=Id) ||(chestItem.getEnchantLevel() < 20)
	            return false;
	        if (legsItem.getId=Id) ||(_legs != 0 && legsItem.getEnchantLevel() < 20)
	            return false;
	        if (glovesItem.getId=Id) ||(_gloves != 0 && glovesItem.getEnchantLevel() < 20)
	            return false;
	        if (headItem.getId=Id) ||(_head != 0 && headItem.getEnchantLevel() < 20)
	            return false;
	        if (feetItem.getId=Id) ||(_feet != 0 && feetItem.getEnchantLevel() < 20)
	            return false;
	
	        return true;
	    }

he wants aura not the player to be hero he will get the aura but player gets hero 

 

Also credits to Tessa for the code you just changed abnormaleffect with player.setHero lol

Link to comment
Share on other sites

  • 0

 

Inventory.java

 +if (armorSet.isEnchanted20(player))

 

if u can, im searching a code for put hero aura in a specific set like, draco or imperial crusader only

 

Who's talk you for +20 armor?

also Hyo say "draco or imperial only".

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock