Jump to content

Recommended Posts

Posted

Idea - l2cr

 

Sreens:

 

471779.JPG

 

Server files:

 

-->>>Systextures<<<--

 

Itemdata.txt:

 

item_begin	weapon	8028	[sword_of_templar]	item_type=weapon	slot_bit_type={lrhand}	armor_type=none	etcitem_type=none	recipe_id=0	blessed=0	weight=1680	default_action=action_equip	consume_type=consume_type_normal	initial_count=1	maximum_count=1	soulshot_count=3	spiritshot_count=2	reduced_soulshot={}	reduced_spiritshot={}	reduced_mp_consume={}	immediate_effect=1	price=0	default_price=136000	item_skill=[none]	critical_attack_skill=[none]	attack_skill=[none]	magic_skill=[none]	item_skill_enchanted_four=[none]	material_type=steel	crystal_type=none	crystal_count=0	is_trade=0	is_drop=0	is_destruct=1	physical_damage=750	random_damage=15	weapon_type=sword	can_penetrate=0	critical=9	hit_modify=0	avoid_modify=0	dual_fhit_rate=0	shield_defense=0	shield_defense_rate=0	attack_range=40	damage_range={0;0;44;120}	attack_speed=500	reuse_delay=0	mp_consume=0	magical_damage=250	durability=95	damaged=0	physical_defense=0	magical_defense=0	mp_bonus=0	category={}	enchanted=0	html=[item_default.htm]	equip_pet={0}	magic_weapon=0	enchant_enable=0	can_equip_sex=-1	can_equip_race={}	can_equip_change_class=-1	can_equip_class={}	can_equip_agit=-1	can_equip_castle=-1	can_equip_castle_num={}	can_equip_clan_leader=-1	can_equip_clan_level=-1	can_equip_hero=-1	can_equip_nobless=-1	can_equip_chaotic=-1	item_end
item_begin	weapon	8029	[black_angel_slayer]	item_type=weapon	slot_bit_type={rhand}	armor_type=none	etcitem_type=none	recipe_id=0	blessed=0	weight=760	default_action=action_equip	consume_type=consume_type_normal	initial_count=1	maximum_count=1	soulshot_count=2	spiritshot_count=1	reduced_soulshot={}	reduced_spiritshot={}	reduced_mp_consume={}	immediate_effect=1	price=0	default_price=48800000	item_skill=[none]	critical_attack_skill=[none]	attack_skill=[none]	magic_skill=[none]	item_skill_enchanted_four=[none]	material_type=adamantaite	crystal_type=s	crystal_count=2440	is_trade=1	is_drop=1	is_destruct=1	physical_damage=600	random_damage=7	weapon_type=dagger	can_penetrate=0	critical=14	hit_modify=-3.75	avoid_modify=0	dual_fhit_rate=0	shield_defense=0	shield_defense_rate=0	attack_range=40	damage_range={0;0;40;120}	attack_speed=562	reuse_delay=0	mp_consume=0	magical_damage=224	durability=100	damaged=0	physical_defense=0	magical_defense=0	mp_bonus=0	category={}	enchanted=0	html=[item_default.htm]	equip_pet={0}	magic_weapon=0	enchant_enable=1	can_equip_sex=-1	can_equip_race={}	can_equip_change_class=-1	can_equip_class={}	can_equip_agit=-1	can_equip_castle=-1	can_equip_castle_num={}	can_equip_clan_leader=-1	can_equip_clan_level=-1	can_equip_hero=-1	can_equip_nobless=-1	can_equip_chaotic=-1	item_end

 

Client files:

 

weapongrp.txt:

 

