Jump to content

tomka

Members
  • Posts

    23
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

About tomka

Profile Information

  • Gender
    Male

tomka's Achievements

Newbie

Newbie (1/16)

0

Reputation

  1. I got trouble when run gameserver. How can i fix it? 1. ERROR in \AugmentShop.java (at line 122) statement.setByte(5, item.getElementals().getElement()); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Cannot invoke getElement() on the array type Elementals[] ---------- 2. ERROR in \AugmentShop.java (at line 123) statement.setInt(6, item.getElementals().getValue()); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Cannot invoke getValue() on the array type Elementals[]
  2. Very nice share, and my opinion we make it with Anti AFK in TVT event. Player likes to kill someone and get reward. Thanks for share.
  3. i try to edit something code for l2jserver. Hope it work. Create java file: LevelCommands.java in voicedcommand folder /* * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more * details. * * You should have received a copy of the GNU General Public License along with * this program. If not, see <http://www.gnu.org/licenses/>. */ package handlers.voicedcommandhandlers; import com.l2jserver.gameserver.handler.IVoicedCommandHandler; import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; import com.l2jserver.gameserver.network.serverpackets.InventoryUpdate; import com.l2jserver.gameserver.model.base.Experience; /** * @author Mentor * @date 2009.09.05 */ public class LevelCommands implements IVoicedCommandHandler { private static final String[] _voicedCommands = { "levelup", "leveldown" , "downlevel" , "uplevel" }; public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target) { int itemID = 57; int itemCountUp = 1000000; int itemCountDown = 200000; if (command.equalsIgnoreCase("levelup") || command.equalsIgnoreCase("uplevel")) { if (activeChar.getInventory().getInventoryItemCount(itemID, 0) >= itemCountUp && activeChar.getStat().getLevel() < 85) { InventoryUpdate iu = new InventoryUpdate(); activeChar.getInventory().destroyItemByItemId("Adena", itemID, itemCountUp, activeChar, null); activeChar.getInventory().updateDatabase(); activeChar.sendPacket(iu); activeChar.addExpAndSp(Experience.LEVEL[activeChar.getStat().getLevel() + 1] - Experience.LEVEL[activeChar.getStat().getLevel()], 0); activeChar.sendMessage("Level UP."); } else if(activeChar.getInventory().getInventoryItemCount(itemID, 0) >= 1000 && activeChar.getStat().getLevel() == 85){ activeChar.sendMessage("Sorry. You get maximum lv."); } else { activeChar.sendMessage("Havent enought item."); } } else if (command.equalsIgnoreCase("leveldown") || command.equalsIgnoreCase("downlevel")) { if (activeChar.getInventory().getInventoryItemCount(itemID, 0) >= itemCountDown && activeChar.getStat().getLevel() > 1) { InventoryUpdate iu = new InventoryUpdate(); activeChar.getInventory().destroyItemByItemId("Event Medal", itemID, itemCountDown, activeChar, null); activeChar.getInventory().updateDatabase(); activeChar.sendPacket(iu); activeChar.getStat().removeExpAndSp((activeChar.getExp() - Experience.LEVEL[activeChar.getStat().getLevel() - 1]), 0); activeChar.sendMessage("Level DOWN"); } else if(activeChar.getInventory().getInventoryItemCount(itemID, 0) >= itemCountDown && activeChar.getStat().getLevel() == 1){ activeChar.sendMessage("Sorry. You get lowest lv."); } else { activeChar.sendMessage("Havent enought item."); } } return true; } public String[] getVoicedCommandList() { return _voicedCommands; } } Register in MasterHandler.java VoicedCommandHandler.getInstance().registerVoicedCommandHandler(new LevelCommands());
  4. i agree and understand your voice, Matim. Just wanna make it more interesting. First, they know the rule of private server like we learn social rule. Second, social divides 3 force Good & bad & ugly (look like a cowboy film huh? :P) Third, game not only entertainment is also the social of ppl... why dun make it more real Your solution is we make a NPC in the Jail :D and they must buy item and using it and be-released? Thanks for your advise, Matim.
  5. Thanks for share ! Very useful for server Anti bot. But link cant download. Plz re-upload file. How we can BAN anyone without evident?
  6. New Dwarf enchant system ? Cant explain what different between 2 enchant dwarf and normal enchant? Note : when you build any features plz explain clearly. More information just waste you some sentence but very helpful with us. I got idea about chance reduce: after safe chance rate reduce from 100% with any rate (0.3% or 2% or else). And i wonder we have 3 type of enchant scroll (crystal, bless, normal), why we dont modify chance all of them? Each type has other rate, it make more fun and more risk. And last one i can think right now, crystal enchant scroll fail and destroy item... make it not be. PS: Thanks 4 share.
  7. It can use for l2jserver, cuz i try but many differently class...
  8. I have a idea but could not make it, hope Dev_team can help me make l2 server more fun...
  9. We can make very good custom enchant system, which is belong to your formula. But careful when change core. 2 file need change requestenchantitem.java and abstractEnchantpacket.java (search by window explorer 4 paths). And change in abstractenchantpacket.java the lines has _isBless: int myCount; for (myCount = 0; myCount < Config.ENCHANT_MAX_WEAPON; myCount++) { if (myCount > Config.ENCHANT_SAFE_MAX){ chance = "make your formula here!!!"; } } Good luck.
  10. Thanks so much. It's work fine now.
  11. i try to test on l2jserver and something differently.. anyone using it on l2jserver Freya?
  12. To dleogr: The error line when i put your code in my freya is SystemMessage sm = new SystemMessage(SystemMessageId.AVAILABLE_AFTER_S1_S2_HOURS_S3_MINUTES); The contruction SystemMessage(SystemMessageId) is not visible. What is mean?
  13. We can think like this, wanna buy heal/mana/esc potions/sroll or something else :D by exchanging your money (adena or coin or anything). Anyone has idea to enchant this skill to make create more item? hehe..
  14. I downloaded and will testing in Freya soon. Thanks for share. Nice NPC with custom client :P
×
×
  • Create New...