Jump to content

Recommended Posts

Posted

 

ahahah re ta pisteueis auta pou les? EILIKRINA? TA PISTEUEIS? PANTA PANTA PANTA MA PANTA TO PHX XTIPAEI CLIENTPACKETS!!! KAI META PAEI STA INNER CODING ELA EXETE LA8OS KAI DEN TO PARADEXESTE!!! APLA EGINES GELIOS APO TIN STIGMI POU MILISES GIA PHX KAI LES GAMA TA CLIENTPACKETS POS NA -beep-O TA CLIENTPACKETS OTAN TO PHX DOULEUEI MONO ME AUTA KAI TO BAD CODING TOUS!!

 

apla sou e3igisa oti ama stileis fake packet me objectid pou den iparxei sto l2world to packet 9a kanei return

omos an vrei to object tote 9a tre3ei to doAttack, to doAttack ektelite sinexos mexri na to stamatiseis, dokimase to pata mia fora attack (dld stile mia fora to packet) kai aston char, 9a sinexisei na varaei. Afto simenei oti meta to ka9e doAttack erxete kenourgio doAttack mexri kapia stigmi na stamatisei.

ama peraseis to packet kai kaneis to attack pernas to gamimeno packet kai mpeneis sta loops tou doattack an ka9oli tin diarkia to object gia kapio logo xa9ei tote einai null kai petaei null exception. min me kaneis na to pw pio analitika

Posted

 

intrepid you get your answers if i go to post on l2jserver community that they will be lough all with you you know it that allready.. so say yes i am wrong!

or i will go now on l2j community to post you code

 

 

SO YOU ARE BETTER DEV FROM L2J DEVS BECAUSE L2J DEVS THEY DIDNT USE NULL CHECK IN doAttack

 

protected void doAttack(L2Character target)

