Jump to content

melron

Legendary Member
  • Posts

    1,399
  • Credits

  • Joined

  • Last visited

  • Days Won

    28
  • Feedback

    0%

Everything posted by melron

  1. 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
  2. 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)); }
  3. Θα πρεπει να φτιαξεις ενα νεο πεδιο στην database σου στο characters table και 2 μεθοδους στο class του παιχτη (Player.class για acis , L2PcInstance.class για frozen). Οταν αγοραζει το skill θα αποθηκευεις με μια τιμη στην πρωτη μεθοδο και την 2η θα ελεγχει εαν το αγορασε. Μην ξεχασεις να κανεις load αυτη την τιμη οταν ο παιχτης μπαινει στο παιχνιδι
  4. 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)
  5. Speak english . you have more chances to get help
  6. Maybe the variable Baium is null somehow? Seems like you added custom code
  7. Development Help Section Rules - Read before posting Baium.java(141)
  8. no :P public MerchantPriceConfig getMpc() this config is null
  9. its not about the code. He is just lazy to google it. Update your jdk to 1.8
  10. i dont know why you need this, but its logical error since you trying to convert enum to int. item.getItem().getCrystalType().ordinal();
  11. 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.
  12. Read changesets, test them, select the best for you. My opinion is ofc aCis.
  13. Add getInstance() in your line. About the suggestions simply ignore them or edit it with try-with-resources style
  14. gameserver.java AutoDatabaseBackUp.getInstance(); Paste some photos of your warnings,errors
  15. https://pastebin.com/a1fbAb6p I'm not using configs. Feel free to create them (for global variables) p.s dont forget to run it
  16. far better than the classic multisell for exchanges good job.
  17. 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
  18. For real now... if you want to advertise your server you have to make topics in every damn l2 forum. Even with 5 ppl activity... Especially if you dont want to pay ... About banners here, i can say thay i received a lot ppl from here Edit: my question: Seems like you are a kind of dev/admin too and you dont know what maxcheaters is?
  19. I didn't noticed this way because you didn't registered the 'first id' at your code thats why. Alright thank you for your instructions
  20. thats exactly what i was talking about. So the monsterId mustn't be registered at all and its usefull only for spawning purposes because we need to register the id 1 as registered id, or just register in new line the 1st id
  21. my point isn't the ++ logic. im trying to understand how you thought about it and i'm asking some questions in order to learn some new things. When you have registered 3 IDS (1,2,3) at event onKill and the mob with ID 1 will die, onKill function will spawn the list.poll right? the list.poll will return the ID of the head so for first time is the 1 . @Override protected void registerNpcs() { monsterIds.add(1009); Lets say the 1009 will die ok? public String onKill(Npc npc, Player killer, boolean isPet) { if(monsterIds.size() == 0) return super.onKill(npc, killer, isPet); Attackable newNpc = (Attackable) addSpawn(monsterIds.poll(), npc, true, 0, false); What id will have the newNpc ? if my questions are bothering you i will stop my stupid questions
×
×
  • 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