Jump to content
  • 0

Help-clan war related


DnR

Question

8 answers to this question

Recommended Posts

  • 0

tell us what server pack u use .

 

I thought it doesnt matter because its not implemented in all l2j teams.

 

doesen't matter

 

edit: i'm to lazy now :P tomorrow i will help you if someone won't help you.

 

Ok,i ll be waiting :P.

Link to comment
Share on other sites

  • 0

Index: RequestReplyStopPledgeWar.java

 

+	private String _clanName;
+	L2Clan clan = ClanTable.getInstance().getClanByName(_clanName);


        if (_answer == 1)
        {
		ClanTable.getInstance().deleteclanswars(requestor.getClanId(), activeChar.getClanId());
+			clan.setWarPenaltyExpiryTime(currentTime + 3 * 86400000L, L2Clan.PENALTY_TYPE_END_WAR); //24*60*60*1000 = 86400000
+			clan.updateClanInDB();
        }

 

You must to create setWarPenaltyExpiryTime, PENALTY_TYPE_END_WAR and a table for penalty. Example of the alliance

 

    public long getAllyPenaltyExpiryTime()
    {
    	return _allyPenaltyExpiryTime;
    }

    public int getAllyPenaltyType()
    {
    	return _allyPenaltyType;
    }

    public void setAllyPenaltyExpiryTime(long expiryTime, int penaltyType)
    {
    	_allyPenaltyExpiryTime = expiryTime;
    	_allyPenaltyType = penaltyType;
    }

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...