Jump to content

Question

Posted

pws mporw na valw otan den exoun target oi players na kanoun ta skills epanw tous... Diladi otan enas Bishop den exei kanena target na kanei ta heal epanw tou.

 

Ligi voi8ia paidia. Eimai Newbie.  :-\

Recommended Posts

  • 0
Posted

SkillTargetType kanto TargetType

 

to ekana etc opos m eipes:

if (skill.getTargetType()==TargetType.TARGET_ONE)

 

alla kai pali to TargetType pali mou to vgazei la8os... :/

  • 0
Posted

to ekana etc opos m eipes:

if (skill.getTargetType()==TargetType.TARGET_ONE)

 

alla kai pali to TargetType pali mou to vgazei la8os... :/

 

wrea, pata sto kokinaki dipla stile mou mia photo

  • 0
Posted

L2SkillType ?

 

ennoes to TargetType na to kanw L2SkillType? den se katalava... :P

 

pantos dn ginete tpt... akoma k auto ean valw to pianei la8os...

  • 0
Posted

ennoes to TargetType na to kanw L2SkillType? den se katalava... :P

 

pantos dn ginete tpt... akoma k auto ean valw to pianei la8os...

 

se ka9e pack afto einai diaforetiko, ti na sou kanw tora na mantepsw pos legete to class ? edw den 3ereis esy ti pack exeis

  • 0
Posted

se ka9e pack afto einai diaforetiko, ti na sou kanw tora na mantepsw pos legete to class ? edw den 3ereis esy ti pack exeis

 

mipos 3ereis kai mporeis na mou peis pou na psaksw? i kati na kanw?

  • 0
Posted

Apo SkillTargetType  kanto L2Skill.SkillTargetType

 

wraios. mou to pianei swsto. to testara kai douleuei. Omos otan pataw skill k dn exw target pianei kateu8eian ton eauto tou.

mipos ginete na to kanoume xwris na pianei target?

  • 0
Posted

wraios. mou to pianei swsto. to testara kai douleuei. Omos otan pataw skill k dn exw target pianei kateu8eian ton eauto tou.

mipos ginete na to kanoume xwris na pianei target?

 

Svise ton palio kwdika sto RequestMagicSkillUse kai vale tis grammes me ta + ekei pou sou grafw.

 

L2PcInstance:

                switch(sklTargetType)
	{
		// Target the player if skill type is AURA, PARTY, CLAN or SELF
		case TARGET_AURA:
			if(isInOlympiadMode() && !isOlympiadStart())
				setTarget(this);
		case TARGET_PARTY:
		case TARGET_ALLY:
		case TARGET_CLAN:
		case TARGET_GROUND:
		case TARGET_SELF:
			target = this;
			break;
		case TARGET_PET:
			target = getPet();
			break;
		default:
			target = getTarget();
			break;
	}

	// Check the validity of the target
	if (target == null)
	{
+                   if (skill.isOffensive())
+                   {
		sendPacket(new SystemMessage(SystemMessageId.TARGET_CANT_FOUND));
		sendPacket(ActionFailed.STATIC_PACKET);
		return;
+                   }
+                   else
+                       target = this;
	}

  • 0
Posted

Svise ton palio kwdika sto RequestMagicSkillUse kai vale tis grammes me ta + ekei pou sou grafw.

 

to ekana filos alla dn douleuei. mou elipe auti i grammi kiolas

sendPacket(new SystemMessage(SystemMessageId.TARGET_CANT_FOUND));

 

stin arxi dokimasa xwris autin kai meta pros8esa kai autin alla kai pali tpt. otan dn exw target apla mou leei incorrect target opos panta. :/

to proigoumeno itan pio konta... :P

  • 0
Posted

to ekana filos alla dn douleuei. mou elipe auti i grammi kiolas

sendPacket(new SystemMessage(SystemMessageId.TARGET_CANT_FOUND));

 

stin arxi dokimasa xwris autin kai meta pros8esa kai autin alla kai pali tpt. otan dn exw target apla mou leei incorrect target opos panta. :/

to proigoumeno itan pio konta... :P

Einai etsi sto pack wste 8a s stelnei "incorrect target" eite mporeis na to kaneis cast (me ton twrino kwdika), eite oxi.

 

