Jump to content
  • 0

Active click Custom Soulshot


Question

Posted (edited)

Someone explains to me, why can't I activate the item-custom? I want to activate it with the right click and it doesn't work for me, I already changed everything, but it doesn't work, any reason?Someone explains to me, why can't I activate the item-custom? I want to activate it with the right click and it doesn't work for me, I already changed everything, but it doesn't work, any reason?

Skill

    <skill id="9007" levels="1" name="Soulshot: S Grade">
        <table name="#multiplier">2.0</table>
        <!-- wtf what is it?-->
        <set name="target" val="TARGET_SELF"/>
        <set name="element" val="5"/>
        <set name="skillType" val="SOULSHOT"/>
        <set name="operateType" val="OP_ACTIVE"/>
        <set name="castRange" val="-1"/>
        <set name="effectRange" val="-1"/>
        <set name="magicLvl" val="1"/>
        <set name="itemConsumeId" val="14998"/> <!-- Soulshot: S-grade -->
        <set name="itemConsumeCount" val="1"/>
    </skill>

item.

    <item id="14998" type="EtcItem" name="Soulshot: S-grade">
        <!-- The power of a higher-level spirit is bestowed upon a weapon, temporarily increasing power of attack. Used with an S-grade weapon. -->
        <set name="crystallizable" val="false"/>
        <set name="item_type" val="shot"/>
        <set name="weight" val="2"/>
        <set name="consume_type" val="stackable"/>
        <set name="crystal_type" val="s"/>
        <set name="duration" val="-1"/>
        <set name="price" val="100"/>
        <set name="crystal_count" val="0"/>
        <set name="sellable" val="true"/>
        <set name="dropable" val="true"/>
        <set name="destroyable" val="true"/>
        <set name="tradeable" val="true"/>
    </item>

useitem.java

    
    private static final List<Integer> SHOT_IDS = new ArrayList<>();
    static
    {
        SHOT_IDS.add(5789);
        SHOT_IDS.add(1835);
        SHOT_IDS.add(1463);
        SHOT_IDS.add(1464);
        SHOT_IDS.add(1465);
        SHOT_IDS.add(1466);
        SHOT_IDS.add(1467);
        SHOT_IDS.add(5790);
        SHOT_IDS.add(2509);
        SHOT_IDS.add(2510);
        SHOT_IDS.add(2511);
        SHOT_IDS.add(2512);
        SHOT_IDS.add(2513);
        SHOT_IDS.add(2514);
        SHOT_IDS.add(3947);
        SHOT_IDS.add(3948);
        SHOT_IDS.add(3949);
        SHOT_IDS.add(3950);
        SHOT_IDS.add(3951);
        SHOT_IDS.add(3952);
        SHOT_IDS.add(14998);  // custom    
    }
    
    @Override
    protected void readImpl()


soulshot.java

public class SoulShots implements IItemHandler
{
    // All the item IDs that this handler knows.
    private static final int[] ITEM_IDS =
    {
        5789,
        1835,
        1463,
        1464,
        1465,
        1466,
        1467,
        14998

    };
    private static final int[] SKILL_IDS =
    {
        2039,
        2150,
        2151,
        2152,
        2153,
        2154,
        9007
    };
    
    @Override
    public void useItem(Playable playable, ItemInstance item)
    {
        if (!(playable instanceof PlayerInstance))
// Check for correct grade
        final int weaponGrade = weaponItem.getCrystalType();
        if (((weaponGrade == Item.CRYSTAL_NONE) && (itemId != 5789) && (itemId != 1835)) || ((weaponGrade == Item.CRYSTAL_D) && (itemId != 1463)) || ((weaponGrade == Item.CRYSTAL_C) && (itemId != 1464)) || ((weaponGrade == Item.CRYSTAL_B) && (itemId != 1465)) || ((weaponGrade == Item.CRYSTAL_A) && (itemId != 1466)) || ((weaponGrade == Item.CRYSTAL_S) && (itemId != 1467) && (itemId != 14998)))
        {
        


resquestautosoulshot.java

    
    private static final List<Integer> SHOT_IDS = new ArrayList<>();
    static
    {
        SHOT_IDS.add(5789);
        SHOT_IDS.add(1835);
        SHOT_IDS.add(1463);
        SHOT_IDS.add(1464);
        SHOT_IDS.add(1465);
        SHOT_IDS.add(1466);
        SHOT_IDS.add(1467);
        SHOT_IDS.add(5790);
        SHOT_IDS.add(2509);
        SHOT_IDS.add(2510);
        SHOT_IDS.add(2511);
        SHOT_IDS.add(2512);
        SHOT_IDS.add(2513);
        SHOT_IDS.add(2514);
        SHOT_IDS.add(3947);
        SHOT_IDS.add(3948);
        SHOT_IDS.add(3949);
        SHOT_IDS.add(3950);
        SHOT_IDS.add(3951);
        SHOT_IDS.add(3952);
        SHOT_IDS.add(14998);        
    }
    
    @Override
    protected void readImpl()

 

any solution?

Edited by Vision

1 answer 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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