Jump to content

Recommended Posts

Posted

http://ltwonet.com/showthread.php?t=1846

 

This is rocket666's script, fixed and edited by me, and re-fixed and edited by trixy.

 

 

 

This is rocket666's enchant script now fixed for CT 2.3 (Gracia Final)

Special thanks to mpj123 for helping me to better understand the bytebuffer function!

 

Please post problems, suggestions, bugs. Thanks

 

(NOT auto detect S Grade)

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

//Settings
DEFINE STRING ITEMNAME "WEAPON OR ARMOR NAME HERE"            //Item name, don't write the SA
DEFINE STRING ITGRADE "S"                    //Item grade (s80=s)
DEFINE STRING ENCHNAME "Scroll: Enchant Armor (S)"    //Enchant name
DEFINE STRING ENCHANT "16"              //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
DEFINE bytebuffer new_bb 256

my_bb.WRITE_BYTE #i95
my_bb.WRITE_INT32 INVEN_AL.I.ID
my_bb.WRITE_INT32 #i0

new_bb.WRITE_BYTE #i208
new_bb.WRITE_BYTE #i76
new_bb.WRITE_BYTE #i0
new_bb.WRITE_INT32 INVEN_AL.I.ID

WHILE ZERO == ZERO
ITEM_COUNT CRYCOUNT "<&CRYID&>"
IF CURENCHANT < ENCHANT
    ITEM_COUNT ENCHCOUNT "<&ENCHID&>"
    IF ENCHCOUNT > ZERO
        CURENCHANT = CURENCHANT + ONE
        PRINT_TEXT "Your item is enchanting to <&CURENCHANT&>"
        INJECT "<&ENCH&>"
        SLEEP "<&DELAY&>"
        new_bb.TRIM_TO_INDEX
        injectbb new_bb
        SLEEP 1000
        my_bb.TRIM_TO_INDEX
        injectbb my_bb
        SLEEP 300
        ITEM_COUNT CRYCOUNT2 "<&CRYID&>"
        IF CRYCOUNT2 > CRYCOUNT
            DELETE new_bb
            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 new_bb
    DELETE my_bb
    RETURNSUB
ENDIF
WEND
RETURNSUB

EDIT: Ok So I went and changed a few things, I made it so it will now auto detect if you are enchanting S grade or not.

Just Remember to change the DEFINE STRING ITGRADE "S" line, to whatever you need.

 

Also I adjusted the placement of the Definable DELAY. It was after using the enchant scroll, now it's after clicking "ENCHANT".

The slower I ran this script with this DEFINE INT DELAY 4000 (4 seconds delay after clicking enchant button) the more accurate it was.

Had a little lag on the server while waiting for crystals or successful enchant.

 

Use either one you want, hope it works for ya, worked fine for me for an hour.

 

(AUTO detect S Grade)

//made by rocket666
//edited and tweaked by mpj123
//testing, bug solutions and just being cool, MeatWod
//new_bb & S-Grade Auto Detection - trixy
INCLUDE StdLib\inventory.l2c

//Settings
DEFINE STRING ITEMNAME "WEAPON OR ARMOR NAME"            //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 "14"                          //Max enchant (# to stop at)
DEFINE INT CURENCHANT 0                           //Current enchant,change lines 44 & 48 ALSO!!!
DEFINE INT DELAY 4000                                  //Delay of all actions in MS
DEFINE INT SUCCESSENCHANTED 0

//Some definitions
DEFINE STRING CRYSTAL "Crystal: <&ITGRADE&> Grade"
DEFINE STRING CRYSTAL2 "Crystal: <&ITGRADE&>-Grade"
DEFINE INT CRYID 0
DEFINE INT CRYID2 0
DEFINE INT CRYCOUNT 0
DEFINE INT CRYCOUNT2 0
ITEM_GET_ID CRYID "<&CRYSTAL&>"
ITEM_GET_ID CRYID2 "<&CRYSTAL2&>"
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
       IF ITGRADE != #$S
            CURENCHANT = #i0
            CALLSUB ENCHANT_OTHER
            PRINT_TEXT "<&ENCHCOUNT&> enchants remaining."
       ELSE
            CURENCHANT = #i0
            CALLSUB ENCHANT_SGRADE
            PRINT_TEXT "<&ENCHCOUNT&> enchants remaining."
       ENDIF
  ENDIF
NEXTEACH
PRINT_TEXT "<&SUCCESSENCHANTED&> are currently enchanted successfully to <&ENCHANT&>"
PRINT_TEXT "Done"
SCRIPT_END

SUB ENCHANT_OTHER
DEFINE bytebuffer my_bb 256
DEFINE bytebuffer new_bb 256

my_bb.WRITE_BYTE #i95
my_bb.WRITE_INT32 INVEN_AL.I.ID
my_bb.WRITE_INT32 #i0

new_bb.WRITE_BYTE #i208
new_bb.WRITE_BYTE #i76
new_bb.WRITE_BYTE #i0
new_bb.WRITE_INT32 INVEN_AL.I.ID

WHILE ZERO == ZERO
ITEM_COUNT CRYCOUNT "<&CRYID2&>"
IF CURENCHANT < ENCHANT
    ITEM_COUNT ENCHCOUNT "<&ENCHID&>"
    IF ENCHCOUNT > ZERO
        CURENCHANT = CURENCHANT + ONE
        PRINT_TEXT "Your <&ITEMNAME&> is enchanting to <&CURENCHANT&>"
        INJECT "<&ENCH&>"
        SLEEP 500
        new_bb.TRIM_TO_INDEX
        injectbb new_bb
        SLEEP 500
        my_bb.TRIM_TO_INDEX
        injectbb my_bb
        SLEEP "<&DELAY&>"
        ITEM_COUNT CRYCOUNT2 "<&CRYID2&>"
        IF CRYCOUNT2 > CRYCOUNT
            DELETE new_bb
            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 new_bb
    DELETE my_bb
    RETURNSUB
ENDIF
WEND
RETURNSUB


SUB ENCHANT_SGRADE
DEFINE bytebuffer my_bb 256
DEFINE bytebuffer new_bb 256

my_bb.WRITE_BYTE #i95
my_bb.WRITE_INT32 INVEN_AL.I.ID
my_bb.WRITE_INT32 #i0

new_bb.WRITE_BYTE #i208
new_bb.WRITE_BYTE #i76
new_bb.WRITE_BYTE #i0
new_bb.WRITE_INT32 INVEN_AL.I.ID

WHILE ZERO == ZERO
ITEM_COUNT CRYCOUNT "<&CRYID&>"
IF CURENCHANT < ENCHANT
    ITEM_COUNT ENCHCOUNT "<&ENCHID&>"
    IF ENCHCOUNT > ZERO
        CURENCHANT = CURENCHANT + ONE
        PRINT_TEXT "Your <&ITEMNAME&> is enchanting to <&CURENCHANT&>"
        INJECT "<&ENCH&>"
        SLEEP 500
        new_bb.TRIM_TO_INDEX
        injectbb new_bb
        SLEEP 500
        my_bb.TRIM_TO_INDEX
        injectbb my_bb
        SLEEP "<&DELAY&>"
        ITEM_COUNT CRYCOUNT2 "<&CRYID&>"
        IF CRYCOUNT2 > CRYCOUNT
            DELETE new_bb
            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 new_bb
    DELETE my_bb
    RETURNSUB
ENDIF
WEND
RETURNSUB

Posted

er can u make the script enchant one by one like easy2k4 's script. his script doesnt work since l2 gracia ct2.3 have been updated!