item_begin	object_id=8028	object_name=[]	body_part={rhand}	animation=1	drop_type=1	drop_anim_type=1	drop_radius=7	drop_height=10	projectile=[none]	curvature=1000	drop_mesh={[LineageWeapons.knights_sword_m00_wp];[customw.knights_sword_t00_wp]}	drop_texture={[none]}	icon={[customi.weapon_knights_sword_i00]}	mesh={[LineageWeapons.knights_sword_m00_wp]}	texture={[customw.knights_sword_t00_wp]}	crystallizable=1	item_sound={[itemSound.sword_mid_4];[itemSound.sword_small_9];[itemSound.sword_mid_2];[itemSound.public_sword_shing_10]}	drop_sound=[itemSound.itemdrop_sword]	equip_sound=[itemSound.itemequip_sword]	weight=1300	soulshot_count=1	spiritshot_count=1	material_type=adamantaite	crystal_type=s	physical_damage=750	random_damage=10	weapon_type=sword	critical=8	hit_modify=0	avoid_modify=0	shield_defense=0	shield_defense_rate=0	attack_speed=500	mp_consume=0	magical_damage=250	durability=95	effect_c={[LineageEffect.c_u004]}	effect_c_s=0.00	c3_attr1=0	c3_attr2=0.00	c3_attr3=0.00	c3_attr4=1.20	c3_attr5=1.20	range_s={[LineageWeapons.rangesample]}	c3_attr6=1.55	c3_attr7=0.70	c3_attr8=0.70	c3_attr9=11.00	c3_attr10=0.00	range2_s=0.00	range2_arg={}	c4_attr1=[none]	c4_attr2=[none]	c4_attr5=0	c4_attr6=-1	c4_attr7=0	item_end
item_begin	object_id=8029	object_name=[]	body_part={rhand}	animation=1	drop_type=1	drop_anim_type=1	drop_radius=7	drop_height=10	projectile=[none]	curvature=1000	drop_mesh={[LineageWeapons.angel_slayer_m00_wp];[customw.angel_slayer_t00_wp]}	drop_texture={[none]}	icon={[customi.weapon_angel_slayer_i00]}	mesh={[LineageWeapons.angel_slayer_m00_wp]}	texture={[customw.angel_slayer_t00_wp]}	crystallizable=1	item_sound={[itemSound.dagger_6];[itemSound.sword_small_2];[itemSound.sword_mid_2];[itemSound.public_sword_shing_7]}	drop_sound=[itemSound.itemdrop_dagger]	equip_sound=[itemSound.itemequip_dagger]	weight=950	soulshot_count=1	spiritshot_count=1	material_type=adamantaite	crystal_type=s	physical_damage=600	random_damage=5	weapon_type=dagger	critical=12	hit_modify=-3	avoid_modify=0	shield_defense=0	shield_defense_rate=0	attack_speed=562	mp_consume=0	magical_damage=224	durability=100	effect_c={[LineageEffect.c_u004]}	effect_c_s=0.00	c3_attr1=0	c3_attr2=0.00	c3_attr3=0.00	c3_attr4=0.80	c3_attr5=0.10	range_s={[LineageWeapons.rangesample]}	c3_attr6=1.10	c3_attr7=0.70	c3_attr8=0.70	c3_attr9=7.00	c3_attr10=0.00	range2_s=0.00	range2_arg={}	c4_attr1=[none]	c4_attr2=[none]	c4_attr5=0	c4_attr6=-1	c4_attr7=0	item_end

 

itemname-e.txt:

 

item_name_begin	id=8028	name=[sword of Templar]	additionalname=[Glamour]	popup=-1	description=[Post Pacific]	item_name_end
item_name_begin	id=8029	name=[black Angel Slayer]	additionalname=[Glamour]	popup=-1	description=[Post Pacific]	item_name_end

 

 

Posted

what are u saying?...i see only this of yours reply here oO

I think he means that he has already posted "Black Angel Slayer, Sword of Templar"

Anyway, I can't see any images.

  • 1 year later...
  • 3 weeks later...
  • 2 weeks later...
