Jump to content
  • 0

Help-clan war related


Question

Posted

Hello,

i need help for a retail feature that is not implemented.

When you end a war,you must get a penalty of 5 days.

I searched everywhere but found nothing.

Any clue?

8 answers to this question

Recommended Posts

  • 0
Posted

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.

  • 0
Posted

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;
    }

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...