i know this script very useful but when i enchant the weap to +5 and i have some weap still +4 when i want to enchant the weap still +4 to +5 but this script enchant my weap +5 frist, then +4 after and i get tons of cry :((

Posted

er can u make the script enchant one by one like easy2k4 's script. his script doesnt work since l2 gracia ct2.3 have been updated!

i know this script very useful but when i enchant the weap to +5 and i have some weap still +4 when i want to enchant the weap still +4 to +5 but this script enchant my weap +5 frist, then +4 after and i get tons of cry :((

 

Slow down your int delay, and it wont mess up. The other enchant scripts could be easily fixed using the "new_bb" bytebuffers and inject them..... I just dont have the time right now to go through all the old enchant scripts to fix them. I like this one most :)

 

Enjoy.. Thanks mpj

Posted

this is my favorite, I just set the enchant to 5, then run the script once with 1 enchant to each until they all break.

Posted

these enchant scripts were already made a while back, we just updated it to support ct2.3 packets now.

Posted

I play on L2Inc and this script is working for S grade , still , for A grade or lower it might have a problem or do i , when i try to enchant  something it show me that .... tallum armor is enchanted to 10 ,  i got cristals , and he don`t start another armor  it shows to me that he is enchanting to 11 ..... and all items are succeseful enchanted .... does anyone have any idea????

Guest
This topic is now closed to further replies.


  • Posts

    • Virtual numbers for full control and flexibility. We offer long-term number rental (days, months) and one-time SMS receiving — all in one service. Long-term rental is suitable for stable access to accounts, repeated verifications, and number retention. One-time numbers are for quick registrations and single-use operations. Reliable SMS delivery, predictable results, and convenience that even many large SMS services do not offer. Go to the SMS service
    • Telegram gifts are once again showing growth. This is associated with a possible pause in the gift release pipeline by Pavel Durov, as well as the approaching New Year, when demand traditionally increases. Against this backdrop, Telegram Stars, the platform’s internal currency, are once again coming to the forefront. With their help, users send gifts, subscribe to Telegram Premium, and use paid features within the Telegram ecosystem. Buy Telegram Stars with maximum benefit in our bot
    • Telegram gifts are once again showing growth. This is associated with a possible pause in the gift release pipeline by Pavel Durov, as well as the approaching New Year, when demand traditionally increases. Against this backdrop, Telegram Stars, the platform’s internal currency, are once again coming to the forefront. With their help, users send gifts, subscribe to Telegram Premium, and use paid features within the Telegram ecosystem. Buy Telegram Stars with maximum benefit in our bot
    • 流量套利 + SMM 面板 — 强大的增长组合. 通过社交信号加强推广活动,提高信任度和转化率,加速扩张。 为套利专员和 SMM 提供的所有工具 — 在一个地方. 有效链接: SMM 面板: 前往 – 推广您的社交媒体账户。 其他服务和产品: 数字商品商店(网站): 前往 商店 Telegram 机器人: 前往 – 通过 Telegram 信使方便访问商店。 虚拟号码服务: 前往 用于购买 Telegram Stars 的 Telegram 机器人: 前往 – 在 Telegram 中快速且优惠地购买 Stars。 SMM 面板: 前往 – 推广您的社交媒体账户。 我们想向您展示当前促销和特别优惠列表,用于购买我们服务的产品和服务: 1. 您可以在首次购买时使用促销代码:SOCNET(15% 折扣) 2. 获取 $1 商店余额或 10–20% 折扣——只需在我们网站注册后按以下模板填写您的用户名:"SEND ME BONUS, MY USERNAME IS..." ——您需要在我们的论坛主题中发布! 3. SMM 面板首次试用可获得 $1:只需在我们的网站(Support)提交主题为 “Get Trial Bonus” 的工单。 4. 我们的 Telegram 频道和 Stars 购买机器人中每周都会赠送 Telegram Stars! 新闻: ➡ Telegram 频道: https://t.me/accsforyou_shop ➡ WhatsApp 频道: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord 服务器: https://discord.gg/y9AStFFsrh 联系方式和支持: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
    • Traffic arbitrage + SMM panel — a powerful combination for growth. Strengthen campaigns with social signals, increase trust and conversion, scale faster. All tools for arbitrage specialists and SMM — in one place. Active links: SMM Panel: Go to – promotion of your social media accounts. Other services and products: Digital goods store (Website): Go to Store Telegram bot: Go to – convenient access to the store via the Telegram messenger. Virtual numbers service: Go to Telegram bot for purchasing Telegram Stars: Go to – fast and profitable purchase of Stars in Telegram. SMM Panel: Go to – promotion of your social media accounts. We want to present to you the current list of promotions and special offers for purchasing products and services of our service: 1. You can use a promo code for your first purchase: SOCNET (15% discount) 2. Get $1 on your store balance or a 10–20% discount — just write your username after registering on our website using the following template: "SEND ME BONUS, MY USERNAME IS..." – you need to post this in our forum thread! 3. Get $1 for the first trial launch of the SMM Panel: just open a ticket with the subject “Get Trial Bonus” on our website (Support). 4. Weekly Telegram Stars giveaways in our Telegram channel and in our bot for purchasing stars! 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 and support: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
  • 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