- sourcePlayer cannot be resolved
- obj cannot be resolved to a variable
The code im tryning to install is for one event engine made by rizel and i got the premium files that was for freya and im tryning to use them on H5 , so far only here i got problem and its the last part to finish the installing all the code.
Code: Select all
Index: java/com/l2jserver/gameserver/model/L2Skill.java===================================================================--- java/com/l2jserver/gameserver/model/L2Skill.java (revision 4622)+++ java/com/l2jserver/gameserver/model/L2Skill.java (working copy)@@ -21,6 +21,8 @@ import java.util.StringTokenizer; import java.util.logging.Logger; +import net.phoenixengine.PhoenixInterface;+ import javolution.util.FastList; import javolution.util.FastMap; @@ -1558,6 +1560,19 @@ if (onlyFirst) return new L2Character[] { obj }; + if(activeChar instanceof L2PcInstance)+ + if(obj instanceof L2PcInstance) + if(PhoenixInterface.isParticipating(sourcePlayer.getObjectId()) && PhoenixInterface.isParticipating(obj.getObjectId())) + if(PhoenixInterface.areTeammates(obj.getObjectId(), sourcePlayer.getObjectId())) + continue; + + if(activeChar instanceof L2PcInstance) + if(obj instanceof L2Summon) + if(PhoenixInterface.isParticipating(sourcePlayer.getObjectId()) && PhoenixInterface.isParticipating(((L2Summon)obj).getOwner().getObjectId())) + if(PhoenixInterface.areTeammates(((L2Summon)obj).getOwner().getObjectId(), sourcePlayer.getObjectId())) + continue;+ targetList.add(obj); } }