Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: java/config/pccafe.properties
- ===================================================================
- --- pccafe.properties (revision 0)
- +++ pccafe.properties (revision 0)
- @@ -0,0 +1,23 @@
- +#PC Bang Event Enabled
- +Enabled=True
- +
- +#Max points that player may have
- +#limited to int limit
- +MaxPcBangPoints=200000
- +
- +#Use random in rewarding with points
- +#If enabled points will be random from points/2 to points
- +AcquisitionPointsRandom=False
- +
- +#Creates a chance to aquire double point
- +DoublingAcquisitionPoints=True
- +
- +#Double points chance
- +#if DoublingAcquisitionPoints=True
- +DoublingAcquisitionPointsChance=1
- +
- +#PC Bang point rate
- +#e.g. with 1.0 it's 10000 exp = 1 PC Bang point
- +#2.0 - 10000 exp = 2 PC Bang points
- +#0.5 - 5000 exp = 1 PC Bang point
- +AcquisitionPointsRate = 1.0
- Index: java/com/l2jserver/Config.java
- ===================================================================
- --- java/com/l2jserver/Config.java (revision 4422)
- +++ java/com/l2jserver/Config.java (working copy)
- @@ -81,8 +81,8 @@
- public static final String COMMUNITY_CONFIGURATION_FILE = "./config/CommunityServer.properties";
- public static final String GRANDBOSS_CONFIG_FILE = "./config/Grandboss.properties";
- public static final String CHAT_FILTER_FILE = "./config/chatfilter.txt";
- + public static final String PCBANG_CONFIG_FILE = "./config/pccafe.properties";
- -
- //--------------------------------------------------
- // L2J Variable Definitions
- //--------------------------------------------------
- @@ -1002,6 +1036,17 @@
- public static int Interval_Of_Frintezza_Spawn;
- public static int Random_Of_Frintezza_Spawn;
- + /////////////////////////////////////////////////
- + // PC Bang Settings
- + /////////////////////////////////////////////////
- + public static boolean PC_BANG_ENABLED;
- + public static int MAX_PC_BANG_POINTS;
- + public static boolean ENABLE_DOUBLE_PC_BANG_POINTS;
- + public static int DOUBLE_PC_BANG_POINTS_CHANCE;
- + public static double PC_BANG_POINT_RATE;
- + public static boolean RANDOM_PC_BANG_POINT;
- +
- +
- //chatfilter
- public static ArrayList<String> FILTER_LIST;
- @@ -2661,8 +2878,33 @@
- throw new Error("Failed to Load " + GRANDBOSS_CONFIG_FILE + " File.");
- }
- + // PC Bang
- try
- {
- + L2Properties pccaffeSettings = new L2Properties();
- + is = new FileInputStream(new File(PCBANG_CONFIG_FILE));
- + pccaffeSettings.load(is);
- +
- + PC_BANG_ENABLED = Boolean.parseBoolean(pccaffeSettings.getProperty("Enabled", "false"));
- + MAX_PC_BANG_POINTS = Integer.parseInt(pccaffeSettings.getProperty("MaxPcBangPoints", "200000"));
- + if(MAX_PC_BANG_POINTS<0)
- + MAX_PC_BANG_POINTS=0;
- + ENABLE_DOUBLE_PC_BANG_POINTS = Boolean.parseBoolean(pccaffeSettings.getProperty("DoublingAcquisitionPoints", "false"));
- + DOUBLE_PC_BANG_POINTS_CHANCE = Integer.parseInt(pccaffeSettings.getProperty("DoublingAcquisitionPointsChance", "1"));
- + if(DOUBLE_PC_BANG_POINTS_CHANCE<0 || DOUBLE_PC_BANG_POINTS_CHANCE>100)
- + DOUBLE_PC_BANG_POINTS_CHANCE=1;
- + PC_BANG_POINT_RATE = Double.parseDouble(pccaffeSettings.getProperty("AcquisitionPointsRate", "1.0"));
- + if(PC_BANG_POINT_RATE<0)
- + PC_BANG_POINT_RATE=1;
- + RANDOM_PC_BANG_POINT = Boolean.parseBoolean(pccaffeSettings.getProperty("AcquisitionPointsRandom", "false"));
- + }
- + catch (Exception e)
- + {
- + e.printStackTrace();
- + throw new Error("Failed to Load " + PCBANG_CONFIG_FILE + " File.");
- + }
- + try
- + {
- FILTER_LIST = new ArrayList<String>();
- LineNumberReader lnr = new LineNumberReader(new BufferedReader(new FileReader(new File(CHAT_FILTER_FILE))));
- String line = null;
- Index: java/com/l2jserver/gameserver/datatables/MultiSell.java
- ===================================================================
- --- java/com/l2jserver/gameserver/datatables/MultiSell.java (revision 4422)
- +++ java/com/l2jserver/gameserver/datatables/MultiSell.java (working copy)
- @@ -41,6 +41,7 @@
- import com.l2jserver.gameserver.network.serverpackets.MultiSellList;
- import com.l2jserver.gameserver.network.serverpackets.SystemMessage;
- import com.l2jserver.gameserver.network.serverpackets.UserInfo;
- +import com.l2jserver.gameserver.network.serverpackets.ExPCCafePointInfo;
- public class MultiSell
- {
- @@ -118,6 +119,13 @@
- {
- switch (id)
- {
- + case PC_BANG_POINTS: //PcBang points
- + if (player.getPcBangPoints() < amount)
- + {
- + player.sendPacket(new SystemMessage(SystemMessageId.NOT_ENOUGH_ITEMS));
- + break;
- + }
- + return true;
- case CLAN_REPUTATION:
- if (player.getClan() == null)
- {
- @@ -150,6 +158,14 @@
- {
- switch (id)
- {
- + case PC_BANG_POINTS: //PcBang points
- + final int cost = player.getPcBangPoints() - (int)(amount);
- + player.setPcBangPoints(cost);
- + SystemMessage smsgpc = new SystemMessage(SystemMessageId.USING_S1_PCPOINT);
- + smsgpc.addNumber((int)amount);
- + player.sendPacket(smsgpc);
- + player.sendPacket(new ExPCCafePointInfo(player.getPcBangPoints(), (int)amount, false, false, 1));
- + return true;
- case CLAN_REPUTATION:
- player.getClan().takeReputationScore((int)amount, true);
- SystemMessage smsg = new SystemMessage(SystemMessageId.S1_DEDUCTED_FROM_CLAN_REP);
- @@ -347,6 +363,7 @@
- {
- switch (ing.getItemId())
- {
- + case PC_BANG_POINTS:
- case CLAN_REPUTATION:
- case FAME:
- return true;
- Index: java/com/l2jserver/gameserver/GameServer.java
- ===================================================================
- --- java/com/l2jserver/gameserver/GameServer.java (revision 4422)
- +++ java/com/l2jserver/gameserver/GameServer.java (working copy)
- @@ -105,6 +105,7 @@
- import com.l2jserver.gameserver.instancemanager.ItemsOnGroundManager;
- import com.l2jserver.gameserver.instancemanager.MailManager;
- import com.l2jserver.gameserver.instancemanager.MercTicketManager;
- +import com.l2jserver.gameserver.instancemanager.PcCafePointsManager;
- import com.l2jserver.gameserver.instancemanager.PetitionManager;
- import com.l2jserver.gameserver.instancemanager.QuestManager;
- import com.l2jserver.gameserver.instancemanager.RaidBossPointsManager;
- @@ -287,6 +289,7 @@
- TerritoryWarManager.getInstance();
- CastleManorManager.getInstance();
- MercTicketManager.getInstance();
- + PcCafePointsManager.getInstance();
- L2Manor.getInstance();
- printSection("Olympiad");
- Index: java/com/l2jserver/gameserver/instancemanager/PcCafePointsManager.java
- ===================================================================
- --- java/com/l2jserver/gameserver/instancemanager/PcCafePointsManager.java (revision 0)
- +++ java/com/l2jserver/gameserver/instancemanager/PcCafePointsManager.java (revision 0)
- @@ -0,0 +1,74 @@
- +package com.l2jserver.gameserver.instancemanager;
- +
- +import com.l2jserver.Config;
- +import com.l2jserver.gameserver.model.actor.L2Character;
- +import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
- +import com.l2jserver.gameserver.model.base.ClassId;
- +import com.l2jserver.gameserver.network.SystemMessageId;
- +import com.l2jserver.gameserver.network.serverpackets.ExPCCafePointInfo;
- +import com.l2jserver.gameserver.network.serverpackets.SystemMessage;
- +import com.l2jserver.util.Rnd;
- +
- +public class PcCafePointsManager
- +{
- + private static PcCafePointsManager _instance;
- +
- + public static PcCafePointsManager getInstance()
- + {
- + if (_instance == null)
- + _instance = new PcCafePointsManager();
- + return _instance;
- + }
- +
- + public PcCafePointsManager()
- + {
- + }
- +
- + public void givePcCafePoint(final L2PcInstance player, final long givedexp)
- + {
- + if (!Config.PC_BANG_ENABLED)
- + return;
- +
- + if (player.isInsideZone(L2Character.ZONE_PEACE)
- + || player.isInsideZone(L2Character.ZONE_PVP)
- + || player.isInsideZone(L2Character.ZONE_SIEGE)
- + || player.isOnlineInt() == 0 || player.isInJail())
- + return;
- + if(player.getPcBangPoints()>=Config.MAX_PC_BANG_POINTS)
- + {
- + final SystemMessage sm = new SystemMessage(SystemMessageId.THE_MAXMIMUM_ACCUMULATION_ALLOWED_OF_PC_CAFE_POINTS_HAS_BEEN_EXCEEDED);
- + player.sendPacket(sm);
- + return;
- + }
- + int _points = (int) (givedexp * 0.0001 * Config.PC_BANG_POINT_RATE);
- + if(player.getActiveClass()==ClassId.archmage.getId()
- + || player.getActiveClass()==ClassId.soultaker.getId()
- + || player.getActiveClass()==ClassId.stormScreamer.getId()
- + || player.getActiveClass()==ClassId.mysticMuse.getId())
- + _points/=2;
- + if (Config.RANDOM_PC_BANG_POINT)
- + _points = Rnd.get(_points / 2, _points);
- + boolean doublepoint=false;
- + SystemMessage sm = null;
- + if(_points>0)
- + {
- + if (Config.ENABLE_DOUBLE_PC_BANG_POINTS
- + && Rnd.get(100) < Config.DOUBLE_PC_BANG_POINTS_CHANCE)
- + {
- + _points *= 2;
- + sm = new SystemMessage(SystemMessageId.ACQUIRED_S1_PCPOINT_DOUBLE);
- + doublepoint=true;
- + }
- + else
- + {
- + sm = new SystemMessage(SystemMessageId.YOU_HAVE_ACQUIRED_S1_PC_CAFE_POINTS);
- + }
- + if(player.getPcBangPoints() + _points>Config.MAX_PC_BANG_POINTS)
- + _points=Config.MAX_PC_BANG_POINTS-player.getPcBangPoints();
- + sm.addNumber(_points);
- + player.sendPacket(sm);
- + player.setPcBangPoints(player.getPcBangPoints() + _points);
- + player.sendPacket(new ExPCCafePointInfo(player.getPcBangPoints(), _points, true, doublepoint, 1));
- + }
- + }
- +}
- Index: java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java
- ===================================================================
- --- java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java (revision 4422)
- +++ java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java (working copy)
- @@ -280,8 +281,8 @@
- // Character Character SQL String Definitions:
- private static final String INSERT_CHARACTER = "INSERT INTO characters (account_name,charId,char_name,level,maxHp,curHp,maxCp,curCp,maxMp,curMp,face,hairStyle,hairColor,sex,exp,sp,karma,fame,pvpkills,pkkills,clanid,race,classid,deletetime,cancraft,title,title_color,accesslevel,online,isin7sdungeon,clan_privs,wantspeace,base_class,newbie,nobless,power_grade,last_recom_date,createTime) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)";
- - private static final String UPDATE_CHARACTER = "UPDATE characters SET level=?,maxHp=?,curHp=?,maxCp=?,curCp=?,maxMp=?,curMp=?,face=?,hairStyle=?,hairColor=?,sex=?,heading=?,x=?,y=?,z=?,exp=?,expBeforeDeath=?,sp=?,karma=?,fame=?,pvpkills=?,pkkills=?,rec_have=?,rec_left=?,clanid=?,race=?,classid=?,deletetime=?,title=?,title_color=?,accesslevel=?,online=?,isin7sdungeon=?,clan_privs=?,wantspeace=?,base_class=?,onlinetime=?,punish_level=?,punish_timer=?,newbie=?,nobless=?,power_grade=?,subpledge=?,last_recom_date=?,lvl_joined_academy=?,apprentice=?,sponsor=?,varka_ketra_ally=?,clan_join_expiry_time=?,clan_create_expiry_time=?,char_name=?,death_penalty_level=?,bookmarkslot=?,vitality_points=?,language=? WHERE charId=?";
- - private static final String RESTORE_CHARACTER = "SELECT account_name, charId, char_name, level, maxHp, curHp, maxCp, curCp, maxMp, curMp, face, hairStyle, hairColor, sex, heading, x, y, z, exp, expBeforeDeath, sp, karma, fame, pvpkills, pkkills, clanid, race, classid, deletetime, cancraft, title, title_color, rec_have, rec_left, accesslevel, online, char_slot, lastAccess, clan_privs, wantspeace, base_class, onlinetime, isin7sdungeon, punish_level, punish_timer, newbie, nobless, power_grade, subpledge, last_recom_date, lvl_joined_academy, apprentice, sponsor, varka_ketra_ally,clan_join_expiry_time,clan_create_expiry_time,death_penalty_level,bookmarkslot,vitality_points,createTime,language FROM characters WHERE charId=?";
- + private static final String UPDATE_CHARACTER = "UPDATE characters SET level=?,maxHp=?,curHp=?,maxCp=?,curCp=?,maxMp=?,curMp=?,face=?,hairStyle=?,hairColor=?,sex=?,heading=?,x=?,y=?,z=?,exp=?,expBeforeDeath=?,sp=?,karma=?,fame=?,pvpkills=?,pkkills=?,rec_have=?,rec_left=?,clanid=?,race=?,classid=?,deletetime=?,title=?,title_color=?,accesslevel=?,online=?,isin7sdungeon=?,clan_privs=?,wantspeace=?,base_class=?,onlinetime=?,punish_level=?,punish_timer=?,newbie=?,nobless=?,power_grade=?,subpledge=?,last_recom_date=?,lvl_joined_academy=?,apprentice=?,sponsor=?,varka_ketra_ally=?,clan_join_expiry_time=?,clan_create_expiry_time=?,char_name=?,death_penalty_level=?,bookmarkslot=?,vitality_points=?,pccafe_points=?,language=? WHERE charId=?";
- + private static final String RESTORE_CHARACTER = "SELECT account_name, charId, char_name, level, maxHp, curHp, maxCp, curCp, maxMp, curMp, face, hairStyle, hairColor, sex, heading, x, y, z, exp, expBeforeDeath, sp, karma, fame, pvpkills, pkkills, clanid, race, classid, deletetime, cancraft, title, title_color, rec_have, rec_left, accesslevel, online, char_slot, lastAccess, clan_privs, wantspeace, base_class, onlinetime, isin7sdungeon, punish_level, punish_timer, newbie, nobless, power_grade, subpledge, last_recom_date, lvl_joined_academy, apprentice, sponsor, varka_ketra_ally,clan_join_expiry_time,clan_create_expiry_time,death_penalty_level,bookmarkslot,vitality_points,pccafe_points,createTime,language FROM characters WHERE charId=?";
- // Character Teleport Bookmark:
- private static final String INSERT_TP_BOOKMARK = "INSERT INTO character_tpbookmark (charId,Id,x,y,z,icon,tag,name) values (?,?,?,?,?,?,?,?)";
- @@ -456,7 +457,7 @@
- private PunishLevel _punishLevel = PunishLevel.NONE;
- private long _punishTimer = 0;
- private ScheduledFuture<?> _punishTask;
- -
- + private int _pcBangPoints = 0;
- public enum PunishLevel
- {
- NONE(0, ""),
- @@ -7382,7 +7418,7 @@
- player.setDeathPenaltyBuffLevel(rset.getInt("death_penalty_level"));
- player.setVitalityPoints(rset.getInt("vitality_points"), true);
- -
- + player.setPcBangPoints(rset.getInt("pccafe_points"));
- // Add the L2PcInstance object in _allObjects
- //L2World.getInstance().storeObject(player);
- @@ -7834,8 +7871,9 @@
- statement.setLong(52, getDeathPenaltyBuffLevel());
- statement.setInt(53, getBookMarkSlot());
- statement.setInt(54, getVitalityPoints());
- - statement.setString(55, getLang());
- - statement.setInt(56, getObjectId());
- + statement.setInt(55, getPcBangPoints());
- + statement.setString(56, getLang());
- + statement.setInt(57, getObjectId());
- statement.execute();
- statement.close();
- @@ -14943,7 +15003,106 @@
- {
- _offlineShopStart = time;
- }
- + public int getPcBangPoints()
- + {
- + return _pcBangPoints;
- + }
- + public void setPcBangPoints(final int i)
- + {
- + if(i<200000)
- + _pcBangPoints = i;
- + else
- + _pcBangPoints = 200000;
- + }
- /**
- * Remove player from BossZones (used on char logout/exit)
- */
- Index: java/com/l2jserver/gameserver/model/actor/L2Attackable.java
- ===================================================================
- --- java/com/l2jserver/gameserver/model/actor/L2Attackable.java (revision 4422)
- +++ java/com/l2jserver/gameserver/model/actor/L2Attackable.java (working copy)
- @@ -36,6 +36,7 @@
- import com.l2jserver.gameserver.datatables.ItemTable;
- import com.l2jserver.gameserver.datatables.SkillTable;
- import com.l2jserver.gameserver.instancemanager.CursedWeaponsManager;
- +import com.l2jserver.gameserver.instancemanager.PcCafePointsManager;
- import com.l2jserver.gameserver.model.L2CharPosition;
- import com.l2jserver.gameserver.model.L2CommandChannel;
- import com.l2jserver.gameserver.model.L2DropCategory;
- @@ -709,7 +710,10 @@
- }
- ((L2PcInstance)attacker).addExpAndSp(addexp,addsp, useVitalityRate());
- if (addexp > 0)
- + {
- ((L2PcInstance)attacker).updateVitalityPoints(getVitalityPoints(damage), true, false);
- + PcCafePointsManager.getInstance().givePcCafePoint(((L2PcInstance) attacker), addexp);
- + }
- }
- else
- attacker.addExpAndSp(addexp,addsp);
- Index: java/com/l2jserver/gameserver/model/L2Party.java
- ===================================================================
- --- java/com/l2jserver/gameserver/model/L2Party.java (revision 4422)
- +++ java/com/l2jserver/gameserver/model/L2Party.java (working copy)
- @@ -29,6 +29,7 @@
- import com.l2jserver.gameserver.datatables.ItemTable;
- import com.l2jserver.gameserver.datatables.SkillTable;
- import com.l2jserver.gameserver.instancemanager.DuelManager;
- +import com.l2jserver.gameserver.instancemanager.PcCafePointsManager;
- import com.l2jserver.gameserver.model.actor.L2Attackable;
- import com.l2jserver.gameserver.model.actor.L2Character;
- import com.l2jserver.gameserver.model.actor.L2Playable;
- @@ -736,7 +737,10 @@
- }
- ((L2PcInstance)member).addExpAndSp(addexp, addsp, useVitalityRate);
- if (addexp > 0)
- + {
- ((L2PcInstance)member).updateVitalityPoints(vitalityPoints, true, false);
- + PcCafePointsManager.getInstance().givePcCafePoint(((L2PcInstance) member), addexp);
- + }
- }
- else
- member.addExpAndSp(addexp, addsp);
- Index: java/com/l2jserver/gameserver/model/quest/QuestState.java
- ===================================================================
- --- java/com/l2jserver/gameserver/model/quest/QuestState.java (revision 4422)
- +++ java/com/l2jserver/gameserver/model/quest/QuestState.java (working copy)
- @@ -28,6 +28,7 @@
- import com.l2jserver.gameserver.GameTimeController;
- import com.l2jserver.gameserver.cache.HtmCache;
- import com.l2jserver.gameserver.datatables.ItemTable;
- +import com.l2jserver.gameserver.instancemanager.PcCafePointsManager;
- import com.l2jserver.gameserver.instancemanager.QuestManager;
- import com.l2jserver.gameserver.model.L2DropData;
- import com.l2jserver.gameserver.model.L2ItemInstance;
- @@ -904,6 +905,7 @@
- public void addExpAndSp(int exp, int sp)
- {
- getPlayer().addExpAndSp((int) getPlayer().calcStat(Stats.EXPSP_RATE, exp * Config.RATE_QUEST_REWARD_XP, null, null), (int) getPlayer().calcStat(Stats.EXPSP_RATE, sp * Config.RATE_QUEST_REWARD_SP, null, null));
- + PcCafePointsManager.getInstance().givePcCafePoint(getPlayer(), (long)(exp * Config.RATE_QUEST_REWARD_XP));
- }
- /**
- Index: java/com/l2jserver/gameserver/network/clientpackets/EnterWorld.java
- ===================================================================
- --- java/com/l2jserver/gameserver/network/clientpackets/EnterWorld.java (revision 4422)
- +++ java/com/l2jserver/gameserver/network/clientpackets/EnterWorld.java (working copy)
- @@ -70,6 +71,7 @@
- import com.l2jserver.gameserver.network.serverpackets.ExGetBookMarkInfoPacket;
- import com.l2jserver.gameserver.network.serverpackets.ExNoticePostArrived;
- import com.l2jserver.gameserver.network.serverpackets.ExNotifyPremiumItem;
- +import com.l2jserver.gameserver.network.serverpackets.ExPCCafePointInfo;
- import com.l2jserver.gameserver.network.serverpackets.ExShowScreenMessage;
- import com.l2jserver.gameserver.network.serverpackets.ExStorageMaxCount;
- import com.l2jserver.gameserver.network.serverpackets.FriendList;
- @@ -355,7 +357,13 @@
- }
- activeChar.updateEffectIcons();
- -
- + if(Config.PC_BANG_ENABLED)
- + {
- + if (activeChar.getPcBangPoints() > 0)
- + activeChar.sendPacket(new ExPCCafePointInfo(activeChar.getPcBangPoints(), 0, false, false, 1));
- + else
- + activeChar.sendPacket(new ExPCCafePointInfo());
- + }
- activeChar.sendPacket(new EtcStatusUpdate(activeChar));
- //Expand Skill
- Index: java/com/l2jserver/gameserver/network/serverpackets/ExPCCafePointInfo.java
- ===================================================================
- --- java/com/l2jserver/gameserver/network/serverpackets/ExPCCafePointInfo.java (revision 4422)
- +++ java/com/l2jserver/gameserver/network/serverpackets/ExPCCafePointInfo.java (working copy)
- @@ -21,27 +21,50 @@
- public class ExPCCafePointInfo extends L2GameServerPacket
- {
- private static final String _S__FE_31_EXPCCAFEPOINTINFO = "[S] FE:32 ExPCCafePointInfo";
- - private int _unk1, _unk2, _unk3, _unk4, _unk5 = 0;
- -
- - public ExPCCafePointInfo(int val1, int val2, int val3, int val4, int val5)
- + private final int _points;
- + private final int _mAddPoint;
- + private int _mPeriodType;
- + private int _remainTime;
- + private int _pointType = 0;
- + public ExPCCafePointInfo()
- {
- - _unk1 = val1;
- - _unk2 = val2;
- - _unk3 = val3;
- - _unk4 = val4;
- - _unk5 = val5;
- + _points = 0;
- + _mAddPoint = 0;
- + _remainTime = 0;
- + _mPeriodType = 0;
- + _pointType = 0;
- }
- -
- + public ExPCCafePointInfo(final int points, final int modify_points, final boolean mod, final boolean _double, final int hours_left)
- + {
- + _points = points;
- + _mAddPoint = modify_points;
- + _remainTime = hours_left;
- + if (mod && _double)
- + {
- + _mPeriodType = 1;
- + _pointType = 0;
- + }
- + else if (mod)
- + {
- + _mPeriodType = 1;
- + _pointType = 1;
- + }
- + else
- + {
- + _mPeriodType = 2;
- + _pointType = 2;
- + }
- + }
- @Override
- protected void writeImpl()
- {
- writeC(0xFE);
- writeH(0x32);
- - writeD(_unk1); // num points
- - writeD(_unk2); // points inc display
- - writeC(_unk3); // period(0=don't show window,1=acquisition,2=use points)
- - writeD(_unk4); // period hours left
- - writeC(_unk5); // points inc display color(0=yellow,1=cyan-blue,2=red,all other black)
- + writeD(_points); // num points
- + writeD(_mAddPoint); // points inc display
- + writeC(_mPeriodType); // period(0=don't show window,1=acquisition,2=use points)
- + writeD(_remainTime); // period hours left
- + writeC(_pointType); // points inc display color(0=yellow,1=cyan-blue,2=red,all other black)
- }
- /**
- Index: java/com/l2jserver/gameserver/network/SystemMessageId.java
- ===================================================================
- --- java/com/l2jserver/gameserver/network/SystemMessageId.java (revision 4422)
- +++ java/com/l2jserver/gameserver/network/SystemMessageId.java (working copy)
- @@ -13600,14 +13600,22 @@
- * Message: You cannot receive a vitamin item during an exchange.
- */
- YOU_CANNOT_RECEIVE_A_VITAMIN_ITEM_DURING_AN_EXCHANGE(2390),
- -
- /**
- + * ID: 2389<br>
- + * Message: The maximum accumulation allowed of PC cafe points has been exceeded. You can no longer acquire PC cafe points.
- + */
- + THE_MAXMIMUM_ACCUMULATION_ALLOWED_OF_PC_CAFE_POINTS_HAS_BEEN_EXCEEDED(2389),
- + /**
- * ID: 2390<br>
- * Message: Your number of My Teleports slots has reached its maximum limit.
- */
- YOUR_NUMBER_OF_MY_TELEPORTS_SLOTS_HAS_REACHED_ITS_MAXIMUM_LIMIT(2390),
- -
- /**
- + * ID: 2393<br>
- + * Message: You have acquired $s1 PC Cafe points.
- + */
- + YOU_HAVE_ACQUIRED_S1_PC_CAFE_POINTS(2393),
- + /**
- * ID: 2396<br>
- * Message: That pet/servitor skill cannot be used because it is recharging.
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement