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

The default extractable doesn't work like that. If you want to get all items, you have to code new handler.

  • 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.

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

    • Added FloodProtector utility to prevent packet flooding for actions like item use and dice rolling. Integrated flood protection checks in relevant client packet handlers and registered/removal hooks in player lifecycle. Updated movement logic in L2PcInstance for improved position synchronization and geodata handling. Minor fixes and refactoring in attack logic, private store handling, and admin NPC editing. Refactored AI classes to enhance movement, attack, and skill usage logic for characters and mobs. Improved distance checks, attack range calculations, and skill casting conditions. Removed unused intention command logic from L2CharacterAI. Updated configuration to enable CellPathFinding. Minor code cleanups and bug fixes for more reliable AI behavior. Enhanced GeoPathFinding with detailed debug and error messages for region loading, including success/failure counts and file checks. Refactored L2AttackableAI and L2CharacterAI to improve attack range tolerance, immediate attack behavior, and added safety checks for missing targets. Updated configuration to disable CellPathFinding by default and added a new ShowRedName option for aggressive mobs. Minor config and log updates included. Applied TCP socket optimizations (e.g., TCP_NODELAY, buffer sizes, keepalive) in ClientThread, Connection, and SelectorThread to reduce latency and improve throughput. Enhanced L2AttackableAI with better random walk, aggro, and attack logic, including silent move checks, quest monster handling, and improved faction/raid/minion behavior. Added silent move support to L2PlayableInstance and quest monster flag to L2NpcTemplate/L2NpcInstance. These changes aim to improve server responsiveness, AI realism, and overall stability.
    • I’ve been using this Escape from Tarkov Hack for about a week now with no issues at all. ESP works great without any lag, and the aimbot is smooth and doesn't feel obvious. Had a quick setup with the loader, and support answered my questions right away. The HWID spoofer also did its job without messing with my system. So far, the cheat's staying undetected on my side.
    • Hello everyone, this is ADENA L2REBORN / LU4 / MASTERWORK We also have items, epics, etc. discord - adver745645 Our prices are reasonable, so have a nice shopping and a nice day.
  • 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