This commit is contained in:
19
trunk/dist/game/data/scripts/ai/npc/LaVieEnRose/33825-1.html
vendored
Normal file
19
trunk/dist/game/data/scripts/ai/npc/LaVieEnRose/33825-1.html
vendored
Normal 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="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>
|
19
trunk/dist/game/data/scripts/ai/npc/LaVieEnRose/33825-2.html
vendored
Normal file
19
trunk/dist/game/data/scripts/ai/npc/LaVieEnRose/33825-2.html
vendored
Normal 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="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>
|
19
trunk/dist/game/data/scripts/ai/npc/LaVieEnRose/33825-help.html
vendored
Normal file
19
trunk/dist/game/data/scripts/ai/npc/LaVieEnRose/33825-help.html
vendored
Normal 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>
|
17
trunk/dist/game/data/scripts/ai/npc/LaVieEnRose/33825-norestore.html
vendored
Normal file
17
trunk/dist/game/data/scripts/ai/npc/LaVieEnRose/33825-norestore.html
vendored
Normal 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>
|
22
trunk/dist/game/data/scripts/ai/npc/LaVieEnRose/33825.html
vendored
Normal file
22
trunk/dist/game/data/scripts/ai/npc/LaVieEnRose/33825.html
vendored
Normal 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=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">Welcome to our Beauty Shop.</font></td></tr>
|
||||
<tr><td align="center">We can change your hairstyle, or give you a completely new look. <br>
|
||||
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>
|
96
trunk/dist/game/data/scripts/ai/npc/LaVieEnRose/LaVieEnRose.java
vendored
Normal file
96
trunk/dist/game/data/scripts/ai/npc/LaVieEnRose/LaVieEnRose.java
vendored
Normal file
@@ -0,0 +1,96 @@
|
||||
/*
|
||||
* Copyright (C) 2004-2014 L2J DataPack
|
||||
*
|
||||
* This file is part of L2J DataPack.
|
||||
*
|
||||
* L2J DataPack 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 DataPack 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.npc.LaVieEnRose;
|
||||
|
||||
import ai.npc.AbstractNpcAI;
|
||||
|
||||
import com.l2jserver.gameserver.model.actor.L2Npc;
|
||||
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jserver.gameserver.network.serverpackets.ExResponseBeautyList;
|
||||
import com.l2jserver.gameserver.network.serverpackets.ExResponseResetList;
|
||||
import com.l2jserver.gameserver.network.serverpackets.ExShowBeautyMenu;
|
||||
|
||||
/**
|
||||
* @author Sdw
|
||||
*/
|
||||
public class LaVieEnRose extends AbstractNpcAI
|
||||
{
|
||||
private static final int LA_VIE_EN_ROSE = 33825;
|
||||
|
||||
private LaVieEnRose()
|
||||
{
|
||||
super(LaVieEnRose.class.getSimpleName(), "ai/npc");
|
||||
addStartNpc(LA_VIE_EN_ROSE);
|
||||
addTalkId(LA_VIE_EN_ROSE);
|
||||
addFirstTalkId(LA_VIE_EN_ROSE);
|
||||
}
|
||||
|
||||
@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 (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":
|
||||
{
|
||||
player.sendPacket(new ExShowBeautyMenu(player, ExShowBeautyMenu.MODIFY_APPEARANCE));
|
||||
player.sendPacket(new ExResponseBeautyList(player, ExResponseBeautyList.SHOW_FACESHAPE));
|
||||
break;
|
||||
}
|
||||
case "beauty-restore":
|
||||
{
|
||||
player.sendPacket(new ExShowBeautyMenu(player, ExShowBeautyMenu.RESTORE_APPEARANCE));
|
||||
player.sendPacket(new ExResponseResetList(player));
|
||||
break;
|
||||
}
|
||||
case "cancel":
|
||||
default:
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
new LaVieEnRose();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user