- 0
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..
Question
Sybar
Hi,
I need some help. I'm running H5
How can I create an item that upon activating/opening would grant a specified reward where the amount would depend on player's level?
I've tried to do it myself but without luck. Maybe this thing would require to modify the core to add a new function? Below is what I've tried already:
<!-- Box of Knowledge - Grade D --> <item id="40110" type="EtcItem" name="Box of Knowledge - Grade D"> <set name="icon" val="icon.etc_treasure_box_i01" /> <set name="default_action" val="CAPSULE" /> <set name="immediate_effect" val="true" /> <set name="material" val="STEEL" /> <set name="weight" val="100" /> <set name="price" val="2300" /> <set name="is_tradable" val="true" /> <set name="is_dropable" val="false" /> <set name="is_sellable" val="false" /> <set name="is_depositable" val="false" /> <set name="is_stackable" val="true" /> <set name="handler" val="ItemSkills" /> <set name="item_skill" val="40115-1" /> </item><!-- SKILL to action Box of Knowledge - Grade D --> <skill id="40115" levels="1" name="Box of Knowledge - Grade D"> <!-- Confirmed CT2.5 --> <table name="#amount"> 0 800 1500 2000 2500 3000 </table> <table name="#levelRange"> 0;0 20;39 40;51 52;60 61;75 76;85 </table> <set name="create_item_count" val="#amount" /> <set name="create_item_id" val="40500" /> <set name="isMagic" val="2" /> <!-- Static Skill --> <set name="itemConsumeCount" val="1" /> <set name="operateType" val="A1" /> <set name="skillType" val="CREATE_ITEM" /> <set name="targetType" val="SELF" /> <cond msgId="129"><player invSize="10" /></cond> <cond msgId="113" addName="1"> <player levelRange="#levelRange" /> </cond> </skill>So I need...
Player at lvl 20 opens the box X and gets 100 pieces of item Y
Player at lvl 40 opens the box X and gets 200 pieces of item Y
Does anyone know how to do it? Thanks a lot :)
Edited by Sybar5 answers to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now