Jump to content

melron

Legendary Member
  • Posts

    1,403
  • Credits

  • Joined

  • Last visited

  • Days Won

    32
  • Feedback

    0%

Everything posted by melron

  1. Simply set the other castles siege time after 5 years.
  2. player.teleToLocation(list.getLocX(), list.getLocY(), list.getLocZ(), true);
  3. if you store somewhere all the players that are in the tvt , instead of World.getInstance().... use the tvt collection about this loop. as main anti-afk this code is good. You can add more conditions and not only checking the location to be more secure
  4. private static void handleRes(Player activeChar) { if (!activeChar.isDead()) return; if (!activeChar.canRessurected) { activeChar.sendMessage("You have alredy used this command. Go to town first"); return; } //add here your item (if the false becomes true then the player will receive Incorrect item count message) if (!activeChar.destroyItemByItemId("res", itemId, count, null, false or true)) { activeChar.sendMessage("You need X item for that"); return; } activeChar.doRevive(); activeChar.canRessurected = false; }
  5. You could at least say thanks to this guy who tried to help you instead of being an badass guy... Put logic on your request. You have to start from the conditions. You have as a condition the town right? So go on TownZone.java and find method onEnter(). check if the character is player and if yes, set him to be able to use the command. Can be done easily with a boolean. @Override protected void onEnter(Creature character) { if (character instanceof Player) ((Player) character).canRessurected = true; public boolean canRessurected = false; then , make your own voiced command and check if the player can be ressurected ... if (command.startsWith("res")) handleRes(activeChar); private static void handleRes(Player activeChar) { if (!activeChar.isDead()) return; if (!activeChar.canRessurected) { activeChar.sendMessage("You have alredy used this command. Go to town first"); return; } activeChar.doRevive(); activeChar.canRessurected = false; } about your buffer , i doubt someone will help you for the adaption without pay him. about magic skill you send wrong packet (MagicSkillUse). use the npc as caster and player as receiver
  6. Find the item that is broken and fix it.. else if (_currentItem.type instanceof L2WeaponType) { _currentItem.item = new L2Weapon((L2WeaponType) _currentItem.type, _currentItem.set); } else if (_currentItem.type instanceof L2EtcItemType) { _currentItem.item = new L2EtcItem((L2EtcItemType) _currentItem.type, _currentItem.set); } else - throw new Error("Unknown item type " + _currentItem.type); + throw new Error(String.format("Unknown item type [%s] for Item [%s] - [%s]", _currentItem.type,_currentItem.name , _currentItem.id)); }
  7. Θα πρεπει να φτιαξεις ενα νεο πεδιο στην database σου στο characters table και 2 μεθοδους στο class του παιχτη (Player.class για acis , L2PcInstance.class για frozen). Οταν αγοραζει το skill θα αποθηκευεις με μια τιμη στην πρωτη μεθοδο και την 2η θα ελεγχει εαν το αγορασε. Μην ξεχασεις να κανεις load αυτη την τιμη οταν ο παιχτης μπαινει στο παιχνιδι
  8. post your Baium.java
  9. You want me to answer a question without even providing 1 line of your code? If you added custom codes then check again what you added (im sure you added)
  10. Speak english . you have more chances to get help
  11. Maybe the variable Baium is null somehow? Seems like you added custom code
  12. Development Help Section Rules - Read before posting Baium.java(141)
  13. no :P public MerchantPriceConfig getMpc() this config is null
  14. Do you need balance with max enchant > +20 :D
  15. its not about the code. He is just lazy to google it. Update your jdk to 1.8
  16. did you even try to google your error?
  17. i dont know why you need this, but its logical error since you trying to convert enum to int. item.getItem().getCrystalType().ordinal();
  18. What you mean (tested)? make your blessed condition like this if (isBlessed()) { if (enchantItem.isArmor()) chance = Math.pow(Config.ENCHANT_CHANCE_ARMOR_BLESSED, (enchantItem.getEnchantLevel() - 2)); // Weapon formula is 70% for fighter weapon, 40% for mage weapon. Special rates after +14. else if (enchantItem.isWeapon()) { if (((Weapon) enchantItem.getItem()).isMagical()) chance = (enchantItem.getEnchantLevel() > 14) ? Config.ENCHANT_CHANCE_WEAPON_MAGIC_15PLUS_BLESSED : Config.ENCHANT_CHANCE_WEAPON_MAGIC_BLESSED; else chance = (enchantItem.getEnchantLevel() > 14) ? Config.ENCHANT_CHANCE_WEAPON_NONMAGIC_15PLUS_BLESSED : Config.ENCHANT_CHANCE_WEAPON_NONMAGIC_BLESSED; } System.out.println("Config chance: " + chance); } I think you will solve your problem (if any) by urself.
  19. Read changesets, test them, select the best for you. My opinion is ofc aCis.
  20. Add getInstance() in your line. About the suggestions simply ignore them or edit it with try-with-resources style
  21. gameserver.java AutoDatabaseBackUp.getInstance(); Paste some photos of your warnings,errors
  22. https://pastebin.com/a1fbAb6p I'm not using configs. Feel free to create them (for global variables) p.s dont forget to run it
  23. far better than the classic multisell for exchanges good job.
  24. @Maxtor
  25. Who cares about what they will say as a reply. Dont even answer... most of players checking first topic for features etc, and they dont give a shit about comments. They want to check the server and not check comments. In the other hand, if your server wasnt here, those ppl could see another server
×
×
  • Create New...