Ophidan Bridge

Results 1 to 5 of 5
  1. #1
    Valued Member jasonguns is offline
    MemberRank
    Jul 2014 Join Date
    139Posts

    Ophidan Bridge

    hello guys i got a problem in OB i get in the tank but doesnt move.


    Imgur: The most awesome images on the Internet

    Thx to anyone that can help!


    package ai.instance.ophidanBridge;

    import ai.ActionItemNpcAI2;
    import com.aionemu.gameserver.ai2.AI2Actions;
    import com.aionemu.gameserver.ai2.AIName;
    import com.aionemu.gameserver.ai2.poll.AIAnswer;
    import com.aionemu.gameserver.ai2.poll.AIAnswers;
    import com.aionemu.gameserver.ai2.poll.AIQuestion;
    import com.aionemu.gameserver.model.gameobjects.player.Player;
    import com.aionemu.gameserver.skillengine.SkillEngine;

    import java.util.concurrent.atomic.AtomicBoolean;

    /**
    * @author Eloann
    */ @ainame("ophidan_bridge_cannon")
    public class OphidanCannonAI2 extends ActionItemNpcAI2 {

    private AtomicBoolean canUse = new AtomicBoolean(true);

    @Override
    protected void handleUseItemFinish(Player player) {

    if (canUse.compareAndSet(true, false)) {
    int morphSkill = getMorphSkill();
    SkillEngine.getInstance().getSkill(getOwner(), morphSkill, 60, player).useNoAnimationSkill();
    AI2Actions.scheduleRespawn(this);
    AI2Actions.deleteOwner(this);
    }
    }

    private int getMorphSkill() {
    switch (getNpcId()) {
    case 701646: //elyos
    return 21434;
    case 701647: //asmodian
    return 21435;
    }
    return 0;
    }

    @Override
    protected AIAnswer pollInstance(AIQuestion question) {
    switch (question) {
    case SHOULD_REWARD:
    return AIAnswers.NEGATIVE;
    default:
    return super.pollInstance(question);
    }
    }
    }


  2. #2
    Apprentice Voir is offline
    MemberRank
    Jul 2014 Join Date
    United KingdomLocation
    16Posts

    Re: Ophidan Bridge

    Check "npc_template" and "ophidan_bridge_cannon" <speed/>.

  3. #3
    Valued Member jasonguns is offline
    MemberRank
    Jul 2014 Join Date
    139Posts

    Re: Ophidan Bridge

    <npc_template npc_id="701647" level="65" name="Destined Mobile Turret" name_id="399039" name_desc="IDF5_U1_PCTank_Da" height="5.0" rank="EXPERT" rating="ELITE" race="ASMODIANS" tribe="IDF5U1_TANK" type="GENERAL" ui_type="POLYMORPH_RIDE" ai="ophidan_bridge_cannon" adelay="2180" hpgauge="13">
    <stats maxHp="38472" maxXp="106" main_hand_attack="42" main_hand_accuracy="187" pdef="100" power="41" evasion="187" accuracy="111"/>
    <bound_radius front="8.0" side="9.8" upper="5.0"/>
    <talk_info distance="3" delay="2"/>
    </npc_template>


    I try to change it but always get errors.

    - - - Updated - - -

    In the ophidan_bridge_cannonAI there is nothing about speed

  4. #4
    Apprentice Voir is offline
    MemberRank
    Jul 2014 Join Date
    United KingdomLocation
    16Posts

    Re: Ophidan Bridge

    <npc_template npc_id="701647" level="65" name="Destined Mobile Turret" name_id="399039" name_desc="IDF5_U1_PCTank_Da" height="5.0" rank="EXPERT" rating="ELITE" race="ASMODIANS" tribe="IDF5U1_TANK" type="GENERAL" ui_type="POLYMORPH_RIDE" ai="ophidan_bridge_cannon" adelay="2180" hpgauge="13">
    <stats maxHp="38472" maxXp="106" main_hand_attack="42" main_hand_accuracy="187" pdef="100" mresist="187" power="41" evasion="187" accuracy="111">
    <speeds walk="1.2" group_walk="1.2" run="1.2" run_fight="1.2" group_run_fight="1.25"/>
    </stats>
    <bound_radius front="8.0" side="9.8" upper="5.0"/>
    <talk_info distance="3" delay="2"/>
    </npc_template>

  5. #5
    Valued Member jasonguns is offline
    MemberRank
    Jul 2014 Join Date
    139Posts

    Re: Ophidan Bridge

    Thx alot bud!



Advertisement