Skip to content

Instantly share code, notes, and snippets.

View JMD13's full-sized avatar

JMD JMD13

View GitHub Profile
@JMD13
JMD13 / lisvus_modern_console_log.diff
Created May 28, 2021 15:26
"Modern" log format for l2jlisvus console.
### Eclipse Workspace Patch 1.0
#P Lisvus_GameServer
Index: java/net/sf/l2j/ConsoleLogFormatter.java
===================================================================
--- java/net/sf/l2j/ConsoleLogFormatter.java (revision 730)
+++ java/net/sf/l2j/ConsoleLogFormatter.java (working copy)
@@ -16,6 +16,8 @@
import java.io.PrintWriter;
import java.io.StringWriter;
@JMD13
JMD13 / lisvus_autovotereward_hopzone.diff
Last active May 28, 2021 12:28
L2J Lisvus Auto Vote Rewarder for Hopzone.
### Eclipse Workspace Patch 1.0
#P Lisvus_GameServer
Index: java/net/sf/l2j/gameserver/GameServer.java
===================================================================
--- java/net/sf/l2j/gameserver/GameServer.java (revision 730)
+++ java/net/sf/l2j/gameserver/GameServer.java (working copy)
@@ -68,6 +68,7 @@
import net.sf.l2j.gameserver.handler.VoicedCommandHandler;
import net.sf.l2j.gameserver.idfactory.IdFactory;
import net.sf.l2j.gameserver.instancemanager.AuctionManager;
@JMD13
JMD13 / bufferpresetsfix.diff
Created April 10, 2021 16:53
Fixing service buffer's presets. Respects the pre divine inspiration limits of 20 buff slots and 12 dance/song slots.
diff --git a/src/main/resources/data/service/buffer/json/global.json b/src/main/resources/data/service/buffer/json/global.json
index f66e93b..a2764e3 100644
--- a/src/main/resources/data/service/buffer/json/global.json
+++ b/src/main/resources/data/service/buffer/json/global.json
@@ -137,13 +137,13 @@
"BC_FIGHTER": {
"id":"BC_FIGHTER",
"name":"Fighter",
- "buffs":["DANCE_0", "DANCE_1", "DANCE_3", "DANCE_4", "DANCE_5", "DANCE_6", "DANCE_7", "DANCE_8", "DANCE_9", "DANCE_10", "DANCE_13", "DANCE_15", "SONG_0", "SONG_1", "SONG_2", "SONG_3", "SONG_4", "SONG_5", "SONG_6", "SONG_7", "SONG_8", "SONG_9", "SONG_10", "SONG_11", "SONG_12", "SONG_13", "SONG_14", "SONG_15", "BUFF_3", "BUFF_11", "BUFF_16", "BUFF_17", "BUFF_20", "BUFF_22", "BUFF_24", "RESIST_3", "RESIST_8", "RESIST_9", "RESIST_10", "RESIST_11", "SPECIAL_0", "SPECIAL_2", "SPECIAL_3", "SPECIAL_4", "SPECIAL_5", "SPECIAL_6", "SPECIAL_7", "SPECIAL_9", "SPECIAL_18"]
+ "buffs":["DANCE_0", "DANCE_1", "DANCE_15", "DANCE_
@JMD13
JMD13 / NpcBuffer.java
Last active August 11, 2020 17:32
rin4a adaptation test1
/*
* Copyright (C) 2004-2015 L2J DataPack
*
* This file is part of L2J DataPack.
*
* L2J DataPack 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.
*
@JMD13
JMD13 / Hopzone.java
Created June 9, 2020 17:54
auto vote reward datapack for l2jserver high five tested in 9-6-2020
package com.l2jserver.datapack.custom.AutoVoteReward;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.ArrayList;
@JMD13
JMD13 / gist:e0b724ac4d9cd9c0913615a05ba8f1bd
Created December 13, 2019 11:53 — forked from u3games/gist:10018593
L2j-Server Script: Anti-Bots (Autolevel)
/*
* 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.
@JMD13
JMD13 / Banking for L2JLisvus
Last active October 27, 2019 19:51
Banking for L2JLisvus without Config.
### Eclipse Workspace Patch 1.0
#P Lisvus_GameServer
Index: java/net/sf/l2j/gameserver/handler/voicedcommandhandlers/Banking.java
===================================================================
--- java/net/sf/l2j/gameserver/handler/voicedcommandhandlers/Banking.java (nonexistent)
+++ java/net/sf/l2j/gameserver/handler/voicedcommandhandlers/Banking.java (working copy)
@@ -0,0 +1,107 @@
+/*
+ * 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
@JMD13
JMD13 / PVP Flag Zone for L2JLisvus C4
Last active October 15, 2019 22:07
PVP Flag Zone for L2JLisvus C4
### Eclipse Workspace Patch 1.0
#P Lisvus_GameServer
Index: java/net/sf/l2j/gameserver/model/zone/type/L2FlagZone.java
===================================================================
--- java/net/sf/l2j/gameserver/model/zone/type/L2FlagZone.java (nonexistent)
+++ java/net/sf/l2j/gameserver/model/zone/type/L2FlagZone.java (working copy)
@@ -0,0 +1,60 @@
+/*
+ * 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
@JMD13
JMD13 / Fallout76Custom.ini
Last active November 24, 2018 17:22
See the comments on what exacly these tweaks do.
[Display]
fDefaultWorldFOV=80
fDefault1stPersonFOV=80
fDOFBlendRatio=0
fDOFMinFocalCoefDist=999999
fDOFMaxFocalCoefDist=99999999
fDOFDynamicFarRange=99999999
fDOFCenterWeightInt=0
fDOFFarDistance=99999999
fIBLensFlaresBloomint=0
@JMD13
JMD13 / AnnounceBoss.diff
Created March 11, 2018 21:39 — forked from St3eT/AnnounceBoss.diff
Announce spawn boss
### Eclipse Workspace Patch 1.0
#P L2J_Server_BETA
Index: dist/game/config/L2JMods.properties
===================================================================
--- dist/game/config/L2JMods.properties (revision 6112)
+++ dist/game/config/L2JMods.properties (working copy)
@@ -68,7 +68,25 @@
# Default = False
ChampionEnableInInstances = False