This is not a Support area! Discuss about the Server here. Non-Server related discussion goes in
Off-Topic Discussion.
Gnacik
L2j Veteran
Posts: 925 Joined: Tue Dec 16, 2008 3:49 pm
Location: Wąchock ٩(̾●̮̮̃̾•̃̾)۶ Polska
Contact:
Post
by Gnacik » Thu Sep 03, 2009 8:21 pm
http://www.l2jserver.com/trac/ticket/4120
Some retail pictures :
Clan with flag:
Player without clan in range
Player without clan in range with flag
Attack on nonflaged player ofc i must press ctrl key
_DS_
L2j Veteran
Posts: 3437 Joined: Wed Apr 30, 2008 8:53 am
Location: Russia
Post
by _DS_ » Fri Sep 04, 2009 4:35 am
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:
Post
by Probe » Fri Sep 04, 2009 3:45 pm
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.
Gnacik
L2j Veteran
Posts: 925 Joined: Tue Dec 16, 2008 3:49 pm
Location: Wąchock ٩(̾●̮̮̃̾•̃̾)۶ Polska
Contact:
Post
by Gnacik » Fri Sep 04, 2009 4:24 pm
Results ? What should be changed ?
Same situation on l2js - nonflaged player in range:
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.
devo
Posts: 798 Joined: Mon Jun 15, 2009 1:19 pm
Post
by devo » Fri Sep 04, 2009 7:16 pm
seems its working in pvp only vs flaged with force skill use.
A hero of war is that what they see...
Gnacik
L2j Veteran
Posts: 925 Joined: Tue Dec 16, 2008 3:49 pm
Location: Wąchock ٩(̾●̮̮̃̾•̃̾)۶ Polska
Contact:
Post
by Gnacik » Sat Sep 12, 2009 9:53 am
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
Posts: 3437 Joined: Wed Apr 30, 2008 8:53 am
Location: Russia
Post
by _DS_ » Sat Sep 12, 2009 10:04 am
Yeah...
Test results ?
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
Gnacik
L2j Veteran
Posts: 925 Joined: Tue Dec 16, 2008 3:49 pm
Location: Wąchock ٩(̾●̮̮̃̾•̃̾)۶ Polska
Contact:
Post
by Gnacik » Sat Sep 12, 2009 10:47 am
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.
Gnacik
L2j Veteran
Posts: 925 Joined: Tue Dec 16, 2008 3:49 pm
Location: Wąchock ٩(̾●̮̮̃̾•̃̾)۶ Polska
Contact:
Post
by Gnacik » Sat Sep 12, 2009 11:28 am
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.