mirror of
https://github.com/Rogiel/l2jserver2
synced 2025-12-08 16:33:07 +00:00
Implemented new packets and several services
Signed-off-by: Rogiel <rogiel@rogiel.com>
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
|
||||
/*
|
||||
* This file is part of l2jserver <l2jserver.com>.
|
||||
*
|
||||
@@ -14,9 +13,14 @@
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with l2jserver. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
*/
|
||||
package script.template.item.weapon;
|
||||
|
||||
import static com.l2jserver.model.template.item.WeaponTemplate.WeaponAttributeType.MAGICAL_ATTACK;
|
||||
import static com.l2jserver.model.template.item.WeaponTemplate.WeaponAttributeType.PHYSICAL_ATTACK;
|
||||
import static com.l2jserver.model.template.item.WeaponTemplate.WeaponAttributeType.PHYSICAL_ATTACK_SPEED;
|
||||
import static com.l2jserver.model.template.item.WeaponTemplate.WeaponAttributeType.R_CRITICAL;
|
||||
|
||||
import com.google.inject.Inject;
|
||||
import com.l2jserver.model.id.template.factory.ItemTemplateIDFactory;
|
||||
import com.l2jserver.model.world.capability.Attackable;
|
||||
@@ -32,10 +36,10 @@ public class LongSwordTemplate extends AbstractNoGradeWeaponTemplate {
|
||||
ItemMaterial.STEEL, InventoryPaperdoll.RIGHT_HAND,
|
||||
WeaponType.SWORD);
|
||||
|
||||
attribute.set(WeaponAttributeType.PHYSICAL_ATTACK, 0x08, 24);
|
||||
attribute.set(WeaponAttributeType.MAGICAL_ATTACK, 0x08, 17);
|
||||
attribute.set(WeaponAttributeType.R_CRITICAL, 0x08, 8);
|
||||
attribute.set(WeaponAttributeType.PHYSICAL_ATTACK_SPEED, 0x08, 379);
|
||||
attribute.set(PHYSICAL_ATTACK, 0x80, 24);
|
||||
attribute.set(MAGICAL_ATTACK, 0x80, 17);
|
||||
attribute.set(R_CRITICAL, 0x80, 8);
|
||||
attribute.set(PHYSICAL_ATTACK_SPEED, 0x80, 379);
|
||||
|
||||
this.randomDamage = 10;
|
||||
this.attackRange = 40;
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
/*
|
||||
* This file is part of l2jserver <l2jserver.com>.
|
||||
*
|
||||
@@ -14,9 +13,14 @@
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with l2jserver. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
*/
|
||||
package script.template.item.weapon;
|
||||
|
||||
import static com.l2jserver.model.template.item.WeaponTemplate.WeaponAttributeType.MAGICAL_ATTACK;
|
||||
import static com.l2jserver.model.template.item.WeaponTemplate.WeaponAttributeType.PHYSICAL_ATTACK;
|
||||
import static com.l2jserver.model.template.item.WeaponTemplate.WeaponAttributeType.PHYSICAL_ATTACK_SPEED;
|
||||
import static com.l2jserver.model.template.item.WeaponTemplate.WeaponAttributeType.R_CRITICAL;
|
||||
|
||||
import com.google.inject.Inject;
|
||||
import com.l2jserver.model.id.template.factory.ItemTemplateIDFactory;
|
||||
import com.l2jserver.model.world.capability.Attackable;
|
||||
@@ -32,10 +36,10 @@ public class ShortSwordTemplate extends AbstractNoGradeWeaponTemplate {
|
||||
ItemMaterial.STEEL, InventoryPaperdoll.RIGHT_HAND,
|
||||
WeaponType.SWORD);
|
||||
|
||||
attribute.set(WeaponAttributeType.PHYSICAL_ATTACK, 0x08, 8);
|
||||
attribute.set(WeaponAttributeType.MAGICAL_ATTACK, 0x08, 6);
|
||||
attribute.set(WeaponAttributeType.R_CRITICAL, 0x08, 8);
|
||||
attribute.set(WeaponAttributeType.PHYSICAL_ATTACK_SPEED, 0x08, 379);
|
||||
attribute.set(PHYSICAL_ATTACK, 0x08, 8);
|
||||
attribute.set(MAGICAL_ATTACK, 0x08, 6);
|
||||
attribute.set(R_CRITICAL, 0x08, 8);
|
||||
attribute.set(PHYSICAL_ATTACK_SPEED, 0x08, 379);
|
||||
|
||||
this.type = WeaponType.SWORD;
|
||||
this.paperdoll = InventoryPaperdoll.RIGHT_HAND;
|
||||
|
||||
Reference in New Issue
Block a user