Jump to content

L2 Net Auto Attribute Script


adeku015

Recommended Posts

We all know that its kinda boring to add attribute xD

I found some Auto Attribute by using script in l2 net

Credits to Mochitto .

You just need to edit the "STONE" And "Item"

For sure you are not really dumb not to read the script before using :)

// Auto Add Attribute

// Server: all

// Autor: mochitto

// Date: 1. 10. 2010

// Special thanks for L2.NET contributors

// rev.: 11

PRINT_TEXT "SCRIPT STARTED!]"

INCLUDE "StdLib\Inventory.l2c"

 

DEFINE_GLOBAL ARRAYLIST Inven

DEFINE_GLOBAL INT      ItemID

DEFINE_GLOBAL STRING    STONE

DEFINE_GLOBAL STRING    ITEM

 

// Edit the elemental stone name and name of item

STONE = "#$Holy Crystal" 

ITEM  = "#$Pyseal Blade {PvP}"

 

// Main section

// ===============================

GET_INVENTORY Inven

FOREACH A INVENTORY Inven

    IF Inven.A.NAME == ITEM

        SLEEP 200

        PRINT_TEXT "Found item: +<&Inven.A.ENCHANT&> <&Inven.A.NAME&>"

        PRINT_TEXT "Elements start in 5 sec."

        SLEEP 5000

        ItemID = Inven.A.ID

        ADD_ELEMENT

    ENDIF

NEXTEACH 

 

PRINT_TEXT "Item <&ITEM&> was not found :(" 

 

PRINT_TEXT "SCRIPT STOPED!]"

END_SCRIPT

 

FUNCTION ADD_ELEMENT

    DEFINE INT COUNT 0

    WHILE ZERO == ZERO

        GET_INVENTORY Inven

        SLEEP 800

        FOREACH A INVENTORY Inven

            IF Inven.A.NAME == STONE

                COUNT = Inven.A.COUNT

                USE_ITEM "<&Inven.A.ITEM_ID&>"

                SLEEP 400

                IF COUNT > 1

                    PRINT_TEXT "Element with <&Inven.A.NAME&>"

                    INJECT "D0 35 00 <&ItemID.GET_HEX32&>"

                ELSE

                    BREAK 4

                ENDIF

            ENDIF

        NEXTEACH

        IF COUNT == 0

            BREAK 2

        ENDIF

        SLEEP 25

    WEND

    PRINT_TEXT "<&STONE&> was not found :("

    PRINT_TEXT "SCRIPT STOPED!]"

    END_SCRIPT   

RETURN VOID

Link to comment
Share on other sites

Its says "SCRIP STARTED!" but IG when the element window auto opens, It cancels instead of confirm to add attr and I guess its cuz it doesnt select the item, what should I do in this case? ;p

Link to comment
Share on other sites

Hmm . Sometimes Ncsoft fvcked out the name of items

Like the breastplates(the main body) It says Vorpal Leather Breastplate {PvP}

But theres a space after "Breastplate"

So you need to include a space after the name of the main body armor

Legging helmet gloves and boots is normal . Just the main body

Dont include the SA of a weapon . Just the {PvP}

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



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