Initial changes.

This commit is contained in:
MobiusDev
2018-09-11 22:29:39 +00:00
parent c6ff9df76d
commit 2ea60b1bb9
230 changed files with 5030 additions and 7500 deletions

View File

@@ -1,7 +1,7 @@
<html><body>
<center>
<font color="LEVEL">[The Town of %TOWN_NAME%]</font><br>
<img src="L2font-e.MAP_AGIT_%MAP%" width=270 height=270><br><br>
<img src="L2font-eu.MAP_AGIT_%MAP%" width=270 height=270><br><br>
</center>
<Button ALIGN=LEFT ICON="RETURN" action="bypass -h Quest ClanHallAuctioneer ClanHallAuctioneer.html">Back</Button>
</body></html>

View File

@@ -39,6 +39,7 @@ public final class EffectMasterHandler
EffectHandler.getInstance().registerHandler("AddHate", AddHate::new);
EffectHandler.getInstance().registerHandler("AddSkillBySkill", AddSkillBySkill::new);
EffectHandler.getInstance().registerHandler("AddTeleportBookmarkSlot", AddTeleportBookmarkSlot::new);
EffectHandler.getInstance().registerHandler("AgathionSlot", AgathionSlot::new);
EffectHandler.getInstance().registerHandler("AirBind", AirBind::new);
EffectHandler.getInstance().registerHandler("AreaDamage", AreaDamage::new);
EffectHandler.getInstance().registerHandler("AttackAttribute", AttackAttribute::new);

View File

@@ -236,7 +236,7 @@ public class AdminCreateItem implements IAdminCommandHandler
}
player.getInventory().destroyItem("AdminDelete", idval, numval, activeChar, null);
activeChar.sendPacket(new GMViewItemList(player));
activeChar.sendPacket(new GMViewItemList(1, player));
BuilderUtil.sendSysMessage(activeChar, "Item deleted.");
}
else
@@ -273,7 +273,7 @@ public class AdminCreateItem implements IAdminCommandHandler
ih.useItem(player, item, false);
}
}
activeChar.sendPacket(new GMViewItemList(player));
activeChar.sendPacket(new GMViewItemList(1, player));
}
else
{

View File

@@ -811,7 +811,7 @@ public class AdminEditChar implements IAdminCommandHandler
if ((target != null) && target.isPet())
{
activeChar.sendPacket(new GMViewItemList((L2PetInstance) target));
activeChar.sendPacket(new GMViewItemList(1, (L2PetInstance) target));
}
else
{

View File

@@ -29,6 +29,7 @@ import com.l2jmobius.gameserver.data.xml.impl.AppearanceItemData;
import com.l2jmobius.gameserver.data.xml.impl.ArmorSetsData;
import com.l2jmobius.gameserver.data.xml.impl.AttendanceRewardData;
import com.l2jmobius.gameserver.data.xml.impl.BuyListData;
import com.l2jmobius.gameserver.data.xml.impl.ClanShopData;
import com.l2jmobius.gameserver.data.xml.impl.DoorData;
import com.l2jmobius.gameserver.data.xml.impl.EnchantItemData;
import com.l2jmobius.gameserver.data.xml.impl.EnchantItemGroupsData;
@@ -69,7 +70,7 @@ public class AdminReload implements IAdminCommandHandler
"admin_reload"
};
private static final String RELOAD_USAGE = "Usage: //reload <config|access|npc|quest [quest_id|quest_name]|walker|htm[l] [file|directory]|multisell|buylist|teleport|skill|item|door|effect|handler|enchant|options|fishing>";
private static final String RELOAD_USAGE = "Usage: //reload <config|access|npc|quest [quest_id|quest_name]|walker|htm[l] [file|directory]|multisell|buylist|teleport|skill|item|door|effect|handler|enchant|options|fishing|clanshop>";
@Override
public boolean useAdminCommand(String command, L2PcInstance activeChar)
@@ -325,6 +326,12 @@ public class AdminReload implements IAdminCommandHandler
AdminData.getInstance().broadcastMessageToGMs(activeChar.getName() + ": Reloaded Fake Player Chat data.");
break;
}
case "clanshop":
{
ClanShopData.getInstance().load();
AdminData.getInstance().broadcastMessageToGMs(activeChar.getName() + ": Reloaded Clan Shop data.");
break;
}
default:
{
activeChar.sendMessage(RELOAD_USAGE);

View File

@@ -102,7 +102,8 @@ public class ClanWarehouse implements IBypassHandler
}
}
activeChar.sendPacket(new WareHouseWithdrawalList(activeChar, WareHouseWithdrawalList.CLAN));
activeChar.sendPacket(new WareHouseWithdrawalList(1, activeChar, WareHouseWithdrawalList.CLAN));
activeChar.sendPacket(new WareHouseWithdrawalList(2, activeChar, WareHouseWithdrawalList.CLAN));
return true;
}
else if (command.toLowerCase().startsWith(COMMANDS[1])) // DepositC
@@ -110,7 +111,8 @@ public class ClanWarehouse implements IBypassHandler
activeChar.sendPacket(ActionFailed.STATIC_PACKET);
activeChar.setActiveWarehouse(activeChar.getClan().getWarehouse());
activeChar.setInventoryBlockingStatus(true);
activeChar.sendPacket(new WareHouseDepositList(activeChar, WareHouseDepositList.CLAN));
activeChar.sendPacket(new WareHouseDepositList(1, activeChar, WareHouseDepositList.CLAN));
activeChar.sendPacket(new WareHouseDepositList(2, activeChar, WareHouseDepositList.CLAN));
return true;
}

