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

    • Since I write everything in the guide file. Windows: Download Python from the official website: Download Python. During installation, make sure to check the option "Add Python to PATH". >>>How? just check it in google.com Complete the installation.     There is a file called guide there I have all the details... [DropSettings] RateDropItems = 1879, 1875 RateDrop = 4 InputFolder = npc OutputFolder = npc_new Download
    • 1. gameserver\data\string\strings_en.properties   drop.group.html=<br1> drop.rewardData.html=<table width=500 height="42" border="0" background="L2UI_CT1.Windows_DF_TooltipBG"><tr><td width=32 height=32><img src=%icon% width=32 height=32></td><td width=310>%item%<font color="LEVEL"> %drop_min% - %drop_max% </font><br1> Drop Chance : <font color="LEVEL">&nbsp;%chance%&nbsp;</font><br1></td></tr></table><br1> drop.rated_grouped=<br1> drop.not_rated_grouped=<br1> drop.not_rated_not_grouped=<br1> drop.sweep=<font color="E7C94E"> Spoil: </font><br1> The following HTML code will work if you have the capability to adjust the window to any dimensions you want. 2. gameserver\data\html-en\actions\rewardlist_info.htm <html noscrollbar> <title>Drop List</title> <body> <center>     <font color="LEVEL">%npc_name%<font><br1>     <table>     <tr>         <td><button value="Normal" action="bypass scripts_actions.RewardListInfo:showReward 0 RATED_GROUPED" width=150 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>         <td><button value="Spoil" action="bypass scripts_actions.RewardListInfo:showReward 0 SWEEP" width=150 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>     </tr>     </table>     <img src="l2ui.SquareGray" width=490 height=1><br1><br1>     <font color=995312>%info%</font>     %paging% </center> </body> </html> resize_x=550 resize_y=360 The .htm files are adapted for custom dimensions. You must have support in your client for handling custom HTML window sizes. and it looks like this:  
    • MaxCheaters used to be a glorious pit of barely functioning dreams. I logged in DAILY to witness war crimes in Java. Now it’s just 14 dudes reposting the same extender like it's a sacred text AND HALF OF YOU CAN’T EVEN UPLOAD FILES WITHOUT A .RAR INSIDE A .RAR INSIDE A .RAR WITH A .TXT THAT SAYS “NO VIRUS.”   You used to steal from Russians with pride. Now you steal from each other with broken links. What happened? Where are the insane flame threads? Where’s that one guy who kept threatening lawsuits in 2015? AND TO THE MODS — what are you even moderating now? Someone just posted a thread titled “HELP ME CLIENT CRASH WHEN WALK,” and the only reply was "UP."   WAKE UP MAXCHEATERS OR I SWEAR TO GOD I’LL START POSTING TUTORIALS IN WINGDINGS.
    • I’m not personally involved, but after observing recent activity on the forum, it's clear that things have become highly polarized, not because of technical issues, but due to personal disputes, insults, and public drama. It's unfortunate to see that instead of healthy knowledge sharing, discussions are turning into accusations, mockery, and downvote abuse. Everyone is free to contribute, disagree, or critique, but when respect is lost, the community itself loses its purpose. Whether someone shares files for free, sells services, or just helps others, their contribution should be judged based on quality, not personal grudges or "factions." It would be great to see the forum return to its original purpose: development, collaboration, and mutual respect. Those who truly care about the community should put personal conflicts aside and focus on the actual content, that’s where the real value is.
  • 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