Jump to content

Xerus

Members
  • Posts

    745
  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by Xerus

  1. So what do you suggest me to do?
  2. Hello guys i want to ask from somebody how this ddos protection works and how much it costs cause i never used it before...
  3. Stupid me i didnt even had a doattack method... I used this one protected void doAttack(L2Character target) { if(getOwner() != null && getOwner() == target && !getOwner().isBetrayed()) { sendPacket(new SystemMessage(SystemMessageId.TARGET_IS_INCORRECT)); return; } if(isInsidePeaceZone(this, target)) { getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE); return; } if(!target.isAttackable()) { if (!(this instanceof L2SiegeSummonInstance)) { getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE); return; } } super.doAttack(target); } Thx for helping anyway Wyatt ;)
  4. haha okay, i dont have this method in l2summon
  5. public void onForcedAttack(L2PcInstance player) { if (isInsidePeaceZone(player)) { // If L2Character or target is in a peace zone, send a system message TARGET_IN_PEACEZONE a Server->Client packet ActionFailed player.sendPacket(SystemMessageId.TARGET_IN_PEACEZONE); player.sendPacket(ActionFailed.STATIC_PACKET); return; } if (player.isInOlympiadMode() && player.getTarget() != null && player.getTarget() instanceof L2Playable) { L2PcInstance target = player.getTarget().getActingPlayer(); if (target == null || (target.isInOlympiadMode() && (!player.isOlympiadStart() || player.getOlympiadGameId() != target.getOlympiadGameId()))) { // if L2PcInstance is in Olympia and the match isn't already start, send a Server->Client packet ActionFailed player.sendPacket(ActionFailed.STATIC_PACKET); return; } } if (player.getTarget() != null && !player.getTarget().isAttackable() && !player.getAccessLevel().allowPeaceAttack()) { // If target is not attackable, send a Server->Client packet ActionFailed player.sendPacket(ActionFailed.STATIC_PACKET); return; } if (player.isConfused()) { // If target is confused, send a Server->Client packet ActionFailed player.sendPacket(ActionFailed.STATIC_PACKET); return; } // GeoData Los Check or dz > 1000 if (!GeoData.getInstance().canSeeTarget(player, this)) { player.sendPacket(SystemMessageId.CANT_SEE_TARGET); player.sendPacket(ActionFailed.STATIC_PACKET); return; } // Notify AI with AI_INTENTION_ATTACK player.getAI().setIntention(CtrlIntention.AI_INTENTION_ATTACK, this); }
  6. i am using l2jesios protected void doAttack(L2Character target) { if (Config.DEBUG) _log.fine(getName() + " doAttack: target=" + target); if (!isAlikeDead() && target != null) { if (this instanceof L2Npc && target.isAlikeDead() || !getKnownList().knowsObject(target)) { getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE); sendPacket(ActionFailed.STATIC_PACKET); return; } else if (this instanceof L2PcInstance) { if (target.isDead()) { getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE); sendPacket(ActionFailed.STATIC_PACKET); return; } L2PcInstance actor = (L2PcInstance) this; // Players riding wyvern can only do melee attacks if (actor.isMounted() && actor.getMountNpcId() == 12621) { sendPacket(ActionFailed.STATIC_PACKET); return; } } } if (isAttackingDisabled()) return; if (this instanceof L2PcInstance) { if (((L2PcInstance) this).inObserverMode()) { sendPacket(SystemMessage.getSystemMessage(SystemMessageId.OBSERVERS_CANNOT_PARTICIPATE)); sendPacket(ActionFailed.STATIC_PACKET); return; } // Checking if target has moved to peace zone if (target.isInsidePeaceZone((L2PcInstance) this)) { getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE); sendPacket(ActionFailed.STATIC_PACKET); return; } }
  7. Hello guys, i need some help, if you summon pet in town and you try to use it to attack players its not working, if you first use the pet to attack npc and then a player its working and people are pking in town by using their pets. My npcs are not attackable but i dont know why pets or summons can attack them. I have to make npcs not attackable from pets too or fix this with another way. Any help?
  8. oh sorry i forgot that it rewards all online players :P
  9. What do you mean it take votes from 40 Votes?
  10. I want to pay but he is not answering.
  11. What i have to do now? Add a new server with other name and other website and other ip?
  12. I added my server before 2 years there, then i closed it. I opened my server again now with same website, i added the server to hopzone but i get error that site is banned and i cant modify it they have to modify my server listing but nobody answers.
  13. I know that but what else can i do to list my server there?
  14. I send him emails to all his 3 email address provided there also private message to both admins in the site and still no answer, I dont mind i want to pay for advertisement in hopzone and for premium account but he doesnt answer to me can you contact him please?
  15. Anyone here know Kadar? I am trying to contact him for 2 days now and he doesnt answer, i cant edit my server to add it to hopzone.net and i am willing to pay him but i cant find him....
  16. currentTime.add(Calendar.MONTH, 1); currentTime.set(Calendar.DAY_OF_MONTH, 1); currentTime.set(Calendar.AM_PM, Calendar.AM); currentTime.set(Calendar.HOUR, 0); currentTime.set(Calendar.MINUTE, 1); currentTime.set(Calendar.SECOND, 0); _olympiadEnd = currentTime.getTimeInMillis(); This is the normal code but if i change currentTime.add(Calendar.MONTH, 1); currentTime.set(Calendar.DAY_OF_MONTH, 1); to currentTime.add(Calendar..WEEK_OF_MONTH, 2); currentTime.set(Calendar.DAY_OF_WEEK, Calendar.SUNDAY); every sunday it adds 2 weeks to the period time so the oly never ends... is there any code to add 2 weeks every 2nd sunday?
  17. Hello guys i have a problem in my server, olympiads are working great but when there are new heroes at the end of the month and then the validation starts i have new heroes but after 24 hours of validation the system end again the olympiads and sets again new heroes... why? I have l2j acis pack
  18. That address is your local ip address which is for lan and only. You have to do what MikeJ said. go to a website like whatismyipaddress.com and find out and edit the l2.ini with that address and send it to someone. Make sure you have ports opened first.
  19. Found the problem.. Loct it please. Problem was that i had aio engine on the server and when it was set to true it was removing the skills from the classes. (buff Skills)
  20. Ok now i dont lose skills when i make subclass but i lose skills when i restart only with more classes not only dominator. When i make subclass its okay... any ideas?
  21. I moded some things but nothing such as skills... Anyway i dont think its something like this cause it would happen with more classes not just dominator... any ideas?
  22. I edited the villagemaster just to allow dominators for subclass but that has nothing to do with skill trees and even if it does i tried the same with base class and still the same... Btw i checked again and i lose skills such as: Ritual of Life and some clan buffs
×
×
  • 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