Please Log-in or Register to get full access to the forums.

Lost Password?

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Share] Auto-Enchant 100% working and more!
07-04-2009, 16:33
Post: #1
[Share] Auto-Enchant 100% working and more!
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!

Code:
//made by rocket666
//edited and tweaked by mpj123
//testing, bug solutions and just being cool, MeatWod
INCLUDE StdLibinventory.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

Tutorial by: mpj123

Dont forget to smile Smile
Quote
07-08-2009, 20:34
Post: #2
Re: [Share] Auto-Enchant 100% working and more!
plz a tutorialll u.u
Quote
07-09-2009, 19:33
Post: #3
Re: [Share] Auto-Enchant 100% working and more!
thanks dude Smile nice one

Legends may sleep but they never die..
Quote
07-10-2009, 13:29
Post: #4
Re: [Share] Auto-Enchant 100% working and more!
do not understand  :'( :'( :'(
Quote
07-11-2009, 04:21
Post: #5
Re: [Share] Auto-Enchant 100% working and more!
in some servers you get auto ban or they kick you from the game for using auto enchanting scripts
i got banned in l2 inc.
Quote
07-13-2009, 13:19
Post: #6
Re: [Share] Auto-Enchant 100% working and more!
where i must put this script please help
Quote
07-13-2009, 14:24
Post: #7
Re: [Share] Auto-Enchant 100% working and more!
(07-08-2009 20:34)nahuel1 link Wrote:  plz a tutorialll u.u
(07-10-2009 13:29)lie127 link Wrote:  do not understand  :'( :'( :'(
(07-13-2009 13:19)rangetsu link Wrote:  where i must put this script please help

If u guys read carefully u'll see this, www.ltwonet.com and read the login tutorials, note... this is for l2.net 358+ All the guides and tutorial there.
Quote
07-15-2009, 13:26
Post: #8
Re: [Share] Auto-Enchant 100% working and more!
i dont understand
Quote
07-16-2009, 14:20
Post: #9
Re: [Share] Auto-Enchant 100% working and more!
is that working for l2gracia final ?
Quote
07-18-2009, 22:07
Post: #10
Re: [Share] Auto-Enchant 100% working and more!
lol wat should i do
Quote
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  [Bot] New L2 Auto Helper For Human Archers herort 0 687 11-10-2011 16:29
Last Post: herort
  AIO Auto Enchant v1.2 script (for Gracia Final ct2.3 and safe from auto kick ) mirjanc88 3 1,760 01-09-2010 16:17
Last Post: castor16
  [Share]AUto CP MP HP clicker drdos 3 2,524 01-09-2010 01:08
Last Post: drdos
  [Share] Gracia Final System. Open Editable Unlimited Zoom/Wallhack/Colored Sy Pod3r 3 1,444 11-24-2009 18:18
Last Post: Soul
  [Script] Working AutoAugm 4L2Net nija 0 947 10-22-2009 06:11
Last Post: nija

Forum Jump:


User(s) browsing this thread: 1 Guest(s)