Merged with released L2J-Unity files.

This commit is contained in:
mobiusdev
2016-06-12 01:34:09 +00:00
parent e003e87887
commit 635557f5da
18352 changed files with 3245113 additions and 2892959 deletions

View File

@@ -0,0 +1,18 @@
<html><head><body scroll="no">
<table border=0 cellpadding=0 cellspacing=0 width=292 height=358 background="L2UI_CH3.refinewnd_back_Pattern">
<tr><td valign="top" align="center">
<!-- Invitation Emblem -->
<table border=0 cellpadding=0 cellspacing=0>
<tr><td width=256 height=185 background="L2UI_CT1.HtmlWnd_DF_TextureBeautyShop"></td></tr>
</table>
<!-- //Invitation Emblem -->
<table border=0 cellpadding=0 cellspacing=0 width="272">
<tr><td align="center">You will be moved to the Beauty Shop.</td></tr>
<tr><td height="30"></td></tr>
<tr><td align="center">
<button action="bypass -h Quest LaVieEnRose beauty-change" value="OK" width="160" height="31" back="L2UI_CT1.Button_DF_Calculator_Down" fore="L2UI_CT1.Button_DF_Calculator">
<button action="bypass -h Quest LaVieEnRose cancel" value="Cancel" width="160" height="31" back="L2UI_CT1.Button_DF_Calculator_Down" fore="L2UI_CT1.Button_DF_Calculator">
</td></tr>
</table>
</td></tr></table>
</body></html>

View File

@@ -0,0 +1,18 @@
<html><head><body scroll="no">
<table border=0 cellpadding=0 cellspacing=0 width=292 height=358 background="L2UI_CH3.refinewnd_back_Pattern">
<tr><td valign="top" align="center">
<!-- Invitation Emblem -->
<table border=0 cellpadding=0 cellspacing=0>
<tr><td width=256 height=185 background="L2UI_CT1.HtmlWnd_DF_TextureBeautyShop"></td></tr>
</table>
<!-- //Invitation Emblem -->
<table border=0 cellpadding=0 cellspacing=0 width="272">
<tr><td align="center">You will be moved to the Beauty Shop.</td></tr>
<tr><td height="30"></td></tr>
<tr><td align="center">
<button action="bypass -h Quest LaVieEnRose beauty-restore" value="OK" width="160" height="31" back="L2UI_CT1.Button_DF_Calculator_Down" fore="L2UI_CT1.Button_DF_Calculator">
<button action="bypass -h Quest LaVieEnRose cancel" value="Cancel" width="160" height="31" back="L2UI_CT1.Button_DF_Calculator_Down" fore="L2UI_CT1.Button_DF_Calculator">
</td></tr>
</table>
</td></tr></table>
</body></html>

View File

@@ -0,0 +1,19 @@
<html><head><body scroll="no">
<table border=0 cellpadding=0 cellspacing=0 width=292 height=358 background="L2UI_CH3.refinewnd_back_Pattern">
<tr><td valign="top" align="center">
<!-- Invitation Emblem -->
<table border=0 cellpadding=0 cellspacing=0>
<tr><td width=256 height=185 background="L2UI_CT1.HtmlWnd_DF_TextureBeautyShop"></td></tr>
</table>
<!-- //Invitation Emblem -->
<table border=0 cellpadding=0 cellspacing=0 width="266" scroll="yes">
<tr><td height="20"><font color="af9878">Use Beauty Shop</font></td></tr>
<tr><td align="center">Change up your face and hair whenever you want! We can even hold your purchases here at the shop.<br></td></tr>
<tr><td height="20"><font color="af9878">Hair Color</font></td></tr>
<tr><td align="center">Hair colors are unique to hairdos, so be sure to buy a new hair color for a new hairdo even if you have the same color for a previous hairdo!<br></td></tr>
<tr><td height="20"><font color="af9878">Hair Accessory On/Off Button</font></td></tr>
<tr><td align="center">Don't forget that hair styles are visible only when the hair accessory button in your inventory is off!<br></td></tr>
</table>
</td></tr></table>
<br><br>
</body></html>

