Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- http://www.mediafire.com/download/ee688e9mie9tyfo/killsystem.rar
- Index: java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java
- ===================================================================
- --- java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java (revision 5667)
- +++ java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java (working copy)
- @@ -302,6 +309,51 @@
- */
- public final class L2PcInstance extends L2Playable
- {
- + public static int _killpts = 0;
- // Character Skill SQL String Definitions:
- private static final String RESTORE_SKILLS_FOR_CHAR = "SELECT skill_id,skill_level FROM character_skills WHERE charId=? AND class_index=?";
- private static final String ADD_NEW_SKILL = "INSERT INTO character_skills (charId,skill_id,skill_level,class_index) VALUES (?,?,?,?)";
- @@ -321,8 +373,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,createDate) 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=?,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=?,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, accesslevel, online, char_slot, lastAccess, clan_privs, wantspeace, base_class, onlinetime, isin7sdungeon, punish_level, punish_timer, newbie, nobless, power_grade, subpledge, lvl_joined_academy, apprentice, sponsor, varka_ketra_ally,clan_join_expiry_time,clan_create_expiry_time,death_penalty_level,bookmarkslot,vitality_points,createDate,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=?,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=?,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=?,killpts=? 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, accesslevel, online, char_slot, lastAccess, clan_privs, wantspeace, base_class, onlinetime, isin7sdungeon, punish_level, punish_timer, newbie, nobless, power_grade, subpledge, lvl_joined_academy, apprentice, sponsor, varka_ketra_ally,clan_join_expiry_time,clan_create_expiry_time,death_penalty_level,bookmarkslot,vitality_points,createDate,language,killpts 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 (?,?,?,?,?,?,?,?)";
- @@ -1637,6 +1701,21 @@
- }
- }
- + public void savePts()
- + {
- + try (Connection con = L2DatabaseFactory.getInstance().getConnection();
- + PreparedStatement statement = con.prepareStatement("UPDATE characters SET killpts=? WHERE charId=?"))
- + {
- + statement.setInt(1, getKillpts());
- + statement.setInt(2, getObjectId());
- + statement.execute();
- + statement.close();
- + }
- + catch (Exception e)
- + {
- + _log.log(Level.SEVERE, "Failed updating character online status.", e);
- + }
- + }
- +
- private void deleteRecipeData(int recipeId, boolean isDwarf)
- {
- try (Connection con = L2DatabaseFactory.getInstance().getConnection();
- @@ -2750,6 +2830,28 @@
- _pvpKills = pvpKills;
- }
- + public int getKillpts()
- + {
- + return _killpts;
- + }
- +
- + public void setKillPt(int killpts)
- + {
- + _killpts = killpts;
- + }
- +
- /**
- * @return the Fame of this L2PcInstance
- */
- @@ -6217,18 +6401,19 @@
- /**
- * Increase the pvp kills count and send the info to the player
- * @param target
- + * @throws SQLException
- */
- public void increasePvpKills(L2Character target)
- {
- +
- + setKillPt(getKillpts() + 2);9
- }
- /**
- @@ -7720,6 +7931,8 @@
- player.setName(rset.getString("char_name"));
- player._lastAccess = rset.getLong("lastAccess");
- + player.setKillPt(rset.getInt("killpts"));
- +
- player.getStat().setExp(rset.getLong("exp"));
- player.setExpBeforeDeath(rset.getLong("expBeforeDeath"));
- player.getStat().setLevel(rset.getByte("level"));
- @@ -8321,7 +8534,8 @@
- statement.setInt(50, getBookMarkSlot());
- statement.setInt(51, getVitalityPoints());
- statement.setString(52, getLang());
- - statement.setInt(53, getObjectId());
- + statement.setInt(53, getKillpts());
- + statement.setInt(54, getObjectId());
- statement.execute();
- statement.close();
- public boolean isInOlympiadMode()
- {
- return _inOlympiadMode;
- }
- \ No newline at end of file
- Index: dist/game/data/scripts/handlers/voicedcommandhandlers/kill.java
- ===================================================================
- --- dist/game/data/scripts/handlers/voicedcommandhandlers/kill.java (revision 0)
- +++ dist/game/data/scripts/handlers/voicedcommandhandlers/kill.java (revision 0)
- @@ -0,0 +1,230 @@
- +/*
- + * This program 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.
- + *
- + * This program 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 handlers.voicedcommandhandlers;
- +
- +import com.l2jserver.Config;
- +import com.l2jserver.gameserver.cache.HtmCache;
- +import com.l2jserver.gameserver.datatables.SkillTable;
- +import com.l2jserver.gameserver.handler.IVoicedCommandHandler;
- +import com.l2jserver.gameserver.model.actor.instance.L2KillInstance;
- +import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
- +import com.l2jserver.gameserver.model.actor.templates.L2NpcTemplate;
- +import com.l2jserver.gameserver.model.effects.L2Effect;
- +import com.l2jserver.gameserver.model.skills.L2Skill;
- +import com.l2jserver.gameserver.network.serverpackets.NpcHtmlMessage;
- +import com.l2jserver.gameserver.network.serverpackets.SkillCoolTime;
- +
- +/**
- + * This class trades Gold Bars for Adena and vice versa.
- + * @author Marwan
- + */
- +public class kill implements IVoicedCommandHandler
- +{
- + private static final String[] _voicedCommands =
- + {
- + "kill","killshop"
- + };
- +
- + private static final String[][] combatButtons = {
- + {"Full Heal", "hp", "icon.skill5934"},
- + {"Cure Debuff", "dbuff", "icon.skill0430"},
- + {"Bsoe", "bsoe", "icon.skill0430"},
- + {"Reuse Skills", "clearReuse", "icon.skill0430"},
- + {"Remove Karma", "clearKarma", "icon.skill0430"},
- + {"Ress Myself", "resMe", "icon.skill0430"},
- + };
- + public static void onBypass(L2PcInstance activeChar, String command)
- + {
- + if (command.equals("hp"))
- + {
- + if (activeChar.getKillpts() >= 10)
- + {
- + activeChar.setKillPt(activeChar.getKillpts() - 10);
- + activeChar.setCurrentHpMp(activeChar.getMaxHp(), activeChar.getMaxMp());
- + activeChar.setCurrentCp(activeChar.getMaxCp());
- + activeChar.sendMessage("Your Hp, Cp and Mp has been restored for 10 kill pts !");
- + }
- + else
- + {
- + activeChar.sendMessage("You need more kill points.");
- + }
- + }
- + else if (command.equals("dbuff"))
- + {
- + L2Effect[] effects = activeChar.getAllEffects();
- + if ((effects == null) || (effects.length == 0))
- + {
- + return;
- + }
- + if (activeChar.getKillpts() >= 10)
- + {
- + for (L2Effect e : effects)
- + {
- + if (e.getSkill().isDebuff())
- + {
- + e.exit();
- + }
- + }
- + activeChar.setKillPt(activeChar.getKillpts() - 10);
- + activeChar.sendMessage("Your debuffs has been removed for kill pts !");
- + }
- + else
- + {
- + activeChar.sendMessage("You need more kill pts.");
- + }
- + }
- + else if (command.equals("bsoe"))
- + {
- + if (activeChar.getKillpts() >= 10)
- + {
- + activeChar.setKillPt(activeChar.getKillpts() - 10);
- + L2Skill GM_escape = SkillTable.getInstance().getInfo(2100, 1);
- + activeChar.doCast(GM_escape);
- + activeChar.sendMessage("You have escaped from the battle for 10 kill pts !");
- + }
- + else
- + {
- + activeChar.sendMessage("You need more kill pts !");
- + }
- + }
- + else if (command.equals("clearReuse"))
- + {
- + if (activeChar.getKillpts() >= 10)
- + {
- + activeChar.setKillPt(activeChar.getKillpts() - 10);
- + activeChar.getSkillReuseTimeStamps().clear();
- + activeChar.getDisabledSkills().clear();
- + activeChar.sendPacket(new SkillCoolTime(activeChar));
- + activeChar.sendMessage("You have reused all skils for 10 kill pts!");
- + }
- + else
- + {
- + activeChar.sendMessage("You need more kill pts!");
- + }
- + }
- + else if (command.equals("clearKarma"))
- + {
- + if (activeChar.getKillpts() >= 10)
- + {
- + activeChar.setKillPt(activeChar.getKillpts() - 10);
- + activeChar.setKarma(0);
- + activeChar.sendMessage("You have cleared your karma for 10 kill pts");
- + }
- + else
- + {
- + activeChar.sendMessage("You need more kill pts!");
- + }
- + }
- + else if (command.equals("resMe"))
- + {
- + if (activeChar.isDead())
- + {
- + if (activeChar.getKillpts() >= 10)
- + {
- + activeChar.setKillPt(activeChar.getKillpts() - 10);
- + activeChar.restoreExp(100.0);
- + activeChar.doRevive();
- + activeChar.sendMessage("You have been ressurected for 10 kill pts !");
- + }
- + else
- + {
- + activeChar.sendMessage("You need more kill pts!");
- + }
- + }
- + }
- + shop(activeChar, combatButtons);
- + }
- +
- + @Override
- + public boolean useVoicedCommand(String command, L2PcInstance activeChar, String params)
- + {
- +
- + if (command.equals("kill")){
- + showUserPage(activeChar,"killnpc.htm");
- + }
- + if(command.equals("killshop")){
- +
- + shop(activeChar, combatButtons);
- + }
- + return false;
- + }
- +
- + public static void showUserPage(L2PcInstance activeChar, String filename)
- + {
- + String content = HtmCache.getInstance().getHtmForce(activeChar.getHtmlPrefix(), "data/html/killsystem/" + filename);
- + NpcHtmlMessage kill = new NpcHtmlMessage(5);
- + kill.setHtml(content);
- + kill.replace("%kill_points%", "" + activeChar.getKillpts());
- + kill.replace("%player_name%", activeChar.getName());
- + activeChar.sendPacket(kill);
- +
- + }
- + public static void shop(L2PcInstance activeChar, String[][] buttons)
- + {
- +
- + String text = "<html><head><title>Kill Shop</title></head><body>";
- + text += "";
- + text += "<center>";
- + text += "<table width=230>";
- + int buttonIndex = 0;
- + for (int i = 0; i < Math.ceil(buttons.length / (double) 2); i++)
- + {
- + text += "<tr>";
- + for (int x = 0; x < 2; x++)
- + {
- + if (buttonIndex < buttons.length)
- + {
- + text += "<td align=center><img src=\"" + buttons[buttonIndex][2] + "\" width=32 height=32></td>";
- + }
- + else
- + {
- + text += "<td></td>";
- + }
- + buttonIndex++;
- + }
- + buttonIndex -= 2;
- + text += "</tr>";
- + text += "<tr><td></td></tr>";
- + text += "<tr>";
- +
- + for (int x = 0; x < 2; x++)
- + {
- + if (buttonIndex < buttons.length)
- + {
- + text += "<td align=center><button value=\"" + buttons[buttonIndex][0] + "\" action=\"bypass -h _donate " + buttons[buttonIndex][1] + "\" width=130 height=26 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\"></td>";
- + }
- + else
- + {
- + text += "<td></td>";
- + }
- + buttonIndex++;
- + }
- + text += "</tr>";
- + text += "<tr><td></td></tr>";
- + }
- + text += "</body></html>";
- +
- + NpcHtmlMessage msg = new NpcHtmlMessage(activeChar.getObjectId());
- + msg.setHtml(text);
- + activeChar.sendPacket(msg);
- + }
- +
- + @Override
- +
- + public String[] getVoicedCommandList()
- + {
- + return _voicedCommands;
- + }
- +}
- \ No newline at end of file
- Index: java/com/l2jserver/gameserver/model/actor/instance/L2KillInstance.java
- ===================================================================
- --- java/com/l2jserver/gameserver/model/actor/instance/L2KillInstance.java (revision 0)
- +++ java/com/l2jserver/gameserver/model/actor/instance/L2KillInstance.java (revision 0)
- @@ -0,0 +1,251 @@
- +/* This program 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 2, or (at your option)
- + * any later version.
- + *
- + * This program 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, write to the Free Software
- + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
- + * 02111-1307, USA.
- + *
- + * http://www.gnu.org/copyleft/gpl.html
- + */
- +package com.l2jserver.gameserver.model.actor.instance;
- +
- +import com.l2jserver.gameserver.cache.HtmCache;
- +import com.l2jserver.gameserver.datatables.SkillTable;
- +import com.l2jserver.gameserver.model.actor.templates.L2NpcTemplate;
- +import com.l2jserver.gameserver.model.effects.L2Effect;
- +import com.l2jserver.gameserver.model.skills.L2Skill;
- +import com.l2jserver.gameserver.network.serverpackets.NpcHtmlMessage;
- +import com.l2jserver.gameserver.network.serverpackets.SkillCoolTime;
- +
- +/**
- + * @author Marwan
- + */
- +public class L2KillInstance extends L2NpcInstance
- +{
- +
- + public L2KillInstance(int objectId, L2NpcTemplate template)
- + {
- + super(objectId, template);
- + }
- +
- + private static final String[][] combatButtons =
- + {
- + {
- + "Full Heal",
- + "hp",
- + "icon.skill5934"
- + },
- + {
- + "Cure Debuff",
- + "dbuff",
- + "icon.skill0430"
- + },
- + {
- + "Bsoe",
- + "bsoe",
- + "icon.skill0430"
- + },
- + {
- + "Reuse Skills",
- + "clearReuse",
- + "icon.skill0430"
- + },
- + {
- + "Remove Karma",
- + "clearKarma",
- + "icon.skill0430"
- + },
- + {
- + "Ress Myself",
- + "resMe",
- + "icon.skill0430"
- + },
- + };
- +
- + public static void onBypass(L2PcInstance activeChar, String command)
- + {
- + if (command.equals("hp"))
- + {
- + if (activeChar.getKillpts() >= 10)
- + {
- + activeChar.setKillPt(activeChar.getKillpts() - 10);
- + activeChar.setCurrentHpMp(activeChar.getMaxHp(), activeChar.getMaxMp());
- + activeChar.setCurrentCp(activeChar.getMaxCp());
- + activeChar.sendMessage("Your Hp, Cp and Mp has been restored for 10 kill pts !");
- + }
- + else
- + {
- + activeChar.sendMessage("You need more kill points.");
- + }
- + }
- + else if (command.equals("dbuff"))
- + {
- + L2Effect[] effects = activeChar.getAllEffects();
- + if ((effects == null) || (effects.length == 0))
- + {
- + return;
- + }
- + if (activeChar.getKillpts() >= 10)
- + {
- + for (L2Effect e : effects)
- + {
- + if (e.getSkill().isDebuff())
- + {
- + e.exit();
- + }
- + }
- + activeChar.setKillPt(activeChar.getKillpts() - 10);
- + activeChar.sendMessage("Your debuffs has been removed for kill pts !");
- + }
- + else
- + {
- + activeChar.sendMessage("You need more kill pts.");
- + }
- + }
- + else if (command.equals("bsoe"))
- + {
- + if (activeChar.getKillpts() >= 10)
- + {
- + activeChar.setKillPt(activeChar.getKillpts() - 10);
- + L2Skill GM_escape = SkillTable.getInstance().getInfo(2100, 1);
- + activeChar.doCast(GM_escape);
- + activeChar.sendMessage("You have escaped from the battle for 10 kill pts !");
- + }
- + else
- + {
- + activeChar.sendMessage("You need more kill pts !");
- + }
- + }
- + else if (command.equals("clearReuse"))
- + {
- + if (activeChar.getKillpts() >= 10)
- + {
- + activeChar.setKillPt(activeChar.getKillpts() - 10);
- + activeChar.getSkillReuseTimeStamps().clear();
- + activeChar.getDisabledSkills().clear();
- + activeChar.sendPacket(new SkillCoolTime(activeChar));
- + activeChar.sendMessage("You have reused all skils for 10 kill pts!");
- + }
- + else
- + {
- + activeChar.sendMessage("You need more kill pts!");
- + }
- + }
- + else if (command.equals("clearKarma"))
- + {
- + if (activeChar.getKillpts() >= 10)
- + {
- + activeChar.setKillPt(activeChar.getKillpts() - 10);
- + activeChar.setKarma(0);
- + activeChar.sendMessage("You have cleared your karma for 10 kill pts");
- + }
- + else
- + {
- + activeChar.sendMessage("You need more kill pts!");
- + }
- + }
- + else if (command.equals("resMe"))
- + {
- + if (activeChar.isDead())
- + {
- + if (activeChar.getKillpts() >= 10)
- + {
- + activeChar.setKillPt(activeChar.getKillpts() - 10);
- + activeChar.restoreExp(100.0);
- + activeChar.doRevive();
- + activeChar.sendMessage("You have been ressurected for 10 kill pts !");
- + }
- + else
- + {
- + activeChar.sendMessage("You need more kill pts!");
- + }
- + }
- + }
- + shop(activeChar, combatButtons);
- + }
- +
- + @Override
- + public void onBypassFeedback(L2PcInstance activeChar, String command)
- + {
- +
- + if (command.startsWith("show"))
- + {
- + showUserPage(activeChar, "killnpc.htm");
- + }
- + if (command.startsWith("shop"))
- + {
- + shop(activeChar, combatButtons);
- +
- + }
- + }
- +
- + public static void showUserPage(L2PcInstance activeChar, String filename)
- + {
- + String content = HtmCache.getInstance().getHtmForce(activeChar.getHtmlPrefix(), "data/html/userpanel/" + filename);
- + NpcHtmlMessage kill = new NpcHtmlMessage(5);
- + kill.setHtml(content);
- + kill.replace("%kill_points%", "" + activeChar.getKillpts());
- + kill.replace("%player_name%", activeChar.getName());
- + activeChar.sendPacket(kill);
- +
- + }
- +
- + public static void shop(L2PcInstance activeChar, String[][] buttons)
- + {
- +
- + String text = "<html><head><title>Kill Shop</title></head><body>";
- + text += "";
- + text += "<center>";
- + text += "<table width=230>";
- + int buttonIndex = 0;
- + for (int i = 0; i < Math.ceil(buttons.length / (double) 2); i++)
- + {
- + text += "<tr>";
- + for (int x = 0; x < 2; x++)
- + {
- + if (buttonIndex < buttons.length)
- + {
- + text += "<td align=center><img src=\"" + buttons[buttonIndex][2] + "\" width=32 height=32></td>";
- + }
- + else
- + {
- + text += "<td></td>";
- + }
- + buttonIndex++;
- + }
- + buttonIndex -= 2;
- + text += "</tr>";
- + text += "<tr><td></td></tr>";
- + text += "<tr>";
- +
- + for (int x = 0; x < 2; x++)
- + {
- + if (buttonIndex < buttons.length)
- + {
- + text += "<td align=center><button value=\"" + buttons[buttonIndex][0] + "\" action=\"bypass -h _donate " + buttons[buttonIndex][1] + "\" width=130 height=26 back=\"L2UI_ct1.button_df\" fore=\"L2UI_ct1.button_df\"></td>";
- + }
- + else
- + {
- + text += "<td></td>";
- + }
- + buttonIndex++;
- + }
- + text += "</tr>";
- + text += "<tr><td></td></tr>";
- + }
- + text += "</body></html>";
- +
- + NpcHtmlMessage msg = new NpcHtmlMessage(activeChar.getObjectId());
- + msg.setHtml(text);
- + activeChar.sendPacket(msg);
- + }
- +
- +}
- Index: java/com/l2jserver/gameserver/network/clientpackets/RequestBypassToServer.java
- ===================================================================
- --- java/com/l2jserver/gameserver/network/clientpackets/RequestBypassToServer.java (revision 5588)
- +++ java/com/l2jserver/gameserver/network/clientpackets/RequestBypassToServer.java (working copy)
- @@ -26,6 +26,7 @@
- import com.l2jserver.gameserver.datatables.AdminTable;
- import com.l2jserver.gameserver.handler.AdminCommandHandler;
- import com.l2jserver.gameserver.handler.BypassHandler;
- +import com.l2jserver.gameserver.handler.Donate;
- import com.l2jserver.gameserver.handler.IAdminCommandHandler;
- import com.l2jserver.gameserver.handler.IBypassHandler;
- import com.l2jserver.gameserver.model.L2CharPosition;
- @@ -306,6 +307,10 @@
- handler.useBypass("arenachange " + (arenaId - 1), activeChar, null);
- }
- }
- + else if(_command.startsWith("_donate"))
- + {
- + Donate.onBypass(activeChar, _command.substring(8));
- + }
- else
- {
- Index: java/com/l2jserver/gameserver/network/clientpackets/Logout.java
- ===================================================================
- --- java/com/l2jserver/gameserver/network/clientpackets/Logout.java (revision 5667)
- +++ java/com/l2jserver/gameserver/network/clientpackets/Logout.java (working copy)
- @@ -18,6 +18,8 @@
- import java.util.logging.LogRecord;
- import java.util.logging.Logger;
- +import net.phoenixengine.PhoenixInterface;
- +
- import com.l2jserver.Config;
- import com.l2jserver.gameserver.SevenSignsFestival;
- import com.l2jserver.gameserver.model.L2Party;
- @@ -46,9 +48,8 @@
- @Override
- protected void runImpl()
- {
- final L2PcInstance player = getClient().getActiveChar();
- + player.savePts();
- if (player == null)
- {
- return;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement