Jump to content

[SHARE]Enchanting one by one at L2Net (made by easy2k4) (GRACIA FINAL)


Recommended Posts

Posted

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

 

Ok so alot of people were requesting this, so here it is.

 

Enjoy

 

 

(onexone.l2s)

///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
// made by easy2k4
// gracia final ct2.3 trixy/phear3d
// enchanting w/a/j (with different enchant's levels) one by one 
// starting from item with the lowest enchant's level, and stops
// on the last one (or few if you wish)
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////

INCLUDE StdLib\inventory.l2c

///////////////////////////////////////////////////////////////////////////////

// You can (need to) change these values :)

DEFINE_GLOBAL STRING selected_enchanted_item "Demon Dagger"
DEFINE_GLOBAL STRING selected_enchanted_scroll "Scroll: Enchant Weapon (B)"
DEFINE_GLOBAL STRING selected_enchanted_crystals "Crystal: B-Grade"
DEFINE_GLOBAL INT loop_delay 1100
DEFINE_GLOBAL INT number_of_items_which_should_stay 1

///////////////////////////////////////////////////////////////////////////////

// start -->>

    Enchant_one_by_one_v2

SCRIPT_END



FUNCTION Enchant_one_by_one_v2

    DEFINE STRING item_name 0
    DEFINE ARRAYLIST bag_inventory 0    

    DEFINE INT enchanted_items_count 0
    DEFINE INT enchanted_scrolls_count 0
    DEFINE INT crystals_count 0
    DEFINE INT crystals_count_after_enchanting 0

    DEFINE INT id_of_item 0
    DEFINE INT id_of_enchant 0
    DEFINE INT id_of_crystals 0

    DEFINE Inventory current_enchanted_item 0
    DEFINE INT current_enchant_level 9999
    DEFINE INT current_items_count 0

    DEFINE Inventory item_of_scroll 0

    DEFINE INT enchanting_process 0

    DEFINE INT enchant_size 0    

    DEFINE INT random_loop_delay 0

    ITEM_GET_ID id_of_enchant "<&selected_enchanted_scroll&>"
    ITEM_COUNT enchanted_scrolls_count "<&id_of_enchant&>"

    ITEM_GET_ID id_of_crystals "<&selected_enchanted_crystals&>"
    ITEM_COUNT crystals_count "<&id_of_crystals&>"
    ITEM_COUNT crystals_count_after_enchanting "<&id_of_crystals&>"

    ITEM_GET_ID id_of_item "<&selected_enchanted_item&>"    

    PRINT_TEXT " "
    PRINT_TEXT "------------------------------"
    PRINT_TEXT "Enchant one by one has started"
    PRINT_TEXT "v 2"
    PRINT_TEXT "by easy2k4"
    PRINT_TEXT "------------------------------"
    PRINT_TEXT " "

    GET_INVENTORY bag_inventory
    FOREACH item Inventory bag_inventory
        item_name = bag_inventory.item.name
        
        if item_name == selected_enchanted_item
            enchanted_items_count = enchanted_items_count + ONE
        endif 

        if item_name == selected_enchanted_scroll
            item_of_scroll = bag_inventory.item
        endif 
    NEXTEACH

    PRINT_TEXT "Selected item is: <&selected_enchanted_item&> (x<&enchanted_items_count&>)"
    PRINT_TEXT "Selected scroll is <&selected_enchanted_scroll&> (x<&enchanted_scrolls_count&>)"
    PRINT_TEXT "Selected crystals are <&selected_enchanted_crystals&> (x<&crystals_count&>)"
    PRINT_TEXT "Number of items which you want to keep is <&number_of_items_which_should_stay&>"
    PRINT_TEXT " "    

    if enchanted_items_count <= number_of_items_which_should_stay
        PRINT_TEXT "Not enough items to enchanting."
        RETURN VOID
    endif

    if enchanted_scrolls_count < ONE
        PRINT_TEXT "Not enough scrolls to enchanting."
        RETURN VOID
    endif

    enchanting_process = ONE

    do
        bag_inventory.clear
    
        GET_INVENTORY bag_inventory
        
        current_enchant_level = #i9999
        current_items_count = ZERO

        ITEM_COUNT crystals_count "<&id_of_crystals&>"
        ITEM_COUNT enchanted_scrolls_count "<&id_of_enchant&>"

        FOREACH item Inventory bag_inventory
            item_name = bag_inventory.item.name
                
            if item_name == selected_enchanted_item    
                current_items_count = current_items_count + ONE
                
                if bag_inventory.item.enchant < current_enchant_level
                    current_enchant_level = bag_inventory.item.enchant
                    current_enchanted_item = bag_inventory.item
                endif
            endif 
        NEXTEACH

        if current_items_count <= number_of_items_which_should_stay
            PRINT_TEXT " "
            PRINT_TEXT "The number of items which you have kept is: <&current_items_count&>"
            PRINT_TEXT " "

            enchanting_process = ZERO
        endif

        if enchanted_scrolls_count < ONE
            PRINT_TEXT " "
            PRINT_TEXT "Not enough scrolls to enchanting."
            PRINT_TEXT " "

            enchanting_process = ZERO
        endif

        if enchanting_process == ONE
            DEFINE BYTEBUFFER buffer_of_selected_enchant 256
            DEFINE BYTEBUFFER buffer_of_selected_item 256
            DEFINE BYTEBUFFER buffer_of_selecting_item 256
            
            buffer_of_selected_enchant.write_byte #i25
            buffer_of_selected_enchant.write_int32 item_of_scroll.id
            buffer_of_selected_enchant.write_int32 #i0
            buffer_of_selected_enchant.trim_to_index
            INJECTBB buffer_of_selected_enchant
            SLEEP "<&loop_delay&>"

            buffer_of_selecting_item.write_byte #I208
            buffer_of_selecting_item.write_byte #I76
            buffer_of_selecting_item.write_byte #I0
            buffer_of_selecting_item.write_int32 current_enchanted_item.id
            buffer_of_selecting_item.trim_to_index
            INJECTBB buffer_of_selecting_item
            SLEEP "<&loop_delay&>"

            GET_RAND random_loop_delay 200 400
            SLEEP "<&random_loop_delay&>"

            buffer_of_selected_item.write_byte #i95
            buffer_of_selected_item.write_int32 current_enchanted_item.id
            buffer_of_selected_item.write_int32 #i0
            buffer_of_selected_item.trim_to_index
            INJECTBB buffer_of_selected_item
            SLEEP "<&loop_delay&>"

            ITEM_COUNT crystals_count_after_enchanting "<&id_of_crystals&>"

            if crystals_count_after_enchanting > crystals_count
                PRINT_TEXT "<&selected_enchanted_item&> has been crystallized at +<&current_enchant_level&>"
            else                    
                PRINT_TEXT "<&selected_enchanted_item&> has been enchanted from +<&current_enchant_level&>"
            endif    
            
            DELETE buffer_of_selected_enchant
            DELETE buffer_of_selected_item
            DELETE buffer_of_selecting_item
        endif

    loop enchanting_process == ONE    

    PRINT_TEXT "List of enchanted items:"
    PRINT_TEXT "--------------------------------------------------------"

    GET_INVENTORY bag_inventory

    ITEM_COUNT crystals_count "<&id_of_crystals&>"
    ITEM_COUNT enchanted_scrolls_count "<&id_of_enchant&>"

    FOREACH item Inventory bag_inventory
        item_name = bag_inventory.item.name
                
        if item_name == selected_enchanted_item            
            PRINT_TEXT "<&bag_inventory.item.name&> +<&bag_inventory.item.enchant&>"
        endif 
    NEXTEACH

    PRINT_TEXT " "
    PRINT_TEXT "The end of Enchanting One by One v2 :) by easy2k4 "
    PRINT_TEXT "Gracia Final (CT2.3) trixy/phear3d"
    PRINT_TEXT " "

RETURN VOID

Posted

thank easy2k4, it's a very nice enchant script too, I just made it come back to life :)

 

I ran it with about 10 demon daggers. Ran great. on IG and OOG l2.net bot.

Tested the stop with 1 item, 2, 3 items, etc....... all works great.

 

Even changed it so now it'll tell ya what you're enchanting, not "item is enchanting" ;)

 

Good luck!!

 

  • 2 weeks later...
Posted

with the new update, this will get you kicked, use the newer script version by trixy or update the delays yourself.

  • 1 month later...
  • 3 weeks later...
Posted

This is an easy way of making money in l2j servers.

 

You buy many weapons, many enchants and then you let the script to run.

You collect the weapons that succeded enchant and start selling them.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • Care to detail why ?   L2JHellas probably got the same issue, it's inherent to L2J if you don't rework Player intentions (and solving it with a Config < 500 attack is stupid, if it works for attack it works for other types of desires), also last time I checked L2JHellas he was using my changesets to fix its own stuff (which is ok, copy-paste my knownlist system which is 10y old is fine, but don't say it will act different since it's literally the same sub-system).   About Lucera code source isn't available so it's easy to say it's better, internally you got no clue what is happening and RU forks got the "feeling" to get everything, but everything is half done, everytime I put an eye on such sources (whatever based on l2ru, they only know how to copy-paste each other).   In the other hand, you seem to use aCis since years (I think I see your name since a decade, and you still use it since you made this topic :   Be a little more appreciative about the work done, it's not only mine but my community aswell, and if you find something, consider to report rather than getting such an idiotic behavior.   I understand you're not forced to share any type of fixes, and than people tend to feel superior when they fix something than aCis didn't yet fix. The thing is, for each bug you found, I found and fixed 10x more than you.   409 is way beyond 382 in all possible ways, if you believe the versus good for you, but don't make ppl believe it's the case, because it's not. There's at least 400+ fixed issues (and that's counting 10 issues by revision, which is kinda low) and entire new systems (spawns, SCHs, pathfind, whole AI implemented, Desire system,...).
    • better than using 409... Search for L2jHellas or Lucera and you won't have any headaches.
    • General Trackers :   IPTorrents invite IPTorrents account 1 tb TorrentLeech invite Torrentleech account 1 tb buffer  InTheShaDow ( ITS ) account Acid-lounge invite Torrentday invite Crnaberza account Abn.Lol account Limit-of-eden account Norbits account Xspeeds account Xspeeds invite Bemaniso invite Wigornot account Bithumen invite Filelist account Funfile invite AvistaZ invite Potuk.net invite ResurrectThe.Net invite GrabThe.Info invite Greek-Team invite LinkoManija invite Fano.in account tracker.czech-server.com Speed.cd invite Arab-torrents.net account Arabscene.me account Scenetime account 4thd.xyz invite Btarg.com.ar account Dedbit invite Estone.cc account Speedapp invite Finvip invite Fluxzone account GigaTorrents account Gimmepeers account Haidan.video invite Mojblink account Mycarpathians invite Newinsane.info account Oscarworld.xyz account Peers.FM invite Pt.msg.vg account Ransackedcrew account Redemption invite Scene-rush account Seedfile.io invite Teracod invite Torrent.ai account Torrentmasters invite Ttsweb invite X-files invite X-ite invite Ncore account TorrentHR account Rptorrents account BwTorrents account Superbits invite Krazyzone account Immortalseed account Tntracker invite Pt.eastgame.org account Bitturk account Rstorrent account Tracker.btnext invite Torrent-turk.de account BeiTai.PT account Pt.keepfrds account 52pt.site account Pthome account Torrentseeds account Aystorrent account Blues-brothers.biz invite Divteam account Thesceneplace invite CinemaMovies.pl account Brasiltracker account Patiodebutacas account Newheaven.nl account  Swarmazon.club invite Bc-reloaded account Crazyspirits account Silentground invite Omg.wtftrackr invite Milkie.cc invite Breathetheword invite Madsrevolution account Chilebt account Yubraca account Uniongang.tv account Frboard account Exvagos account Diablotorrent account Microbit account Carp-hunter.hu account Majomparade.eu account Theshinning.me account Youiv.info account Dragonworld-reloaded account Sharewood.tv account Partis.si account Digitalcore.club invite Fuzer.me account R3vuk.wtf invite Ztracker account 1 tb buffer 3changtrai account Best-core.info account Bitsite.us account Eliteunitedcrew invite Exitorrent.org account Tophos invite Torrent.lt account Sktorrent.eu account Oshen account Blackhattorrent account Pirata.digital account Esharenet account Ohmenarikgi.la Pirate-share account Immortuos account Kiesbits account Cliente.amigos-share.club account Broadcity invite Ilovetorzz account Torrentbytes account Polishsource account Portugas invite Shareisland account ArabaFenice account Hudbt.hust.edu.cn account Audiences account Nanyangpt account Pt.sjtu.edu.cn account Pt.zhixing.bjtu.edu.cn account Byr.pt invite Ptfiles invite Red-bits account Pt.hdpost.top account Irrenhaus.dyndns.dk (NewPropaganda) account Mnvv2.info (MaxNewVision V2) account 1ptba.com account Spidertk.top account Film-paleis account Generation-free account Aftershock-tracker account Twilightsdreams account Back-ups.me invite Sor-next.tk ( Spirit Of Revolution ) account Tfa.tf ( The Falling Angels ) account Hdmayi account S-f-p.dyndns.dk ( Share Friends Projekt ) account Unlimitz.biz account Pttime account St-tracker.eu account New-retro.eu account Zbbit account Tigers-dl.net account Jptvts.us account Lat-team account Club.hares.top account Falkonvision-team account Concen account Drugari account T.ceskeforum account Peeratiko.org account Zamunda.se account Central-torrent.eu account h-o-d.org account Torrentleech.pl account Demonoid invite Lst.gg account Fakedoor.store account LaidBackManor account Vrbsharezone.co.uk invite Torrenteros account Arenaelite account Datascene account Tracker.0day.community Tapochek.net invite Ptchina invite Lesaloon account Exyusubs account Therebels.tv account Ubits.club invite Zmpt.cc account Turktorrent.us account Dasunerwarte account Hawke.uno account Monikadesign account Fearnopeer account Alpharatio account Wukongwendao.top account Chinapyg account Azusa.wiki account Yggtorrent.top account Torrentdd account Cyanbug.net invite Hhanclub.top account Wintersakura.net account Xthor account Tctg.pm account Finelite invite Agsvpt.com account Pt.0ff.cc invite Qingwapt.com account Xingtan.one account Ptcafe.club invite Theoldschool.cc account W-o-t.pro account Coastal-crew.bounceme.net account Darkpeers.org account Pianyuan.org account Seedpool.org  account Tempelbox account Pt.itzmx.com account Capybarabr.com account Itatorrents.xyz  account Letseed.org account The-new-fun.com  account Malayabits.cc account Trellas.me account Yu-scene.net account Futuretorrent.org account Bitpt.cn account Tocashare.biz  account   Movies Trackers :   Anthelion account Pixelhd account Cinemageddon account DVDSeed account Cinemageddon account Cinemaz account Retroflix account Classix-unlimited - invite Movie-Torrentz (m2g.link) invite Punck-tracker.net account Tmghub account Tb-asian account Cathode-ray.tube account Greatposterwall account Telly account Arabicsource.net account Upload.cx account Crabpt.vip invite Onlyencodes.cc account Exyusubs account Hellashut.net invite Nordichd.sytes.net invite Locadora.cc account   HD Trackers :   Hdf.world account Torrentland.li account HdSky account Hdchina account Chdbits account Totheglory account Hdroute account Hdhome account TorrentCCF aka et8.org account 3DTorrents invite HD-Torrents account Bit-HDTV account HDME.eu invite Hdarea.co account Asiancinema.me account JoyHD invite HDSpace invite CrazyHD invite Bluebird-hd invite Htpt.cc account Hdtime invite Ourbits.club account Hd4fans account Siambit account Privatehd account Springsunday account Tjupt account Hdcity.leniter invite Ccfbits account Discfan account Pt.btschool.club account Ptsbao.club invite Hdzone.me invite Danishbytes account Zonaq.pw account Tracker.tekno3d account Arabp2p account Hd-united account Reelflix.xyz account Hdatmos.club account Anasch.cc invite Tigris-t account Nethd.org account Hd.ai invite Hitpt.com account Hdmonkey account Dragonhd.xyz account Hdclub.eu account Forum.bluraycd.com account Carpt account Hdfun.me invite Pt.hdupt invite Puntotorrent account Ultrahd account Rousi.zip account Bearbit account Hdturk.club account Asiandvdclub account Star-space.net account Nordicq.org account Hdkyl.in account Utp.to account   Music Trackers :   Dicmusic account Music-Vid account Open.cd account LzTr account ProAudioTorrents invite Jpopsuki invite TranceTraffic invite Audionews invite Kraytracker invite Libble.me invite Losslessclub invite Indietorrents.com invite Dimeadozen account Funkytorrents invite Karaokedl account zombtracker.the-zomb account Concertos account Sugoimusic account Satclubbing.club invite Metal.iplay invite Psyreactor invite Panda.cd account Adamsfile account Freehardmusic account Tracker.hqmusic.vn accouunt Twilightzoom account 3 tb buffer Hiresmusic account Metalguru account Musictorrents.org account Musebootlegs.com invite Zappateers.com account   E-Learning Trackers :   BitSpyder invite Brsociety account Learnbits invite Myanonamouse account Libranet account 420Project account Learnflakes account Pt.soulvoice.club account P2pelite account Aaaaarg.fail invite Ebooks-shares.org account Abtorrents account Pt.tu88.men invite Docspedia.world invite   TV-Trackers :   Skipthecommericals Cryptichaven account TV-Vault invite Shazbat.TV account Myspleen account Tasmanit.es invite Tvstore.me account Tvchaosuk account Jptv.club account Tvroad.info   XXX - Porn Trackers :   FemdomCult account Pornbay account Pussytorrents account Adult-cinema-network account Bootytape account 1 Tb buffer Exoticaz account Bitporn account Kufirc account Gaytorrent.ru invite Nicept account Gay-torrents.org invite Ourgtn account Pt.hdbd.us account BitSexy account Happyfappy.org account Kamept.com account Lesbians4u.org account   Gaming Trackers :   Mteam.fr account BitGamer invite Retrowithin invite Gamegamept account   Cartoon/Anime/Comic Trackers :   Animeworld account Oldtoons.world account U2.dmhy account CartoonChaos invite Animetorrents account Mononoke account Totallykids.tv account Bakabt.me invite Revanime account Ansktracker account Tracker.shakaw.com.br invite Bt.mdan.org account Skyey2.com account Animetracker.cc Adbt.it.cx invite Tracker.uniotaku.com account   Sports Trackers :   MMA-Tracker invite T3nnis.tv invite AcrossTheTasman account RacingForMe invite Sportscult invite Ultimatewrestlingtorrents account Worldboxingvideoarchive invite CyclingTorrents account Xtremewrestlingtorrents account Tc-boxing invite Mma-torrents account Aussierul invite Xwt-classics account Racing4everyone account Talk.tenyardtracker account Stalker.societyglitch invite Extremebits invite Rgfootball.net account F1carreras.xyz account   Software/Apps Trackers :   Brokenstones account Appzuniverse invite Teamos.xyz account Macbb.org account Graphics Trackers: Forum.Cgpersia account Gfxpeers account Forum.gfxdomain account Documentary Trackers: Forums.mvgroup account   Others   Fora.snahp.eu account Board4all.biz account Filewarez.tv account Makingoff.org/forum account Xrel.to account Undergunz.su account Corebay account Endoftheinter.net ( EOTI ) account Thismight.be invite Skull.facefromouter.space account Avxhm.se (AvaxHome) account Ssdforum account Notfake.vip account Intotheinter.net account Tildes.net invite Thetoonz account Usinavirtual account Hdclasico invite HispaShare account Valentine.wtf account Adit-hd account Forum-andr.net account Warezforums account Justanothermusic.site account Forbiddenlibrary.moe account Senturion.to account Movieparadise account Militaryzone account Dcdnet.ru account Sftdevils.net account Heavy-r.com account New-team.org account Ddl.tv account Filewarez.club account Hispamula.org account Hubwarez.tv account   NZB :   Drunkenslug account Drunkenslug invite Usenet-4all account Brothers-of-Usenet account Dognzb.cr invite Kleverig account Nzb.cat account Nzbplanet.net invite Ng4you.com account Nzbsa.co.za account Bd25.eu account NZB.to account Samuraiplace account Tabula-rasa.pw account Abhdtv.net account Abook.link account Comix.pw account House-of-usenet Secretbinaries.net account Vnext.to account Stockboxx.top account Prices start from 3 $ to 100 $   Payment methods: Crypto, Neteller, Webmoney, Revolut   If you want to buy something send me a pm or contact me on:   Email: morrison2102@gmail.com   Discord: LFC4LIFE#4173   Telegram: https://t.me/LFC4LIFE4173   Skype: morrison2102@hotmail.com
  • 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