mirror of
https://github.com/Rogiel/l2jserver2
synced 2025-12-06 07:32:46 +00:00
First commit
Change-Id: I4d273faba7286288d2b9a214c87c39a76724d787
This commit is contained in:
24
data/scripts/com/l2jserver/script/DummyScript.java
Normal file
24
data/scripts/com/l2jserver/script/DummyScript.java
Normal file
@@ -0,0 +1,24 @@
|
||||
package com.l2jserver.script;
|
||||
|
||||
import com.l2jserver.model.world.capability.Scriptable;
|
||||
import com.l2jserver.service.game.script.Script;
|
||||
|
||||
public class DummyScript implements Script<Scriptable> {
|
||||
@Override
|
||||
public void load(Scriptable object) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void unload() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public Scriptable getObject() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package com.l2jserver.model.template;
|
||||
|
||||
import com.l2jserver.model.world.capability.Attackable;
|
||||
import com.l2jserver.model.world.capability.Attacker;
|
||||
|
||||
public class TestPotionTemplate extends PotionTemplate {
|
||||
public TestPotionTemplate() {
|
||||
super(null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void consume(Attacker source, Attackable target) {
|
||||
//TODO consume item
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package com.l2jserver.model.template;
|
||||
|
||||
import com.l2jserver.model.world.capability.Castable;
|
||||
import com.l2jserver.model.world.capability.Caster;
|
||||
|
||||
public class TestSkillTemplate extends SkillTemplate {
|
||||
public TestSkillTemplate() {
|
||||
super(null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void cast(Caster caster, Castable target) {
|
||||
// TODO do casting
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
package com.l2jserver.model.template;
|
||||
|
||||
import com.l2jserver.model.world.capability.Attackable;
|
||||
import com.l2jserver.model.world.capability.Attacker;
|
||||
import com.l2jserver.model.world.capability.Enchantable;
|
||||
|
||||
public class TestWeaponTemplate extends WeaponTemplate {
|
||||
private static final int DAMAGE = 10;
|
||||
private static final int MAX_ENCHANT_LEVEL = 10;
|
||||
|
||||
public TestWeaponTemplate() {
|
||||
super(null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void attack(Attacker source, Attackable target) {
|
||||
// TODO deal damage!
|
||||
}
|
||||
|
||||
@Override
|
||||
public void enchant(Enchantable target) {
|
||||
if (target.getEnchantLevel() == MAX_ENCHANT_LEVEL)
|
||||
return;
|
||||
// TODO do enchant
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getDamage() {
|
||||
return DAMAGE;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user