-
Posts
2,510 -
Joined
-
Last visited
-
Days Won
2 -
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Everything posted by Setekh
-
[Help]npc to hit only noblesse chars
Setekh replied to Gorion's question in Request Server Development Help [L2J]
-deleted- there u go :P Those are guards hitting players.. but you can make them the other way around.. easy to understand ^^ -
npe = NullPointerException you get it when a non-null value returns null ^^ ( means a value or a variable not definited right is null ) Well when u call a class or request smth thats not definited its gonna be null. thats why u must use constructors or make sure u defined right ur mrthods.. Also a way to avoid nps are try & catch suroundings or null checks (e.g if(_playerMap != null) or if(_playerMap == null)return;). If u need more help tell us.. and like intrepid sayd, post here one of ur codes that get npe's often. @Tryskell i cant find your acc in the db.. you gotta create it again.. im guessing u made your acc when we did a roll back :-s
-
[Developement] New antihack way.
Setekh replied to dEvilKinG's topic in Server Development Discussion [L2J]
if u can get me the integers with a debuger, i can make the rest of the code :P -
[Share] Source Code Scoria Team on 11.2009
Setekh replied to Ashe_K's topic in Server Development Discussion [L2J]
why is it .exe? can some one scan it? >< -
amm... dude what if the faction id is 3? or 4? :D
-
[Share]Custom PvP Related Hero Status + Announce including
Setekh replied to RєVєnGeR^'s topic in Server Shares & Files [L2J]
im not acting smart im explaining so u could understand... and others can understand. The code works and its clean... anything else? -
[Share]Custom PvP Related Hero Status + Announce including
Setekh replied to RєVєnGeR^'s topic in Server Shares & Files [L2J]
omg dude.. u just add in increasePvpKills() the call method: parsePvPCustomHero(). And its instantly after pvp doooh... besides that u dont need that check into increasePvpKills() if u can use it in parsePvPCustomHero(), it keeps the code clean... lolz And also isHero is not a null check wtf ?:D that !ishero has to return false so that a normal hero dosent get parsed for nothing... and also its there if the player is already hero by pvp.. to skip the parsing method that way its more efficient.. dooh >.> -
[Share]Custom PvP Related Hero Status + Announce including
Setekh replied to RєVєnGeR^'s topic in Server Shares & Files [L2J]
Stef u cant get an npe if its already hero... Definition of NPE: A null value where it shoulnt be null. full name of NPE = Null Pointer Exception extended class of RuntimeException. And Inter.. u dont need a null check... whats so hard? L2PcInstance.java: public void parsePvPCustomHero() { if (!isHero() && getPvpKills() >= 5000) { //announce & message ONLY when they reach 5000 pvp. sendMessage("You are now a server hero for being such a great fighter!"); Announcements.getInstance().announceToAll(activeChar.getName() + "Is now a server's hero!"); setHero(true); } } EnterWorld.java // You know the deal... activeChar.parsePvPCustomHero(); And everything is manage in pc instance doooh!! Is that hard? Anyway nice work HαRǾC« ur getting better and better, keep it up :P PS: And it shoud be getPvpKills() >= 5000 (biger or equal) else it will give hero status only if the player has 5000 if its 5001 bby hero :D -
[Search]l2jserver faction system
Setekh replied to +cs.tribal's question in Request Server Development Help [L2J]
money = everything u dreamed of in l2j ^^ -
[L2j]All check. Some ideas here.
Setekh replied to Deurian's question in Request Server Development Help [L2J]
HAHAHAHHAHAHAHAHAHAHAHAHAHAHAH even stef15 can own u.. omg im cracking up hahahaha On topic: A 500x server would be nice.. and keept with 0 custom items and balanced.. and some cool java style things like... a magic flute? :D some cool events... that would get ppl there :D -
[SHARE] L2j Dialog Maker 1.011 BETA
Setekh replied to GeRi's topic in Server Development Discussion [L2J]
hey thats a cool GUI tool, is it your work? -
fuck yeah x2 xD
-
-beep- Yeah xD Anyway its easyer to do this from attackable ai ^^
-
lol inter theres nothing to rework, its a thread with a socket channel wtf :D on topic thats a npe on ur flood protector Try to make a better code ^^
-
[Share] L2J Jenova,Teon Compiled
Setekh replied to Ceptimus's topic in Server Development Discussion [L2J]
dont recommend Teon they copy everything with out being aware if what they did works or not :P... they are kinda dumb.. playing arround xD -
Index: E:/L2j Development/workspace/Archid-Game/src/com/l2jarchid/gameserver/model/actor/instance/L2PcInstance.java =================================================================== --- E:/L2j Development/workspace/Archid-Game/src/com/l2jarchid/gameserver/model/actor/instance/L2PcInstance.java (.../E:/L2j Development/workspace/Archid-Game/src) (revision 28) +++ E:/L2j Development/workspace/Archid-Game/src/com/l2jarchid/gameserver/model/actor/instance/L2PcInstance.java (.../http://svn.xp-dev.com/svn/g1svn/trunk/G1-GameServer/src) (working copy) @@ -8325,7 +8325,7 @@ public void setHero(boolean hero) { - if (hero && _baseClass == _activeClass) + if (hero && _baseClass == _activeClass || Config.HERO_SKILL_ON_SUBLCASS) { for (L2Skill s : HeroSkillTable.GetHeroSkills()) addSkill(s, false); //Dont Save Hero skills to database @@ -8335,6 +8335,7 @@ for (L2Skill s : HeroSkillTable.GetHeroSkills()) super.removeSkill(s); //Just Remove skills from nonHero characters } + _hero = hero; sendSkillList(); Index: E:/L2j Development/workspace/Archid-Game/src/com/l2jarchid/Config.java =================================================================== --- E:/L2j Development/workspace/Archid-Game/src/com/l2jarchid/Config.java (.../E:/L2j Development/workspace/Archid-Game/src) (revision 28) +++ E:/L2j Development/workspace/Archid-Game/src/com/l2jarchid/Config.java (.../http://svn.xp-dev.com/svn/g1svn/trunk/G1-GameServer/src) (working copy) @@ -651,7 +651,8 @@ public static int MINIMUN_UPDATE_TIME; public static boolean CHECK_KNOWN; public static int KNOWNLIST_FORGET_DELAY; - + public static boolean HERO_SKILL_ON_SUBLCASS; + // =============================================================================================== private static void loadOptionsConfig() { @@ -659,6 +660,7 @@ try { L2Properties optionsSettings = new L2Properties(OPTIONS_FILE); + HERO_SKILL_ON_SUBLCASS = Boolean.parseBoolean(optionsSettings.getProperty("HeroSkillsOnSub", "false")); EVERYBODY_HAS_ADMIN_RIGHTS = Boolean.parseBoolean(optionsSettings.getProperty("EverybodyHasAdminRights", "false")); DEBUG = Boolean.parseBoolean(optionsSettings.getProperty("Debug", "false")); ASSERT = Boolean.parseBoolean(optionsSettings.getProperty("Assert", "false")); Index: E:/L2j Development/workspace/Archid-Game/config/options.properties =================================================================== --- E:/L2j Development/workspace/Archid-Game/config/options.properties (.../E:/L2j Development/workspace/Archid-Game/config/options.properties) (revision 28) +++ E:/L2j Development/workspace/Archid-Game/config/options.properties (.../http://svn.xp-dev.com/svn/g1svn/trunk/G1-GameServer/config/options.properties) (working copy) @@ -257,6 +257,10 @@ # Misc Settings # ------------------------------------------------------------ +# Yep it dose what u think it dose... +# Default false +HeroSkillsOnSub = false + # Default: True AllowLottery = True
-
[Help] How to move...?
Setekh replied to Goddess's question in Request Server Development Help [L2J]
how can u do it from back up IF THE STRUCTURE REMAINS UNTOUCHED!!!!!!! are u telling me that l2j db has the same table structure as l2jfree?? come on...... -
[Help]Start GS & LS error...
Setekh replied to Coolis®'s question in Request Server Development Help [L2J]
post the full error... -
[Share] L2 Jenosid Interlude Project
Setekh replied to DumanisT's topic in Server Development Discussion [L2J]
ur over exagerating... and those revs... are crappy ^^ -
[Help] How to move...?
Setekh replied to Goddess's question in Request Server Development Help [L2J]
u like the first image on my sig? its for u... Well Flower, its quite simple u can do it in navicat with data and table structure synchronization. You have them in navicat.. just compare the 2 databases with the stcructure sync then data sync.. to move the chars and items... -
[Request] Interlude Pack
Setekh replied to Sillent's question in Request Server Development Help [L2J]
source code or compiled pack?:P -
im not allways on...
-
login server encryption, and login procedure
Setekh replied to tonmp's question in Request Server Development Help [L2J]
this is quite interesting.. lol ill try to dig up more... be sure ill replay fast :D
