Jump to content
  • 0

Help Siege Giran


l2media

Question

12 answers to this question

Recommended Posts

  • 0

getOnlineMembers probably return null somewhere, when you got no null control on the method you screenshoted.

 

If it's a list or a collection which is generated by getOnlineMembers, use Collections.emptyList() instead of null.

Link to comment
Share on other sites

  • 0

getOnlineMembers probably return null somewhere, when you got no null control on the method you screenshoted.

 

If it's a list or a collection which is generated by getOnlineMembers, use Collections.emptyList() instead of null.

sdfdsfd.png

 

 

change it again not my barrel sent in error console

Link to comment
Share on other sites

  • 0


public void updatePlayerSiegeStateFlags(boolean clear)

{

L2Clan clan;

for(L2SiegeClan siegeClan : getAttackerClans())

{

clan = ClanTable.getInstance().getClan(siegeClan.getClanId());

for(L2PcInstance member : clan.getOnlineMembers(""))

{

member.setSiegeState((byte) (clear ? 0 : 1));

}

}

for(L2SiegeClan siegeclan : getDefenderClans())

{

clan = ClanTable.getInstance().getClan(siegeclan.getClanId());

for(L2PcInstance member : clan.getOnlineMembers(""))

{

member.setSiegeState((byte) (clear ? 0 : 2));

}

}

}

Link to comment
Share on other sites

  • 0
	  public void updatePlayerSiegeStateFlags(boolean clear)
	  {
	    L2Clan clan;
	    for(L2SiegeClan siegeClan : getAttackerClans())
	    {
	      clan = ClanTable.getInstance().getClan(siegeClan.getClanId());
	      for(L2PcInstance member : clan.getOnlineMembers(""))
	      {
	        member.setSiegeState((byte) (clear ? 0 : 1));
	      }
	    }
	    for(L2SiegeClan siegeclan : getDefenderClans())
	    {
	      clan = ClanTable.getInstance().getClan(siegeclan.getClanId());
	      for(L2PcInstance member : clan.getOnlineMembers(""))
	      {
	        member.setSiegeState((byte) (clear ? 0 : 2));
	      }
	    }
	  }

 

Again my two barrel

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...