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 (L2.NET)
07-04-2009, 15:58
Post: #1
[Share] Auto-Enchant (L2.NET)
This is a script for high rate servers, it enchants lots of the same item.
Detect when the item broke and jumps to the next and when the enchant is over.
It will enchant all itens with the same name on your invnetory, if you have one you don't want to enchant put in your wh.
Code:
INCLUDE StdLib\inventory.l2c

//Settings
DEFINE STRING ITEMNAME "Icarus Spitter"            //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 20                //Max enchant
DEFINE INT CURENCHANT 0                    //Current enchant, change line 38 too
DEFINE INT DELAY 1000                    //Delay of all actions (ms)

//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 HEXCODE "00 00 00 00"
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&>"
MATH ENCHCODE ENCHUID GET_HEX
DEFINE STRING ENCH "19 <&ENCHCODE&> 00 00 00 00"

//Start actions
FOREACH I Inventory INVEN_AL
    SET ITNAME "<&INVEN_AL.I.NAME&>"
    IF ITNAME == ITEMNAME
        CALLSUB ENCHANT
        PRINT_TEXT "<&ENCHCOUNT&> enchants sobrando. "
        SET CURENCHANT 0
    ENDIF
NEXTEACH

PRINT_TEXT "Done"
SCRIPT_END

SUB ENCHANT

MATH HEXCODE "INVEN_AL.I.ID" GET_HEX

SET ITEM "5F <&HEXCODE&> 00 00 00 00"

WHILE ZERO == ZERO
ITEM_COUNT CRYCOUNT "<&CRYID&>"
IF CURENCHANT < ENCHANT
    ITEM_COUNT ENCHCOUNT "<&ENCHID&>"
    IF ENCHCOUNT > ZERO
        INJECT "<&ENCH&>"
        SLEEP "<&DELAY&>"
        INJECT "<&ITEM&>"
        SLEEP "<&DELAY&>"
        MATH CURENCHANT CURENCHANT ADD ONE

    ITEM_COUNT CRYCOUNT2 "<&CRYID&>"
    IF CRYCOUNT2 > CRYCOUNT
        RETURNSUB
    ENDIF
    ELSE
        PRINT_TEXT "Enchant is over."
        SCRIPT_END
    ENDIF
ELSE
    PRINT_TEXT "Successfully enchanted."
    RETURNSUB
ENDIF
WEND
RETURNSUB

Dont forget to smile Smile
Quote
07-08-2009, 20:27
Post: #2
Re: [Share] Auto-Enchant (L2.NET)
which parameters in the script should i change for make it work? Confused i'm trying to enchant draconic bow in l2core pvp server

thnx in advance =)
Quote
07-11-2009, 15:55
Post: #3
Re: [Share] Auto-Enchant (L2.NET)
gun brokes ?  ???
Quote
07-22-2009, 08:15
Post: #4
Re: [Share] Auto-Enchant (L2.NET)
link Wrote:  gun brokes ?  ???
This is not 100% chance of enchant Big Grin
sure it brokes, u need to buy more weapons and scroll's, then u got chances.
Quote
08-01-2009, 21:21
Post: #5
Re: [Share] Auto-Enchant (L2.NET)
Yeah. Very Good Script.

@To All : the rate % isn't 100 %.

if the rate of the server is 75%... The rate is 75% for the script.
Quote
08-02-2009, 10:45
Post: #6
Re: [Share] Auto-Enchant (L2.NET)
so where do we insert this script ? l2phx or what ? ...
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
  [Share] Auto-Enchant 100% working and more! Pod3r 14 8,499 09-10-2009 01:10
Last Post: noant

Forum Jump:


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