- 0
-
Posts
-
Hi, I'm selling Interface sources. I was working with one of bigger Essence projects (for ±1 year) delivering them Interface source KR. Per this period gathered knowledge about UE, UE Scripting, saw a lot of tools and their progression. So finally I decided that I can open up my own sales topic. I'm selling source for any protocol - If I don't have source, I will need you to provide whole system folder or for Essence/main - provide me protocol number. Sources are acquired by my OWN decompiler - written in Java, so we're not using popular UEExplorer upgraded by anyone. Decompiler extracts already compile ready sources. It outputs clean code, however constants are mapped 60-70%. Why only 60-70%? Well tl;dr when you compile any sources, they take at that time constant value and place it instead of = CONST_NAME to = THAT_CONST_NAME_VALUE, so it's not possible to have const name instead of value. Example of output: https://pastebin.com/cjyXcJvT for bigger .uc class (557p). p.s pastebin messed up encoding, but KR symbols are preserved - you won't see "?" symbols, rather you will see proper original korean text. I will give you guide as well, how not to mess it up with your editor VS Code/Notepad++ or what you use it to make them preserve it. You will get source + my compiler wrapper (written in java) - works on Windows/Mac/Linux - it has small GUI but supports CLI. Small notice, who thinks 'this is decompiled source' - basically all sources that are on sale are made by decompiling .u and applying changes. I think powerhouse few years ago was ArtToKill/kick (kick added support for INT64 to the publicly available compiler sources) etc. So no - there are no straight from 'creator' sources anywhere, all sellers offer the same - just the quality is different. UEExplorer upgraded was a big step, however, it introduces still a lot of nesting, if statements wrapping incorrectly which could lead to bugs. There are many things how to identify poor quality sources, as if the seller tries to sell 'out-of-box' when they see it compiles - sad news, some bugs are in the logic due to seller focusing only on 'it compiles' rather than issues that their decompiler is not capable so solve. On request I can restore ±100% const mapping. Later I can attach compiled .u to try. Price is 400EUR. Payment methods USDT (Crypto). I'm still in debate with myself, wether to start selling XDat Editor with structures and ClientDat with 100% all files openings (no unk namings) and improved experience (such as comments support in .dat files, mass sync, improved performance and so on). P.s. If you ask me to give you some project's custom interface - the price may vary - there are couple things per project that need to be hand checked and adjusted (for example Innadril completely changes tokens which then I need to adjust my program to their token Ids). So it might take more time = more money. P.s.s. I have more things in the garage, like my own dsetup source that can allow you 'unlocking' system with your desired encrypting - you don't need to wait till 'patched' systems start appearing and so on, but I think at this time everyone who needs it make them selves it. AAC crypt removals and so on, BuildZone, everything that 'unlocks' client, however, I don't plan to make them on sale as mentioned, everyone can do them.
-
It has been a while since I updated this thread. I am currently actively working on a full-scale port of the shader library to ensure the fast and accurate transfer of all effects. I have decompiled the original game and created a tool that fully logs the entire *Lineage 2 Interlude* particle system. This allows me to extract the original formulas hardcoded into the game, resulting in a high-fidelity port. For instance, *Lineage 2* uses an `appRnd` system that generates unique randomization patterns for different skills, giving them distinct visual characteristics; there are countless formulas and technical nuances like this. Ultimately, I will derive all the key formulas and replicate the geometry with high precision. Twelve basic geometry formulas have already been ported. The effect was created in 10 minutes using a .uc file, HLSL formulas, and SpriteEmitter particle blending formulas. https://prnt.sc/_3UDLQVX_Y-_
-
try this one instead. The one he shared affects every single NPC/player character in the game, the one I posted only affects player characters https://drive.google.com/file/d/1UtccbD9e50x3WEnQBab2PTZnBHwpcGYM/view?usp=sharing or perhaps i misunderstood; if you could please post a full explanation of the problem you're having with the files, unfortunately i think whatever you're using to translate to english is a bit bad nevermind, i got what you mean, here's the fix https://drive.google.com/file/d/1av7OHaGSdnVQtcBgb9MhtiIkxVXy3P2y/view?usp=sharing CanIngnoreCollision=True CanBeIngnoredCollision=True
-
Topics

