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

    • This post originally appeared on MmoGah. Odin: Valhalla Rising is an ambitious open-world MMORPG developed with Unreal Engine 4, offering breathtaking visuals and immersive gameplay. I will share everything you need to know before starting it.     Re-rolling In Odin, re-rolling isn't a practical strategy. Unlike most gacha games, where it's common to reset for better initial pulls, Odin focuses heavily on long-term growth. The earlier you begin playing and developing your character, the more advantages you'll gain over time. Instead of spending your efforts on re-rolling for ideal equipment, it's better to dive in and start progressing right away.   Server Selection Before starting your character, selecting a server is a crucial step. Since Odin doesn't support cross-server gameplay, coordinating with your friends, family, or guildmates is essential to ensure everyone creates their characters on the same server. Take the time to plan with your group beforehand. After deciding on a server, your next major choice will be picking a class.   Class Breakdown Odin features four primary starting classes: Warrior, Sorceress, Rogue, and Priest. Each class comes with its own distinct playstyle and unique strengths, so choose wisely, as your selection is permanent. However, even free-to-play players can create up to three characters on one server, giving you the flexibility to try different options and find the one that matches your preferences.   Quest and Leveling Once your character is created, your initial objective is to work through the main questline. This acts as both a tutorial and a method for early leveling. Odin simplifies the process with a convenient quest button that handles navigation, starts dialogues, and even enables auto-combat. This user-friendly feature allows beginners to grasp the basics of the game without feeling overloaded.   Auto Combat and No Kill-steal Mode Auto combat is an essential feature in Odin, enabling your character to battle monsters autonomously. This system allows you to effortlessly gain experience and loot, even while you're busy studying, cooking, or unwinding. To optimize its use, activate the no-kill-steal mode. This setting prevents your character from targeting monsters already engaged by other players, helping you avoid conflicts or potential PvP situations. However, if a quest becomes difficult to complete due to overcrowded areas, you can temporarily disable this mode to overcome the obstacle and move forward.   Item Management and Potions Don't overlook the importance of consumable items, especially health potions. These can be purchased, along with buffs, from general merchants in villages, and they play a crucial role in improving your combat efficiency and ensuring your survival. Always aim to keep a full stock of HP potions and carry buffs that boost attack, defense, or regeneration in batches of 5-10 for convenience.   Once you've acquired your consumables, assign them to your quick slots located at the bottom center of the screen. Swiping down activates these slots, and items like potions will automatically be used when necessary, so you don't need to worry about them mid-battle. Keep a close eye on your potion reserves, as running out during a tough fight could leave you vulnerable before reaching a safe area. In the early stages of the game, it's better to return to town for a restock if supplies are low rather than risking unnecessary defeats. You can also enable notifications to alert you when your health or potion count drops too low—a handy feature for staying prepared if your attention is elsewhere.   Leveling and AFK Farming Once you've mastered the fundamentals, the next step is to focus on leveling up and enhancing your character. Gaining levels is your primary source of progression early on, as it not only improves your stats but also unlocks crucial game features and new abilities. At this stage, simply sticking to the main questline provides a reliable and efficient way to gain experience.   Additionally, Odin includes a highly convenient idle feature called AFK mode. This allows your character to keep farming for resources and experience even when the game is closed, with a maximum duration of 8 hours per day. It's an excellent option for making progress while you're asleep, commuting, or otherwise occupied.   Gear Upgrades When the time comes to improve your gear, the initial focus should be on upgrading from normal-grade equipment to high-grade items. These provide significantly better stats and can be enhanced further to increase their effectiveness. Enhancing requires enhancement stones and gold, but it's important to stay within the safe enhancement limit. Attempting upgrades beyond this limit carries the risk of destroying your gear if the enhancement fails. Stick to safe enhancements until you've gained more experience and accumulated spare equipment to mitigate potential losses.   Skill Purchases When you've accumulated enough gold, it's time to invest in skills. These are crucial for enhancing your combat abilities and provide key benefits tailored to your class, whether it's increasing damage output, improving healing capabilities, or adding valuable utility. Before purchasing, ensure your character meets the level prerequisites for each skill. Your ultimate goal will be progressing through and completing the main questline in Midgard as you continue to develop your character.   Unlocking Jotenheim Finishing this milestone grants you access to the next region, Jetunheim, unlocking a variety of new content and challenges. This marks your first significant achievement in the game and is an essential early objective to strive for as you progress.   Joining a Guild Joining a guild is a highly beneficial step in Odin. Guilds not only provide opportunities for social interaction and group activities but also offer passive bonuses that can significantly enhance your gameplay. Even if you're not particularly active socially, being part of any guild is advantageous. The guild feature becomes accessible after completing Chapter 4, Quest 19 of the main story.   Guilds provide various perks, including buffs that scale with the guild's level. Additionally, you can earn guild coins by contributing through donations, quest completions, or regular logins. These coins can be exchanged for valuable rewards, such as epic-grade armor. The more you actively contribute to your guild, the greater the overall benefits for both you and the guild itself. Joining early and staying involved will undoubtedly strengthen your progression in the game.   Conclusion Here is the end of this beginners' guide. I hope these tips will help you level fast in Odin.
    • You can actually make a pseudomount code in your server, that way it can be displayed.. a friend made it for the l2off and i extended it a bit.. if u have l2off i might be able to help u on that
    • Discord : utchiha_market Telegram : https://t.me/utchiha_market Auto Buy Store : https://utchihamkt.mysellauth.com/ Join our server for more products : https://discord.gg/uthciha-services https://campsite.bio/utchihaamkt
    • Chill guys, Guytis ain't competent enough to make malware even if he wanted to
  • Topics

×
×
  • Create New...