Jump to content

Recommended Posts

Posted

With this we can create extractable items with the chance we like it.

For other projects are csv folder or data, search for it.

For L2JFrozen users, go to: L2JFrozen\gameserver\data find the file "extractable_items".

Open it and copy 1 line like this:

7629;6688,1,9;6689,1,9;6690,1,9;6691,1,9;6693,1,9;6694,1,9;6695,1,9;6696,1,9;6697,1,9;7579,1,9;57,330000,10

At the end of the file, create a line starting with this " # " and after it  write "My Item" or

whatever you like to know that this is your item.

Under it copy the code that i gave you or copy another one.

It will be like this:

# My Item
7629;6688,1,9;6689,1,9;6690,1,9;6691,1,9;6693,1,9;6694,1,9;6695,1,9;6696,1,9;6697,1,9;7579,1,9;57,330000,10

 

Watch now carefully what you will do:

This is the line with the code:

 

7629;6688,1,9;6689,1,9;6690,1,9;6691,1,9;6693,1,9;6694,1,9;6695,1,9;6696,1,9;6697,1,9;7579,1,9;57,330000,10

 

Now, the:

7629 is the Id of the extractable item.

6688 is the Production Id of the item.

1 is the Quantity of the item, for us now the item is this 6688.

9 is the Chance of extract this item.

You can change them with the items you like.

 

After finishing every item, add an " ; " and then next item like this:

6689,1,9";"6690,1,9 without the .".

 

You can add as many items as you want but Be Careful.

If you put 2 items only you will have to make the chance: 50/50 or 80/20 if you put 3 items you will have to make the chance: 30/30/40 or 80/10/10  or whatever you want but the chance cannot be lower or higher than 100 of all items together.

Pic:

112ws.jpg

  • 9 years later...
Posted

Great guide!

Explained in detail.

 

According to the formula shared, only one item can be extracted at the time.

But what to do if I want 2 or 3 items to be extracted at the same time?

 

Fox example:

50% to get adena and potions

30% to get weapon scroll and armor scroll

20% to get special item, potions and adena

 

Any ideas?

 

Posted (edited)
On 12/28/2021 at 4:04 PM, rtcxool said:

Great guide!

Explained in detail.

 

According to the formula shared, only one item can be extracted at the time.

But what to do if I want 2 or 3 items to be extracted at the same time?

 

Fox example:

50% to get adena and potions

30% to get weapon scroll and armor scroll

20% to get special item, potions and adena

 

Any ideas?

 

You can edit already existing ExtractableItem handler and add your own code in order to accomplish that, other than that you can create a new handler like RandomItemReward which will initialize some arrays where will store  your rewards inside so in summary

1. A variable will store your rewards,an array will be enough

2. Rnd as a chance calculation formula

3.a simple for loop will finish the show 

 

Edited by Sidereal Day
  • 1 month later...
Posted
On 12/30/2021 at 4:42 AM, Sidereal Day said:

You can edit already existing ExtractableItem handler and add your own code in order to accomplish that, other than that you can create a new handler like RandomItemReward which will initialize some arrays where will store  your rewards inside so in summary

1. A variable will store your rewards,an array will be enough

2. Rnd as a chance calculation formula

3.a simple for loop will finish the show 

 

 

I been looking for guide how to change or write new handler but can't find any guide about it. 

I am not familiar on what is the handler itself, how to locate it in order to change. And what programs I need to open a something called 'handler'. 

 

Would someone be able to explain what is a handler (is it client side, server side or how to locate it/create it).

  • Vision changed the title to Extractable items~Easy way

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

    • What's your obsession with me? Or are you just doing this because you're desperate and need to sell something (SkyLord) to eat? Why do you do this on all my posts? Why don't you explain it to the community? ---------------- I will have a special offer until April 19. If you are interested, don’t hesitate to send me a message.  
    • @GX-Ext How many offers does your product have? If I remember correctly, there are about 3.  
    • I will have a special offer until April 19. If you are interested, don’t hesitate to send me a message.
    • ⚔️ LINEAGE II KHADIA ⚔️ Interlude PTS (L2OFF) • Mid Rate PvP • Custom Endgame Experience 🔥 NOT JUST ANOTHER SERVER — A REAL BATTLEFIELD 🔥 Welcome to L2Khadia, where classic Interlude meets competitive PvP and custom progression. No fake numbers, no empty promises — only action, economy, war and long-term gameplay. ━━━━━━━━━━━━━━━━━━━━━━ 📊 SERVER RATES EXP: x100 SP: x150 Adena: x300 Spoil: x15 ━━━━━━━━━━━━━━━━━━━━━━ ⚔️ WHY KHADIA? ✔ Original Interlude Mechanics & Formulas ✔ Mid Rate PvP Balance ✔ Real Clan Wars / Sieges / Olympiad ✔ Stable & Fair Economy ✔ Active Staff Team ✔ Long-Term Project Vision ━━━━━━━━━━━━━━━━━━━━━━ 🗡️ KHADIA CUSTOM CONTENT 🔥 Khadia Weapons – Unique power & visuals 🛡 Khadia Armor – Raid Boss drops & crafting 🧥 Khadia Cloaks – Endgame progression items 💎 Designed for competitive PvP ━━━━━━━━━━━━━━━━━━━━━━ 🎁 REWARD SYSTEMS 🏆 PvP / PK Reward System 📦 Daily PvP Reward Package 👑 Raid Package from Boss Extract Rewards 🗳 Vote Reward System 📈 Rankings: PvP / PK / Clans / Castles ━━━━━━━━━━━━━━━━━━━━━━ 💎 VIP FEATURES ✔ VIP Buff Coin ✔ Nick / Title Colors ✔ Special VIP Chat ( ^ Key ) ✔ Exclusive VIP Benefits ━━━━━━━━━━━━━━━━━━━━━━ 🎮 QUALITY OF LIFE ✔ Auto Loot for Farm ✔ Auto Loot Disabled for Raid Boss ✔ Offline Shop System ✔ Remote Buff Coin ✔ RaidBoss Status NPC ✔ PvP / PK Ranking NPC ━━━━━━━━━━━━━━━━━━━━━━ 🌍 FARM ZONES • Elven Fortress [80] – Medium • Cave of Trials [80+] – Party Hard • Monastery of Silence [80] – Medium • PvP Zones Around Raid Bosses ━━━━━━━━━━━━━━━━━━━━━━ 🏰 CLAN & SIEGE SYSTEM ✔ Full Interlude Clan System ✔ Max Clan Level 8 + Clan Skills ✔ Max 3 Clans per Alliance ✔ No Kick / Leave Penalty ✔ Weekly Castle Sieges ━━━━━━━━━━━━━━━━━━━━━━ 🚀 JOIN NOW – START YOUR LEGEND 🚀 🌐 Website: www.l2khadia.com 💬 Discord: https://discord.gg/DnZrgWn77n ━━━━━━━━━━━━━━━━━━━━━━ No Pay To Win • Fair Gameplay • Real PvP • Custom Endgame Content       We Wish you the best game ! 
  • 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..