Jump to content

Setekh

Legendary Member
  • Posts

    2,510
  • Credits

  • Joined

  • Last visited

  • Days Won

    2
  • Feedback

    0%

Everything posted by Setekh

  1. -deleted- there u go :P Those are guards hitting players.. but you can make them the other way around.. easy to understand ^^
  2. 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
  3. if u can get me the integers with a debuger, i can make the rest of the code :P
  4. amm... dude what if the faction id is 3? or 4? :D
  5. im not acting smart im explaining so u could understand... and others can understand. The code works and its clean... anything else?
  6. 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 >.>
  7. 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
  8. 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
  9. -beep- Yeah xD Anyway its easyer to do this from attackable ai ^^
  10. 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 ^^
  11. 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
  12. 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
  13. 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......
  14. ur over exagerating... and those revs... are crappy ^^
  15. 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...
  16. this is quite interesting.. lol ill try to dig up more... be sure ill replay fast :D
×
×
  • Create New...