Jump to content

Recommended Posts

Posted

Hello , I would like to know , how is possible to put on a L2off file server , 2 identical jewls 

let’s say for example 

level 1 and level 2 , ring of baium and the character does not get both of stats .

in skillid if you put the same on both jewls they don’t have difference .

i want to make level 1 weaker than level 2 but i dont know how to solve that -.-‘

 

thank you so much 

Posted (edited)

As you said, you will create 1 skill with 2 levels in your skilldata txt file, lv. 1 with lower stats and lv. 2 with higher stats and you will create 2 items. Ring of Baium1 will have the skill you created but lv. 1 and Ring of Baium2 will have the skill you created but lv. 2. Example follows

 

Skills: 
skill_begin	skill_name = [s_ring_of_baium1]	/* [???? ??] */	skill_id = 3561	level = 1	operate_type = P	magic_level = 75	effect = {{p_defence_attribute;attr_poison;-80};{p_defence_attribute;attr_hold;-60};{p_hit;{all};2;diff};{p_critical_damage;15;per};{p_attack_speed;{all};4;per};{p_magic_speed;{all};4;per}}	skill_end
skill_begin	skill_name = [s_ring_of_baium2]	/* [???? ??] */	skill_id = 3561	level = 2	operate_type = P	magic_level = 75	effect = {{p_defence_attribute;attr_poison;-80};{p_defence_attribute;attr_hold;-60};{p_hit;{all};2;diff};{p_critical_damage;15;per};{p_attack_speed;{all};4;per};{p_magic_speed;{all};4;per}}	skill_end
Items: 
item_begin	accessary	6658	[ring_of_baium1]	item_type=accessary	slot_bit_type={rfinger;lfinger}	armor_type=none	etcitem_type=none	recipe_id=0	blessed=0	weight=150	default_action=action_equip	consume_type=consume_type_normal	initial_count=1	maximum_count=1	soulshot_count=0	spiritshot_count=0	reduced_soulshot={}	reduced_spiritshot={}	reduced_mp_consume={}	immediate_effect=1	price=0	default_price=17300	item_skill=[s_ring_of_baium1]	critical_attack_skill=[none]	attack_skill=[none]	magic_skill=[none]	item_skill_enchanted_four=[none]	material_type=gold	crystal_type=s	crystal_count=86	is_trade=1	is_drop=1	is_destruct=1	physical_damage=0	random_damage=0	weapon_type=none	can_penetrate=0	critical=0	hit_modify=0	avoid_modify=0	dual_fhit_rate=0	shield_defense=0	shield_defense_rate=0	attack_range=0	damage_range={}	attack_speed=0	reuse_delay=0	mp_consume=0	magical_damage=0	durability=95	damaged=0	physical_defense=0	magical_defense=48	mp_bonus=21	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
item_begin	accessary	6659	[ring_of_baium2]	item_type=accessary	slot_bit_type={rfinger;lfinger}	armor_type=none	etcitem_type=none	recipe_id=0	blessed=0	weight=150	default_action=action_equip	consume_type=consume_type_normal	initial_count=1	maximum_count=1	soulshot_count=0	spiritshot_count=0	reduced_soulshot={}	reduced_spiritshot={}	reduced_mp_consume={}	immediate_effect=1	price=0	default_price=17300	item_skill=[s_ring_of_baium2]	critical_attack_skill=[none]	attack_skill=[none]	magic_skill=[none]	item_skill_enchanted_four=[none]	material_type=gold	crystal_type=s	crystal_count=86	is_trade=1	is_drop=1	is_destruct=1	physical_damage=0	random_damage=0	weapon_type=none	can_penetrate=0	critical=0	hit_modify=0	avoid_modify=0	dual_fhit_rate=0	shield_defense=0	shield_defense_rate=0	attack_range=0	damage_range={}	attack_speed=0	reuse_delay=0	mp_consume=0	magical_damage=0	durability=95	damaged=0	physical_defense=0	magical_defense=48	mp_bonus=21	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

 

Edited by TheDarknessFear
  • Upvote 1
Posted

I love you . Haha 

I check this and be in touch to inform you if I did it correctly 😅

@TheDarknessFearmaybe you know how to fix mp potions too?

not to overwrite hp potions and the opposite?

I made them 15 seconds but the one overwrite the other 😕

Posted

Whatever it is, you can ask for help always.

Keep in mind, that ready solutions won't make you learn anything.

We'll be happy to provide help, but you're going to need to start learning too.

Give me an example of MP pots to see if I can help.

Posted

Yes I have tried many things to go to the last , to ask here ..

well my mp potions was clickable 50 per click 

I changed them and made them like hp potions to keep 15 seconds and to give mp like 3 seconds of that duration , but when you press hp potion it overrides the mp potion and the regen of mp stops

Posted

I will soon when back home 🥰

skill_begin skill_name=[s_mana_potion] /* [Mana Potion] */ skill_id=5000 level=1 operate_type=A2 magic_level=1 effect={{t_mp;60;2}} is_magic=0 mp_consume2=0 cast_range=-1 effective_range=-1 skill_hit_time=0 skill_cool_time=0 skill_hit_cancel_time=0 reuse_delay=0 activate_rate=-1 lv_bonus_rate=0 basic_property=none abnormal_time=15 abnormal_lv=3 abnormal_type=life_force attribute=attr_none effect_point=0 target_type=self affect_scope=single affect_limit={0;0} next_action=none debuff=0 ride_state={@ride_none} skill_end

@TheDarknessFear

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