Jump to content

کpooKNοF®

Members
  • Posts

    279
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by کpooKNοF®

  1. den sou douleuoune ta mana pots exeis mipos l2dot pack? giati exoume ena problima me tin last rev...
  2. Hehe iparxi kai to modify ama den to xeris.. insanePlayer kai min dinis ipodixis gia to pws 8a milame gredits edwsa..
  3. very nice share nice for your work i hope you can be beeter
  4. einai ta imports.. kai ta imports den ta xero gia tis oneo :S kane ena search kai 8a bris buffer gia oneo genikotera oi oneo exei pe8ani..
  5. e kane install tin java..
  6. katarxas exeis kani install tin java sou sto pc..? 2ron exeis kanei install tin database..
  7. i install the code and work perfect :D nice share cobra :) +1 for this work :D
  8. autos o code einai gia otan kanoune subs na kratane ola ta skills apo ta class pame ston config.java kai bazoume to exis.. Index: Config.java =================================================================== --- Config.java (revision 836) +++ Config.java (working copy) @@ -242,6 +242,9 @@ /** Alternative gaming - allow free teleporting around the world. */ public static boolean ALT_GAME_FREE_TELEPORT; + /**Alternative gaming - allow to keep skils after sub-class**/ + public static boolean ALT_SUBCLASS_SKILLS; + /** Alternative gaming - allow sub-class addition without quest completion. */ public static boolean ALT_GAME_SUBCLASS_WITHOUT_QUESTS; @@ -1763,6 +1766,7 @@ ALT_PLAYER_PROTECTION_LEVEL = Integer.parseInt(altSettings.getProperty("AltPlayerProtectionLevel","0")); ALT_GAME_FREE_TELEPORT = Boolean.parseBoolean(altSettings.getProperty("AltFreeTeleporting", "False")); ALT_GAME_SUBCLASS_WITHOUT_QUESTS = Boolean.parseBoolean(altSettings.getProperty("AltSubClassWithoutQuests", "False")); + ALT_SUBCLASS_SKILLS = Boolean.parseBoolean(altSettings.getProperty("AltSubClassSkills", "False")); ALT_GAME_VIEWNPC = Boolean.parseBoolean(altSettings.getProperty("AltGameViewNpc", "False")); ALT_GAME_NEW_CHAR_ALWAYS_IS_NEWBIE = Boolean.parseBoolean(altSettings.getProperty("AltNewCharAlwaysIsNewbie", "False")); ALT_MAX_NUM_OF_CLANS_IN_ALLY = Integer.parseInt(altSettings.getProperty("AltMaxNumOfClansInAlly", "3")); @@ -2304,6 +2308,7 @@ else if (pName.equalsIgnoreCase("AltRequireCastleForDawn")) ALT_GAME_REQUIRE_CASTLE_DAWN = Boolean.valueOf(pValue); else if (pName.equalsIgnoreCase("AltRequireClanCastle")) ALT_GAME_REQUIRE_CLAN_CASTLE = Boolean.valueOf(pValue); else if (pName.equalsIgnoreCase("AltFreeTeleporting")) ALT_GAME_FREE_TELEPORT = Boolean.valueOf(pValue); + else if (pName.equalsIgnoreCase("AltSubClassSkills")) ALT_SUBCLASS_SKILLS = Boolean.valueOf(pValue); else if (pName.equalsIgnoreCase("AltSubClassWithoutQuests")) ALT_GAME_SUBCLASS_WITHOUT_QUESTS = Boolean.valueOf(pValue); else if (pName.equalsIgnoreCase("AltNewCharAlwaysIsNewbie")) ALT_GAME_NEW_CHAR_ALWAYS_IS_NEWBIE = Boolean.valueOf(pValue); else if (pName.equalsIgnoreCase("DwarfRecipeLimit")) DWARF_RECIPE_LIMIT = Integer.parseInt(pValue); meta pame sto L2PcInstance.java kai bazoume to exis.. Index: L2PcInstance.java =================================================================== --- L2PcInstance.java (revision 836) +++ L2PcInstance.java (working copy) @@ -203,6 +203,7 @@ private final static Log _log = LogFactory.getLog(L2PcInstance.class.getName()); private static final String RESTORE_SKILLS_FOR_CHAR = "SELECT skill_id,skill_level FROM character_skills WHERE char_obj_id=? AND class_index=?"; + private static final String RESTORE_SKILLS_FOR_CHAR_ALT_SUBCLASS = "SELECT skill_id,skill_level FROM character_skills WHERE char_obj_id=?"; private static final String ADD_NEW_SKILL = "INSERT INTO character_skills (char_obj_id,skill_id,skill_level,skill_name,class_index) VALUES (?,?,?,?,?)"; private static final String UPDATE_CHARACTER_SKILL_LEVEL = "UPDATE character_skills SET skill_level=? WHERE skill_id=? AND char_obj_id=? AND class_index=?"; private static final String DELETE_SKILL_FROM_CHAR = "DELETE FROM character_skills WHERE skill_id=? AND char_obj_id=? AND class_index=?"; @@ -6092,29 +6093,34 @@ try { - // Retrieve all skills of this L2PcInstance from the database - con = L2DatabaseFactory.getInstance().getConnection(); - PreparedStatement statement = con.prepareStatement(RESTORE_SKILLS_FOR_CHAR); - statement.setInt(1, getObjectId()); - statement.setInt(2, getClassIndex()); - ResultSet rset = statement.executeQuery(); + // Retrieve all skills of this L2PcInstance from the database + con = L2DatabaseFactory.getInstance().getConnection(); + PreparedStatement statement = con.prepareStatement( + Config.ALT_SUBCLASS_SKILLS ? RESTORE_SKILLS_FOR_CHAR_ALT_SUBCLASS : RESTORE_SKILLS_FOR_CHAR); + + statement.setInt(1, getObjectId()); + + if(!Config.ALT_SUBCLASS_SKILLS) + statement.setInt(2, getClassIndex()); + + ResultSet rset = statement.executeQuery(); - // Go though the recordset of this SQL query - while (rset.next()) - { - int id = rset.getInt("skill_id"); - int level = rset.getInt("skill_level"); + // Go though the recordset of this SQL query + while (rset.next()) + { + int id = rset.getInt("skill_id"); + int level = rset.getInt("skill_level"); - if (id > 9000) continue; // fake skills for base stats + if (id > 9000) continue; // fake skills for base stats - // Create a L2Skill object for each record - L2Skill skill = SkillTable.getInstance().getInfo(id, level); + // Create a L2Skill object for each record + L2Skill skill = SkillTable.getInstance().getInfo(id, level); - // Add the L2Skill object to the L2Character _skills and its Func objects to the calculator set of the L2Character - super.addSkill(skill); - } + // Add the L2Skill object to the L2Character _skills and its Func objects to the calculator set of the L2Character + super.addSkill(skill); + } - rset.close(); + rset.close(); statement.close(); //restore clan skills stin sinexia pame sta alsettings.properties sta config ta txt dld tou server kai bazoume AltSubClassSkills=true *Gredits phusho *Real Post http://www.l2jfree.com/index.php?topic=156.0
  9. kane edit se client douleuei nice share pantos :) alla iparxoune idi kai alla *KALITERA 8A EITANE NA EBAZES KAI TIS ARMORS MESA GT POLLA ATOMA ALAZOUNE ID APO TIS EPIC KTLP EPOMENOS TO NPC DEN 8A EINAI SIMBATO ME TIS ARMORS :D
  10. auto den exei kamia sxesi me ta skill pou 8es einai ena allo skill apla sou dixno ton tropo.. </skill> <skill id="2002" levels="1" name="Healing Drug"> <set name="target" val="TARGET_SELF" /> <set name="skillType" val="BUFF" /> <set name="operateType" val="OP_ACTIVE" />twra einai OP_ACTIVE OP_PASSIVE auta alazis.. <set name="castRange" val="-1" /> <set name="effectRange" val="-1" /> <set name="isPotion" val="true" /> <set name="buffDuration" val="20000" />
  11. *Topic Locked
  12. na se rotiso alli fora 8a apantas omws oxi 8a perimenoume eno eisai mesa.. sto post sou i buffer sou einai 999 i kati allo?
  13. -Morph NPCs to PCs(Players) ego anarotieme an to katafere?
  14. *Topic Locked To problima mallon li8ike gia na min apantise...
  15. prepei na fortosis to onoma tou quest mesa sta scripts kato kato exei custom ekei mesa kanta opws ta alla 8a pas server gameserver/data/scripts kai anixe to me notepad # Custom custom/1000_NonTalkingNpcs/__init__.py custom/4000_ShadowWeapons/__init__.py custom/5000_MissQueen/__init__.py custom/5001_NewbieCoupons/__init__.py custom/5011_l2day/__init__.py custom/5025_Evolve/__init__.py custom/6050_KetraOrcSupport/__init__.py custom/6051_VarkaSilenosSupport/__init__.py custom/7000_HeroItems/__init__.py custom/8000_RaidbossInfo/__init__.py custom/8001_NpcLocationInfo/__init__.py custom/8004_PurchaseBracelet/__init__.py custom/DarkCloudMansion/__init__.py custom/9999_NPCBuffer/__init__.py custom/8204_NpcHero/__init__.py custom/8705_Skills/__init__.py #Obtain Talismans custom/8005_Talismans/__init__.py
  16. pws ti na perasis tis epic sto npc? einai oti pio eukolo auto to pragma ftiaxe ena diko sou multisell kai alaxe mesa ta ids apo ta items pou dini kai meta pigene sto html tou npc kai bale to multisell ekei ola einai easy..
  17. sinexeizis na zitas pragmata ta opia einai eukola na kaneis search ena aplo search den einai kako..
  18. wraios fakoyka :) nice ;)
  19. nice share man keep that work +1 for this share :D
  20. bale kamia photo gia infos.. einai san na pernoume xero psomi twra.. kata ta alla nice :)
  21. apla to 8ema einai ENA otan to kaneis save 8a to kaneis (Select Version 413 esi stadar 8a bazis oti allo nane..)
  22. ama den mas dosis error den mporoume na helparoume se tpt den xeroume akrivos ti exeis epomenos mpori gia 1002 logous na sou ebgale error mesa ston gameserver twra..apo ti einai auto to error den xeroume opote mexri na analisis to post sou min perimenis help..
  23. to gm shop xeris ama litourgi me mysql i me multisell?
  24. nice share man very good work +1 for my i put that in my server
  25. nt@x gia mena l2jfree apla respect..
×
×
  • Create New...