Jump to content

Recommended Posts

Posted

err u can try this script i think its can help ur request

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

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

// made by easy2k4

// enchanting w/a/j one by one and stops on the last one

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

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

 

INCLUDE StdLib\inventory.l2c

 

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

 

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

 

DEFINE_GLOBAL STRING selected_enchanted_item "Omen Beast's Eye Earring"

DEFINE_GLOBAL STRING selected_enchanted_scroll "Scroll: Enchant Armor (D)"

DEFINE_GLOBAL STRING selected_enchanted_crystals "Crystal: D-Grade"

DEFINE_GLOBAL INT loop_delay 1100

 

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

 

// start -->>

 

Enchant_one_by_one

 

SCRIPT_END

 

 

 

FUNCTION Enchant_one_by_one

 

DEFINE STRING item_name 0

DEFINE ARRAYLIST bag_inventory 0

 

DEFINE ARRAYLIST list_of_enchanted_items 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 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 "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

 

list_of_enchanted_items.add bag_inventory.item

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 " "

 

if enchanted_items_count < TWO

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

FOREACH item Inventory list_of_enchanted_items

if enchanting_process == ONE

enchant_size = list_of_enchanted_items.item.enchant

 

DEFINE BYTEBUFFER buffer_of_selected_enchant 256

DEFINE BYTEBUFFER buffer_of_selected_item 256

DEFINE BYTEBUFFER buffer_of_selecting_item 256

 

ITEM_GET_ID id_of_enchant "<&selected_enchanted_scroll&>"

 

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 #i79

// buffer_of_selecting_item.write_byte #i0

// buffer_of_selecting_item.write_int32 list_of_enchanted_items.item.id

// buffer_of_selecting_item.trim_to_index

 

// INJECTBB buffer_of_selecting_item

 

// SLEEP "<&loop_delay&>"

 

GET_RAND random_loop_delay 100 300

 

SLEEP "<&random_loop_delay&>"

 

buffer_of_selected_item.write_byte #i95

buffer_of_selected_item.write_int32 list_of_enchanted_items.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&>"

ITEM_COUNT enchanted_scrolls_count "<&id_of_enchant&>"

 

// PRINT_TEXT "S: <&item_of_scroll.id&> / <&enchanted_scrolls_count&> / <&id_of_enchant&>"

// PRINT_TEXT "P: <&list_of_enchanted_items.item.name&> / <&list_of_enchanted_items.item.id&> / <&list_of_enchanted_items.item.enchant&> / <&list_of_enchanted_items.count&>"

 

if crystals_count_after_enchanting > crystals_count

PRINT_TEXT "Item has been crystallized at x <&enchant_size&>"

list_of_enchanted_items.remove item

else

PRINT_TEXT "Item has been enchanted from <&enchant_size&>"

endif

 

ITEM_COUNT crystals_count "<&id_of_crystals&>"

 

DELETE buffer_of_selected_enchant

DELETE buffer_of_selected_item

DELETE buffer_of_selecting_item

endif

 

if list_of_enchanted_items.count < TWO

enchanting_process = ZERO

endif

 

if enchanted_scrolls_count < ONE

enchanting_process = ZERO

endif

 

NEXTEACH

 

list_of_enchanted_items.clear

 

GET_INVENTORY bag_inventory

FOREACH item Inventory bag_inventory

item_name = bag_inventory.item.name

 

if item_name == selected_enchanted_item

list_of_enchanted_items.add bag_inventory.item

endif

NEXTEACH

 

PRINT_TEXT "The remaining quantity of the items after enchanting: <&list_of_enchanted_items.count&>"

 

loop enchanting_process == ONE

 

PRINT_TEXT " "

PRINT_TEXT "The end of Enchanting One by One :) "

PRINT_TEXT " "

 

RETURN VOID