Question
l2jkain
Hello I changed the tvt event manager tvt to announce every minute passes however the time gets a delay of 1:45 minutes to teleport the players and to go back to the village when it finishes someone help me?
code original :
/* * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more * details. * * You should have received a copy of the GNU General Public License along with * this program. If not, see <http://www.gnu.org/licenses/>. */ package net.sf.l2j.gameserver.model.entity.events.manager; import java.util.Calendar; import java.util.concurrent.ScheduledFuture; import java.util.logging.Logger; import net.sf.l2j.Config; import net.sf.l2j.commons.concurrent.ThreadPool; import net.sf.l2j.gameserver.model.entity.events.TvTEvent; import net.sf.l2j.gameserver.util.Broadcast; /** * @author FBIagent */ public class TvTManager { protected static final Logger _log = Logger.getLogger(TvTManager.class.getName()); /** Task for event cycles<br> */ private TvTStartTask _task; /** * New instance only by getInstance()<br> */ public TvTManager() { if (Config.TVT_EVENT_ENABLED) { TvTEvent.init(); this.scheduleEventStart(); _log.info("TvTEventEngine: Started."); } else { _log.info("TvTEventEngine: Disabled."); } } /** * Initialize new/Returns the one and only instance<br><br> * * @return TvTManager<br> */ public static TvTManager getInstance() { return SingletonHolder._instance; } /** * Starts TvTStartTask */ public void scheduleEventStart() { try { Calendar currentTime = Calendar.getInstance(); Calendar nextStartTime = null; Calendar testStartTime = null; for (String timeOfDay : Config.TVT_EVENT_INTERVAL) { // Creating a Calendar object from the specified interval value testStartTime = Calendar.getInstance(); testStartTime.setLenient(true); String[] splitTimeOfDay = timeOfDay.split(":"); testStartTime.set(Calendar.HOUR_OF_DAY, Integer.parseInt(splitTimeOfDay[0])); testStartTime.set(Calendar.MINUTE, Integer.parseInt(splitTimeOfDay[1])); // If the date is in the past, make it the next day (Example: Checking for "1:00", when the time is 23:57.) if (testStartTime.getTimeInMillis() < currentTime.getTimeInMillis()) { testStartTime.add(Calendar.DAY_OF_MONTH, 1); } // Check for the test date to be the minimum (smallest in the specified list) if (nextStartTime == null || testStartTime.getTimeInMillis() < nextStartTime.getTimeInMillis()) { nextStartTime = testStartTime; } } if (nextStartTime != null) { _task = new TvTStartTask(nextStartTime.getTimeInMillis()); ThreadPool.execute(_task); } } catch (Exception e) { _log.warning("TvTEventEngine[TvTManager.scheduleEventStart()]: Error figuring out a start time. Check TvTEventInterval in config file."); } } /** * Method to start participation */ public void startReg() { if (!TvTEvent.startParticipation()) { Broadcast.announceToOnlinePlayers("TvT Event: Event was cancelled."); _log.warning("TvTEventEngine[TvTManager.run()]: Error spawning event npc for participation."); this.scheduleEventStart(); } else { Broadcast.announceToOnlinePlayers("TvT Event: Registration opened for " + Config.TVT_EVENT_PARTICIPATION_TIME + " minute(s). Type .tvtjoin or .tvtleave, .tvtinfo", true); // schedule registration end _task.setStartTime(System.currentTimeMillis() + 60000L * Config.TVT_EVENT_PARTICIPATION_TIME); ThreadPool.execute(_task); } } /** * Method to start the fight */ public void startEvent() { if (!TvTEvent.startFight()) { Broadcast.announceToOnlinePlayers("TvT Event: Event cancelled due to lack of Participation."); _log.info("TvTEventEngine[TvTManager.run()]: Lack of registration, abort event."); this.scheduleEventStart(); } else { TvTEvent.sysMsgToAllParticipants("TvT Event: Teleporting participants to an arena in " + Config.TVT_EVENT_START_LEAVE_TELEPORT_DELAY + " second(s)."); _task.setStartTime(System.currentTimeMillis() + 60000L * Config.TVT_EVENT_RUNNING_TIME); ThreadPool.execute(_task); } } /** * Method to end the event and reward */ public void endEvent() { Broadcast.announceToOnlinePlayers(TvTEvent.calculateRewards()); TvTEvent.sysMsgToAllParticipants("TvT Event: Teleporting back to the registration npc in " + Config.TVT_EVENT_START_LEAVE_TELEPORT_DELAY + " second(s)."); TvTEvent.stopFight(); this.scheduleEventStart(); } public void skipDelay() { if (_task.nextRun.cancel(false)) { _task.setStartTime(System.currentTimeMillis()); ThreadPool.execute(_task); } } /** * Class for TvT cycles */ class TvTStartTask implements Runnable { private long _startTime; public ScheduledFuture<?> nextRun; public TvTStartTask(long startTime) { _startTime = startTime; } public void setStartTime(long startTime) { _startTime = startTime; } /** * @see java.lang.Runnable#run() */ @Override public void run() { int delay = (int) Math.round((_startTime - System.currentTimeMillis()) / 1000.0); if (delay > 0) { this.announce(delay); } int nextMsg = 0; if (delay > 3600) { nextMsg = delay - 3600; } else if (delay > 1800) { nextMsg = delay - 1800; } else if (delay > 900) { nextMsg = delay - 900; } else if (delay > 600) { nextMsg = delay - 600; } else if (delay > 300) { nextMsg = delay - 300; } else if (delay > 60) { nextMsg = delay - 60; } else if (delay > 5) { nextMsg = delay - 5; } else if (delay > 0) { nextMsg = delay; } else { // start if (TvTEvent.isInactive()) { TvTManager.this.startReg(); } else if (TvTEvent.isParticipating()) { TvTManager.this.startEvent(); } else { TvTManager.this.endEvent(); } } if (delay > 0) { nextRun = ThreadPool.schedule(this, nextMsg * 1000); } } private void announce(long time) { if (time >= 3600 && time % 3600 == 0) { if (TvTEvent.isParticipating()) { Broadcast.announceToOnlinePlayers("TvT Event: " + (time / 60 / 60) + " hour(s) until registration is closed!"); } else if (TvTEvent.isStarted()) { TvTEvent.sysMsgToAllParticipants("TvT Event: " + (time / 60 / 60) + " hour(s) until event is finished!"); } } else if (time >= 60) { if (TvTEvent.isParticipating()) { Broadcast.announceToOnlinePlayers("TvT Event: " + (time / 60) + " minute(s) until registration is closed!"); } else if (TvTEvent.isStarted()) { TvTEvent.sysMsgToAllParticipants("TvT Event: " + (time / 60) + " minute(s) until the event is finished!"); } } else { if (TvTEvent.isParticipating()) { Broadcast.announceToOnlinePlayers("TvT Event: " + time + " second(s) until registration is closed!"); } else if (TvTEvent.isStarted()) { TvTEvent.sysMsgToAllParticipants("TvT Event: " + time + " second(s) until the event is finished!"); } } } } private static class SingletonHolder { protected static final TvTManager _instance = new TvTManager(); } }Code modified
1 answer to this question
Recommended Posts