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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..