Ticket 4120

This is not a Support area! Discuss about the Server here. Non-Server related discussion goes in Off-Topic Discussion.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
User avatar
Gnacik
L2j Veteran
L2j Veteran
Posts: 925
Joined: Tue Dec 16, 2008 3:49 pm
Location: Wąchock ٩(̾●̮̮̃̾•̃̾)۶ Polska
Contact:

Ticket 4120

Post by Gnacik »

http://www.l2jserver.com/trac/ticket/4120

Some retail pictures :

Clan with flag:
Image

Player without clan in range
Image

Player without clan in range with flag
Image

Attack on nonflaged player ofc i must press ctrl key
Image
_DS_
L2j Veteran
L2j Veteran
Posts: 3437
Joined: Wed Apr 30, 2008 8:53 am
Location: Russia

Re: Ticket 4120

Post by _DS_ »

Results ? What should be changed ?
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
Probe
Posts: 915
Joined: Thu Sep 03, 2009 6:36 pm
Location: Israel
Contact:

Re: Ticket 4120

Post by Probe »

I think what he means is that it should only attack flagged\wartags in the zone area, and leave unflagged players unharmed.
instead, it's attacking all pcs\npcs in range, even if white.
User avatar
Gnacik
L2j Veteran
L2j Veteran
Posts: 925
Joined: Tue Dec 16, 2008 3:49 pm
Location: Wąchock ٩(̾●̮̮̃̾•̃̾)۶ Polska
Contact:

Re: Ticket 4120

Post by Gnacik »

Results ? What should be changed ?
Same situation on l2js - nonflaged player in range:
Image

All Area skills (not only summon skills) but all area skills are giving damage to players non-flaged in range.

Im not sure how it works on official because on my 3 screen from official we can see that player have a pvp flag but its not affected by skill.
User avatar
devo
Posts: 798
Joined: Mon Jun 15, 2009 1:19 pm

Re: Ticket 4120

Post by devo »

seems its working in pvp only vs flaged with force skill use.
A hero of war is that what they see...
User avatar
Gnacik
L2j Veteran
L2j Veteran
Posts: 925
Joined: Tue Dec 16, 2008 3:49 pm
Location: Wąchock ٩(̾●̮̮̃̾•̃̾)۶ Polska
Contact:

Re: Ticket 4120

Post by Gnacik »

Problem is that we call

Code: Select all

checkPvpSkill(L2Object target, L2Skill skill, boolean srcIsSummon)
with always srcIsSummon=false

Fix :

Code: Select all

Index: java/net/sf/l2j/gameserver/model/actor/L2Summon.java===================================================================--- java/net/sf/l2j/gameserver/model/actor/L2Summon.java	(revision 1114)+++ java/net/sf/l2j/gameserver/model/actor/L2Summon.java	(working copy)@@ -853,7 +868,7 @@ 	{         final L2PcInstance actingPlayer = getActingPlayer(); -        if (!actingPlayer.checkPvpSkill(getTarget(), skill)+        if (!actingPlayer.checkPvpSkill(getTarget(), skill, true)         		&& !actingPlayer.getAccessLevel().allowPeaceAttack())         {             // Send a System Message to the L2PcInstanceIndex: java/net/sf/l2j/gameserver/model/L2Skill.java===================================================================--- java/net/sf/l2j/gameserver/model/L2Skill.java	(revision 1114)+++ java/net/sf/l2j/gameserver/model/L2Skill.java	(working copy)@@ -2152,7 +2159,7 @@     				if (player.getClanId() != 0 && player.getClanId() == targetPlayer.getClanId())     					return false; -    				if (!player.checkPvpSkill(targetPlayer, skill))+    				if (!player.checkPvpSkill(targetPlayer, skill, (caster instanceof L2Summon)))     					return false;     			}     		} 
_DS_
L2j Veteran
L2j Veteran
Posts: 3437
Joined: Wed Apr 30, 2008 8:53 am
Location: Russia

Re: Ticket 4120

Post by _DS_ »

Yeah...
Test results ?
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
User avatar
Gnacik
L2j Veteran
L2j Veteran
Posts: 925
Joined: Tue Dec 16, 2008 3:49 pm
Location: Wąchock ٩(̾●̮̮̃̾•̃̾)۶ Polska
Contact:

Re: Ticket 4120

Post by Gnacik »

skill usage working correctly.
without ctrl target_area summon skill attack only mobs, flaged players, war players
with ctrl attack all in range

but there is a little glitch. when i kill mob near some player and next target that player and try to cast skill (with and without ctrl) got "Your target cannot be foud". Its from

Code: Select all

L2Summon.java:688target = skill.getFirstOfTargetList(this);
probably. Im trying debug where problem is.
User avatar
Gnacik
L2j Veteran
L2j Veteran
Posts: 925
Joined: Tue Dec 16, 2008 3:49 pm
Location: Wąchock ٩(̾●̮̮̃̾•̃̾)۶ Polska
Contact:

Re: Ticket 4120

Post by Gnacik »

setCurrentPetSkill() is used at end before setIntention(CtrlIntention.AI_INTENTION_CAST) thats why getFirstOfTargetList() is empty. Its called before skill set. Simple solution is move setCurrentPetSkill() to beginning in useMagic() but im not sure if its correct solution because we dont reset currentpetskill after cast.
Post Reply