Jump to content

TreVor

Premium Member
  • Posts

    311
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by TreVor

  1. private void showMainPage(final L2PcInstance activeChar) { AdminHelpPage.showHelpPage(activeChar, "charmanage.htm"); } private void setAccountAccessLevel(final String player, final L2PcInstance activeChar, final int banLevel) { Connection con = null; try { con = L2DatabaseFactory.getInstance().getConnection(false); String stmt = "SELECT account_name FROM characters WHERE char_name = ?"; PreparedStatement statement = con.prepareStatement(stmt); statement.setString(1, player); ResultSet result = statement.executeQuery(); if (result.next()) { String acc_name = result.getString(1); SystemMessage sm = new SystemMessage(SystemMessageId.S1_S2); if (acc_name.length() > 0) { LoginServerThread.getInstance().sendAccessLevel(acc_name, banLevel); sm.addString("Account Access Level for " + player + " set to " + banLevel + "."); } else { sm.addString("Couldn't find player: " + player + "."); } activeChar.sendPacket(sm); sm = null; acc_name = null; } else This is ? and my question how to make to item?
  2. How to make a item that will give acces lvl 10 to save the database? i based on l2jfrozen?
  3. Hello i have little question i add to my workspace a VipItem and i cant complilation this have problem please look on screenshot http://www30.zippyshare.com/v/MDvFyar2/file.html or link to this file http://www30.zippyshare.com/v/qr7UrsBY/file.html Can you look for this? i based on l2jfrozen
  4. its ok on compile hmm how to add 3-4 items to reward ? after this 57, 8000, 2220,5 clan.getLeader().getPlayerInstance(), null);
  5. public void endSiege() { if (getIsInProgress()) { announceToPlayer("The siege of " + getCastle().getName() + " has finished!", false); LOGGER.info("[SIEGE] The siege of " + getCastle().getName() + " has finished! " + fmt.format(new Date(System.currentTimeMillis()))); if (getCastle().getOwnerId() <= 0) { announceToPlayer("The siege of " + getCastle().getName() + " has ended in a draw.", false); LOGGER.info("[SIEGE] The siege of " + getCastle().getName() + " has ended in a draw. " + fmt.format(new Date(System.currentTimeMillis()))); } this ?
  6. Hello all , i have question how to make a reward for siege to cwh after end siege . i based on l2jfrozen thanks all for help
  7. ok i make a itemhandler and work :) now i have problem how to make a atimer on this item on 1 month auto destroy?
  8. I use l2jfrozen last rev and this project already have donator command for increase xp sp adena drop spoil rates I wonder if possible create an item which will give this donator stats when you have it in your inventory example go to a npc a buy "Donator Rune" when you have "Donator Rune" in inventory you gain donator status
  9. Hello , i have question how to make a donate item. This item give a character for 1 month premium account exp sp etc x2. Thanks for all help
  10. How to fixed this problem ? on l2jfrozen rev 1372 dont work grade penalty dont give skill and restrictions all players can equip a sgrade weapon on 1lvl , config dont work.
  11. This is fix code i search this code and dont work i have problem on compilation [javac] if (item.isArmor()) [javac] ^ [javac] symbol: method isArmor() [javac] location: variable item of type L2ItemInstance [javac] 1 error
  12. Yes on this code grade penalty dont work ;/ how to fix it ?
  13. Hello all dear members how to fix grade penalty on l2jfrozen ? This option doesnt work i have on config ExpertisePenalty=True and dont work players can equip weapon s on 40 lvl /** * Refresh expertise penalty. */ public void refreshExpertisePenalty() { if (!Config.EXPERTISE_PENALTY) return; int intensityW = 0; // Default value int intensityA = 0; // Default value. // Level of grade penalty. for (final L2ItemInstance item : getInventory().getItems()) { // Checks if items equipped if (item != null && item.isEquipped()) { // Gets grade of item final int crystaltype = item.getItem().getCrystalType(); if (item.isWeapon()) { if (crystaltype-getExpertiseIndex()>=intensityW) { intensityW = crystaltype-getExpertiseIndex(); } } else { if (item.isArmor()) { if (crystaltype-getExpertiseIndex()>=intensityA) { intensityA = crystaltype-getExpertiseIndex(); } } } } } int intensity = intensityW + intensityA; if (getExpertisePenalty() != intensity) { int penalties = _masteryPenalty + _masteryWeapPenalty + intensity; if (penalties > 10) // Checks if penalties are out of bounds for skill level on XML { penalties = 10; } _expertisePenalty = intensity; if (penalties > 0) { super.addSkill(SkillTable.getInstance().getInfo(4267,1)); sendSkillList(); } else { super.removeSkill(getKnownSkill(4267)); sendSkillList(); _expertisePenalty = 0; } } } [javac] if (item.isArmor()) [javac] ^ [javac] symbol: method isArmor() [javac] location: variable item of type L2ItemInstance [javac] 1 error
  14. Server its good i wait for live server
  15. This share its good for acis project ? Who replace to acis ?
  16. please send to me price for this pack with source thanks.
  17. Hello all member's i have big problem on my server i use rev acis 346 and have problem on attack melee stuck on all attack lag and just click on your nick will delete lagu and this problem on pick drop please check this and help me;/ stuck and lag
  18. Yes i have this problem on my acis pack stuck on attack lags etc
×
×
  • Create New...