mirror of
https://github.com/Rogiel/l2jserver2
synced 2025-12-06 07:32:46 +00:00
@@ -20,9 +20,9 @@ import script.AIInterest;
|
||||
|
||||
import com.l2jserver.game.net.Lineage2Connection;
|
||||
import com.l2jserver.game.net.packet.server.ActorMovementPacket;
|
||||
import com.l2jserver.model.world.Actor;
|
||||
import com.l2jserver.model.world.L2Character;
|
||||
import com.l2jserver.model.world.capability.Attackable;
|
||||
import com.l2jserver.model.world.capability.Positionable;
|
||||
import com.l2jserver.model.world.PositionableObject;
|
||||
import com.l2jserver.model.world.character.event.CharacterMoveEvent;
|
||||
import com.l2jserver.service.game.ai.AIScript;
|
||||
import com.l2jserver.service.game.ai.script.AttackAIScript;
|
||||
@@ -119,10 +119,10 @@ public class CharacterAI implements AIScript, WalkingAIScript, AttackAIScript {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void follow(Positionable positionable) {
|
||||
public void follow(PositionableObject positionable) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void attack(Attackable target) {
|
||||
public void attack(Actor target) {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,12 +18,9 @@ package script.template.item;
|
||||
|
||||
import com.google.inject.Inject;
|
||||
import com.l2jserver.model.id.template.provider.ItemTemplateIDProvider;
|
||||
import com.l2jserver.model.template.capability.Stackable;
|
||||
import com.l2jserver.model.template.item.EtcItemTemplate;
|
||||
import com.l2jserver.model.world.Item;
|
||||
|
||||
public class AdenaItemTemplate extends EtcItemTemplate implements
|
||||
Stackable<Item> {
|
||||
public class AdenaItemTemplate extends EtcItemTemplate {
|
||||
public static final int ID = 57;
|
||||
|
||||
@Inject
|
||||
|
||||
@@ -19,12 +19,9 @@ package script.template.item;
|
||||
import com.google.inject.Inject;
|
||||
import com.l2jserver.model.id.template.provider.ItemTemplateIDProvider;
|
||||
import com.l2jserver.model.id.template.provider.SkillTemplateIDProvider;
|
||||
import com.l2jserver.model.template.capability.Stackable;
|
||||
import com.l2jserver.model.template.item.SkillEtcItemTemplate;
|
||||
import com.l2jserver.model.world.Item;
|
||||
|
||||
public class LargaFireworkItemTemplate extends SkillEtcItemTemplate implements
|
||||
Stackable<Item> {
|
||||
public class LargaFireworkItemTemplate extends SkillEtcItemTemplate {
|
||||
public static final int ID = 6407;
|
||||
|
||||
@Inject
|
||||
|
||||
@@ -18,29 +18,11 @@ package script.template.item.armor;
|
||||
|
||||
import com.l2jserver.model.id.template.ItemTemplateID;
|
||||
import com.l2jserver.model.template.capability.Enchantable;
|
||||
import com.l2jserver.model.template.capability.Penalty;
|
||||
import com.l2jserver.model.template.item.ArmorTemplate;
|
||||
import com.l2jserver.model.world.capability.Equiper;
|
||||
|
||||
public abstract class AbstractGradeAArmorTemplate extends ArmorTemplate
|
||||
implements Enchantable, Penalty {
|
||||
implements Enchantable {
|
||||
public AbstractGradeAArmorTemplate(ItemTemplateID id) {
|
||||
super(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void enchant(com.l2jserver.model.world.capability.Enchantable target) {
|
||||
target.setEnchantLevel(target.getEnchantLevel() + 1);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void penalty(Equiper user) {
|
||||
// if (!(user instanceof Levelable) && !(user instanceof Castable))
|
||||
// return;
|
||||
// final Levelable levelable = (Levelable) user;
|
||||
// final Castable castable = (Castable) user;
|
||||
// if (levelable.getLevel() < 20) {
|
||||
//
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,9 +18,6 @@ package script.template.item.armor;
|
||||
|
||||
import com.google.inject.Inject;
|
||||
import com.l2jserver.model.id.template.provider.ItemTemplateIDProvider;
|
||||
import com.l2jserver.model.world.capability.Attackable;
|
||||
import com.l2jserver.model.world.capability.Attacker;
|
||||
import com.l2jserver.model.world.capability.Enchantable;
|
||||
|
||||
public class Dummy2ArmorTemplate extends AbstractGradeAArmorTemplate {
|
||||
public static final int ID = 10;
|
||||
@@ -33,25 +30,4 @@ public class Dummy2ArmorTemplate extends AbstractGradeAArmorTemplate {
|
||||
public Dummy2ArmorTemplate(ItemTemplateIDProvider factory) {
|
||||
super(factory.createID(ID));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void defend(Attacker source, Attackable target) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void enchant(Enchantable target) {
|
||||
if (target.getEnchantLevel() >= MAX_ENCHANT)
|
||||
return;
|
||||
super.enchant(target);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getPhysicalDefense() {
|
||||
return REDUCED_DAMAGE_PHYSICAL;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getMagicalDefense() {
|
||||
return REDUCED_DAMAGE_MAGICAL;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,8 +18,6 @@ package script.template.item.armor;
|
||||
|
||||
import com.google.inject.Inject;
|
||||
import com.l2jserver.model.id.template.provider.ItemTemplateIDProvider;
|
||||
import com.l2jserver.model.world.capability.Attackable;
|
||||
import com.l2jserver.model.world.capability.Attacker;
|
||||
|
||||
public class DummyArmorTemplate extends AbstractNoGradeArmorTemplate {
|
||||
public static final int ID = 20;
|
||||
@@ -31,18 +29,4 @@ public class DummyArmorTemplate extends AbstractNoGradeArmorTemplate {
|
||||
public DummyArmorTemplate(ItemTemplateIDProvider factory) {
|
||||
super(factory.createID(ID));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void defend(Attacker source, Attackable target) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getPhysicalDefense() {
|
||||
return REDUCED_DAMAGE_PHYSICAL;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getMagicalDefense() {
|
||||
return REDUCED_DAMAGE_MAGICAL;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,8 +19,6 @@ package script.template.item.potion;
|
||||
import com.google.inject.Inject;
|
||||
import com.l2jserver.model.id.template.provider.ItemTemplateIDProvider;
|
||||
import com.l2jserver.model.template.item.PotionTemplate;
|
||||
import com.l2jserver.model.world.capability.Attackable;
|
||||
import com.l2jserver.model.world.capability.Attacker;
|
||||
|
||||
public class RedPotionTemplate extends PotionTemplate {
|
||||
public static final int ID = 15;
|
||||
@@ -32,9 +30,4 @@ public class RedPotionTemplate extends PotionTemplate {
|
||||
this.price = 40;
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void consume(Attacker source, Attackable target) {
|
||||
// TODO Auto-generated method stub
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,8 +23,6 @@ import static com.l2jserver.model.template.item.WeaponTemplate.WeaponAttributeTy
|
||||
|
||||
import com.google.inject.Inject;
|
||||
import com.l2jserver.model.id.template.provider.ItemTemplateIDProvider;
|
||||
import com.l2jserver.model.world.capability.Attackable;
|
||||
import com.l2jserver.model.world.capability.Attacker;
|
||||
import com.l2jserver.model.world.character.CharacterInventory.InventoryPaperdoll;
|
||||
|
||||
public class LongSwordTemplate extends AbstractNoGradeWeaponTemplate {
|
||||
@@ -49,10 +47,4 @@ public class LongSwordTemplate extends AbstractNoGradeWeaponTemplate {
|
||||
this.soulshots = 2;
|
||||
this.spiritshots = 2;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void attack(Attacker source, Attackable target) {
|
||||
source.attack(target, this);
|
||||
target.receiveAttack(source, this);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,8 +23,6 @@ import static com.l2jserver.model.template.item.WeaponTemplate.WeaponAttributeTy
|
||||
|
||||
import com.google.inject.Inject;
|
||||
import com.l2jserver.model.id.template.provider.ItemTemplateIDProvider;
|
||||
import com.l2jserver.model.world.capability.Attackable;
|
||||
import com.l2jserver.model.world.capability.Attacker;
|
||||
import com.l2jserver.model.world.character.CharacterInventory.InventoryPaperdoll;
|
||||
|
||||
public class ShortSwordTemplate extends AbstractNoGradeWeaponTemplate {
|
||||
@@ -52,10 +50,4 @@ public class ShortSwordTemplate extends AbstractNoGradeWeaponTemplate {
|
||||
this.soulshots = 1;
|
||||
this.spiritshots = 1;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void attack(Attacker source, Attackable target) {
|
||||
source.attack(target, this);
|
||||
target.receiveAttack(source, this);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,8 +19,6 @@ package script.template.skill;
|
||||
import com.google.inject.Inject;
|
||||
import com.l2jserver.model.id.template.provider.SkillTemplateIDProvider;
|
||||
import com.l2jserver.model.template.SkillTemplate;
|
||||
import com.l2jserver.model.world.capability.Castable;
|
||||
import com.l2jserver.model.world.capability.Caster;
|
||||
import com.l2jserver.model.world.character.CharacterClass;
|
||||
|
||||
public class TestSkillTemplate extends SkillTemplate {
|
||||
@@ -36,9 +34,4 @@ public class TestSkillTemplate extends SkillTemplate {
|
||||
public CharacterClass[] getClasses() {
|
||||
return new CharacterClass[] { CharacterClass.HUMAN_FIGHTER };
|
||||
}
|
||||
|
||||
@Override
|
||||
public void cast(Caster caster, Castable... targets) {
|
||||
// TODO do casting
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user