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..
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.
Question
tevsko
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
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 Vision1 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 accountSign in
Already have an account? Sign in here.
Sign In Now