Jump to content
  • 0

Question

Posted

hello guys i need help with extractable items

how can i set in extractable items 5 different items with 100% chance?

e.g i tryed this but the chance must be all together 100% so it doesn't work 

Spoiler

# new extractable item
19800;57,1,100,58,1,100,59,1,100

 

also i tryed this and i didnt get error but when i right click on item it says "nothing happend"

Spoiler

# new extractable item
19800;57,1,58,1,59,1,100

 

thanks

15 answers to this question

Recommended Posts

  • 0
Posted
12 hours ago, expll0 said:

try - 23,1,2386,1,43,1,68,1,1835,3000,1539,10,100

whats the difference with that i post? 

and where is exctracable item id ? 

# new extractable item
19800;57,1,58,1,59,1,100
  • 0
Posted (edited)

<set name="item_skill" val="2308-7" />

 

skills

 

<skill id="2308" levels="36" name="Event Item">
        <!-- Confirmed CT2.5 -->
        <table name="#extractableItems">
            8980,1,17,1000,100
            8989,1,1341,1000,100
            8997,1,1342,1000,100
            9008,1,1343,1000,100
            9016,1,1344,1000,100
            9027,1,1344,1000,100
            23,1,2386,1,43,1,68,1,1835,3000,1539,10,100
            9040,1,9041,1,9042,1,9043,1,9044,1,9053,1,100
            9054,1,9055,1,9056,1,9057,1,9128,1,100
            9067,1,9068,1,9069,1,9070,1,9071,1,9072,1,100
            9081,1,9082,1,9083,1,9084,1,9085,1,9086,1,100
            9094,1,9095,1,9096,1,9097,1,9129,1,100
            9032,1,9033,1,9037,1,9038,1,9039,1,100
            9045,1,9046,1,9047,1,9048,1,9053,1,100
            9058,1,9059,1,9060,1,9061,1,9066,1,100
            9073,1,9074,1,9075,1,9076,1,9069,1,100
            9087,1,9088,1,9089,1,9090,1,9083,1,100
            9098,1,9099,1,9100,1,9095,1,100
            1101,1,1104,1,44,1,177,1,3947,3000,1539,10,100
            9049,1,9050,1,9051,1,9052,1,9053,1,9044,1,100
            9062,1,9063,1,9064,1,9065,1,9066,1,9056,1,100
            9077,1,9078,1,9079,1,9080,1,9069,1,9070,1,100
            9091,1,9092,1,9093,1,9084,1,9083,1,100
            9101,1,9102,1,9103,1,9095,1,9129,1,100
            1835,1000,8622,10,100
            1463,1000,8623,10,100
            1464,1000,8624,10,100
            1465,500,8625,7,100
            1466,300,8626,7,100
            1466,300,8627,5,100
            2509,1000,8622,10,100
            2510,1000,8623,10,100
            2511,1000,8624,10,100
            2512,500,8625,7,100
            2513,300,8626,7,100
            2513,300,8627,5,100
        </table>
        <set name="capsuled_items_skill" val="#extractableItems" />
        <set name="itemConsumeCount" val="1" />
        <set name="operateType" val="OP_ACTIVE" />
        <set name="skillType" val="EXTRACTABLE" />
        <set name="target" val="TARGET_SELF" />
        <cond msgId="129">
            <and>
                <player invSize="10" />
                <player weight="80" />
            </and>
        </cond>
    </skill>

Edited by expll0
  • 0
Posted

can you be more specific or maybe you can send me the code? 

for example i want to make 1 sack with all grades of soulshots inside with 100% chance 

is this possible ? thanks guys for your time :)

  • 0
Posted (edited)

if you want only 1 box and nothing more, handle it in useItem.java by checking the id and give the items you want. if you want more than one boxes then change the whole structure .. check parseExtractableSkill method on L2Skill.java 

Edited by melron
  • Upvote 1
  • 0
Posted
44 minutes ago, melron said:

if you want only 1 box and nothing more, handle it in useItem.java by checking the id and give the items you want. if you want more than one boxes then change the whole structure .. check parseExtractableSkill method on L2Skill.java 

hahaah yes he will do it in 5 minutes... didn't you see above? :)

 

1 hour ago, GhostOfSoul said:

can you be more specific or maybe you can send me the code? 

for example i want to make 1 sack with all grades of soulshots inside with 100% chance 

is this possible ? thanks guys for your time :)

6

 

 

  • Haha 2
  • 0
Posted
10 minutes ago, SillverShadow said:

hahaah yes he will do it in 5 minutes... didn't you see above? :)

 

 

 

atleast he can try ... if he cant theres another option too... 

  • 0
Posted
3 hours ago, SillverShadow said:

hahaah yes he will do it in 5 minutes... didn't you see above? :)

 

 

 

whats funny? there are more people than you think who have got no idea about java! 

im asking if someone can help me or give me the starting of code. as i told i want to make sack of different grade soulshots with 100% chance... thanks :)
 

@melronif i edit eclipse like you telling me i will destroy everthing :D 

  • 0
Posted
5 minutes ago, GhostOfSoul said:

whats funny? there are more people than you think who have got no idea about java! 

im asking if someone can help me or give me the starting of code. as i told i want to make sack of different grade soulshots with 100% chance... thanks :)
 

