Jump to content
  • 0

Enchant system for aCis (Normal/Blessed/Crystal Scrolls)


Question

11 answers to this question

Recommended Posts

  • 0
Posted

Tryskell,

Thanks for answer, im in aCis customer, i thinked its bugged, can you pm to me what use? Because i found about 2-3 and i don't know what is better.

  • 0
Posted

Just create ur own, it requires minimum java knowledge. Experiment with RequestEnchant

 

For example my formula is:

		int chance;
		if (item.getEnchantLevel() >= 7)
		{
			if (scrollTemplate.isBlessed())
				chance=90;
			else if (scrollTemplate.isCrystal())
				chance=65;
			else 
				chance=75;
			if (item.getEnchantLevel()>=15)
				chance=chance-5;
			if (item.crystalizesOnFail())
				chance=chance-5;
		}
		else 
			chance = 100;

 

it ignores the shitty configs and you have full control of your enchant system

  • 0
Posted

If you want just rates you can use this code at AbstractEnchantPacket:

 

if (isBlessed())

chance = Config.BLESSED_CHANCE;

 

if (isCrystal())

chance = Config.CRYSTAL_CHANCE;

  • 0
Posted

		public final double getChance(L2ItemInstance enchantItem)
	{
		if (!isValid(enchantItem))
			return -1;

		boolean fullBody = enchantItem.getItem().getBodyPart() == L2Item.SLOT_FULL_ARMOR;
		if (enchantItem.getEnchantLevel() < Config.ENCHANT_SAFE_MAX || (fullBody && enchantItem.getEnchantLevel() < Config.ENCHANT_SAFE_MAX_FULL))
			return 1;

		double chance = 0;

		// Armor formula : 0.66^(current-2), chance is lower and lower for each enchant.
		if (enchantItem.isArmor())
			chance = Math.pow(Config.ENCHANT_CHANCE_ARMOR, (enchantItem.getEnchantLevel() - 2));
		// Weapon formula is 70% for fighter weapon, 40% for mage weapon. Special rates after +14.
		else if (enchantItem.isWeapon())
		{
			if (((L2Weapon) enchantItem.getItem()).isMagical())
				chance = (enchantItem.getEnchantLevel() > 14) ? Config.ENCHANT_CHANCE_WEAPON_MAGIC_15PLUS  : Config.ENCHANT_CHANCE_WEAPON_MAGIC;
			else
				chance = (enchantItem.getEnchantLevel() > 14) ? Config.ENCHANT_CHANCE_WEAPON_NONMAGIC_15PLUS : Config.ENCHANT_CHANCE_WEAPON_NONMAGIC;
		}

		return chance;
	}
}

 

how make crystal and blessed?

  • 0
Posted

Thanks for answer, im in aCis customer, i thinked its bugged

 

If you're a customer, well. Like Tryskell said, go to custom section and find Hasha's enchant system.

  • 0
Posted

up

I think it has been lost during one of the forums rollback, as many attached files. PM Hasha on forums to see if he can update the topic (in case he still has the diffs).

  • 0
Posted

Hasha dont added any difs or something, wtf? :D http://acis.i-live.eu/index.php?topic=2520.0

 

Hahaha, like Tryskell said :D

 

Once again attachements get facked up. But no worry, I'm goin' to update the topic, so check it soon :)

 

Edit: Done.

Guest
This topic is now closed to further replies.


  • Posts

    • All that shit are false positives of the vanganth cliext, sources are well and who sell it is a big scammer
    • Information Selling a premium Lineage 2 High Five (L2J) project with active development, available by subscription. Includes Git support and access to compiled or full source code. Ideal for serious server owners seeking stability and performance, uniqueness and well-done features.   General Project Specifications: JDK Version: 23 -> 24 Chronicle: HighFive Structure: Core & Datapack merged into a single project Database: MariaDB Database Driver: HicariCP GIT Website: gitlab.com   Features include (but are not limited to):   1. Tournament Single & Party (Check Youtube Video) 2. Faction (Check Youtube Video) 3. Event Engine (Check Youtube Video) 4. Sell Buff System (Check Youtube Video) 5. Start UP System (Check Youtube Video) 6. User Panel 7. Visual - Dress me System 8. Donate Store 9. Automatic Farm System (Check Youtube Video) 10. Captcha (Anti-BOT) (Check Youtube Video) 11. Auction (Check Youtube Video) 12. Vote (API) 13. Admin Real Time Balance (Check Youtube Video) 14. Achievements (Check Youtube Video) 15. Daily Mission (Check Youtube Video) 16. A.I. Bot (Check Youtube Video) 17. Rebirth 18. Daily Reward  19. Skill Tree - Ability System 20. Craft System 21. Twitch Automatic Reward (Check Youtube Video) 22. Quiz Game (Check Youtube Video) 23. Automatic Item Enchant (Check Youtube Video) 24. Secondary Auth Using Google Authenticator (Check Youtube Video) 25. Gm Shop - Gatekeeper - Scheme Buffer   How to get Access (Payment Subscription): To get Access you either pay monthly subscription to GIT for source or Compiled. Project is currently active and has at least 1-2 commit / day.  Clients in both Compiled & Source subscription can request features or any addon in already existing mods inside discord.   Price per Month (Source) in GIT: 250 Eur Price per Month (Compiled) in GIT: 100 Eur   Contact: To get Access or ask further information join discord  https://discord.gg/gKAsAhJNuq      
    • We're officially closing the current season today. While we focus on refining the Essence project, our resources will temporarily shift toward supporting the Classic server.
    • ➡ Discount for your purchase: MAY2025 (10% discount) ➡ Our Online Shop: https://socnet.store  ➡ Our SMM-Boosting Panel: https://socnet.pro  ➡ Telegram Shop Bot: https://socnet.shop  ➡ Telegram Support: https://t.me/solomon_bog  ➡ Telegram Channel: https://t.me/accsforyou_shop  ➡ Discord Support: @AllSocialNetworksShop  ➡ Discord Server: https://discord.gg/y9AStFFsrh  ➡ WhatsApp Support: https://wa.me/79051904467 ➡ WhatsApp Channel: https://whatsapp.com/channel/0029Vau0CMX002TGkD4uHa2n  ➡ Email Support: solomonbog@socnet.store 
  • Topics

×
×
  • Create New...