Hi, I have a quick question, how can I make sure that when you type a specific item it automatically enchants Thanks
No basically I want when I have for example a diamond sword in my inventory is low it puts a spell directly on epee
You can use events eg. PlayerItemHeldEvent - if you want check holding or InventoryPickupItemEvent - to check if player pickuped item, remove old item and add new one with enchantment. You can enchant item using Item->addEnchantment(EnchantmentInstance $instance)