Guest
This topic is now closed to further replies.


  • Posts

    • what pack you use  send me on discord for it
    • package custom.events.RandomZoneEvent; import java.io.File; import java.util.ArrayList; import java.util.List; import java.util.Random; import java.util.concurrent.ScheduledFuture; import org.w3c.dom.Document; import org.w3c.dom.Node; import org.l2jmobius.commons.threads.ThreadPool; import org.l2jmobius.commons.time.SchedulingPattern; import org.l2jmobius.commons.time.TimeUtil; import org.l2jmobius.commons.util.IXmlReader; import org.l2jmobius.gameserver.managers.ZoneManager; import org.l2jmobius.gameserver.model.StatSet; import org.l2jmobius.gameserver.model.actor.Creature; import org.l2jmobius.gameserver.model.actor.Npc; import org.l2jmobius.gameserver.model.actor.Player; import org.l2jmobius.gameserver.model.quest.Event; import org.l2jmobius.gameserver.model.zone.ZoneId; import org.l2jmobius.gameserver.model.zone.ZoneType; import org.l2jmobius.gameserver.model.zone.type.RandomZone; import org.l2jmobius.gameserver.util.Broadcast; /** * Random Zone Event - Activates one random PvP zone temporarily. No modifica la clase de la zona: usa flags PvP en runtime. * @author Juan */ public class RandomZoneEvent extends Event { private static final String CONFIG_FILE = "data/scripts/custom/events/RandomZoneEvent/config.xml"; private static int EVENT_DURATION_MINUTES = 15; private static boolean _isActive = false; private ScheduledFuture<?> _eventTask = null; private final List<ZoneType> _availableZones = new ArrayList<>(); private ZoneType _activeZone = null; public RandomZoneEvent() { loadConfig(); loadZones(); registerZoneListeners(); } /** * Registra listeners a TODAS LAS ZONAS random */ private void registerZoneListeners() { for (ZoneType zone : _availableZones) { addEnterZoneId(zone.getId()); addExitZoneId(zone.getId()); LOGGER.info("[RandomZoneEvent] Registered listener for zone: " + zone.getName()); } } private void loadConfig() { new IXmlReader() { @Override public void load() { parseDatapackFile(CONFIG_FILE); } @Override public void parseDocument(Document doc, File file) { forEach(doc, "event", eventNode -> { final StatSet att = new StatSet(parseAttributes(eventNode)); final String name = att.getString("name"); for (Node node = eventNode.getFirstChild(); node != null; node = node.getNextSibling()) { if ("schedule".equals(node.getNodeName())) { final StatSet attributes = new StatSet(parseAttributes(node)); final String pattern = attributes.getString("pattern"); final SchedulingPattern schedulingPattern = new SchedulingPattern(pattern); final StatSet params = new StatSet(); params.set("Name", name); params.set("SchedulingPattern", pattern); final long delay = schedulingPattern.getDelayToNextFromNow(); getTimers().addTimer("Schedule_" + name, params, delay + 5000, null, null); LOGGER.info("[RandomZoneEvent] Event " + name + " scheduled at " + TimeUtil.getDateTimeString(System.currentTimeMillis() + delay)); } } }); } }.load(); } private void loadZones() { for (ZoneType zone : ZoneManager.getInstance().getAllZones(RandomZone.class)) { if ((zone.getName() != null) && zone.getName().toLowerCase().startsWith("random_zone")) { _availableZones.add(zone); LOGGER.info("[RandomZoneEvent] Loaded zone: " + zone.getName() + " (id=" + zone.getId() + ")"); } } LOGGER.info("[RandomZoneEvent] Total random zones loaded: " + _availableZones.size()); } @Override public void onTimerEvent(String event, StatSet params, Npc npc, Player player) { if (event.startsWith("Schedule_")) { eventStart(null); final SchedulingPattern schedulingPattern = new SchedulingPattern(params.getString("SchedulingPattern")); final long delay = schedulingPattern.getDelayToNextFromNow(); getTimers().addTimer(event, params, delay + 5000, null, null); LOGGER.info("[RandomZoneEvent] Rescheduled for " + TimeUtil.getDateTimeString(System.currentTimeMillis() + delay)); } } @Override public boolean eventStart(Player eventMaker) { if (_isActive) { if (eventMaker != null) { eventMaker.sendMessage("RandomZoneEvent already active."); } return false; } if (_availableZones.isEmpty()) { Broadcast.toAllOnlinePlayers("[RandomZoneEvent] No zones configured."); return false; } _isActive = true; Broadcast.toAllOnlinePlayers("⚔️ Random Zone Event has started!"); _eventTask = ThreadPool.schedule(this::activateRandomZone, 5_000); return true; } private void activateRandomZone() { _activeZone = _availableZones.get(new Random().nextInt(_availableZones.size())); _activeZone.setEnabled(true); Broadcast.toAllOnlinePlayers("🔥 Random Zone Event: " + _activeZone.getName() + " is now PvP for " + EVENT_DURATION_MINUTES + " minutes!"); _eventTask = ThreadPool.schedule(this::eventStop, EVENT_DURATION_MINUTES * 60 * 1000L); } @Override public boolean eventStop() { if (!_isActive) { return false; } _isActive = false; if (_eventTask != null) { _eventTask.cancel(true); _eventTask = null; } if (_activeZone != null) { _activeZone.setEnabled(false); Broadcast.toAllOnlinePlayers("🏁 Random Zone Event ended. " + _activeZone.getName() + " is back to normal."); _activeZone = null; } else { Broadcast.toAllOnlinePlayers("🏁 Random Zone Event ended."); } return true; } @Override public void onEnterZone(Creature creature, ZoneType zone) { if (!_isActive || (_activeZone == null)) { return; } if ((zone == _activeZone) && creature.isPlayable()) { creature.setInsideZone(ZoneId.PVP, true); if (creature.isPlayer()) { creature.sendMessage("Esta zona está en modo PvP temporalmente."); } } } @Override public void onExitZone(Creature creature, ZoneType zone) { if (!_isActive || (_activeZone == null)) { return; } if ((zone == _activeZone) && creature.isPlayable()) { creature.setInsideZone(ZoneId.PVP, false); if (creature.isPlayer()) { creature.sendMessage("Abandonaste la zona PvP temporal."); } } } @Override public boolean eventBypass(Player player, String bypass) { return true; } @Override public String onEvent(String event, Npc npc, Player player) { return super.onEvent(event, npc, player); } @Override public String onFirstTalk(Npc npc, Player player) { return null; } public static void main(String[] args) { new RandomZoneEvent(); } } i have this but its not working
    • ZonePvPSpawnBossRadio=0 ZonePvPSpawnBossBarakiel=0 at the Customs.ini in L2Server folder. Im prety sure this is it because i had the same problem with you in cruma 1 floor for example and i couldn't fix it but i fixed it finally by changing these 2 lines
    • Siege Reward Start PM Msg Rework Config root BossDieAnnounce and BossDieSound in the L24Team.properties and Config.java files for global raid boss death notifications and sounds. Adds a new reward_list table to the DB.sql file to track castle rewards. Improves character creation logic for thread safety and validation. Adds extensive state checks to the RequestEnchantItem method to prevent enchantments during inappropriate player states. Fixed auto-attack animation bug (there was no attack animation, only damage animation) Clean Code Other fixes I forgot to list! Java 14 Fixed issue where deleting a character would prevent it from leaving the screen or being removed, or even after a delete CD (it would only exit when re-logging in or creating a new character). Added Premium System from the other C2 project (Needs testing and improvement). Added the "Improved" Community Board (incomplete).
  • 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