{

if ((target == null) || isAttackingDisabled() || !fireAttackListeners(target))

{

return;

}

 

FAIL thats from l2j :DDDD

Posted

Dragonclaw Gracia Final

 

if ((target == null) || isAttackingDisabled() || !fireAttackListeners(target))

{

return;

}

 

Acis

 

if (!isAlikeDead() && target != null)

 

L2J Epilogue

 

if (!isAlikeDead() && target != null)

 

now go die moron

Guest Elfocrash
Posted

Even L2j high five has it:

/**
 * Launch a physical attack against a target (Simple, Bow, Pole or Dual).<br>
 * <B><U>Actions</U>:</B>
 * <ul>
 * <li>Get the active weapon (always equipped in the right hand)</li>
 * <li>If weapon is a bow, check for arrows, MP and bow re-use delay (if necessary, equip the L2PcInstance with arrows in left hand)</li>
 * <li>If weapon is a bow, consume MP and set the new period of bow non re-use</li>
 * <li>Get the Attack Speed of the L2Character (delay (in milliseconds) before next attack)</li>
 * <li>Select the type of attack to start (Simple, Bow, Pole or Dual) and verify if SoulShot are charged then start calculation</li>
 * <li>If the Server->Client packet Attack contains at least 1 hit, send the Server->Client packet Attack to the L2Character AND to all L2PcInstance in the _KnownPlayers of the L2Character</li>
 * <li>Notify AI with EVT_READY_TO_ACT</li>
 * </ul>
 * @param target The L2Character targeted
 */
protected void doAttack(L2Character target)
{
	if ((target == null) || isAttackingDisabled() || !getEvents().onAttack(target))
	{
		return;
	}

	if (!isAlikeDead())
	{
		if ((isNpc() && target.isAlikeDead()) || !getKnownList().knowsObject(target))
		{
			getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE);
			sendPacket(ActionFailed.STATIC_PACKET);
			return;
		}
		else if (isPl

 

Tho i think you dont know what super.doAttack(target); is on L2PcInstance and you dont see the actually method of doAttack in  L2Character.

 

So yeah you are probably better than L2DC and L2j too

Posted

Even L2j high five has it:

/**
 * Launch a physical attack against a target (Simple, Bow, Pole or Dual).<br>
 * <B><U>Actions</U>:</B>
 * <ul>
 * <li>Get the active weapon (always equipped in the right hand)</li>
 * <li>If weapon is a bow, check for arrows, MP and bow re-use delay (if necessary, equip the L2PcInstance with arrows in left hand)</li>
 * <li>If weapon is a bow, consume MP and set the new period of bow non re-use</li>
 * <li>Get the Attack Speed of the L2Character (delay (in milliseconds) before next attack)</li>
 * <li>Select the type of attack to start (Simple, Bow, Pole or Dual) and verify if SoulShot are charged then start calculation</li>
 * <li>If the Server->Client packet Attack contains at least 1 hit, send the Server->Client packet Attack to the L2Character AND to all L2PcInstance in the _KnownPlayers of the L2Character</li>
 * <li>Notify AI with EVT_READY_TO_ACT</li>
 * </ul>
 * @param target The L2Character targeted
 */
protected void doAttack(L2Character target)
{
	if ((target == null) || isAttackingDisabled() || !getEvents().onAttack(target))
	{
		return;
	}

	if (!isAlikeDead())
	{
		if ((isNpc() && target.isAlikeDead()) || !getKnownList().knowsObject(target))
		{
			getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE);
			sendPacket(ActionFailed.STATIC_PACKET);
			return;
		}
		else if (isPl

 

Tho i think you dont know what super.doAttack(target); is on L2PcInstance and you dont see the actually method of doAttack in  L2Character.

 

So yeah you are probably better than L2DC and L2j too

 

dats L2Prim son, fack null checks, fack da rulles

Posted

AHAHAHAH I WILL CRY NOW THEY PUT THAT CODE

 

ESI RE ELFO SE PARAKALW MIN PERNIS MEROS SE KOUBENTA PIGENE MA8E TI KANEI TO DOATTACK KAI TO DOCAST KAI META ELA NA BGALIS GNWMI.. AN LEW PSEMATA OTI TO ELEGES ROTAME KAI TRYSKEL..

 

OSO GIA AUTO TWRA MPIKE KAI PALI EINAI AXRISTO KAI DEN EINAI GIA TO L2PHX EINAI GIA TA MOBS!!!

Posted

even phoinix which is coded from scratch has it on Playable.java

 

        Player player = getPlayer();

        if (player == null)

        {

            return;

        }

Guest Elfocrash
Posted

AHAHAHAH I WILL CRY NOW THEY PUT THAT CODE

 

ESI RE ELFO SE PARAKALW MIN PERNIS MEROS SE KOUBENTA PIGENE MA8E TI KANEI TO DOATTACK KAI TO DOCAST KAI META ELA NA BGALIS GNWMI.. AN LEW PSEMATA OTI TO ELEGES ROTAME KAI TRYSKEL..

 

OSO GIA AUTO TWRA MPIKE KAI PALI EINAI AXRISTO KAI DEN EINAI GIA TO L2PHX EINAI GIA TA MOBS!!!

Caps. Caps everywhere. I was talking about the difference between doCast and doAttack nothing else. Just admit you are wrong. It is not bad.

Staying on something while veryone says it is wrong is tho

Posted

CT2.5 l2j code...

 

 

// =========================================================
// Method - Private
/**
 * Launch a physical attack against a target (Simple, Bow, Pole or Dual).<BR><BR>
 *
 * <B><U> Actions</U> :</B><BR><BR>
 * <li>Get the active weapon (always equiped in the right hand) </li><BR><BR>
 * <li>If weapon is a bow, check for arrows, MP and bow re-use delay (if necessary, equip the L2PcInstance with arrows in left hand)</li>
 * <li>If weapon is a bow, consume MP and set the new period of bow non re-use </li><BR><BR>
 * <li>Get the Attack Speed of the L2Character (delay (in milliseconds) before next attack) </li>
 * <li>Select the type of attack to start (Simple, Bow, Pole or Dual) and verify if SoulShot are charged then start calculation</li>
 * <li>If the Server->Client packet Attack contains at least 1 hit, send the Server->Client packet Attack to the L2Character AND to all L2PcInstance in the _KnownPlayers of the L2Character</li>
 * <li>Notify AI with EVT_READY_TO_ACT</li><BR><BR>
 *
 * @param target The L2Character targeted
 *
 */
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 or with special (flying) transformations can do melee attacks, only with skills
			 */
			if ((actor.isMounted() && actor.getMountNpcId() == 12621)
					|| (actor.isTransformed() && !actor.getTransformation().canDoMeleeAttack()))
			{
				sendPacket(ActionFailed.STATIC_PACKET);
				return;
			}
		}
	}

	if (isAttackingDisabled())
		return;

Posted

Caps. Caps everywhere. I was talking about the difference between doCast and doAttack nothing else. Just admit you are wrong. It is not bad.

Staying on something while veryone says it is wrong is tho

 

 

Actualy you say remove null from doAttack and go cast prominence skills from sorcer class with out that cast.. :)

Posted

CT2.5 l2j code...

 

 

	if (!isAlikeDead() && target != null)
	{

 

HAHAHAHAHAHAHHAHAHAHAHAHAHAA

 

return and if do the same job here moron

Posted

CT2.5 l2j code...

 

 

// =========================================================
// Method - Private
/**
 * Launch a physical attack against a target (Simple, Bow, Pole or Dual).<BR><BR>
 *
 * <B><U> Actions</U> :</B><BR><BR>
 * <li>Get the active weapon (always equiped in the right hand) </li><BR><BR>
 * <li>If weapon is a bow, check for arrows, MP and bow re-use delay (if necessary, equip the L2PcInstance with arrows in left hand)</li>
 * <li>If weapon is a bow, consume MP and set the new period of bow non re-use </li><BR><BR>
 * <li>Get the Attack Speed of the L2Character (delay (in milliseconds) before next attack) </li>
 * <li>Select the type of attack to start (Simple, Bow, Pole or Dual) and verify if SoulShot are charged then start calculation</li>
 * <li>If the Server->Client packet Attack contains at least 1 hit, send the Server->Client packet Attack to the L2Character AND to all L2PcInstance in the _KnownPlayers of the L2Character</li>
 * <li>Notify AI with EVT_READY_TO_ACT</li><BR><BR>
 *
 * @param target The L2Character targeted
 *
 */
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 or with special (flying) transformations can do melee attacks, only with skills
			 */
			if ((actor.isMounted() && actor.getMountNpcId() == 12621)
					|| (actor.isTransformed() && !actor.getTransformation().canDoMeleeAttack()))
			{
				sendPacket(ActionFailed.STATIC_PACKET);
				return;
			}
		}
	}

	if (isAttackingDisabled())
		return;

 

It's there dude.

Guest
This topic is now closed to further replies.



  • Posts

    • I was looking for  server with a low rates,eventually i found l2 elixir.I Joined beta and after so many years since 2008 i found  a friend that we played together, memories came back. i cant wait for the grand oppening!. dont miss it!
    • Seems legit, for sure deserves a try!
    • SOCNET VERIFICATION SERVICE — is a universal solution for those who value security, convenience, and quality. We turn the verification process into a convenient, fast, and highly confidential experience. Thanks to our service, any of your accounts receive identity confirmation, an increased level of trust from platforms and users, as well as protection from bans, fraud, and risks.   Promotion: Pay for your first verification and get a 10% discount on the second one! 💎 We help with verification on Fragment, crypto exchanges ByBit, Gate, Bitget, OKX, Binance, PayPal, KuCoin, and social networks LinkedIn, Facebook, Instagram, Twitter (X) and many other platforms! 💎 Verification for any service: crypto exchanges, trading platforms, hosting providers, casinos and other websites. Why choose us:   Premium quality — we use the most advanced verification methods. High processing speed — accelerated verification on leading platforms, online services and social networks. Full confidentiality — your personal information is protected. Increased trust and status — a verified account boosts influence and improves conversion. Individual approach — we work with bloggers, brands, businesses, and private clients. Simplifying complexity — we handle issues when dealing with foreign services. Important! Services related to illegal activities are strictly prohibited! 💳 Service pricing   ✅ Verification of individuals — from $30 (the exact cost depends on the required location and service/app/website). Learn more 👨‍💼 The cost of business verification for companies or legal entities is discussed individually with the service administration. Learn more If you want us to register your account on the required service and verify it — you will need to additionally pay 10% of the transaction amount. Available payment methods: cryptocurrency, credit cards, PayPal, and other payment methods in our online store and Telegram bot.   ⭐ Our Online Store ⭐ SOCNET.STORE ⭐ Telegram Store ⭐ SOCNET.SHOP ⭐ Our SMS Service ⭐ SOCNET.APP ⭐ Our Telegram Bot for buying Telegram Stars ⭐ SOCNET.CC ⭐ Our SMM Panel ⭐ SOCNET.PRO   ✅ News Resources ➡ Telegram Channel ➡ WhatsApp Channel ➡ Discord Server     ⭐ We invite you to COOPERATE and EARN with us ⭐ Would you like to sell your product or service in our stores and earn money? Become our partner or offer mutually beneficial collaboration? You can contact us via the CONTACTS listed in this topic. ✅ Contacts & Support ➡ Telegram Support ➡ WhatsApp Support ➡ Discord Support: socnet_support ➡ Email Support: solomonbog@socnet.store   Terms of Use and Refund Policy If you have any questions or issues, our fast support service is ready to respond to your requests! A refund for a completed service that does not fully meet the requirements or the declared quality is possible only if the product description includes a warranty and a valid warranty period. In other cases, a full refund for the service will not be provided! By purchasing such a service, you automatically agree to our refund rules for non-provided services! Refunds for countries selected by mistake are not provided after verification. To complete verification, you must provide full access to your account. We currently accept cryptocurrency, credit cards, PayPal, and other payment methods in our online store and Telegram bot! We value every client and provide replacements in case of invalid accounts via our contact channels! Attention: Your order will be delivered to your personal Google Drive/Mega.nz via a link (check the link, click “View content”) within 24 hours after the order confirmation! If you purchased more than 1 item at once, your entire order will be delivered via the first link! The remaining links will be empty! You will automatically receive an email notification after delivery! If you pay on our website via PayPal, you must pay an additional 20% commission (minimum $1). To avoid this commission, you can pay me directly via PayPal — instructions are available on the website! Refunds for items purchased by mistake or due to “I chose the wrong product and did not use it” are not accepted! You are fully responsible for your actions before and after purchase.
    • SOCNET VERIFICATION SERVICE — is a universal solution for those who value security, convenience, and quality. We turn the verification process into a convenient, fast, and highly confidential experience. Thanks to our service, any of your accounts receive identity confirmation, an increased level of trust from platforms and users, as well as protection from bans, fraud, and risks.   Promotion: Pay for your first verification and get a 10% discount on the second one! 💎 We help with verification on Fragment, crypto exchanges ByBit, Gate, Bitget, OKX, Binance, PayPal, KuCoin, and social networks LinkedIn, Facebook, Instagram, Twitter (X) and many other platforms! 💎 Verification for any service: crypto exchanges, trading platforms, hosting providers, casinos and other websites. Why choose us:   Premium quality — we use the most advanced verification methods. High processing speed — accelerated verification on leading platforms, online services and social networks. Full confidentiality — your personal information is protected. Increased trust and status — a verified account boosts influence and improves conversion. Individual approach — we work with bloggers, brands, businesses, and private clients. Simplifying complexity — we handle issues when dealing with foreign services. Important! Services related to illegal activities are strictly prohibited! 💳 Service pricing   ✅ Verification of individuals — from $30 (the exact cost depends on the required location and service/app/website). Learn more 👨‍💼 The cost of business verification for companies or legal entities is discussed individually with the service administration. Learn more If you want us to register your account on the required service and verify it — you will need to additionally pay 10% of the transaction amount. Available payment methods: cryptocurrency, credit cards, PayPal, and other payment methods in our online store and Telegram bot.   ⭐ Our Online Store ⭐ SOCNET.STORE ⭐ Telegram Store ⭐ SOCNET.SHOP ⭐ Our SMS Service ⭐ SOCNET.APP ⭐ Our Telegram Bot for buying Telegram Stars ⭐ SOCNET.CC ⭐ Our SMM Panel ⭐ SOCNET.PRO   ✅ News Resources ➡ Telegram Channel ➡ WhatsApp Channel ➡ Discord Server     ⭐ We invite you to COOPERATE and EARN with us ⭐ Would you like to sell your product or service in our stores and earn money? Become our partner or offer mutually beneficial collaboration? You can contact us via the CONTACTS listed in this topic. ✅ Contacts & Support ➡ Telegram Support ➡ WhatsApp Support ➡ Discord Support: socnet_support ➡ Email Support: solomonbog@socnet.store   Terms of Use and Refund Policy If you have any questions or issues, our fast support service is ready to respond to your requests! A refund for a completed service that does not fully meet the requirements or the declared quality is possible only if the product description includes a warranty and a valid warranty period. In other cases, a full refund for the service will not be provided! By purchasing such a service, you automatically agree to our refund rules for non-provided services! Refunds for countries selected by mistake are not provided after verification. To complete verification, you must provide full access to your account. We currently accept cryptocurrency, credit cards, PayPal, and other payment methods in our online store and Telegram bot! We value every client and provide replacements in case of invalid accounts via our contact channels! Attention: Your order will be delivered to your personal Google Drive/Mega.nz via a link (check the link, click “View content”) within 24 hours after the order confirmation! If you purchased more than 1 item at once, your entire order will be delivered via the first link! The remaining links will be empty! You will automatically receive an email notification after delivery! If you pay on our website via PayPal, you must pay an additional 20% commission (minimum $1). To avoid this commission, you can pay me directly via PayPal — instructions are available on the website! Refunds for items purchased by mistake or due to “I chose the wrong product and did not use it” are not accepted! You are fully responsible for your actions before and after purchase.
  • Topics

×
×
  • 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