View File

@@ -59,7 +59,8 @@ public class Freight implements IBypassHandler
activeChar.getActiveWarehouse().destroyItem("L2ItemInstance", i, activeChar, null);
}
}
activeChar.sendPacket(new WareHouseWithdrawalList(activeChar, WareHouseWithdrawalList.FREIGHT));
activeChar.sendPacket(new WareHouseWithdrawalList(1, activeChar, WareHouseWithdrawalList.FREIGHT));
activeChar.sendPacket(new WareHouseWithdrawalList(2, activeChar, WareHouseWithdrawalList.FREIGHT));
}
else
{

View File

@@ -160,7 +160,7 @@ public class Observation implements IBypassHandler
{
// enter mode
player.enterObserverMode(pos);
player.sendItemList(false);
player.sendItemList();
}
player.sendPacket(ActionFailed.STATIC_PACKET);
}

View File

@@ -65,7 +65,8 @@ public class PrivateWarehouse implements IBypassHandler
activeChar.sendPacket(ActionFailed.STATIC_PACKET);
activeChar.setActiveWarehouse(activeChar.getWarehouse());
activeChar.setInventoryBlockingStatus(true);
activeChar.sendPacket(new WareHouseDepositList(activeChar, WareHouseDepositList.PRIVATE));
activeChar.sendPacket(new WareHouseDepositList(1, activeChar, WareHouseDepositList.PRIVATE));
activeChar.sendPacket(new WareHouseDepositList(2, activeChar, WareHouseDepositList.PRIVATE));
return true;
}
@@ -89,7 +90,8 @@ public class PrivateWarehouse implements IBypassHandler
return;
}
player.sendPacket(new WareHouseWithdrawalList(player, WareHouseWithdrawalList.PRIVATE));
player.sendPacket(new WareHouseWithdrawalList(1, player, WareHouseWithdrawalList.PRIVATE));
player.sendPacket(new WareHouseWithdrawalList(2, player, WareHouseWithdrawalList.PRIVATE));
}
@Override

View File

@@ -0,0 +1,31 @@
/*
* This file is part of the L2J Mobius project.
*
* 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.effecthandlers;
import com.l2jmobius.gameserver.model.StatsSet;
import com.l2jmobius.gameserver.model.stats.Stats;
/**
* @author Mobius
*/
public class AgathionSlot extends AbstractStatAddEffect
{
public AgathionSlot(StatsSet params)
{
super(params, Stats.AGATHION_SLOTS);
}
}

View File

@@ -101,14 +101,16 @@ public final class PrivateStore implements IPlayerActionHandler
case PACKAGE_SELL:
{
activeChar.setPrivateStoreType(PrivateStoreType.SELL_MANAGE);
activeChar.sendPacket(new PrivateStoreManageListSell(activeChar, type == PrivateStoreType.PACKAGE_SELL));
activeChar.sendPacket(new PrivateStoreManageListSell(1, activeChar, type == PrivateStoreType.PACKAGE_SELL));
activeChar.sendPacket(new PrivateStoreManageListSell(2, activeChar, type == PrivateStoreType.PACKAGE_SELL));
break;
}
case BUY:
case BUY_MANAGE:
{
activeChar.setPrivateStoreType(PrivateStoreType.BUY_MANAGE);
activeChar.sendPacket(new PrivateStoreManageListBuy(activeChar));
activeChar.sendPacket(new PrivateStoreManageListBuy(1, activeChar));
activeChar.sendPacket(new PrivateStoreManageListBuy(2, activeChar));
break;
}
case MANUFACTURE: