else if (player.isMaryRequest())
{
// check for formalwear
if(Config.L2JMOD_WEDDING_FORMALWEAR)
{
Inventory inv3 = player.getInventory();
L2ItemInstance item3 = inv3.getPaperdollItem(10);
if(null==item3)
{
player.setIsWearingFormalWear(false);
}
else
{
String strItem = Integer.toString(item3.getItemId());
String frmWear = Integer.toString(6408);
player.sendMessage(strItem);
if(strItem.equals(frmWear))
{
player.setIsWearingFormalWear(true);
}else{
player.setIsWearingFormalWear(false);
}
}
}
if(Config.L2JMOD_WEDDING_FORMALWEAR && !player.isWearingFormalWear())
{
filename = "data/html/mods/Wedding_noformal.htm";
sendHtmlMessage(player, filename, replace);
return;
}
filename = "data/html/mods/Wedding_ask.htm";
player.setMaryRequest(false);
ptarget.setMaryRequest(false);
replace = ptarget.getName();
sendHtmlMessage(player, filename, replace);
return;
}
else if (command.startsWith("AskWedding"))
{
// check for formalwear
if(Config.L2JMOD_WEDDING_FORMALWEAR)
{
Inventory inv3 = player.getInventory();
L2ItemInstance item3 = inv3.getPaperdollItem(10);
if (null==item3)
{
player.setIsWearingFormalWear(false);
}