-Reworked Raid Points system (ranking system deleted in Valiance update).
-Raidpoints moved to characters.sql -Fixed calls to unexistent skill levels. Contributed by NviX.
This commit is contained in:
@ -535,12 +535,6 @@ public final class L2GameClient extends MMOClient<MMOConnection<L2GameClient>> i
|
||||
ps.execute();
|
||||
}
|
||||
|
||||
try (PreparedStatement ps = con.prepareStatement("DELETE FROM character_raid_points WHERE charId=?"))
|
||||
{
|
||||
ps.setInt(1, objid);
|
||||
ps.execute();
|
||||
}
|
||||
|
||||
try (PreparedStatement ps = con.prepareStatement("DELETE FROM character_reco_bonus WHERE charId=?"))
|
||||
{
|
||||
ps.setInt(1, objid);
|
||||
|
@ -965,7 +965,8 @@ public final class L2GamePacketHandler implements IPacketHandler<L2GameClient>,
|
||||
msg = new RequestFortressSiegeInfo();
|
||||
break;
|
||||
case 0x3d:
|
||||
msg = new RequestGetBossRecord();
|
||||
// Unused
|
||||
// msg = new RequestGetBossRecord();
|
||||
break;
|
||||
case 0x3e:
|
||||
msg = new RequestRefine();
|
||||
|
@ -1,76 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2004-2015 L2J Server
|
||||
*
|
||||
* This file is part of L2J Server.
|
||||
*
|
||||
* L2J Server is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* L2J Server is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package com.l2jserver.gameserver.network.clientpackets;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import com.l2jserver.gameserver.instancemanager.RaidBossPointsManager;
|
||||
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jserver.gameserver.network.serverpackets.ExGetBossRecord;
|
||||
|
||||
/**
|
||||
* Format: (ch) d
|
||||
* @author -Wooden-
|
||||
*/
|
||||
public class RequestGetBossRecord extends L2GameClientPacket
|
||||
{
|
||||
private static final String _C__D0_40_REQUESTGETBOSSRECORD = "[C] D0:40 RequestGetBossRecord";
|
||||
private int _bossId;
|
||||
|
||||
@Override
|
||||
protected void readImpl()
|
||||
{
|
||||
_bossId = readD();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void runImpl()
|
||||
{
|
||||
L2PcInstance activeChar = getClient().getActiveChar();
|
||||
if (activeChar == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (_bossId != 0)
|
||||
{
|
||||
_log.info("C5: RequestGetBossRecord: d: " + _bossId + " ActiveChar: " + activeChar); // should be always 0, log it if isnt 0 for furture research
|
||||
}
|
||||
|
||||
int points = RaidBossPointsManager.getInstance().getPointsByOwnerId(activeChar.getObjectId());
|
||||
int ranking = RaidBossPointsManager.getInstance().calculateRanking(activeChar.getObjectId());
|
||||
|
||||
Map<Integer, Integer> list = RaidBossPointsManager.getInstance().getList(activeChar);
|
||||
|
||||
// trigger packet
|
||||
activeChar.sendPacket(new ExGetBossRecord(ranking, points, list));
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getType()
|
||||
{
|
||||
return _C__D0_40_REQUESTGETBOSSRECORD;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean triggersOnActionRequest()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
@ -20,7 +20,6 @@ package com.l2jserver.gameserver.network.serverpackets;
|
||||
|
||||
import com.l2jserver.gameserver.data.xml.impl.ExperienceData;
|
||||
import com.l2jserver.gameserver.enums.UserInfoType;
|
||||
import com.l2jserver.gameserver.instancemanager.RaidBossPointsManager;
|
||||
import com.l2jserver.gameserver.model.Elementals;
|
||||
import com.l2jserver.gameserver.model.L2Clan;
|
||||
import com.l2jserver.gameserver.model.L2Party;
|
||||
@ -315,7 +314,7 @@ public class UserInfo extends AbstractMaskPacket<UserInfoType>
|
||||
writeD(_activeChar.getVitalityPoints());
|
||||
writeC(0x00); // Vita Bonus
|
||||
writeD(_activeChar.getFame());
|
||||
writeD(RaidBossPointsManager.getInstance().getPointsByOwnerId(_activeChar.getObjectId()));
|
||||
writeD(_activeChar.getRaidPoints());
|
||||
}
|
||||
|
||||
if (containsMask(UserInfoType.SLOTS))
|
||||
|
Reference in New Issue
Block a user