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


  • Posts

    • L2 HARMONY - BANNERS & ICONS       L2 COLD - NPC ANIMATED BANNER
    • LA ERA DE EINHASAD - Lineage 2 en Castellano Lineage II Crónica 4: Vástagos del Destino x5 - Main Class - Full Craft ───────────────────────────── La diosa Einhasad ha despertado... Una nueva era comienza para los verdaderos aventureros. Un mundo completamente traducido al español, fiel al Lineage II original, creado para una comunidad hispanohablante unida por la nostalgia y la pasión. ───────────────────────────── APERTURA OFICIAL: 14 de NOVIEMBRE - 20:00hs (GMT-3) ───────────────────────────── INFORMACIÓN PRINCIPAL Rates: x5 Tipo: Main Class Sistema: Full Craft Idioma: 100% Español (traducción completa del juego) Comunidad hispanohablante Balance original con mínimas modificaciones Buffer Offline, los jugadores pueden crear sus tiendas de buffs Progresión de crónicas cada 4 meses aprox. Economía estable - Sin Pay to Win - No venta de items/adena por donación Comunidad de 1.000 personas Anterior versión x1 duro casi 3 años con 952 IPs distintas de pico ───────────────────────────── CARACTERÍSTICAS DESTACADAS Experiencia fiel al Lineage II clásico, sin alteraciones invasivas Interfaz, diálogos y objetos completamente en español Ventana de comunidad con servicios personalizados y comercio por Monedas de Oro Olimpiadas, Épicos y Asedios originales Recompensas por votación, Eventos TVT con 3 arenas diferentes. Participan todos sin importar el nivel, pero dentro de la arena solo se atacan por rango cercano Soporte activo y presencia constante del administrador Tickets de soporte con atención rápida en Discord ante cualquier problema ───────────────────────────── ENLACES OFICIALES Website: La Era de Einhasad Discord: https://discord.com/invite/A6PtCCN2SF ───────────────────────────── Una comunidad unida por el idioma, la pasión y la nostalgia. Redescubrí Aden… en tu propio idioma. Bienvenido a La Era de Einhasad.  
    • English you belarus retard ) Seems you so desperate and angry cant even speak back in EN, well guys you see how its easy to destroy scammer xD
    • Чувак) мне на него насрать давно, ты не мне сделал подлянку а людям которые купили и используют. Я его удалил год назад) когда закрыл продажи.   мне вообще похер кто ты и что ты.    Можешь сесть и попрыгать на тот же член на котором ты прыгаешь все это время) и этой версии более 3х лет) ты откопал залупу мамонта , поздравляю)) кто скачает это дерьмо используйте на свой страх и риск)) кто знает что там наворочено)))  удачи в шаринге обиженный жизнью неандерталец.   Можешь лизнуть мое очко на прощание.
    • Rosyk or rusik or whatever u blaim me that my mouth stinks but I assume you the one who stinks and your perfect pack will be now shared and you can suck a DICK )  https://eu2.contabostorage.com/d4b39866f6bb4084b6c969ec8fe20063:kita/Lucera_Classic_Remaster/Lucera Classic Remaster Server and Datapack files.rar  https://eu2.contabostorage.com/d4b39866f6bb4084b6c969ec8fe20063:kita/Lucera_Classic_Remaster/Lucera Classic Remaster Eng Client.rar Drama link    For this crap u need Lucera 2 classic license ) people paying 300 euros for this shit  lol Some Shit will come out soon mxc website need shake it a bit coz getting boring here )    Whats happen rosyk lost speach  xD Your pack was downloded  29 times bussines  not going as plan xD?
  • 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