View File

@@ -0,0 +1,17 @@
<html><head><body scroll="no">
<table border=0 cellpadding=0 cellspacing=0 width=292 height=358 background="L2UI_CH3.refinewnd_back_Pattern">
<tr><td valign="top" align="center">
<!-- Invitation Emblem -->
<table border=0 cellpadding=0 cellspacing=0>
<tr><td width=256 height=185 background="L2UI_CT1.HtmlWnd_DF_TextureBeautyShop"></td></tr>
</table>
<!-- //Invitation Emblem -->
<table border=0 cellpadding=0 cellspacing=0 width="272">
<tr><td align="center" height="30"><font color="af9878">I'm sorry.</font></td></tr>
<tr><td align="center">That's only available for characters <br> who have had their appearance changed at the Beauty Shop.</td></tr>
<tr><td height="30"></td></tr>
<tr><td align="center">
<button action="bypass -h menu_select?ask=-81588&reply=6" value="OK" width="160" height="31" back="L2UI_CT1.Button_DF_Calculator_Down" fore="L2UI_CT1.Button_DF_Calculator"></td></tr>
</table>
</td></tr></table>
</body></html>

View File

@@ -0,0 +1,22 @@
<html><head><body scroll="no">
<table border=0 cellpadding=0 cellspacing=0 width=292 height=358 background="L2UI_CH3.refinewnd_back_Pattern">
<tr><td valign="top" align="center">
<!-- Invitation Emblem -->
<table border=0 cellpadding=0 cellspacing=0>
<tr><td width=256 height=175 background="L2UI_CT1.HtmlWnd_DF_TextureBeautyShop"></td></tr>
</table>
<!-- //Invitation Emblem -->
<table border=0 cellpadding=0 cellspacing=0 width="272">
<tr><td align="center" height="30"><font color="af9878">Welcome to our Beauty Shop.</font></td></tr>
<tr><td align="center">We can change your hairstyle, or give you a completely new look.<br1>
What do you say?</td></tr>
<tr><td height="10"></td></tr>
<tr><td align="center"><button action="bypass -h Quest LaVieEnRose 33825-1.html" value="Use Beauty Shop" width="200" height="31" back="L2UI_CT1.HtmlWnd_DF_BeautyShop_Down" fore="L2UI_CT1.HtmlWnd_DF_BeautyShop"></td></tr>
<tr><td height="10"></td></tr>
<tr><td align="center"><button action="bypass -h Quest LaVieEnRose restore_appearance" value="Restore Appearance" width="200" height="31" back="L2UI_CT1.HtmlWnd_DF_Reset_Down" fore="L2UI_CT1.HtmlWnd_DF_Reset"></td></tr>
<tr><td height="10"></td></tr>
<tr><td align="center"><button action="bypass -h Quest LaVieEnRose 33825-help.html" value="Help" width="200" height="31" back="L2UI_CT1.OlympiadWnd_DF_Info_Down" fore="L2UI_CT1.OlympiadWnd_DF_Info"></td></tr>
<tr><td height="10"></td></tr>
</table>
</td></tr></table>
</body></html>

View File

