Jump to content

ThelwHelpRePaidia

Members
  • Posts

    269
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by ThelwHelpRePaidia

  1. Δεν ξερω για το athena δεν το εχω δουλεψει ποτε..

     

    ναι hi5 ειναι εδω μπορεις να ριξεις μια ματια εχει event engine που δουλευει μονο testare για τιποτα μικρο bugs  https://mega.nz/file/1h4mgQzb#m4_OujVM5KMxO6Z5682xXVRHb2qlhv3dFWWr7_lV5KY αν θες για pvp server ειναι μια χαρα τωρα για πιο low rate δεν νομιζω....

    αν θες καποιο event engine επι-πληρωμη μπορεις να κοιταξεις για το Erlandys Event Engine εχω ακουσει οτι ειναι πολυ δυνατο

  2. 4 hours ago, bucogido said:

    @ThelwHelpRePaidia that right thank a lot 

    but FuncEnchant in l2sever.jar . how i can edit 

    file.class can't read or edit code 

    if decompiler it to .java (allow edit code) . but i don't know how to compiler again to.class ,use cmd "javac" to complier FuncEnchant.java to .class --> error

    You should better just give up on this and start a clean source...you are gonna see that you are wasting your time

  3. 2 hours ago, bucogido said:

    thanks u 

    my sever dont have anything talk about freya 

    maybe my sever incomplete 

    sv Freya butt i check freya and zaken only level 70 , (sv share on internet @@)

     

    for the freya the instance is IceQueensCastle you will see it..there are IceQueensCastle,IceQueensCastleNormalBattle and IceQueensCastleUltimateBattle...btw what pack are you using?

  4. i guess here is what you are looking 

     

    public class FuncEnchant extends Func
    {
    	public FuncEnchant(Object owner, Stats stat, double value, Condition cond)
    	{
    		super(owner, stat, 3, value, cond);
    	}
    	
    	@Override
    	public double calc(Creature effector, Creature effected, L2Skill skill, double base, double value)
    	{
    		// Condition does not exist or it fails, no change.
    		if (getCond() != null && !getCond().test(effector, effected, skill))
    			return value;
    		
    		final ItemInstance item = (ItemInstance) getFuncOwner();
    		
    		int enchant = item.getEnchantLevel();
    		if (enchant <= 0)
    			return value;
    		
    		int overenchant = 0;
    		if (enchant > 3)
    		{
    			overenchant = enchant - 3;
    			enchant = 3;
    		}
    		
    		if (effector != null && effector instanceof Player)
    		{
    			Player player = (Player) effector;
    			if (player.isInOlympiadMode() && Config.OLY_ENCHANT_LIMIT >= 0 && (enchant + overenchant) > Config.OLY_ENCHANT_LIMIT)
    			{
    				if (Config.OLY_ENCHANT_LIMIT > 3)
    					overenchant = Config.OLY_ENCHANT_LIMIT - 3;
    				else
    				{
    					overenchant = 0;
    					enchant = Config.OLY_ENCHANT_LIMIT;
    				}
    			}
    		}
    		
    		if (getStat() == Stats.MAGIC_DEFENCE || getStat() == Stats.POWER_DEFENCE)
    			return value + enchant + (3 * overenchant);
    		
    		if (getStat() == Stats.MAGIC_ATTACK)
    		{
    			switch (item.getItem().getCrystalType())
    			{
    				case S:
    					value += (4 * enchant + 8 * overenchant);
    					break;
    				
    				case A:
    				case B:
    				case C:
    					value += (3 * enchant + 6 * overenchant);
    					break;
    				
    				case D:
    					value += (2 * enchant + 4 * overenchant);
    					break;
    			}
    			return value;
    		}
    		
    		if (item.isWeapon())
    		{
    			final WeaponType type = (WeaponType) item.getItemType();
    			
    			switch (item.getItem().getCrystalType())
    			{
    				case S:
    					switch (type)
    					{
    						case BOW:
    							value += (10 * enchant + 20 * overenchant);
    							break;
    						
    						case BIGBLUNT:
    						case BIGSWORD:
    						case DUALFIST:
    						case DUAL:
    							value += (6 * enchant + 12 * overenchant);
    							break;
    						
    						default:
    							value += (5 * enchant + 10 * overenchant);
    							break;
    					}
    					break;
    				
    				case A:
    					switch (type)
    					{
    						case BOW:
    							value += (8 * enchant + 16 * overenchant);
    							break;
    						
    						case BIGBLUNT:
    						case BIGSWORD:
    						case DUALFIST:
    						case DUAL:
    							value += (5 * enchant + 10 * overenchant);
    							break;
    						
    						default:
    							value += (4 * enchant + 8 * overenchant);
    							break;
    					}
    					break;
    				
    				case B:
    				case C:
    					switch (type)
    					{
    						case BOW:
    							value += (6 * enchant + 12 * overenchant);
    							break;
    						
    						case BIGBLUNT:
    						case BIGSWORD:
    						case DUALFIST:
    						case DUAL:
    							value += (4 * enchant + 8 * overenchant);
    							break;
    						
    						default:
    							value += (3 * enchant + 6 * overenchant);
    							break;
    					}
    					break;
    				
    				case D:
    					switch (type)
    					{
    						case BOW:
    							value += (4 * enchant + 8 * overenchant);
    							break;
    						
    						default:
    							value += (2 * enchant + 4 * overenchant);
    							break;
    					}
    					break;
    			}
    		}
    		return value;
    	}

     

    • Like 1
×
×
  • 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