@melronif i edit eclipse like you telling me i will destroy everthing :D 

You can try or search over the files how Rnd works...read and understand then give a try to create a new itemhandler...

  • 0
Posted
9 hours ago, GhostOfSoul said:

@'Baggos' this box are default? i didnt found anything like that, i can make the box with 5 items inside but it will be with 20%chance each item, i want to make 100%chance for all items inside the box

Then, create a item on itemhandler like noble on double click, and give items.. Why you bother yourself with extractable if you want just 1 box for 5 items with 100% chance?

  • 0
Posted

Tested & working.

I'm just using a ready code from class master rewards.

 

https://pastebin.com/HVhtQ7kj

 

Don't forget to add the handler to your item.

 

- Config explaination:

boxId;[];[itemId1(itemCount1)],[itemId2(itemCount2)],[itemId3(itemCount3)];

9308;[];[57(100)],[57(1000)],[57(10000)];

 

And you can add as many items as you want.

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
Answer this question...

×   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

    • Lineage 2 Interlude L2OFF Server Based on H5 Files   Are you looking to start your own Lineage 2 server? This is your chance! I’m selling a 100% functional server based on Official L2OFF H5 files, adapted to the Interlude version. Main Features: Based on official L2OFF H5 files, perfectly configured for Interlude. Includes the full source code, allowing you to fully customize the server to fit your needs. Fully working events, such as: TvT (Team vs. Team) CTF (Capture the Flag) Tons of custom content added, keeping the balance and original essence of the game. Why choose this project? The server is fully functional and optimized, ready to launch. You can test the server before purchasing, with access to a GM character to explore all features. Comes with everything you need to make your project a success, both technically and in terms of content. Interested? Feel free to contact me! If you need more information or would like to schedule a test, I’m happy to answer any questions.   Auto Create Accounts Client Test Server: DOWNLOAD   Price: 600 usd Source price: send pm. Discord: Guytis#6760 Skype: gustavoorellano@hotmail.com  
    • Website: https://l2aurum.com/  Discord: https://discord.gg/l2aurum   Hello Everyone,  finally, the moment has arrived: I'm launching my own server, L2Aurum!   L2Aurum x300 Closed Beta Test - Start: 17.02.2025  [20:00 GMT+2] Grand Opening 21.02.2025 [20:00 GMT+2]     Experience Rates: x300 Skill Points Rates: x300 Adena Drop: x300 Premium Accounts: x2 Drop Rates: x1 Spoil Rates: x1 Quest Rates: x1 Only one account per player, no dualboxing allowed. Everything is earned through gameplay, no pay-to-win mechanics. No server wipes—your progress is permanent. Fair play is a priority, with no room for corruption. All players are treated equally, no special favors.     Buffs slots: 26+4, all buffs in NPC and Scheme System. Custom Armors: Aurum Apella Armor Custom Weapons: Aurum Weapon Custom Accessories: +300 P.Def & M.Def Tattoos: Mage & Fighter & Custom Shirts Custom Jewels: New Grand Bosses Auto Farm is FREE for everyone. Status Noblesse: Barakiel. Player Spawn Protection: 10 seconds. Geodata e Panthodes: ENABLED. All Commands are visible in .menu. System 2 Bishop Per Party: ENABLED. Boss Protect - Anti-Zerg: ENABLED.     Siege Duration: 2 hours (120 minutes). Siege Period: Every 7 days. Castle Reward: 100E Per Castle. Available Castles: Rune Aden Giran Giran Siege: Every Friday 20:00 GMT +2. Aden Siege: Every Saturday 20:00 GMT +2. Rune Siege: Every Sunday 20:00 GMT +2. Main Clan: 40 Members max. Royal Clan: 12 Members max. Knight Clan: 7 Members max. Alliance: You can have only 1.     Epic Boss Valakas: Monday 22:30 (GMT+2) Zaken: Tuesday | Thursday 22:30 (GMT+2) Queen Ant: Monday | Wednesday 22:30 (GMT+2) Baium: Friday 22:30 (GMT+2) Antharas: Saturday 22:30 (GMT+2) Orfen: Tuesday | Thursday | Saturday 18:30 (GMT+2) Core: Monday | Wednesday | Friday | Sunday 18:30 (GMT+2)   Raid Boss  Flame Of Splendor Barakiel Last Hit: Every Day Respawn 3-4 hours Ember: Every Day Respawn 3-4 hours Lilith: Every Day Respawn 3-4 hours Anakim: Every Day Respawn 3-4 hours Queen Shyeed: Every Day Respawn 3-4 hours Golkonda: Every Day Respawn 3-4 hours Shuriel: Every Day Respawn 3-4 hours Varka's Hero Shadith: Every Day Respawn 3-4 hours Ketra's Hero Hekaton: Every Day Respawn 3-4 hours Varka's Mos: Every Day Respawn 3-4 hours Chief Horus: Every Day Respawn 3-4 hours Ketra's Tayer: Every Day Respawn 3-4 hours Chief Brakki: Every Day Respawn 3-4 hours Sailren: Every Day Respawn 02:00   🥳🥳🥳🥳 I would like to chat personally with all of you over on our Discord and discuss any suggestions or feedback you might have.      Website: https://l2aurum.com/  Discord: https://discord.gg/l2aurum
  • Topics

×
×
  • Create New...