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.

×
×
  • Create New...