Episis pigaine L2Character kai allakse auto:

                if(skill.getTargetType() == SkillTargetType.TARGET_AURA || skill.getTargetType() == SkillTargetType.TARGET_GROUND || skill.isPotion())
	{
		target = this;
	}
	else if(targets == null || targets.length == 0)
	{
+                     if (skill.isOffensive())
+                     {
		    getAI().notifyEvent(CtrlEvent.EVT_CANCEL);
		    return;
+                     }
+                     else
+                          target = this;
	}

 

To 8ema einai na mi dokimaseis me debuff. Dokimase me heal as poume.

Twra an einai na afaireis to incorrect target apo ka8e target type, tote kalutera na xrisimopoihseis to proigoumeno code pou s edwsan.

  • 0
Posted

Einai etsi sto pack wste 8a s stelnei "incorrect target" eite mporeis na to kaneis cast (me ton twrino kwdika), eite oxi.

 

Episis pigaine L2Character kai allakse auto:

                if(skill.getTargetType() == SkillTargetType.TARGET_AURA || skill.getTargetType() == SkillTargetType.TARGET_GROUND || skill.isPotion())
	{
		target = this;
	}
	else if(targets == null || targets.length == 0)
	{
+                     if (skill.isOffensive())
+                     {
		    getAI().notifyEvent(CtrlEvent.EVT_CANCEL);
		    return;
+                     }
+                     else
+                          target = this;
	}

 

To 8ema einai na mi dokimaseis me debuff. Dokimase me heal as poume.

Twra an einai na afaireis to incorrect target apo ka8e target type, tote kalutera na xrisimopoihseis to proigoumeno code pou s edwsan.

 

me heal kai buffs to dokimazw. egw auto 8elw, oxi me debuffs.

ara krataw ton kodika sto L2PcInstance kai pros8eto kai auto?

k ean ginete pes m pou 8a vrw to L2Character. :P

Guest
This topic is now closed to further replies.


  • Posts

    • Inventory restock: Premium business accounts are now available.   ✔ Wallester Business EU 🇪🇺|💳 Unlimited virtual cards, physical cards, 🏦 multi-currency IBAN, ₿ crypto & stablecoin deposits. ✔ Stripe Business UK 🇬🇧|💳 Instant virtual cards (Visa/Mastercard), high-conversion checkout, multi-currency payouts, ₿ crypto payments, no-code payment links. ✔ Mercury Business US 🇺🇸|🏦 US checking & savings, 💳 unlimited virtual cards, domestic & International wires, native stablecoin settlement. ✔ Payset Business EU 🇪🇺|🏦 Multiple IBANs, UK sort code, SEPA Instant, 💳 unlimited virtual cards, multi-currency accounts. ✔ Novo Business US 🇺🇸|🏦 Business checking account, ACH payments & invoicing, 💳 virtual & physical cards, novo boost.
    • Let me see if I understand correctly, older gentlemen, when a newcomer shows up to create modern things with the help of AI, doing what you charge them to do, you point the finger and laugh. I believe that's why everything is stagnant. The product isn't for programming experts, it's for newcomers. Don't buy from you if they can do it themselves using this base. You're going to deliver a similar product, maybe even worse than this one, so why are you complaining? PowerShell, as you well know, started with it, then came new platforms and new apps, new creation models, all with different languages; I chose the simplest one for my taste. This is about being organized and knowing how to choose the right words for each situation. It's not 100%, but it already gives a good impression. Nothing is 100%, so a topic written by AI, and all the code that you charge an absurd amount for to prohibit and sell hacks, could be open source so that everyone can create new practices, new models, new information for passing packets, prohibiting the use of cheats that cause server owners to break so much. Let's remember that the Admin doesn't always shut down the server; it's the players who find problems and take advantage by buying and reselling items, and they say that the GM shuts down the server every week, but that's a lie. What they do is duplicate items with packages and sell them, but perhaps this could give some future developers a starting point to create their own protection following the model in the initial documentation. Because none of you answer a question from a newbie, you think you're superior because you have knowledge, but with AI, people like that can have the same knowledge as you, but with less practice. And if they practice a lot, 10,000 hours, they can be as good as all of you older developers in the L2J field.
    • ✨ Exclusive Offer for Marketplace Growth 🔥 Elevate your performance with a premium bonus. 💲 Top up your balance with $100 or more and receive an additional $5 credit — seamlessly added to your account. ⭐️ Designed for those who value efficiency, scale, and results. ⚡️ Effortless. Refined. Effective. 💥 Enhance your strategy today 💥
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..