Jump to content

Recommended Posts

Posted

Who can change this buffer for  L2 Emu . 

 

10x

 

Just Replace this in script

 

from net.sf.l2j ------>  from com.l2emu

 

Config.DANCES_MAX_AMOUNT ------> Config.DANCES_SONGS_MAX_AMOUNT

 

 

Posted

Great job! I am gonna check it out later!

 

i have a little problem , i have installed the " new " npc fine , and buffs works fine , but i need to change buff duration .. songs dances last for 2 mins..

ty

 

You can change it easily on Characters.properties.

 

Search for this config.

 

	# ---------------------------------------------------------------------------
# Skills & Effects
# ---------------------------------------------------------------------------
# When this is enabled it will read the "SkillDurationList" option.
# This will basically overlook the "time = x" in the skill XMLs so that you do not need to modify the L2J Datapack XMLs to increase skill duration.
# Default: False
EnableModifySkillDuration = False
	# Skill duration list
# Format: skillid,newtime;skillid2,newtime2...
# Example:
#       This enable 1h(3600) duration for songs, the "\"indicates new line,
#       and is only set for formating purposes.
#       SkillDurationList = 264,3600;265,3600;266,3600;267,3600;268,3600;\
#       269,3600;270,3600;304,3600;305,1200;306,3600;308,3600;349,3600;\
#       363,3600;364,3600
SkillDurationList = 

Posted

Great job! I am gonna check it out later!

 

You can change it easily on Characters.properties.

 

Search for this config.

 

	# ---------------------------------------------------------------------------
# Skills & Effects
# ---------------------------------------------------------------------------
# When this is enabled it will read the "SkillDurationList" option.
# This will basically overlook the "time = x" in the skill XMLs so that you do not need to modify the L2J Datapack XMLs to increase skill duration.
# Default: False
EnableModifySkillDuration = False
	# Skill duration list
# Format: skillid,newtime;skillid2,newtime2...
# Example:
#       This enable 1h(3600) duration for songs, the "\"indicates new line,
#       and is only set for formating purposes.
#       SkillDurationList = 264,3600;265,3600;266,3600;267,3600;268,3600;\
#       269,3600;270,3600;304,3600;305,1200;306,3600;308,3600;349,3600;\
#       363,3600;364,3600
SkillDurationList = 

ty a lot . one more question , where can i find the skills id 's ? i want to change more than songs and dances , skiils like cat buff , pof pow etc.

Posted

Go gameserver\data\stats\skills and change the buff time 1 by 1 or

 

get this software shared by NEO

http://www.maxcheaters.com/forum/index.php?topic=83002.msg637418;topicseen#msg637418

 

copy and paste this sofware inside gameserver\data\stats\skills. run the software and paste this list. add the time in seconds that u want (3600 = 1 hour) and proceed.

 

This is the r1n4a's buffer buffs list.

 

Buff
1085
1304
1087
1354
1062
1243
1045
1048
1397
1078
1242
1353
1352
1059
1077
1240
1086
1392
1043
1032
1036
1035
1068
1044
1033
1259
1040
1393
1268
1303
1204
1047
1460
1257
1182
1189
1191
1311
1307
1410
1413
1363
1388
1389
1356
1355
1357
1416
1457
1323
1007
1009
1006
1002
1251
1252
1253
1284
1310
1309
1308
1362

summon
4699
4700
4702
4703

dance/song
271
272
273
274
275
276
277
307
309
310
311
266
365
264
265
267
268
269
270
304
305
306
308
363
364
349
529
530
764
914
915
1542

overlord
1003
1004
1005
1008
1249
1250
1260
1261
1282
1364
1365
1414
1415
1416

warcryer
1002
1007
1006
1009
1251
1252
1253
1284
1308
1309
1310
1362
1390
1391
1461

Improve buff
1499
1500
1501
1502
1503
1504
1517
1518
1519
1534
1535
1536
1537
1538

warsmith
825
826
827
828
829
830

kamael
834
1442
1443
1444

 

or try with this i had never tried ^^

 


SkillDurationList=1085,3600;1304,3600;1087,3600;1354,3600;1062,3600;1243,3600;1045,3600;1048,3600;1397,3600;1078,3600;1242,3600;1353,3600;1352,3600;1059,3600;1077,3600;1240,3600;1086,3600;1392,3600;1043,3600;1032,3600;1036,3600;1035,3600;1068,3600;1044,3600;1033,3600;1259,3600;1040,3600;1393,3600;1268,3600;1303,3600;1204,3600;1047,3600;1460,3600;1257,3600;1182,3600;1189,3600;1191,3600;1311,3600;1307,3600;1410,3600;4699,3600;4700,3600;4702,3600;4703,3600;1413,3600;1363,3600;1388,3600;1389,3600;1356,3600;1355,3600;1357,3600;1416,3600;1457,3600;1323,3600;1007,3600;1009,3600;1006,3600;1002,3600;1251,3600;1252,3600;1253,3600;1284,3600;1310,3600;1309,3600;1308,3600;1362,3600;271,3600;272,3600;273,3600;274,3600;275,3600;276,3600;277,3600;307,3600;309,3600;310,3600;311,3600;266,3600;365,3600;264,3600;265,3600;267,3600;268,3600;269,3600;270,3600;304,3600;305,3600;306,3600;308,3600;363,3600;364,3600;349,3600;529,3600;530,3600;764,3600;914,3600;915,3600;1542,3600;1003,3600;1004,3600;1005,3600;1008,3600;1249,3600;1250,3600;1260,3600;1261,3600;1282,3600;1364,3600;1365,3600;1414,3600;1415,3600;1416,3600;1002,3600;1007,3600;1006,3600;1009,3600;1251,3600;1252,3600;1253,3600;1284,3600;1308,3600;1309,3600;1310,3600;1362,3600;1390,3600;1391,3600;1461,3600;1499,3600;1500,3600;1501,3600;1502,3600;1503,3600;1504,3600;1517,3600;1518,3600;1519,3600;1534,3600;1535,3600;1536,3600;1537,3600;1538,3600;825,3600;826,3600;827,3600;828,3600;829,3600;830,3600;834,3600;1442,3600;1443,3600;1444;3600

  • 2 weeks later...
  • 2 weeks later...
  • 4 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