-
Posts
2,090 -
Joined
-
Last visited
-
Feedback
100%
Content Type
Articles
Profiles
Forums
Store
Everything posted by EdenEternal
-
http://maxcheaters.com/forum/index.php?topic=227183.45
-
1 question, you wrote that mail must be gmail account. Will not be possible to set different mail system if i change smtp servers?
-
just delete teleport to that zone... and set teleport location near that zone(or entrance to that zone)
-
No looks better, also will be better with configs...
-
As I remember you have added Grade Checker so of course it will teleport to giran... Just disable grade penalty
-
better to set wordfilter.... may be someone just send bad words and make funny or just make a re-use time for example 1 hour. btw thanks for share
-
[HELP]No Clan Inside Zone
EdenEternal replied to exity's question in Request Server Development Help [L2J]
Can't get it..... you mean when character enters to coliseum and if he is in clan his title should set to clan name and if he is not in clan his title should set to No-Clan? -
[Question]Enchant point
EdenEternal replied to andrei23's question in Request Server Development Help [L2J]
It requires a lot of changes so... -
First delete old one, go to C:/Porgram Files/java and delete all folders. after that download and install new java on D: disk. probably will help
-
Adding +30 Skills To a Class
EdenEternal replied to lowrider88's question in Request Server Development Help [L2J]
UPDATE character_skills SET skill_level='130' WHERE char_obj_id='char_id' AND class_index='class_id'; something like this i think -
(Freya) Raid Boss Observer npc.
EdenEternal replied to LockSLey's topic in Server Shares & Files [L2J]
Hm... looks nice and useful thanks for share -
Learn English please
-
no more ideas. probably you are doing something wrong
-
no more ideas. probably you are doing something wrong
-
It is the only way. //offtopic contact to maxtor i had that problem too
-
It is the only way. //offtopic contact to maxtor i had that problem too
-
if you know a way to hide only code i'm waiting :) tell me
-
if you know a way to hide only code i'm waiting :) tell me
-
hm... go to l2pcinstance.java find this: @Override public boolean isAutoAttackable(L2Character attacker) { // Check if the attacker isn't the L2PcInstance Pet if(attacker == this || attacker == getPet()) return false; // Check if the attacker is a L2MonsterInstance if(attacker instanceof L2MonsterInstance) return true; // Check if the attacker is not in the same party if(getParty() != null && getParty().getPartyMembers().contains(attacker)) return false; // Check if the attacker is in olympia and olympia start if(attacker instanceof L2PcInstance && ((L2PcInstance) attacker).isInOlympiadMode()) { if(isInOlympiadMode() && isOlympiadStart() && ((L2PcInstance) attacker).getOlympiadGameId() == getOlympiadGameId()) { if(isFakeDeath()) return false; return true; } return false; } // Check if the attacker is not in the same clan if(getClan() != null && attacker != null && getClan().isMember(attacker.getName())) return false; if(attacker instanceof L2PlayableInstance && isInFunEvent()){ L2PcInstance player = null; if(attacker instanceof L2PcInstance){ player = (L2PcInstance) attacker; }else if(attacker instanceof L2Summon){ player = ((L2Summon) attacker).getOwner(); } if(player != null){ if(player.isInFunEvent()){ //checks for events if((_inEventTvT && player._inEventTvT && TvT.is_started() && !_teamNameTvT.equals(player._teamNameTvT)) || (_inEventCTF && player._inEventCTF && CTF.is_started() && !_teamNameCTF.equals(player._teamNameCTF)) || (_inEventDM && player._inEventDM && DM.is_started()) || (_inEventVIP && player._inEventVIP && VIP._started)) { return true; } return false; } return false; } } if(isInsideZone(ZONE_PEACE)){ return false; } after if(isInsideZone(ZONE_PEACE)){ return false; add if(isInsideZone(ZONE_NEWBIE)){ return false; } Feedback if works
-
hm... go to l2pcinstance.java find this: @Override public boolean isAutoAttackable(L2Character attacker) { // Check if the attacker isn't the L2PcInstance Pet if(attacker == this || attacker == getPet()) return false; // Check if the attacker is a L2MonsterInstance if(attacker instanceof L2MonsterInstance) return true; // Check if the attacker is not in the same party if(getParty() != null && getParty().getPartyMembers().contains(attacker)) return false; // Check if the attacker is in olympia and olympia start if(attacker instanceof L2PcInstance && ((L2PcInstance) attacker).isInOlympiadMode()) { if(isInOlympiadMode() && isOlympiadStart() && ((L2PcInstance) attacker).getOlympiadGameId() == getOlympiadGameId()) { if(isFakeDeath()) return false; return true; } return false; } // Check if the attacker is not in the same clan if(getClan() != null && attacker != null && getClan().isMember(attacker.getName())) return false; if(attacker instanceof L2PlayableInstance && isInFunEvent()){ L2PcInstance player = null; if(attacker instanceof L2PcInstance){ player = (L2PcInstance) attacker; }else if(attacker instanceof L2Summon){ player = ((L2Summon) attacker).getOwner(); } if(player != null){ if(player.isInFunEvent()){ //checks for events if((_inEventTvT && player._inEventTvT && TvT.is_started() && !_teamNameTvT.equals(player._teamNameTvT)) || (_inEventCTF && player._inEventCTF && CTF.is_started() && !_teamNameCTF.equals(player._teamNameCTF)) || (_inEventDM && player._inEventDM && DM.is_started()) || (_inEventVIP && player._inEventVIP && VIP._started)) { return true; } return false; } return false; } } if(isInsideZone(ZONE_PEACE)){ return false; } after if(isInsideZone(ZONE_PEACE)){ return false; add if(isInsideZone(ZONE_NEWBIE)){ return false; } Feedback if works
-
if you set newbie zone as ZONE_PVP players won't flag. because it will be combat zone. just remove it.
-
if you set newbie zone as ZONE_PVP players won't flag. because it will be combat zone. just remove it.
-
Hello, I wrote something useful i think. Config of buffs in olympiad. Now you can either remove or add buffs for olympiad competitors. Code is written under l2jfrozen pack. Index: config/functions/l2jfrozen.properties =================================================================== --- config/functions/l2jfrozen.properties (revision 948) +++ config/functions/l2jfrozen.properties (working copy) @@ -280,4 +280,15 @@ ProtectorSkillLevel = 13 ProtectorSkillTime = 600 # Npc Protector Message -ProtectorMessage = Hey You!, Never Kill On This Area, Go Read The Rules! \ No newline at end of file +ProtectorMessage = Hey You!, Never Kill On This Area, Go Read The Rules! + +# ---------------------------------------- +# Custom Olympiad buffs by lekino +#------------------------------------------ +#Buffs for mage classes: +#Default: Wind Walk(lvl 2) and Acumen(lvl 1) +OlympiadBuffsMage = 1204,2;1085,1; + +#Buffs for fighter classes: +#Default: Wind Walk(lvl 2) and Haste(lvl 1) +OlympiadBuffsFighter = 1204,2;1086,1; \ No newline at end of file Index: head-src/com/l2jfrozen/Config.java =================================================================== --- head-src/com/l2jfrozen/Config.java (revision 948) +++ head-src/com/l2jfrozen/Config.java (working copy) @@ -2378,6 +2378,9 @@ public static String FARM2_CUSTOM_MESSAGE; public static String PVP1_CUSTOM_MESSAGE; public static String PVP2_CUSTOM_MESSAGE; + //Olympiad Buffs config by lekino + public static List<int[]> CUSTOM_BUFFS_M = new ArrayList<int[]>(); + public static List<int[]> CUSTOM_BUFFS_F = new ArrayList<int[]>(); //============================================================ public static void loadL2JFrozenConfig() @@ -2497,6 +2500,52 @@ FARM2_CUSTOM_MESSAGE = L2JFrozenSettings.getProperty("Farm2CustomMeesage", "You have been teleported to Farm Zone 2!"); PVP1_CUSTOM_MESSAGE = L2JFrozenSettings.getProperty("PvP1CustomMeesage", "You have been teleported to PvP Zone 1!"); PVP2_CUSTOM_MESSAGE = L2JFrozenSettings.getProperty("PvP2CustomMeesage", "You have been teleported to PvP Zone 2!"); + String[] propertySplit = L2JFrozenSettings.getProperty("OlympiadBuffsMage", "1204,2").split(";"); + CUSTOM_BUFFS_M.clear(); + for (String buff : propertySplit) + { + String[] buffSplit = buff.split(","); + if (buffSplit.length != 2) + _log.warning("OlympiadBuffsMage[Config.load()]: invalid config property -> OlympiadBuffsMage \"" + buff + "\""); + else + { + try + { + CUSTOM_BUFFS_M.add(new int[]{Integer.parseInt(buffSplit[0]), Integer.parseInt(buffSplit[1])}); + } + catch (NumberFormatException nfe) + { + if(Config.ENABLE_ALL_EXCEPTIONS) + nfe.printStackTrace(); + if (!buff.isEmpty()) + _log.warning("OlympiadBuffsMage[Config.load()]: invalid config property -> OlympiadBuffsMage \"" + buff + "\""); + } + } + } + + propertySplit = L2JFrozenSettings.getProperty("OlympiadBuffsFighter", "1204,2").split(";"); + CUSTOM_BUFFS_F.clear(); + for (String buff : propertySplit) + { + String[] buffSplit = buff.split(","); + if (buffSplit.length != 2) + _log.warning("OlympiadBuffsFighter[Config.load()]: invalid config property -> OlympiadBuffsFighter \"" + buff + "\""); + else + { + try + { + CUSTOM_BUFFS_F.add(new int[]{Integer.parseInt(buffSplit[0]), Integer.parseInt(buffSplit[1])}); + } + catch (NumberFormatException nfe) + { + if(Config.ENABLE_ALL_EXCEPTIONS) + nfe.printStackTrace(); + + if (!buff.isEmpty()) + _log.warning("OlympiadBuffsFighter[Config.load()]: invalid config property -> OlympiadBuffsFighter \"" + buff + "\""); + } + } + } } catch(Exception e) { Index: head-src/com/l2jfrozen/gameserver/model/entity/olympiad/L2OlympiadGame.java =================================================================== --- head-src/com/l2jfrozen/gameserver/model/entity/olympiad/L2OlympiadGame.java (revision 948) +++ head-src/com/l2jfrozen/gameserver/model/entity/olympiad/L2OlympiadGame.java (working copy) @@ -46,7 +46,7 @@ import com.l2jfrozen.util.L2FastList; /** - * @author programmos + * @author programmos, edited by lekino */ class L2OlympiadGame extends Olympiad { @@ -813,28 +813,28 @@ L2Skill skill; SystemMessage sm; - - skill = SkillTable.getInstance().getInfo(1204, 2); - skill.getEffects(player, player,false,false,false); - sm = new SystemMessage(SystemMessageId.YOU_FEEL_S1_EFFECT); - sm.addSkillName(1204); - player.sendPacket(sm); - - if(!player.isMageClass()) + + if(!player.isMageClass()) { - skill = SkillTable.getInstance().getInfo(1086, 1); - skill.getEffects(player, player,false,false,false); - sm = new SystemMessage(SystemMessageId.YOU_FEEL_S1_EFFECT); - sm.addSkillName(1086); - player.sendPacket(sm); + for (int[] buff : Config.CUSTOM_BUFFS_F) //Custom buffs for fighters + { + skill = SkillTable.getInstance().getInfo(buff[0], buff[1]); + skill.getEffects(player, player,false,false,false); + sm = new SystemMessage(SystemMessageId.YOU_FEEL_S1_EFFECT); + sm.addSkillName(buff[0]); + player.sendPacket(sm); + } } else { - skill = SkillTable.getInstance().getInfo(1085, 1); - skill.getEffects(player, player,false,false,false); - sm = new SystemMessage(SystemMessageId.YOU_FEEL_S1_EFFECT); - sm.addSkillName(1085); - player.sendPacket(sm); + for (int[] buff : Config.CUSTOM_BUFFS_M) //Custom buffs for mystics + { + skill = SkillTable.getInstance().getInfo(buff[0], buff[1]); + skill.getEffects(player, player,false,false,false); + sm = new SystemMessage(SystemMessageId.YOU_FEEL_S1_EFFECT); + sm.addSkillName(buff[0]); + player.sendPacket(sm); + } } player.setCurrentCp(player.getMaxCp()); player.setCurrentHp(player.getMaxHp()); Credits to me waiting for karmas. just kidding
-
Hello, I wrote something useful i think. Config of buffs in olympiad. Now you can either remove or add buffs for olympiad competitors. Code is written under l2jfrozen pack. Index: config/functions/l2jfrozen.properties =================================================================== --- config/functions/l2jfrozen.properties (revision 948) +++ config/functions/l2jfrozen.properties (working copy) @@ -280,4 +280,15 @@ ProtectorSkillLevel = 13 ProtectorSkillTime = 600 # Npc Protector Message -ProtectorMessage = Hey You!, Never Kill On This Area, Go Read The Rules! \ No newline at end of file +ProtectorMessage = Hey You!, Never Kill On This Area, Go Read The Rules! + +# ---------------------------------------- +# Custom Olympiad buffs by lekino +#------------------------------------------ +#Buffs for mage classes: +#Default: Wind Walk(lvl 2) and Acumen(lvl 1) +OlympiadBuffsMage = 1204,2;1085,1; + +#Buffs for fighter classes: +#Default: Wind Walk(lvl 2) and Haste(lvl 1) +OlympiadBuffsFighter = 1204,2;1086,1; \ No newline at end of file Index: head-src/com/l2jfrozen/Config.java =================================================================== --- head-src/com/l2jfrozen/Config.java (revision 948) +++ head-src/com/l2jfrozen/Config.java (working copy) @@ -2378,6 +2378,9 @@ public static String FARM2_CUSTOM_MESSAGE; public static String PVP1_CUSTOM_MESSAGE; public static String PVP2_CUSTOM_MESSAGE; + //Olympiad Buffs config by lekino + public static List<int[]> CUSTOM_BUFFS_M = new ArrayList<int[]>(); + public static List<int[]> CUSTOM_BUFFS_F = new ArrayList<int[]>(); //============================================================ public static void loadL2JFrozenConfig() @@ -2497,6 +2500,52 @@ FARM2_CUSTOM_MESSAGE = L2JFrozenSettings.getProperty("Farm2CustomMeesage", "You have been teleported to Farm Zone 2!"); PVP1_CUSTOM_MESSAGE = L2JFrozenSettings.getProperty("PvP1CustomMeesage", "You have been teleported to PvP Zone 1!"); PVP2_CUSTOM_MESSAGE = L2JFrozenSettings.getProperty("PvP2CustomMeesage", "You have been teleported to PvP Zone 2!"); + String[] propertySplit = L2JFrozenSettings.getProperty("OlympiadBuffsMage", "1204,2").split(";"); + CUSTOM_BUFFS_M.clear(); + for (String buff : propertySplit) + { + String[] buffSplit = buff.split(","); + if (buffSplit.length != 2) + _log.warning("OlympiadBuffsMage[Config.load()]: invalid config property -> OlympiadBuffsMage \"" + buff + "\""); + else + { + try + { + CUSTOM_BUFFS_M.add(new int[]{Integer.parseInt(buffSplit[0]), Integer.parseInt(buffSplit[1])}); + } + catch (NumberFormatException nfe) + { + if(Config.ENABLE_ALL_EXCEPTIONS) + nfe.printStackTrace(); + if (!buff.isEmpty()) + _log.warning("OlympiadBuffsMage[Config.load()]: invalid config property -> OlympiadBuffsMage \"" + buff + "\""); + } + } + } + + propertySplit = L2JFrozenSettings.getProperty("OlympiadBuffsFighter", "1204,2").split(";"); + CUSTOM_BUFFS_F.clear(); + for (String buff : propertySplit) + { + String[] buffSplit = buff.split(","); + if (buffSplit.length != 2) + _log.warning("OlympiadBuffsFighter[Config.load()]: invalid config property -> OlympiadBuffsFighter \"" + buff + "\""); + else + { + try + { + CUSTOM_BUFFS_F.add(new int[]{Integer.parseInt(buffSplit[0]), Integer.parseInt(buffSplit[1])}); + } + catch (NumberFormatException nfe) + { + if(Config.ENABLE_ALL_EXCEPTIONS) + nfe.printStackTrace(); + + if (!buff.isEmpty()) + _log.warning("OlympiadBuffsFighter[Config.load()]: invalid config property -> OlympiadBuffsFighter \"" + buff + "\""); + } + } + } } catch(Exception e) { Index: head-src/com/l2jfrozen/gameserver/model/entity/olympiad/L2OlympiadGame.java =================================================================== --- head-src/com/l2jfrozen/gameserver/model/entity/olympiad/L2OlympiadGame.java (revision 948) +++ head-src/com/l2jfrozen/gameserver/model/entity/olympiad/L2OlympiadGame.java (working copy) @@ -46,7 +46,7 @@ import com.l2jfrozen.util.L2FastList; /** - * @author programmos + * @author programmos, edited by lekino */ class L2OlympiadGame extends Olympiad { @@ -813,28 +813,28 @@ L2Skill skill; SystemMessage sm; - - skill = SkillTable.getInstance().getInfo(1204, 2); - skill.getEffects(player, player,false,false,false); - sm = new SystemMessage(SystemMessageId.YOU_FEEL_S1_EFFECT); - sm.addSkillName(1204); - player.sendPacket(sm); - - if(!player.isMageClass()) + + if(!player.isMageClass()) { - skill = SkillTable.getInstance().getInfo(1086, 1); - skill.getEffects(player, player,false,false,false); - sm = new SystemMessage(SystemMessageId.YOU_FEEL_S1_EFFECT); - sm.addSkillName(1086); - player.sendPacket(sm); + for (int[] buff : Config.CUSTOM_BUFFS_F) //Custom buffs for fighters + { + skill = SkillTable.getInstance().getInfo(buff[0], buff[1]); + skill.getEffects(player, player,false,false,false); + sm = new SystemMessage(SystemMessageId.YOU_FEEL_S1_EFFECT); + sm.addSkillName(buff[0]); + player.sendPacket(sm); + } } else { - skill = SkillTable.getInstance().getInfo(1085, 1); - skill.getEffects(player, player,false,false,false); - sm = new SystemMessage(SystemMessageId.YOU_FEEL_S1_EFFECT); - sm.addSkillName(1085); - player.sendPacket(sm); + for (int[] buff : Config.CUSTOM_BUFFS_M) //Custom buffs for mystics + { + skill = SkillTable.getInstance().getInfo(buff[0], buff[1]); + skill.getEffects(player, player,false,false,false); + sm = new SystemMessage(SystemMessageId.YOU_FEEL_S1_EFFECT); + sm.addSkillName(buff[0]); + player.sendPacket(sm); + } } player.setCurrentCp(player.getMaxCp()); player.setCurrentHp(player.getMaxHp()); Credits to me waiting for karmas. just kidding