HAPPY ENCHANT :DD

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

    • You might also take https://github.com/vercel-labs/agent-skills into consideration
    • Hay Algun datapack de L1 OFF ? 
    • pone los link para descargarlos por fa   
    • Greetings, everyone. I am sharing a configuration designed for any code editor/console with AI agents. This setup allows for expanded context and highly specific skills depending on your project requirements. It also comes with reusable skills ready for immediate use. Current configuration covers: WEB, L2j server datapacks, and L2j dev (including skills for handling decompiled Java datapacks, etc.). I have left a LINK to the original video on which this specific configuration is based. It also contains brief guides on how to implement new skills. You can simply ask your AI agent to review the guide to get started.   https://github.com/zambo420/Supercharge-your-AI-assistant-for-WEB-and-L2-DATAPACKS-dev.-.git   # 🤖 AI Skills Starter Kit - Forum Quick Start > **Supercharge your AI assistant (Claude, Gemini, Copilot)** ## ⚡ Installation in 2 Minutes   ### 1. Download and copy Copy the `Supercharge-your-AI-assistant-for-WEB-and-L2-DATAPACKS-dev.-/` folder to your project root.   ### 2. Rename and structure ``` your-project/ ├── skills/                      # Rename skills_reutilizables → skills │   ├── skill-creator/ │   ├── react-19/               # Copy the ones you need │   ├── typescript/ │   └── setup.ps1               # Copy from templates/ ├── AGENTS.md                    # Copy from templates/AGENTS.md.template └── src/                         # Your code ```   ### 3. Edit AGENTS.md Customize with your skills:   ```markdown   ## Available Skills | Skill | Description | File | |-------|-------------|------| | `react-19` | React 19 patterns | [SKILL.md](skills/react-19/SKILL.md) |   ## Auto-invoke Skills | Action | Skill | |--------|-------| | Working with React components | `react-19` | ```   ### 4. Sync ```powershell .\skills\setup.ps1 ```   ### 5. Done! Restart your AI assistant and start working.   ---   ## 📦 Included Skills (56 Total) ### Frontend - `react-19` - React 19, hooks, RSC - `typescript` - TypeScript patterns - `tailwind-4` - TailwindCSS v4 - `vite` - Build configuration - `zustand-5` - State management - `nextjs-15` - Next.js 15 - `i18next` - Internationalization - `react-router` - React Router v7 ### Backend - `zod-4` - Validation schemas - `ioredis` - Redis caching - `jwt` - JWT authentication - `django-drf` - Django REST Framework ### Testing & AI - `playwright` - E2E testing - `pytest` - Python testing - `ai-sdk-5` - Vercel AI SDK ### Utilities - `skill-creator` - Create new skills - `java-ant-build` - Apache Ant build system - `jira-epic` - Create Jira epics - `jira-task` - Create Jira tasks ### L2J/Game Server (33 skills) - `gameserver-data` - XMLs, multisells, spawns, NPCs - `gameserver-config` - Server configuration files - `authserver-config` - Login server configuration - `client-files` - Client textures, L2Text, system - `lucera2-core` - L2J core patterns, base classes - `lucera2-handlers` - Admin/user commands, bypass - `lucera2-services` - Community Board, ACP, Buffer - `lucera2-scripts` - Quests, NPCs, bosses, events - `lucera2-network` - Network packets - `lucera2-geodata` - Pathfinding, line of sight - `lucera2-ai` - NPC AI, monster behavior - `lucera2-zones` - Zone scripts, restrictions - `lucera2-achievements` - Achievement system - `lucera2-phantoms` - Fake players (bots) - `lucera2-data` - XML/SQL parsers, holders - `lucera2-authserver` - Login server Java code - `lucera2-olympiad` - Olympiad, heroes, nobles - `lucera2-residences` - Castles, clan halls, siege - `lucera2-skills-effects` - Skill effects, conditions - `lucera2-telegram` - Telegram bot integration - `lucera2-events-pvp` - TvT, GvG, CTF events - `lucera2-seasonal-events` - Holiday events - `lucera2-npc-instances` - Custom NPC types - `lucera2-items-inventory` - Items, inventory - `lucera2-clans-alliances` - Clans, wars - `lucera2-voting-ranking` - Voting rewards - `lucera2-siege-duel` - Siege, duel mechanics - `lucera2-pets-summons` - Pets, servitors - `lucera2-promo-rewards` - Promo codes, daily rewards - `lucera2-item-handlers` - Item handlers - `lucera2-instances-dungeons` - Instance dungeons - `lucera2-minigames` - Lottery, Fishing - `lucera2-autofarm` - AutoFarm bot system - `lucera2-party-matching` - Party finder - `lucera2-cursed-weapons` - Zariche, Akamanah - `lucera2-vip-premium` - VIP/premium accounts - `lucera2-extjar-projects` - Creating .ext.jar projects ---   ## 🎯 The Magic Trick The **Auto-invoke** table is the key:   ```markdown ## Auto-invoke Skills   | Action | Skill | |--------|-------| | Creating React components | `react-19` | | Adding TypeScript types | `typescript` | | Writing E2E tests | `playwright` | ```   **Without this table, AI ignores skills.** With it, they load automatically.   ---   ## 📁 Important Files | File | Purpose | |------|---------| | `AGENTS.md` | Main agent configuration | | `skills/setup.ps1` | Syncs to .claude/.gemini/.github | | `skills/*/SKILL.md` | Each skill definition |   ---   ## 💡 Tips 1. **One place only**: Keep all skills in `skills/` 2. **Auto-invoke**: Without this table, it won't work 3. **setup.ps1**: Run after every change 4. **Restart**: AI needs restart to load changes   ---   ## 🔧 Create Your Own Skill   ```markdown --- name: my-skill description: My skill description ---   ## When to Use - When to use this skill   ## Key Patterns - Important patterns   ## Code Examples \`\`\`typescript // Code example \`\`\` ```   Add to AGENTS.md and run `.\skills\setup.ps1`.   ---   ## 🤝 Compatibility - ✅ Claude Code (Antigravity) - ✅ Gemini CLI - ✅ GitHub Copilot - ✅ Cursor - ✅ Any AI that supports AGENTS.md   ---   ## 📚 More Info See `README.md` on github for complete guide and detailed documentation.    
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..

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