Jump to content

SweeTs

Legendary Member
  • Posts

    8,941
  • Credits

  • Joined

  • Last visited

  • Days Won

    25
  • Feedback

    0%

Everything posted by SweeTs

  1. That happens when you click too fast, flood (bypass) protection, sort of.
  2. Yup, you are right. Thats so old code I had on hdd.
  3. He was not serious.. That was a sarcasm. Seriously.. :not bad: Here you go, without any checks. /* * 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 net.sf.l2j.gameserver.handler.itemhandlers; import net.sf.l2j.gameserver.handler.IItemHandler; import net.sf.l2j.gameserver.model.L2ItemInstance; import net.sf.l2j.gameserver.model.actor.L2Playable; import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance; /** * @author SweeTs */ public class HeroItem implements IItemHandler { @Override public void useItem(L2Playable playable, L2ItemInstance item, boolean forceUse) { if (!(playable instanceof L2PcInstance)) return; L2PcInstance activeChar = (L2PcInstance)playable; int itemId = item.getItemId(); if (itemId == 57) // Item to become hero { activeChar.setHero(true); activeChar.broadcastUserInfo(); } } } Xml part <set name="handler" val="HeroItem" /> and don't forget the register the HeroItem into the ItemHandler.java
  4. They are removed on a purpose, to don't check if you have the quest started. :P No idea personally, I hate quests :)
  5. Yeah, at begining I also couldn't rly get it, but.. Read some easy zone nodes and you will understand :P
  6. Devlin, seriously? :dat:
  7. Ha ha.. Let me guess, you registered the server using dedicated server, no? They clearly say in their rules to DO NOT use dedicated/vps servers to register server. So, it's not ovh fault, only your.
  8. Avoid the spam, your "proofs" are not enough, those are (only your) suspicious. Cleaned.
  9. Come one.. it's ugly :troll: I would NOT give such a flower* to anyone, even to you. With love <3 :happyforever: * - it is a flower, no?
  10. It's better to do opposite, to create a STORE_ZONE. Definitelly you will have sell work to do to make the area where the store is allowed :) if (!activeChar.isInside(ZoneId.STORE_ZONE)) { activeChar.sendMessage("You can't store in this place."); return; }
  11. Stop that spamming spree.
  12. I know and I already told that.. You have to touch core, anyway :D
  13. Ohh I forgot about something.. The reason to keep em is: the castle's walls can ONLY be destroyed by siege summons. So, if you will go with custom way, then don't forget to edit the core, so the walls can be destroyed by players :)
  14. If it's not from Enterworld aka CreateSay, then it's a systemmsg file, the msg typ is changed. Simply switch systemmsg-e.dat file to another or find the row and remove the screen msg option.
  15. Yup, some custom crap cause it. Missmatch the values count of character table / statements (missing table). You should get an error @ gs.
  16. Outdated, bugged and with not working features. Why not :D
  17. PI is already considered as a town zone, so when you die you have X spawnpoints. Adding new spawnpoint should work fine.
  18. What you provided, is spawnpoints on the beach, but this wont happen w/o core edit
  19. Good luck, seems nice :)
  20. I doubt you will find any (semi)decent project. No one rly develop epilogue, correct me if I'm wrong :P
  21. It's not about recommending our project.. He asked for X, Y, Z and the only pack which meets the requirements is.. aCis. Bcs there is none fully stable, bugless files..? How can you recommend something that you didn't saw? For sure not scoria, shitcode, not sure abot lucera tho, but probably also kinda crappy code, but works.
  22. Basically no. Since when new chronicle appear, they move the development to the actual chronicle. Look at l2jserver. Interlude version was/is a mess, they moved higher and higher and all these chronicles are soo screwed :) Maybe L2jScripts, russian project, but they ask 700$$ for Int sources :D
  23. Changeset 346 (rev 352) Commons, Holders, Misc Commons - StringReplacer class, used for next Log rework (delimiter). - Rnd uses ThreadLocalRandom* (Java7 feature) - Addition of MathUtil, holding commonly used math methods. - isEmpty() addition for StringUtil. Holders - ItemHolder && SkillHolder are merged for a more generic IntIntHolder (as there are numerous ways to use an Int<>Int class). - Deletion of StatusUpdate Attribute class, use IntIntHolder instead. Misc - final static > static final. - AdminRepairChar (admin_repair && admin_restore) handler is dropped (pointless). - AdminBookmark / AdminSkills / BookmarkTable use a better approach to filter results. *More performance infos about ThreadLocalRandom on http://java-performance.info/java-util-random-java-util-concurrent-threadlocalrandom-multithreaded-environments/
×
×
  • Create New...