Jump to content

Recommended Posts

Posted

закупаемся книжками, выставляем уровень заточки и ник

точим на +1, скрипт продолжает пока не точнет до указанного уровня

ЗЫ точить надо с нуля, иначе счетчик не правильно считать начнет

 

 

 

delpi code:

 

const

  nik='xxxxx';

  Enchant=13;

 

var

  SubID, SkillID, SkillLvl, CurrEnch: integer;

 

procedure Init; //Вызывается при включении скрипта

begin

 

end;

 

procedure OnTimer01(Sender: TObject);

begin

 

end;

 

procedure Free; //Вызывается при выключении скрипта

begin

CurrEnch:=0;

end;

 

procedure OnConnect(WithClient: Boolean); //Вызывается при установке соединения

begin

 

end;

 

procedure OnDisonnect(WithClient: Boolean); //Вызывается при потере соединения

begin

 

end;

 

//основная часть скрипта

//вызывается при приходе каждого пакета если скрипт включен

begin

    if FromServer and (pck[1]=#$62) then case pck[2] of

        #$A0:  //точнулся

                if CurrEnch<Enchant then

                  begin

                    CurrEnch:=CurrEnch+1;

                    Buf:=#$D0;

                    WriteH(SubID);

                    WriteD(SkillID);

                    WriteD(SkillLvl+CurrEnch);

                    SendToServerEx(nik);

                  end;

        #$A1:  //не точнулся

            begin

                    CurrEnch:=1;

 

                    Buf:=#$D0;

                    WriteH(SubID);

                    WriteD(SkillID);

                    WriteD(SkillLvl+CurrEnch);

                    SendToServerEx(nik);

 

            end;

    end;

 

    if FromClient and (pck[1]=#$D0) then

        begin

          SubID:=ReadH(2);

          SkillID:=ReadD(4);

          SkillLvl:=ReadD(8)-1;

          CurrEnch:=1;

        end;

end.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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.



  • Posts

    • Introducing my CMS – a Personal Account System for your L2J & PTS servers! Fully Ready-to-Use Features:  Master Account: Registration, password change, password recovery  Game Account: Game account registration, password change, password recovery  Statistics: Top PVP, Top PK, Clans, Alliances, Epic Bosses, Castles  Multilingual Support: Available in English & Russian (other languages can be added)  Payment Systems: Stripe, PayPal, Freekassa, Enot, PrimePayments, BetaTransfer (more coming soon)  Bonus System:  Percentage-based bonus from purchases  Item rewards after purchasing in-game currency  Personal Account System: Login via Master Account, password management  Storage System: Store donation/bonus items and transfer them to the game  Ticket System: Players can submit support tickets; admins respond via the admin panel  Unstuck Feature: Allows players to teleport their character to town  Account Synchronization: Easily migrate from other CMS platforms  Custom Design Integration: We integrate your main page design (HTML, CSS, JS) for free  Modern UI: Comes with a sleek Lineage 2-style account panel  Easy Configuration: All settings managed via a config file for convenience  Installation Assistance: Help with installing the CMS on your hosting, VPS, or VDS Check out all CMS features at:  lin2web.com  Demo site Supported Servers: PTS: Vaganth, Depmax64 (AdvExt)  L2J: Lucera2, L2J-Scripts, aCis, L2J-Eternity, L2JMobius, PWSoft, and others  Price: $250  I’m available on Telegram & Discord – always ready to assist!   Telegram Discord
    • DISCORD : https://discord.com/users/325653525793210378 utchiha_market telegram : https://t.me/utchiha_market SELLIX STORE : https://utchihamkt.mysellix.io/ Join our server for more products : https://discord.gg/uthciha-services https://campsite.bio/utchihaamkt  
    • Unfortunately you haven't adapted yet. Unfortunately, you won’t be able to simply transfer it; you’ll have to turn on the debugger and go through the code to make sure everything works as it should.
    • Hello, I have adapt l2jroboto but have a problems for example bots all the time in PvP and never dead I test with admin //kill and nothing, my frozen pack is upgrade to java 21 I have fixed more of bugs    Sorry for my bad English 🥶
  • Topics

×
×
  • Create New...