Jump to content

melron

Legendary Member
  • Posts

    1,405
  • Joined

  • Last visited

  • Days Won

    32
  • Feedback

    0%

Everything posted by melron

  1. siegeDate is the milliseconds. change them in the date you wish
  2. convert date to milliseconds from the internet and put those milliseconds to the column of the castle table that is responsible for the date, or post here the structure of the Castle table
  3. Simply set the other castles siege time after 5 years.
  4. player.teleToLocation(list.getLocX(), list.getLocY(), list.getLocZ(), true);
  5. 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
  6. 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; }
  7. 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
  8. 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)); }
  9. Θα πρεπει να φτιαξεις ενα νεο πεδιο στην database σου στο characters table και 2 μεθοδους στο class του παιχτη (Player.class για acis , L2PcInstance.class για frozen). Οταν αγοραζει το skill θα αποθηκευεις με μια τιμη στην πρωτη μεθοδο και την 2η θα ελεγχει εαν το αγορασε. Μην ξεχασεις να κανεις load αυτη την τιμη οταν ο παιχτης μπαινει στο παιχνιδι
  10. post your Baium.java
  11. 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)
  12. Speak english . you have more chances to get help
  13. Maybe the variable Baium is null somehow? Seems like you added custom code
  14. Development Help Section Rules - Read before posting Baium.java(141)
  15. no :P public MerchantPriceConfig getMpc() this config is null
  16. Do you need balance with max enchant > +20 :D
  17. its not about the code. He is just lazy to google it. Update your jdk to 1.8
  18. did you even try to google your error?
  19. i dont know why you need this, but its logical error since you trying to convert enum to int. item.getItem().getCrystalType().ordinal();
  20. 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.
  21. Read changesets, test them, select the best for you. My opinion is ofc aCis.
  22. Add getInstance() in your line. About the suggestions simply ignore them or edit it with try-with-resources style
  23. gameserver.java AutoDatabaseBackUp.getInstance(); Paste some photos of your warnings,errors
  24. https://pastebin.com/a1fbAb6p I'm not using configs. Feel free to create them (for global variables) p.s dont forget to run it
  25. far better than the classic multisell for exchanges good job.
×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock