-
Posts
2,510 -
Credits
0 -
Joined
-
Last visited
-
Days Won
2 -
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Everything posted by Setekh
-
do i need to care? i don't fly xD die die die people!!! its about deaths right?
-
sex with zombies :P pwns all Can't replay to that xD
-
[Request] New anniversary banner for Maxcheaters! 1million Posts!
Setekh replied to Maxtor's topic in Graphics/GFX Showcase
This one looks to have some taste.. The others look like crap >.> gz. -
lol then maxtor sucks at sqls xD if mods gotta do this manually :P Shit, me too xD
-
L2JEclipse Interlude Project
Setekh replied to FreakySystem's topic in Server Development Discussion [L2J]
>.> you have to be stupid to pay xp-dev they ask for cash only to remove advertising >.> Semi private haha ever heard about crema or moca ? -
e chiar inteligent xD
-
http://www.youtube.com/watch?v=u2NspRgqvwM i bet backwards is love and sweet red roses >.>
-
[Share]Pc Attackable at all times with config
Setekh replied to Setekh's topic in Server Shares & Files [L2J]
Well dooh PC Means client meaning the playable object O.o hard shit ain't it? -
u wore off topic >.>
-
what posts ?>< ill find out :P
-
it sucks.. it looks like a cheep paper cutout >.>
-
sex with zombies >.> Zombie is the new sexy!
-
[Share] Custom Enchant System [Blessed & Crystal Scrolls]
Setekh replied to Realtek™'s topic in Server Shares & Files [L2J]
YaY! some more configs >.> more head aches xD Anyway good job! keep it up -
btw talking about shoes and such on the internet makes u look like a bunch of douche bags
-
WARNING! Do not try it for now, wait until it's fixed. Not my style to make smth simple as this and share it.. but other ppl might find it useful :P This code dose exactly what the title says. Interlude: Index: E:/L2j Development/workspace/L2_GameServer_It/java/config/altsettings.properties =================================================================== --- E:/L2j Development/workspace/L2_GameServer_It/java/config/altsettings.properties (revision 4034) +++ E:/L2j Development/workspace/L2_GameServer_It/java/config/altsettings.properties (working copy) @@ -28,6 +28,9 @@ # Weight Limit multiplier - default 1 AltWeightLimit = 1 +# Pc Attackable at all time. +PCAttackableAllTime = false + # If XP loss (and deleveling) is enabled, default is 'true' Delevel = True Index: E:/L2j Development/workspace/L2_GameServer_It/java/net/sf/l2j/Config.java =================================================================== --- E:/L2j Development/workspace/L2_GameServer_It/java/net/sf/l2j/Config.java (revision 4034) +++ E:/L2j Development/workspace/L2_GameServer_It/java/net/sf/l2j/Config.java (working copy) @@ -89,7 +89,9 @@ public static boolean SERVER_LIST_TESTSERVER; /** Set the server as gm only at startup ? */ public static boolean SERVER_GMONLY; - + + public static boolean PC_VS_PC_ATTACKABLE_ALLTIME; + // Thread pools size /** Thread pool size effect */ public static int THREAD_P_EFFECTS; @@ -1627,6 +1629,7 @@ altSettings.load(is); is.close(); + PC_VS_PC_ATTACKABLE_ALLTIME = Boolean.parseBoolean(altSettings.getProperty("PCAttackableAllTime", "false")); ALT_GAME_TIREDNESS = Boolean.parseBoolean(altSettings.getProperty("AltGameTiredness", "false")); ALT_GAME_CREATION = Boolean.parseBoolean(altSettings.getProperty("AltGameCreation", "false")); ALT_GAME_CREATION_SPEED = Double.parseDouble(altSettings.getProperty("AltGameCreationSpeed", "1")); Index: E:/L2j Development/workspace/L2_GameServer_It/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java =================================================================== --- E:/L2j Development/workspace/L2_GameServer_It/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (revision 4034) +++ E:/L2j Development/workspace/L2_GameServer_It/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (working copy) @@ -6804,6 +6804,12 @@ return _hennaDEX; } + @Override + public boolean isAttackable() + { + return Config.PC_VS_PC_ATTACKABLE_ALLTIME && (getTarget() != null && getTarget() instanceof L2PcInstance); + } + /** * Return True if the L2PcInstance is autoAttackable.<BR><BR> * @@ -6822,6 +6828,9 @@ if (attacker == this || attacker == getPet()) return false; + if(Config.PC_VS_PC_ATTACKABLE_ALLTIME && (getTarget() != null && getTarget() instanceof L2PcInstance)) + return true; + // TODO: check for friendly mobs // Check if the attacker is a L2MonsterInstance if (attacker instanceof L2MonsterInstance) Epilogue: Index: E:/L2j Development/workspace/L2_GameServer-clean/java/config/Character.properties =================================================================== --- E:/L2j Development/workspace/L2_GameServer-clean/java/config/Character.properties (revision 4068) +++ E:/L2j Development/workspace/L2_GameServer-clean/java/config/Character.properties (working copy) @@ -33,6 +33,9 @@ # Default: 1 AltWeightLimit = 1 +# Pc Attackable at all time. +PCAttackableAllTime = false + # Run speed modifier. Example: Setting this to 5 will give players +5 to their running speed. # Default: 0 RunSpeedBoost = 0 Index: E:/L2j Development/workspace/L2_GameServer-clean/java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java =================================================================== --- E:/L2j Development/workspace/L2_GameServer-clean/java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java (revision 4068) +++ E:/L2j Development/workspace/L2_GameServer-clean/java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java (working copy) @@ -8436,6 +8436,12 @@ return _hennaDEX; } + @Override + public boolean isAttackable() + { + return Config.PC_VS_PC_ATTACKABLE_ALLTIME && (getTarget() != null && getTarget() instanceof L2PcInstance); + } + /** * Return True if the L2PcInstance is autoAttackable.<BR><BR> * @@ -8454,6 +8460,9 @@ if (attacker == this || attacker == getPet()) return false; + if(Config.PC_VS_PC_ATTACKABLE_ALLTIME && (getTarget() != null && getTarget() instanceof L2PcInstance)) + return true; + // TODO: check for friendly mobs // Check if the attacker is a L2MonsterInstance if (attacker instanceof L2MonsterInstance) Index: E:/L2j Development/workspace/L2_GameServer-clean/java/com/l2jserver/Config.java =================================================================== --- E:/L2j Development/workspace/L2_GameServer-clean/java/com/l2jserver/Config.java (revision 4068) +++ E:/L2j Development/workspace/L2_GameServer-clean/java/com/l2jserver/Config.java (working copy) @@ -87,6 +87,7 @@ public static double RESPAWN_RESTORE_HP; public static double RESPAWN_RESTORE_MP; public static boolean ALT_GAME_TIREDNESS; + public static boolean PC_VS_PC_ATTACKABLE_ALLTIME; public static boolean ENABLE_MODIFY_SKILL_DURATION; public static TIntIntHashMap SKILL_DURATION_LIST; public static boolean ENABLE_MODIFY_SKILL_REUSE; @@ -1302,7 +1303,8 @@ CP_REGEN_MULTIPLIER = Double.parseDouble(Character.getProperty("CpRegenMultiplier", "100")) /100; ALT_GAME_TIREDNESS = Boolean.parseBoolean(Character.getProperty("AltGameTiredness", "false")); ENABLE_MODIFY_SKILL_DURATION = Boolean.parseBoolean(Character.getProperty("EnableModifySkillDuration", "false")); - + PC_VS_PC_ATTACKABLE_ALLTIME = Boolean.parseBoolean(Character.getProperty("PCAttackableAllTime", "false")); + // Create Map only if enabled if (ENABLE_MODIFY_SKILL_DURATION) { NOTE: I've been already applauded for this code, so don't shit it and karma me xD
-
[Mindf.uck] When you see it you'll shit bricks!!!!!▬0╦▄
Setekh replied to Erol's topic in Spam Topics
hey now i see it lol xD that can give ppl seizures. -
[Mindf.uck] When you see it you'll shit bricks!!!!!▬0╦▄
Setekh replied to Erol's topic in Spam Topics
second pic, Taking pictures naked... first one.. pedo moms ? o.o -
[Request] Hit each other without press CTRL.
Setekh replied to MeVsYou's question in Request Server Development Help [L2J]
Index: E:/L2j Development/workspace/L2_GameServer_It/java/config/altsettings.properties =================================================================== --- E:/L2j Development/workspace/L2_GameServer_It/java/config/altsettings.properties (revision 4034) +++ E:/L2j Development/workspace/L2_GameServer_It/java/config/altsettings.properties (working copy) @@ -28,6 +28,9 @@ # Weight Limit multiplier - default 1 AltWeightLimit = 1 +# Pc Attackable at all time. +PCAttackableAllTime = false + # If XP loss (and deleveling) is enabled, default is 'true' Delevel = True Index: E:/L2j Development/workspace/L2_GameServer_It/java/net/sf/l2j/Config.java =================================================================== --- E:/L2j Development/workspace/L2_GameServer_It/java/net/sf/l2j/Config.java (revision 4034) +++ E:/L2j Development/workspace/L2_GameServer_It/java/net/sf/l2j/Config.java (working copy) @@ -89,7 +89,9 @@ public static boolean SERVER_LIST_TESTSERVER; /** Set the server as gm only at startup ? */ public static boolean SERVER_GMONLY; - + + public static boolean PC_VS_PC_ATTACKABLE_ALLTIME; + // Thread pools size /** Thread pool size effect */ public static int THREAD_P_EFFECTS; @@ -1627,6 +1629,7 @@ altSettings.load(is); is.close(); + PC_VS_PC_ATTACKABLE_ALLTIME = Boolean.parseBoolean(altSettings.getProperty("PCAttackableAllTime", "false")); ALT_GAME_TIREDNESS = Boolean.parseBoolean(altSettings.getProperty("AltGameTiredness", "false")); ALT_GAME_CREATION = Boolean.parseBoolean(altSettings.getProperty("AltGameCreation", "false")); ALT_GAME_CREATION_SPEED = Double.parseDouble(altSettings.getProperty("AltGameCreationSpeed", "1")); Index: E:/L2j Development/workspace/L2_GameServer_It/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java =================================================================== --- E:/L2j Development/workspace/L2_GameServer_It/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (revision 4034) +++ E:/L2j Development/workspace/L2_GameServer_It/java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (working copy) @@ -6804,6 +6804,12 @@ return _hennaDEX; } + @Override + public boolean isAttackable() + { + return Config.PC_VS_PC_ATTACKABLE_ALLTIME && (getTarget() != null && getTarget() instanceof L2PcInstance); + } + /** * Return True if the L2PcInstance is autoAttackable.<BR><BR> * @@ -6822,6 +6828,9 @@ if (attacker == this || attacker == getPet()) return false; + if(Config.PC_VS_PC_ATTACKABLE_ALLTIME && (getTarget() != null && getTarget() instanceof L2PcInstance)) + return true; + // TODO: check for friendly mobs // Check if the attacker is a L2MonsterInstance if (attacker instanceof L2MonsterInstance) Thats Interlude this is Epilogue: Index: E:/L2j Development/workspace/L2_GameServer-clean/java/config/Character.properties =================================================================== --- E:/L2j Development/workspace/L2_GameServer-clean/java/config/Character.properties (revision 4068) +++ E:/L2j Development/workspace/L2_GameServer-clean/java/config/Character.properties (working copy) @@ -33,6 +33,9 @@ # Default: 1 AltWeightLimit = 1 +# Pc Attackable at all time. +PCAttackableAllTime = false + # Run speed modifier. Example: Setting this to 5 will give players +5 to their running speed. # Default: 0 RunSpeedBoost = 0 Index: E:/L2j Development/workspace/L2_GameServer-clean/java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java =================================================================== --- E:/L2j Development/workspace/L2_GameServer-clean/java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java (revision 4068) +++ E:/L2j Development/workspace/L2_GameServer-clean/java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java (working copy) @@ -8436,6 +8436,12 @@ return _hennaDEX; } + @Override + public boolean isAttackable() + { + return Config.PC_VS_PC_ATTACKABLE_ALLTIME && (getTarget() != null && getTarget() instanceof L2PcInstance); + } + /** * Return True if the L2PcInstance is autoAttackable.<BR><BR> * @@ -8454,6 +8460,9 @@ if (attacker == this || attacker == getPet()) return false; + if(Config.PC_VS_PC_ATTACKABLE_ALLTIME && (getTarget() != null && getTarget() instanceof L2PcInstance)) + return true; + // TODO: check for friendly mobs // Check if the attacker is a L2MonsterInstance if (attacker instanceof L2MonsterInstance) Index: E:/L2j Development/workspace/L2_GameServer-clean/java/com/l2jserver/Config.java =================================================================== --- E:/L2j Development/workspace/L2_GameServer-clean/java/com/l2jserver/Config.java (revision 4068) +++ E:/L2j Development/workspace/L2_GameServer-clean/java/com/l2jserver/Config.java (working copy) @@ -87,6 +87,7 @@ public static double RESPAWN_RESTORE_HP; public static double RESPAWN_RESTORE_MP; public static boolean ALT_GAME_TIREDNESS; + public static boolean PC_VS_PC_ATTACKABLE_ALLTIME; public static boolean ENABLE_MODIFY_SKILL_DURATION; public static TIntIntHashMap SKILL_DURATION_LIST; public static boolean ENABLE_MODIFY_SKILL_REUSE; @@ -1302,7 +1303,8 @@ CP_REGEN_MULTIPLIER = Double.parseDouble(Character.getProperty("CpRegenMultiplier", "100")) /100; ALT_GAME_TIREDNESS = Boolean.parseBoolean(Character.getProperty("AltGameTiredness", "false")); ENABLE_MODIFY_SKILL_DURATION = Boolean.parseBoolean(Character.getProperty("EnableModifySkillDuration", "false")); - + PC_VS_PC_ATTACKABLE_ALLTIME = Boolean.parseBoolean(Character.getProperty("PCAttackableAllTime", "false")); + // Create Map only if enabled if (ENABLE_MODIFY_SKILL_DURATION) { Since its the only way.. locked. -
[Request] Hit each other without press CTRL.
Setekh replied to MeVsYou's question in Request Server Development Help [L2J]
set them attackable to each other overriding isAttackable(char)