@@ -0,0 +1,154 @@
/*
* 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 ai.others.LaVieEnRose;
import com.l2jmobius.gameserver.enums.ChatType;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
import com.l2jmobius.gameserver.model.ceremonyofchaos.CeremonyOfChaosEvent;
import com.l2jmobius.gameserver.model.olympiad.OlympiadManager;
import com.l2jmobius.gameserver.network.NpcStringId;
import com.l2jmobius.gameserver.network.SystemMessageId;
import com.l2jmobius.gameserver.network.serverpackets.ExResponseBeautyList;
import com.l2jmobius.gameserver.network.serverpackets.ExResponseResetList;
import com.l2jmobius.gameserver.network.serverpackets.ExShowBeautyMenu;
import ai.AbstractNpcAI;
/**
* La Vie En Rose AI.
* @author Sdw
*/
public final class LaVieEnRose extends AbstractNpcAI
{
// NPCs
private static final int LA_VIE_EN_ROSE = 33825;
private static final int BEAUTY_SHOP_HELPER = 33854;
private LaVieEnRose()
{
addStartNpc(LA_VIE_EN_ROSE);
addTalkId(LA_VIE_EN_ROSE);
addFirstTalkId(LA_VIE_EN_ROSE);
addSpawnId(BEAUTY_SHOP_HELPER);
}
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
String htmltext = null;
switch (event)
{
case "33825.html":
case "33825-1.html":
case "33825-2.html":
case "33825-help.html":
{
htmltext = event;
break;
}
case "restore_appearance":
{
if (canUseBeautyShop(player))
{
if (player.getVariables().hasVariable("visualHairId") || player.getVariables().hasVariable("visualFaceId") || player.getVariables().hasVariable("visualHairColorId"))
{
htmltext = "33825-2.html";
}
else
{
htmltext = "33825-norestore.html";
}
}
break;
}
case "beauty-change":
{
if (canUseBeautyShop(player))
{
player.sendPacket(new ExShowBeautyMenu(player, ExShowBeautyMenu.MODIFY_APPEARANCE));
player.sendPacket(new ExResponseBeautyList(player, ExResponseBeautyList.SHOW_FACESHAPE));
}
break;
}
case "beauty-restore":
{
if (canUseBeautyShop(player))
{
player.sendPacket(new ExShowBeautyMenu(player, ExShowBeautyMenu.RESTORE_APPEARANCE));
player.sendPacket(new ExResponseResetList(player));
}
break;
}
case "SPAM_TEXT":
{
npc.broadcastSay(ChatType.NPC_GENERAL, NpcStringId.THE_BEAUTY_SHOP_IS_OPEN_COME_ON_IN);
startQuestTimer("SPAM_TEXT2", 2500, npc, null);
break;
}
case "SPAM_TEXT2":
{
npc.broadcastSay(ChatType.NPC_GENERAL, NpcStringId.YOU_CAN_LOOK_GOOD_TOO_BUDDY_COME_ON_COME_ON);
startQuestTimer("SPAM_TEXT3", 2500, npc, null);
break;
}
case "SPAM_TEXT3":
{
npc.broadcastSay(ChatType.NPC_GENERAL, NpcStringId.EVERYONE_COME_ON_LET_S_GO_GANGNAM_STYLE);
break;
}
case "cancel":
default:
{
break;
}
}
return htmltext;
}
private boolean canUseBeautyShop(L2PcInstance player)
{
if (player.isInOlympiadMode() || OlympiadManager.getInstance().isRegistered(player))
{
player.sendPacket(SystemMessageId.YOU_CANNOT_USE_THE_BEAUTY_SHOP_WHILE_REGISTERED_IN_THE_OLYMPIAD);
return false;
}
if (player.isOnEvent(CeremonyOfChaosEvent.class))
{
player.sendPacket(SystemMessageId.YOU_CANNOT_USE_THE_BEAUTY_SHOP_WHILE_REGISTERED_IN_THE_CEREMONY_OF_CHAOS);
return false;
}
// player.sendPacket(SystemMessageId.YOU_CANNOT_USE_THE_BEAUTY_SHOP_AS_THE_NPC_SERVER_IS_CURRENTLY_NOT_IN_FUNCTION);
// player.sendPacket(SystemMessageId.YOU_CANNOT_USE_THE_BEAUTY_SHOP_WHILE_USING_THE_AUTOMATIC_REPLACEMENT);
return true;
}
@Override
public String onSpawn(L2Npc npc)
{
startQuestTimer("SPAM_TEXT", (5 * 60 * 1000), npc, null, true);
return super.onSpawn(npc);
}
public static void main(String[] args)
{
new LaVieEnRose();
}
}