Jump to content

[Share] Auto-Enchant 100% working and more!


Recommended Posts

Posted

This is the updated version of the enchant script, this script adds a few new features and a different way to send the packets, also updated for l2.net 358 and over.

 

www.ltwonet.com and read the login tutorials, note... this is for l2.net 358+

 

Credits to MeatWod for an important fix and Rocket666 for the actual script.

 

NOTE. put anything you dont want to enchant in your warehouse for safety. If you have a +21 icarus bow and 20 +0 bows, it will enchant each item by the set amount.

 

THIS IS NOT A SAFE ENCHANT SCRIPT!

 

//made by rocket666
//edited and tweaked by mpj123
//testing, bug solutions and just being cool, MeatWod
INCLUDE StdLib\inventory.l2c

//Settings
DEFINE STRING ITEMNAME "WEAPON or ARMOR HERE"            //Item name, don't write the SA
DEFINE STRING ITGRADE S                    //Item grade (s80=s)
DEFINE STRING ENCHNAME "Scroll: Enchant Weapon (S)"    //Enchant name
DEFINE STRING ENCHANT 12              //Enchant amount wanted to every weapon in inventory
DEFINE INT DELAY 1100                  //Delay of all actions in MS, this may help dodge anti enchanting bans if there are any. Put at least 600.


//Some definitions
DEFINE INT CURENCHANT 0                    
DEFINE INT SUCCESSENCHANTED 0 
DEFINE STRING CRYSTAL "Crystal: <&ITGRADE&> Grade"
DEFINE INT CRYID 0
DEFINE INT CRYCOUNT 0
DEFINE INT CRYCOUNT2 0
ITEM_GET_ID CRYID "<&CRYSTAL&>"
DEFINE STRING ITNAME 0
DEFINE INT ENCHID 0
DEFINE INT ENCHCOUNT 0
DEFINE INT ENCHUID 0
DEFINE STRING ENCHCODE 0
DEFINE STRING ITEM 0
DEFINE ARRAYLIST INVEN_AL 0
GET_INVENTORY INVEN_AL

//Calc enchant unique id
ITEM_GET_ID ENCHID "<&ENCHNAME&>"
INVEN_GET_UID ENCHUID "<&ENCHID&>"
ENCHCODE = ENCHUID.GET_HEX32
DEFINE STRING ENCH "19 <&ENCHCODE&> 00 00 00 00"

//Start actions
FOREACH I Inventory INVEN_AL
    ITNAME = INVEN_AL.I.NAME
    IF ITNAME == ITEMNAME
        CALLSUB ENCHANT
        PRINT_TEXT "<&ENCHCOUNT&> enchants remaining."
        CURENCHANT = ZERO
    ENDIF
NEXTEACH
PRINT_TEXT "<&SUCCESSENCHANTED&> are currently enchanted successfully to <&ENCHANT&>"
PRINT_TEXT "Done"
SCRIPT_END

SUB ENCHANT
DEFINE bytebuffer my_bb 256
my_bb.WRITE_BYTE #i95
my_bb.WRITE_INT32 INVEN_AL.I.ID
my_bb.WRITE_INT32 #i0


WHILE ZERO == ZERO
ITEM_COUNT CRYCOUNT "<&CRYID&>"
IF CURENCHANT < ENCHANT
    ITEM_COUNT ENCHCOUNT "<&ENCHID&>"
    IF ENCHCOUNT > ONE
        CURENCHANT = CURENCHANT + ONE
        PRINT_TEXT "Your weapon is enchanting to <&CURENCHANT&>"
        INJECT "<&ENCH&>"
        SLEEP "<&DELAY&>"
        my_bb.TRIM_TO_INDEX
        injectbb my_bb
        SLEEP 300
        ITEM_COUNT CRYCOUNT2 "<&CRYID&>"
        IF CRYCOUNT2 > CRYCOUNT
            DELETE my_bb
            RETURNSUB
        ELSE
           IF CURENCHANT == ENCHANT
           SUCCESSENCHANTED = SUCCESSENCHANTED + #i1
           ENDIF
        ENDIF
    ELSE
        PRINT_TEXT "Enchant is over."
        PRINT_TEXT "<&SUCCESSENCHANTED&> are currently enchanted successfully to <&ENCHANT&>"
        SCRIPT_END
    ENDIF
ELSE
    PRINT_TEXT "Successfully enchanted."
    DELETE my_bb
    RETURNSUB
ENDIF
WEND
RETURNSUB

Posted

they cannot catch you unless a gm sees you with the weapon in hand being enchanted.

Posted

I don't get it :( whats wrong here?

//made by rocket666
//edited and tweaked by mpj123
//testing, bug solutions and just being cool, MeatWod
INCLUDE StdLib\inventory.l2c

//Settings
DEFINE STRING ITEMNAME "Angel Slayer"            //Item name, don't write the SA SA
DEFINE STRING ITGRADE S                    //Item grade (s80=s)
DEFINE STRING ENCHNAME "Scroll: Enchant Weapon (S)"    //Enchant name
DEFINE STRING ENCHANT 25              //Max enchant
DEFINE INT CURENCHANT 0                    //Current enchant, change line 38 too
DEFINE INT DELAY 1100                  //Delay of all actions in MS
DEFINE INT SUCCESSENCHANTED 0

//Some definitions
DEFINE STRING CRYSTAL "Crystal: <&ITGRADE&> Grade"
DEFINE INT CRYID 0
DEFINE INT CRYCOUNT 0
DEFINE INT CRYCOUNT2 0
ITEM_GET_ID CRYID "<&CRYSTAL&>"
DEFINE STRING ITNAME 0
DEFINE INT ENCHID 0
DEFINE INT ENCHCOUNT 0
DEFINE INT ENCHUID 0
DEFINE STRING ENCHCODE 0
DEFINE STRING ITEM 0
DEFINE ARRAYLIST INVEN_AL 0
GET_INVENTORY INVEN_AL

//Calc enchant unique id
ITEM_GET_ID ENCHID "<&ENCHNAME&>"
INVEN_GET_UID ENCHUID "<&ENCHID&>"
ENCHCODE = ENCHUID.GET_HEX32
DEFINE STRING ENCH "19 <&ENCHCODE&> 00 00 00 00"

//Start actions
FOREACH I Inventory INVEN_AL
    ITNAME = INVEN_AL.I.NAME
    IF ITNAME == ITEMNAME
        CALLSUB ENCHANT
        PRINT_TEXT "<&ENCHCOUNT&> enchants remaining."
        CURENCHANT = ZERO
    ENDIF
NEXTEACH
PRINT_TEXT "<&SUCCESSENCHANTED&> are currently enchanted successfully to <&ENCHANT&>"
PRINT_TEXT "Done"
SCRIPT_END

SUB ENCHANT
DEFINE bytebuffer my_bb 256
my_bb.WRITE_BYTE #i95
my_bb.WRITE_INT32 INVEN_AL.I.ID
my_bb.WRITE_INT32 #i0


WHILE ZERO == ZERO
ITEM_COUNT CRYCOUNT "<&CRYID&>"
IF CURENCHANT < ENCHANT
    ITEM_COUNT ENCHCOUNT "<&ENCHID&>"
    IF ENCHCOUNT > ZERO
        CURENCHANT = CURENCHANT + ONE
        PRINT_TEXT "Your weapon is enchanting to <&CURENCHANT&>"
        INJECT "<&ENCH&>"
        SLEEP "<&DELAY&>"
        my_bb.TRIM_TO_INDEX
        injectbb my_bb
        SLEEP 300
        ITEM_COUNT CRYCOUNT2 "<&CRYID&>"
        IF CRYCOUNT2 > CRYCOUNT
            DELETE my_bb
            RETURNSUB
        ELSE
           IF CURENCHANT == ENCHANT
           SUCCESSENCHANTED = SUCCESSENCHANTED + #i1
           ENDIF
        ENDIF
    ELSE
        PRINT_TEXT "Enchant is over."
        PRINT_TEXT "<&SUCCESSENCHANTED&> are currently enchanted successfully to <&ENCHANT&>"
        SCRIPT_END
    ENDIF
ELSE
    PRINT_TEXT "Successfully enchanted."
    DELETE my_bb
    RETURNSUB
ENDIF
WEND
RETURNSUB

I get a lot of error

 

08:40:30 :[ERROR: SCRIPT ERROR: LINE 36: INVALID VARIABLE TYPE
08:40:30 :[#############################
08:40:30 :[#############################
08:40:30 :[ERROR: SCRIPT ERROR: LINE 36: INVALID VARIABLE TYPE
08:40:30 :[#############################
08:40:30 :[#############################
08:40:30 :[ERROR: SCRIPT ERROR: LINE 36: INVALID VARIABLE TYPE
08:40:30 :[#############################
08:40:30 :[#############################
08:40:30 :[ERROR: SCRIPT ERROR: LINE 36: INVALID VARIABLE TYPE
08:40:30 :[#############################
08:40:30 :[#############################
08:40:30 :[ERROR: SCRIPT ERROR: LINE 36: INVALID VARIABLE TYPE
08:40:30 :[#############################
08:40:30 :[#############################
08:40:30 :[ERROR: SCRIPT ERROR: LINE 36: INVALID VARIABLE TYPE
08:40:30 :[#############################
08:40:30 :[#############################
08:40:30 :[ERROR: SCRIPT ERROR: LINE 36: INVALID VARIABLE TYPE
08:40:30 :[#############################
08:40:30 :[#############################
08:40:30 :[ERROR: SCRIPT ERROR: LINE 36: INVALID VARIABLE TYPE
08:40:30 :[#############################
08:40:30 :[#############################
08:40:30 :[ERROR: SCRIPT ERROR: LINE 36: INVALID VARIABLE TYPE
08:40:30 :[#############################
08:40:30 :[#############################
08:40:30 :[ERROR: SCRIPT ERROR: LINE 36: INVALID VARIABLE TYPE
08:40:30 :[#############################
08:40:30 :[#############################
08:40:30 :[ERROR: SCRIPT ERROR: LINE 36: INVALID VARIABLE TYPE
08:40:30 :[#############################
08:40:30 :[#############################
08:40:30 :[ERROR: SCRIPT ERROR: LINE 36: INVALID VARIABLE TYPE
08:40:30 :[#############################
08:40:30 :[#############################
08:40:30 :[ERROR: SCRIPT ERROR: LINE 36: INVALID VARIABLE TYPE
08:40:30 :[#############################
08:40:30 :[#############################
08:40:30 :[ERROR: SCRIPT ERROR: LINE 36: INVALID VARIABLE TYPE
08:40:30 :[#############################
08:40:30 :[#############################
08:40:30 :[ERROR: SCRIPT ERROR: LINE 36: INVALID VARIABLE TYPE
08:40:30 :[#############################
08:40:30 :[#############################
08:40:30 :[ERROR: SCRIPT ERROR: LINE 36: INVALID VARIABLE TYPE
08:40:30 :[#############################
08:40:30 :[#############################
08:40:30 :[ERROR: SCRIPT ERROR: LINE 36: INVALID VARIABLE TYPE
08:40:30 :[#############################
08:40:30 :[#############################
08:40:30 :[ERROR: SCRIPT ERROR: LINE 36: INVALID VARIABLE TYPE
08:40:30 :[#############################
08:40:30 :[#############################
08:40:30 :[ERROR: SCRIPT ERROR: LINE 36: INVALID VARIABLE TYPE
08:40:30 :[#############################
08:40:30 :[#############################
08:40:30 :[ERROR: SCRIPT ERROR: LINE 36: INVALID VARIABLE TYPE
08:40:30 :[#############################
08:40:30 :[#############################
08:40:30 :[ERROR: SCRIPT ERROR: LINE 36: INVALID VARIABLE TYPE
08:40:30 :[#############################
08:40:30 :[#############################
08:40:30 :[ERROR: SCRIPT ERROR: LINE 36: INVALID VARIABLE TYPE
08:40:30 :[#############################
08:40:30 :[#############################
08:40:30 :[ERROR: SCRIPT ERROR: LINE 36: INVALID VARIABLE TYPE
08:40:30 :[#############################
08:40:30 :[#############################
08:40:30 :[ERROR: SCRIPT ERROR: LINE 36: INVALID VARIABLE TYPE
08:40:30 :[#############################
08:40:30 :[#############################
08:40:30 :[ERROR: SCRIPT ERROR: LINE 36: INVALID VARIABLE TYPE
08:40:30 :[#############################
08:40:30 :[#############################
08:40:30 :[ERROR: SCRIPT ERROR: LINE 36: INVALID VARIABLE TYPE
08:40:30 :[#############################
08:40:30 :[#############################
08:40:30 :[ERROR: SCRIPT ERROR: LINE 36: INVALID VARIABLE TYPE
08:40:30 :[#############################
08:40:30 :[#############################
08:40:30 :[ERROR: SCRIPT ERROR: LINE 36: INVALID VARIABLE TYPE
08:40:30 :[#############################
08:40:30 :[#############################
08:40:30 :[ERROR: SCRIPT ERROR: LINE 36: INVALID VARIABLE TYPE
08:40:30 :[#############################
08:40:30 :[#############################
08:40:30 :[ERROR: SCRIPT ERROR: LINE 36: INVALID VARIABLE TYPE
08:40:30 :[#############################
08:40:30 :[#############################
08:40:30 :[ERROR: SCRIPT ERROR: LINE 36 : FOREACH
08:40:30 :[#############################

Posted

hmmm, well this bot was never really tested on chinese clients, but that could be arranged. If you would like to get in contact with slothmo about this, he could most likely make it happen. The l2.net already supports chinese characters.

Posted

this will only work on ct1+ servers

does its possible to configure it to work in Interlude? I play in Interlude only, so this thing can be awsome for me... :/

Posted

interlude is very much an outdated chronicle.... soon most servers will have moved on. This is why l2.net dosen't support anything below ct1... I doubt it can be done. Although... you could inject the packets manually. It just wont be completely automated and will require you to get the packet from each weapon.

Posted

hmmm, well this bot was never really tested on chinese clients, but that could be arranged. If you would like to get in contact with slothmo about this, he could most likely make it happen. The l2.net already supports chinese characters.

 

Not sure how to do that since I don't know slothmo, perhaps you could pass the word ?  thanks alot. I also noticed the l2net ingame setting is a bit confusing, e.g. heal/buff delay = seconds, items delay =milli seconds.

Guest
This topic is now closed to further replies.



  • Posts

    • Hey everyone, I’m thrilled to introduce our upcoming server, Dragon‑Network, built on the powerful Interlude+ chronicle and crafted for serious PvP, balanced progression and community fun. Below you’ll find all the key details — rates, features, event structure, and why this will be your next home for Lineage 2. 📅 Grand Opening November 21, 2025 — mark the date, rally your friends, prepare your gear. The realm opens, and the wars begin. ⚙️ Rates & Server Setup XP: 10× Chronicle: Interlude+ (expanded from our previous server) PvP-focused content, daily events, and reward-rich systems These core settings ensure you’ll feel progress and power, without losing the depth of classic Interlude. 🎯 Features & Highlights Based on our features page: Alternative class change quests: skip the lengthy standard quests by collecting tradable items dropped by monsters. Dragon-Network Full Interlude+ content: Kamaloka, Labyrinth, Pailaka quests, Hellbound Island, S80 items, Attribute system, Isle of Prayer hunting zone, siegeable fortresses and more. Dragon-Network Daily Team vs Team (TvT) events: prove your worth, climb the ranks and earn valuable rewards. Dragon-Network Balanced PvP mechanics: custom sub-stack features, armor mastery rules, optimized skill effects — all to keep the fight fair and skill-based. Dragon-Network Other extras: Raid Bosses with defined respawn times, rich loot systems, improved QOL features like improved buffs, combo songs/dances, tattoo system, etc. Dragon-Network 🎮 Why This Server Matters You’re playing Interlude+, but with modern enhancements — classic content with new mechanics, not a simple resurrect of the old. PvP and events are daily and structured, so you don’t wait weeks to engage. We’ve designed progression to be meaningful: rewards, class changes, content unlocks all move you forward without feeling pay-to-win. Community-first: Whether you enter solo or with friends, you’ll find team action, clans forming, and events where everyone has a chance to shine. 🗺 What to Do Next Visit our website: dragon-network.eu (check out the “Features” tab for full details) Prepare your Master Account, get your clan or buddies ready. On launch day (Nov 21), log in early, grab your spot, participate in the first TvT, and start building your legacy. Get ready — the gates open soon. The grind begins. The battles await. Will you rise to become legend on Dragon-Network? 🐉 Feel free to ask any questions below or share this post with your friends. Let’s make this launch one to remember.
    • NFT gifts on Telegram are already here! Buy Stars at SOCNET — the black background can be yours today! Purchase existing gifts in the official store using Telegram Stars, pay for subscriptions, donate to games and projects, pay for Premium, and react to messages in channels! Low prices, many payment methods, and other cool and unique features! Try it today — SOCNET STARS BOT Active links to SOCNET stores: Digital Goods Store (Website): Go Store Telegram Bot: Go – convenient access to the store via Telegram messenger. Telegram Bot for purchasing Telegram Stars: Go – fast and beneficial purchase of stars in Telegram. SMM Panel: Go – promotion of your social media accounts. We would like to present to you the current list of promotions and special offers for purchasing our products and services: 1. Promo code OCTOBER2025 (8% discount) for purchases in our store (Website, bot) in September! You can also use the first-purchase promo code: SOCNET (15% discount) 2. Get $1 credited to your store balance or a 10–20% discount — simply write your username after registration on our website in the following format: "SEND ME BONUS, MY USERNAME IS..." — you need to post it in our forum thread! 3. Get $1 for your first SMM Panel trial: just open a ticket titled “Get Trial Bonus” on our website (Support). 4. Weekly Telegram Stars giveaways in our Telegram channel and in our Stars purchasing bot! News: ➡ Telegram Channel: https://t.me/accsforyou_shop ➡ WhatsApp Channel: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord Server: https://discord.gg/y9AStFFsrh Contacts & Support: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
    • NFT gifts on Telegram are already here! Buy Stars at SOCNET — the black background can be yours today! Purchase existing gifts in the official store using Telegram Stars, pay for subscriptions, donate to games and projects, pay for Premium, and react to messages in channels! Low prices, many payment methods, and other cool and unique features! Try it today — SOCNET STARS BOT Active links to SOCNET stores: Digital Goods Store (Website): Go Store Telegram Bot: Go – convenient access to the store via Telegram messenger. Telegram Bot for purchasing Telegram Stars: Go – fast and beneficial purchase of stars in Telegram. SMM Panel: Go – promotion of your social media accounts. We would like to present to you the current list of promotions and special offers for purchasing our products and services: 1. Promo code OCTOBER2025 (8% discount) for purchases in our store (Website, bot) in September! You can also use the first-purchase promo code: SOCNET (15% discount) 2. Get $1 credited to your store balance or a 10–20% discount — simply write your username after registration on our website in the following format: "SEND ME BONUS, MY USERNAME IS..." — you need to post it in our forum thread! 3. Get $1 for your first SMM Panel trial: just open a ticket titled “Get Trial Bonus” on our website (Support). 4. Weekly Telegram Stars giveaways in our Telegram channel and in our Stars purchasing bot! News: ➡ Telegram Channel: https://t.me/accsforyou_shop ➡ WhatsApp Channel: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord Server: https://discord.gg/y9AStFFsrh Contacts & Support: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
    • NFT gifts on Telegram are already here! Buy Stars at SOCNET — the black background can be yours today! Purchase existing gifts in the official store using Telegram Stars, pay for subscriptions, donate to games and projects, pay for Premium, and react to messages in channels! Low prices, many payment methods, and other cool and unique features! Try it today — SOCNET STARS BOT Active links to SOCNET stores: Digital Goods Store (Website): Go Store Telegram Bot: Go – convenient access to the store via Telegram messenger. Telegram Bot for purchasing Telegram Stars: Go – fast and beneficial purchase of stars in Telegram. SMM Panel: Go – promotion of your social media accounts. We would like to present to you the current list of promotions and special offers for purchasing our products and services: 1. Promo code OCTOBER2025 (8% discount) for purchases in our store (Website, bot) in September! You can also use the first-purchase promo code: SOCNET (15% discount) 2. Get $1 credited to your store balance or a 10–20% discount — simply write your username after registration on our website in the following format: "SEND ME BONUS, MY USERNAME IS..." — you need to post it in our forum thread! 3. Get $1 for your first SMM Panel trial: just open a ticket titled “Get Trial Bonus” on our website (Support). 4. Weekly Telegram Stars giveaways in our Telegram channel and in our Stars purchasing bot! News: ➡ Telegram Channel: https://t.me/accsforyou_shop ➡ WhatsApp Channel: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord Server: https://discord.gg/y9AStFFsrh Contacts & Support: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
    • Wts adena 1kk = 10$  discord - GODDARDSHOP 
  • Topics

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