Partial sync L2jUnity free release Feb 16th 2015.
This commit is contained in:
@@ -36,7 +36,6 @@ import com.l2jmobius.gameserver.enums.ShortcutType;
|
||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jmobius.gameserver.model.interfaces.IRestorable;
|
||||
import com.l2jmobius.gameserver.network.serverpackets.SendMacroList;
|
||||
import com.l2jmobius.util.StringUtil;
|
||||
|
||||
public class MacroList implements IRestorable
|
||||
{
|
||||
@@ -136,10 +135,10 @@ public class MacroList implements IRestorable
|
||||
final StringBuilder sb = new StringBuilder(300);
|
||||
for (MacroCmd cmd : macro.getCommands())
|
||||
{
|
||||
StringUtil.append(sb, String.valueOf(cmd.getType().ordinal()), ",", String.valueOf(cmd.getD1()), ",", String.valueOf(cmd.getD2()));
|
||||
sb.append(cmd.getType().ordinal() + "," + cmd.getD1() + "," + cmd.getD2());
|
||||
if ((cmd.getCmd() != null) && (cmd.getCmd().length() > 0))
|
||||
{
|
||||
StringUtil.append(sb, ",", cmd.getCmd());
|
||||
sb.append("," + cmd.getCmd());
|
||||
}
|
||||
sb.append(';');
|
||||
}
|
||||
|
@@ -34,7 +34,6 @@ import com.l2jmobius.gameserver.network.serverpackets.NpcHtmlMessage;
|
||||
import com.l2jmobius.gameserver.network.serverpackets.TutorialCloseHtml;
|
||||
import com.l2jmobius.gameserver.network.serverpackets.TutorialShowQuestionMark;
|
||||
import com.l2jmobius.gameserver.network.serverpackets.UserInfo;
|
||||
import com.l2jmobius.util.StringUtil;
|
||||
|
||||
/**
|
||||
* This class ...
|
||||
@@ -295,7 +294,7 @@ public final class L2ClassMasterInstance extends L2MerchantInstance
|
||||
}
|
||||
if (validateClassId(currentClassId, cid) && (cid.level() == level))
|
||||
{
|
||||
StringUtil.append(menu, "<a action=\"bypass -h npc_%objectId%_change_class ", String.valueOf(cid.getId()), "\">", ClassListData.getInstance().getClass(cid).getClientCode(), "</a><br>");
|
||||
menu.append("<a action=\"bypass -h npc_%objectId%_change_class " + cid.getId() + "\">" + ClassListData.getInstance().getClass(cid).getClientCode() + "</a><br>");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -346,7 +345,7 @@ public final class L2ClassMasterInstance extends L2MerchantInstance
|
||||
}
|
||||
if (validateClassId(currentClassId, cid))
|
||||
{
|
||||
StringUtil.append(menu, "<a action=\"bypass -h AlternateClassMaster ", String.valueOf(cid.getId()), "\">", ClassListData.getInstance().getClass(cid).getEscapedClientCode(), "</a><br>");
|
||||
menu.append("<a action=\"link CO" + cid.getId() + "\">" + ClassListData.getInstance().getClass(cid).getEscapedClientCode() + "</a><br>");
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -32,7 +32,6 @@ import com.l2jmobius.gameserver.network.SystemMessageId;
|
||||
import com.l2jmobius.gameserver.network.serverpackets.ExAcquirableSkillListByClass;
|
||||
import com.l2jmobius.gameserver.network.serverpackets.NpcHtmlMessage;
|
||||
import com.l2jmobius.gameserver.network.serverpackets.SystemMessage;
|
||||
import com.l2jmobius.util.StringUtil;
|
||||
|
||||
public class L2NpcInstance extends L2Npc
|
||||
{
|
||||
@@ -112,7 +111,7 @@ public class L2NpcInstance extends L2Npc
|
||||
if (((L2NpcInstance) npc).getClassesToTeach().isEmpty())
|
||||
{
|
||||
final NpcHtmlMessage html = new NpcHtmlMessage(npc.getObjectId());
|
||||
final String sb = StringUtil.concat("<html><body>I cannot teach you. My class list is empty.<br>Ask admin to fix it. Need add my npcid and classes to skill_learn.sql.<br>NpcId:", String.valueOf(npcId), ", Your classId:", String.valueOf(player.getClassId().getId()), "</body></html>");
|
||||
final String sb = "<html><body>I cannot teach you. My class list is empty.<br>Ask admin to fix it. Need add my npcid and classes to skill_learn.sql.<br>NpcId:" + npcId + ", Your classId:" + player.getClassId().getId() + "</body></html>";
|
||||
html.setHtml(sb);
|
||||
player.sendPacket(html);
|
||||
return;
|
||||
|
@@ -287,6 +287,7 @@ import com.l2jmobius.gameserver.network.serverpackets.ExSubjobInfo;
|
||||
import com.l2jmobius.gameserver.network.serverpackets.ExUseSharedGroupItem;
|
||||
import com.l2jmobius.gameserver.network.serverpackets.ExUserInfoAbnormalVisualEffect;
|
||||
import com.l2jmobius.gameserver.network.serverpackets.ExUserInfoCubic;
|
||||
import com.l2jmobius.gameserver.network.serverpackets.ExUserInfoFishing;
|
||||
import com.l2jmobius.gameserver.network.serverpackets.ExUserInfoInvenWeight;
|
||||
import com.l2jmobius.gameserver.network.serverpackets.FlyToLocation.FlyType;
|
||||
import com.l2jmobius.gameserver.network.serverpackets.GameGuardQuery;
|
||||
@@ -303,6 +304,7 @@ import com.l2jmobius.gameserver.network.serverpackets.ObservationMode;
|
||||
import com.l2jmobius.gameserver.network.serverpackets.ObservationReturn;
|
||||
import com.l2jmobius.gameserver.network.serverpackets.PartySmallWindowUpdate;
|
||||
import com.l2jmobius.gameserver.network.serverpackets.PetInventoryUpdate;
|
||||
import com.l2jmobius.gameserver.network.serverpackets.PlaySound;
|
||||
import com.l2jmobius.gameserver.network.serverpackets.PledgeShowMemberListDelete;
|
||||
import com.l2jmobius.gameserver.network.serverpackets.PledgeShowMemberListUpdate;
|
||||
import com.l2jmobius.gameserver.network.serverpackets.PrivateStoreListBuy;
|
||||
@@ -11832,7 +11834,7 @@ public final class L2PcInstance extends L2Playable
|
||||
_fishx = _x;
|
||||
_fishy = _y;
|
||||
_fishz = _z;
|
||||
// broadcastUserInfo();
|
||||
|
||||
// Starts fishing
|
||||
final int lvl = getRandomFishLvl();
|
||||
final int grade = getRandomFishGrade();
|
||||
@@ -11852,9 +11854,9 @@ public final class L2PcInstance extends L2Playable
|
||||
{
|
||||
_fish.setFishGroup(-1);
|
||||
}
|
||||
// sendMessage("Hook x,y: " + _x + "," + _y + " - Water Z, Player Z:" + _z + ", " + getZ()); // debug line, uncoment to show coordinates used in fishing.
|
||||
broadcastPacket(new ExFishingStart(this, _fish.getFishGroup(), _x, _y, _z, _lure.isNightLure()));
|
||||
// sendPacket(new PlaySound(1, "SF_P_01", 0, 0, 0, 0, 0));
|
||||
sendPacket(new ExUserInfoFishing(this));
|
||||
sendPacket(new PlaySound(1, "SF_P_01", 0, 0, 0, 0, 0));
|
||||
startLookingForFishTask();
|
||||
}
|
||||
|
||||
|
@@ -54,7 +54,6 @@ import com.l2jmobius.gameserver.network.serverpackets.NpcHtmlMessage;
|
||||
import com.l2jmobius.gameserver.network.serverpackets.SocialAction;
|
||||
import com.l2jmobius.gameserver.network.serverpackets.SystemMessage;
|
||||
import com.l2jmobius.gameserver.network.serverpackets.UserInfo;
|
||||
import com.l2jmobius.util.StringUtil;
|
||||
|
||||
/**
|
||||
* Hero entity.
|
||||
@@ -464,19 +463,19 @@ public class Hero
|
||||
{
|
||||
breakat = i;
|
||||
final StatsSet diaryEntry = list.get(i);
|
||||
StringUtil.append(fList, "<tr><td>");
|
||||
fList.append("<tr><td>");
|
||||
if (color)
|
||||
{
|
||||
StringUtil.append(fList, "<table width=270 bgcolor=\"131210\">");
|
||||
fList.append("<table width=270 bgcolor=\"131210\">");
|
||||
}
|
||||
else
|
||||
{
|
||||
StringUtil.append(fList, "<table width=270>");
|
||||
fList.append("<table width=270>");
|
||||
}
|
||||
StringUtil.append(fList, "<tr><td width=270><font color=\"LEVEL\">" + diaryEntry.getString("date") + ":xx</font></td></tr>");
|
||||
StringUtil.append(fList, "<tr><td width=270>" + diaryEntry.getString("action") + "</td></tr>");
|
||||
StringUtil.append(fList, "<tr><td> </td></tr></table>");
|
||||
StringUtil.append(fList, "</td></tr>");
|
||||
fList.append("<tr><td width=270><font color=\"LEVEL\">" + diaryEntry.getString("date") + ":xx</font></td></tr>");
|
||||
fList.append("<tr><td width=270>" + diaryEntry.getString("action") + "</td></tr>");
|
||||
fList.append("<tr><td> </td></tr></table>");
|
||||
fList.append("</td></tr>");
|
||||
color = !color;
|
||||
counter++;
|
||||
if (counter >= perpage)
|
||||
@@ -552,19 +551,19 @@ public class Hero
|
||||
{
|
||||
breakat = i;
|
||||
final StatsSet fight = heroFights.get(i);
|
||||
StringUtil.append(fList, "<tr><td>");
|
||||
fList.append("<tr><td>");
|
||||
if (color)
|
||||
{
|
||||
StringUtil.append(fList, "<table width=270 bgcolor=\"131210\">");
|
||||
fList.append("<table width=270 bgcolor=\"131210\">");
|
||||
}
|
||||
else
|
||||
{
|
||||
StringUtil.append(fList, "<table width=270>");
|
||||
fList.append("<table width=270>");
|
||||
}
|
||||
StringUtil.append(fList, "<tr><td width=220><font color=\"LEVEL\">" + fight.getString("start") + "</font> " + fight.getString("result") + "</td><td width=50 align=right>" + (fight.getInt("classed") > 0 ? "<font color=\"FFFF99\">cls</font>" : "<font color=\"999999\">non-cls<font>") + "</td></tr>");
|
||||
StringUtil.append(fList, "<tr><td width=220>vs " + fight.getString("oponent") + " (" + fight.getString("oponentclass") + ")</td><td width=50 align=right>(" + fight.getString("time") + ")</td></tr>");
|
||||
StringUtil.append(fList, "<tr><td colspan=2> </td></tr></table>");
|
||||
StringUtil.append(fList, "</td></tr>");
|
||||
fList.append("<tr><td width=220><font color=\"LEVEL\">" + fight.getString("start") + "</font> " + fight.getString("result") + "</td><td width=50 align=right>" + (fight.getInt("classed") > 0 ? "<font color=\"FFFF99\">cls</font>" : "<font color=\"999999\">non-cls<font>") + "</td></tr>");
|
||||
fList.append("<tr><td width=220>vs " + fight.getString("oponent") + " (" + fight.getString("oponentclass") + ")</td><td width=50 align=right>(" + fight.getString("time") + ")</td></tr>");
|
||||
fList.append("<tr><td colspan=2> </td></tr></table>");
|
||||
fList.append("</td></tr>");
|
||||
color = !color;
|
||||
counter++;
|
||||
if (counter >= perpage)
|
||||
|
@@ -52,7 +52,7 @@ public class Message
|
||||
private String _receiverName = null;
|
||||
private final String _subject, _content;
|
||||
private boolean _unread, _returned;
|
||||
private MailType _messageType = MailType.REGULAR;
|
||||
private final MailType _messageType;
|
||||
private boolean _deletedBySender;
|
||||
private boolean _deletedByReceiver;
|
||||
private final long _reqAdena;
|
||||
@@ -112,6 +112,7 @@ public class Message
|
||||
_deletedBySender = false;
|
||||
_deletedByReceiver = false;
|
||||
_reqAdena = reqAdena;
|
||||
_messageType = MailType.REGULAR;
|
||||
}
|
||||
|
||||
/*
|
||||
|
@@ -55,7 +55,6 @@ import com.l2jmobius.gameserver.network.serverpackets.MagicSkillUse;
|
||||
import com.l2jmobius.gameserver.network.serverpackets.NpcHtmlMessage;
|
||||
import com.l2jmobius.gameserver.network.serverpackets.SystemMessage;
|
||||
import com.l2jmobius.util.Rnd;
|
||||
import com.l2jmobius.util.StringUtil;
|
||||
|
||||
/**
|
||||
* @author HorridoJoho
|
||||
@@ -540,7 +539,7 @@ public class TvTEvent
|
||||
return "-";
|
||||
}
|
||||
|
||||
return StringUtil.concat(String.valueOf(itemNum), " ", ItemTable.getInstance().getTemplate(itemId).getName());
|
||||
return itemNum + " " + ItemTable.getInstance().getTemplate(itemId).getName();
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -43,7 +43,7 @@ import com.l2jmobius.gameserver.model.items.type.WeaponType;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
import com.l2jmobius.gameserver.network.serverpackets.ExUserInfoEquipSlot;
|
||||
import com.l2jmobius.gameserver.network.serverpackets.SkillCoolTime;
|
||||
import com.l2jmobius.util.StringUtil;
|
||||
import com.l2jmobius.util.Util;
|
||||
|
||||
/**
|
||||
* This class manages inventory
|
||||
@@ -1678,7 +1678,7 @@ public abstract class Inventory extends ItemContainer
|
||||
default:
|
||||
{
|
||||
_log.info("Unhandled slot type: " + slot);
|
||||
_log.info(StringUtil.getTraceString(Thread.currentThread().getStackTrace()));
|
||||
_log.info(Util.getTraceString(Thread.currentThread().getStackTrace()));
|
||||
}
|
||||
}
|
||||
if (pdollSlot < 0)
|
||||
|
@@ -20,7 +20,6 @@ import com.l2jmobius.gameserver.model.StatsSet;
|
||||
import com.l2jmobius.gameserver.model.holders.SkillHolder;
|
||||
import com.l2jmobius.gameserver.model.items.type.ArmorType;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
import com.l2jmobius.util.StringUtil;
|
||||
|
||||
/**
|
||||
* This class is dedicated to the management of armors.
|
||||
@@ -86,7 +85,7 @@ public final class L2Armor extends L2Item
|
||||
catch (Exception nfe)
|
||||
{
|
||||
// Incorrect syntax, don't add new skill
|
||||
_log.info(StringUtil.concat("> Couldnt parse ", skill, " in armor enchant skills! item ", toString()));
|
||||
_log.info("> Couldnt parse " + skill + " in armor enchant skills! item " + this);
|
||||
}
|
||||
if ((id > 0) && (level > 0))
|
||||
{
|
||||
|
@@ -23,7 +23,6 @@ import com.l2jmobius.gameserver.model.L2ExtractableProduct;
|
||||
import com.l2jmobius.gameserver.model.StatsSet;
|
||||
import com.l2jmobius.gameserver.model.itemcontainer.Inventory;
|
||||
import com.l2jmobius.gameserver.model.items.type.EtcItemType;
|
||||
import com.l2jmobius.util.StringUtil;
|
||||
|
||||
/**
|
||||
* This class is dedicated to the management of EtcItem.
|
||||
@@ -96,7 +95,7 @@ public final class L2EtcItem extends L2Item
|
||||
final String[] data = part.split(",");
|
||||
if ((data.length != 4) && (data.length != 6))
|
||||
{
|
||||
_log.info(StringUtil.concat("> Couldnt parse ", part, " in capsuled_items! item ", toString()));
|
||||
_log.info("> Couldnt parse " + part + " in capsuled_items! item " + this);
|
||||
continue;
|
||||
}
|
||||
final int itemId = Integer.parseInt(data[0]);
|
||||
@@ -104,7 +103,7 @@ public final class L2EtcItem extends L2Item
|
||||
final int max = Integer.parseInt(data[2]);
|
||||
if (max < min)
|
||||
{
|
||||
_log.info(StringUtil.concat("> Max amount < Min amount in ", part, ", item ", toString()));
|
||||
_log.info("> Max amount < Min amount in " + part + ", item " + this);
|
||||
continue;
|
||||
}
|
||||
final double chance = Double.parseDouble(data[3]);
|
||||
@@ -116,7 +115,7 @@ public final class L2EtcItem extends L2Item
|
||||
maxEnchant = Integer.parseInt(data[5]);
|
||||
if (maxEnchant < minEnchant)
|
||||
{
|
||||
_log.info(StringUtil.concat("> Max enchant < Min enchant in ", part, ", item ", toString()));
|
||||
_log.info("> Max enchant < Min enchant in " + part + ", item " + this);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
@@ -48,7 +48,6 @@ import com.l2jmobius.gameserver.model.stats.functions.AbstractFunction;
|
||||
import com.l2jmobius.gameserver.model.stats.functions.FuncTemplate;
|
||||
import com.l2jmobius.gameserver.network.SystemMessageId;
|
||||
import com.l2jmobius.gameserver.network.serverpackets.SystemMessage;
|
||||
import com.l2jmobius.util.StringUtil;
|
||||
|
||||
/**
|
||||
* This class contains all informations concerning the item (weapon, armor, etc).<BR>
|
||||
@@ -66,7 +65,7 @@ public abstract class L2Item extends ListenersContainer implements IIdentifiable
|
||||
public static final int TYPE1_WEAPON_RING_EARRING_NECKLACE = 0;
|
||||
public static final int TYPE1_SHIELD_ARMOR = 1;
|
||||
public static final int TYPE1_ITEM_QUESTITEM_ADENA = 4;
|
||||
|
||||
|
||||
public static final int TYPE2_WEAPON = 0;
|
||||
public static final int TYPE2_SHIELD_ARMOR = 1;
|
||||
public static final int TYPE2_ACCESSORY = 2;
|
||||
@@ -112,43 +111,43 @@ public abstract class L2Item extends ListenersContainer implements IIdentifiable
|
||||
|
||||
public static final int SLOT_MULTI_ALLWEAPON = SLOT_LR_HAND | SLOT_R_HAND;
|
||||
|
||||
private int _itemId;
|
||||
private int _displayId;
|
||||
private String _name;
|
||||
private String _additionalName;
|
||||
private String _icon;
|
||||
private int _weight;
|
||||
private boolean _stackable;
|
||||
private MaterialType _materialType;
|
||||
private CrystalType _crystalType;
|
||||
private int _equipReuseDelay;
|
||||
private int _duration;
|
||||
private int _time;
|
||||
private int _autoDestroyTime;
|
||||
private int _bodyPart;
|
||||
private int _referencePrice;
|
||||
private int _crystalCount;
|
||||
private boolean _sellable;
|
||||
private boolean _dropable;
|
||||
private boolean _destroyable;
|
||||
private boolean _tradeable;
|
||||
private boolean _depositable;
|
||||
private boolean _auctionable;
|
||||
private int _enchantable;
|
||||
private boolean _elementable;
|
||||
private boolean _questItem;
|
||||
private boolean _freightable;
|
||||
private boolean _allow_self_resurrection;
|
||||
private boolean _is_oly_restricted;
|
||||
private boolean _for_npc;
|
||||
private boolean _common;
|
||||
private boolean _heroItem;
|
||||
private boolean _pvpItem;
|
||||
private boolean _immediate_effect;
|
||||
private boolean _ex_immediate_effect;
|
||||
private int _defaultEnchantLevel;
|
||||
private ActionType _defaultAction;
|
||||
private boolean _isBlessedItem;
|
||||
private int _itemId;
|
||||
private int _displayId;
|
||||
private String _name;
|
||||
private String _additionalName;
|
||||
private String _icon;
|
||||
private int _weight;
|
||||
private boolean _stackable;
|
||||
private MaterialType _materialType;
|
||||
private CrystalType _crystalType;
|
||||
private int _equipReuseDelay;
|
||||
private int _duration;
|
||||
private int _time;
|
||||
private int _autoDestroyTime;
|
||||
private int _bodyPart;
|
||||
private int _referencePrice;
|
||||
private int _crystalCount;
|
||||
private boolean _sellable;
|
||||
private boolean _dropable;
|
||||
private boolean _destroyable;
|
||||
private boolean _tradeable;
|
||||
private boolean _depositable;
|
||||
private boolean _auctionable;
|
||||
private int _enchantable;
|
||||
private boolean _elementable;
|
||||
private boolean _questItem;
|
||||
private boolean _freightable;
|
||||
private boolean _allow_self_resurrection;
|
||||
private boolean _is_oly_restricted;
|
||||
private boolean _for_npc;
|
||||
private boolean _common;
|
||||
private boolean _heroItem;
|
||||
private boolean _pvpItem;
|
||||
private boolean _immediate_effect;
|
||||
private boolean _ex_immediate_effect;
|
||||
private int _defaultEnchantLevel;
|
||||
private ActionType _defaultAction;
|
||||
private boolean _isBlessedItem;
|
||||
|
||||
protected int _type1; // needed for item list (inventory)
|
||||
protected int _type2; // different lists for armor, weapon, etc
|
||||
@@ -159,13 +158,13 @@ public abstract class L2Item extends ListenersContainer implements IIdentifiable
|
||||
private SkillHolder _unequipSkill = null;
|
||||
private SkillHolder _equipSkill = null;
|
||||
|
||||
private int _useSkillDisTime;
|
||||
private int _reuseDelay;
|
||||
private int _sharedReuseGroup;
|
||||
private int _useSkillDisTime;
|
||||
private int _reuseDelay;
|
||||
private int _sharedReuseGroup;
|
||||
|
||||
private CommissionItemType _commissionItemType;
|
||||
private int _compoundItem;
|
||||
private float _compoundChance;
|
||||
private CommissionItemType _commissionItemType;
|
||||
private int _compoundItem;
|
||||
private float _compoundChance;
|
||||
|
||||
/**
|
||||
* Constructor of the L2Item that fill class variables.<BR>
|
||||
@@ -240,13 +239,13 @@ public abstract class L2Item extends ListenersContainer implements IIdentifiable
|
||||
|
||||
if (id == 0)
|
||||
{
|
||||
_log.info(StringUtil.concat("Ignoring item_skill(", element, ") for item ", toString(), ". Skill id is 0!"));
|
||||
_log.info("Ignoring item_skill(" + element + ") for item " + this + ". Skill id is 0!");
|
||||
continue;
|
||||
}
|
||||
|
||||
if (level == 0)
|
||||
{
|
||||
_log.info(StringUtil.concat("Ignoring item_skill(", element, ") for item ", toString(), ". Skill level is 0!"));
|
||||
_log.info("Ignoring item_skill(" + element + ") for item " + this + ". Skill level is 0!");
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -255,7 +254,7 @@ public abstract class L2Item extends ListenersContainer implements IIdentifiable
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
_log.warning(StringUtil.concat("Failed to parse item_skill(", element, ") for item ", toString(), "! Format: SkillId0-SkillLevel0[;SkillIdN-SkillLevelN]"));
|
||||
_log.warning("Failed to parse item_skill(" + element + ") for item " + this + "! Format: SkillId0-SkillLevel0[;SkillIdN-SkillLevelN]");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -284,7 +283,7 @@ public abstract class L2Item extends ListenersContainer implements IIdentifiable
|
||||
catch (Exception nfe)
|
||||
{
|
||||
// Incorrect syntax, don't add new skill
|
||||
_log.info(StringUtil.concat("Couldnt parse ", skills, " in weapon unequip skills! item ", toString()));
|
||||
_log.info("Couldnt parse " + skills + " in weapon unequip skills! item " + this);
|
||||
}
|
||||
if ((id > 0) && (level > 0))
|
||||
{
|
||||
@@ -309,7 +308,7 @@ public abstract class L2Item extends ListenersContainer implements IIdentifiable
|
||||
catch (Exception nfe)
|
||||
{
|
||||
// Incorrect syntax, don't add new skill
|
||||
_log.info(StringUtil.concat("Couldnt parse ", skills, " in item equip skill! item ", toString()));
|
||||
_log.info("Couldnt parse " + skills + " in item equip skill! item " + this);
|
||||
}
|
||||
if ((id > 0) && (level > 0))
|
||||
{
|
||||
|
@@ -33,26 +33,25 @@ import com.l2jmobius.gameserver.model.stats.Formulas;
|
||||
import com.l2jmobius.gameserver.network.SystemMessageId;
|
||||
import com.l2jmobius.gameserver.network.serverpackets.SystemMessage;
|
||||
import com.l2jmobius.gameserver.util.Util;
|
||||
import com.l2jmobius.util.StringUtil;
|
||||
|
||||
/**
|
||||
* This class is dedicated to the management of weapons.
|
||||
*/
|
||||
public final class L2Weapon extends L2Item
|
||||
{
|
||||
private WeaponType _type;
|
||||
private boolean _isMagicWeapon;
|
||||
private int _rndDam;
|
||||
private int _soulShotCount;
|
||||
private int _spiritShotCount;
|
||||
private int _mpConsume;
|
||||
private int _baseAttackRange;
|
||||
private int _baseAttackAngle;
|
||||
private WeaponType _type;
|
||||
private boolean _isMagicWeapon;
|
||||
private int _rndDam;
|
||||
private int _soulShotCount;
|
||||
private int _spiritShotCount;
|
||||
private int _mpConsume;
|
||||
private int _baseAttackRange;
|
||||
private int _baseAttackAngle;
|
||||
/**
|
||||
* Skill that activates when item is enchanted +4 (for duals).
|
||||
*/
|
||||
private SkillHolder _enchant4Skill = null;
|
||||
private int _changeWeaponId;
|
||||
private int _changeWeaponId;
|
||||
|
||||
// Attached skills for Special Abilities
|
||||
private SkillHolder _skillsOnMagic;
|
||||
@@ -60,15 +59,15 @@ public final class L2Weapon extends L2Item
|
||||
private SkillHolder _skillsOnCrit;
|
||||
private Condition _skillsOnCritCondition = null;
|
||||
|
||||
private int _reducedSoulshot;
|
||||
private int _reducedSoulshotChance;
|
||||
private int _reducedSoulshot;
|
||||
private int _reducedSoulshotChance;
|
||||
|
||||
private int _reducedMpConsume;
|
||||
private int _reducedMpConsumeChance;
|
||||
private int _reducedMpConsume;
|
||||
private int _reducedMpConsumeChance;
|
||||
|
||||
private boolean _isForceEquip;
|
||||
private boolean _isAttackWeapon;
|
||||
private boolean _useWeaponSkillsOnly;
|
||||
private boolean _isForceEquip;
|
||||
private boolean _isAttackWeapon;
|
||||
private boolean _useWeaponSkillsOnly;
|
||||
|
||||
/**
|
||||
* Constructor for Weapon.
|
||||
@@ -120,7 +119,7 @@ public final class L2Weapon extends L2Item
|
||||
catch (Exception nfe)
|
||||
{
|
||||
// Incorrect syntax, dont add new skill
|
||||
_log.info(StringUtil.concat("> Couldnt parse ", skill, " in weapon enchant skills! item ", toString()));
|
||||
_log.info("> Couldnt parse " + skill + " in weapon enchant skills! item " + this);
|
||||
}
|
||||
if ((id > 0) && (level > 0))
|
||||
{
|
||||
@@ -146,7 +145,7 @@ public final class L2Weapon extends L2Item
|
||||
catch (Exception nfe)
|
||||
{
|
||||
// Incorrect syntax, don't add new skill
|
||||
_log.info(StringUtil.concat("> Couldnt parse ", skill, " in weapon onmagic skills! item ", toString()));
|
||||
_log.info("> Couldnt parse " + skill + " in weapon onmagic skills! item " + this);
|
||||
}
|
||||
if ((id > 0) && (level > 0) && (chance > 0))
|
||||
{
|
||||
@@ -173,7 +172,7 @@ public final class L2Weapon extends L2Item
|
||||
catch (Exception nfe)
|
||||
{
|
||||
// Incorrect syntax, don't add new skill
|
||||
_log.info(StringUtil.concat("> Couldnt parse ", skill, " in weapon oncrit skills! item ", toString()));
|
||||
_log.info("> Couldnt parse " + skill + " in weapon oncrit skills! item " + this);
|
||||
}
|
||||
if ((id > 0) && (level > 0) && (chance > 0))
|
||||
{
|
||||
|
@@ -533,7 +533,11 @@ public final class QuestState
|
||||
*/
|
||||
public int getCond()
|
||||
{
|
||||
return isStarted() ? getInt("cond") : 0;
|
||||
if (isStarted())
|
||||
{
|
||||
return getInt("cond");
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -583,7 +587,11 @@ public final class QuestState
|
||||
*/
|
||||
public int getMemoState()
|
||||
{
|
||||
return isStarted() ? getInt("memoState") : 0;
|
||||
if (isStarted())
|
||||
{
|
||||
return getInt("memoState");
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
public boolean isMemoState(int memoState)
|
||||
@@ -598,7 +606,11 @@ public final class QuestState
|
||||
*/
|
||||
public int getMemoStateEx(int slot)
|
||||
{
|
||||
return isStarted() ? getInt("memoStateEx" + slot) : 0;
|
||||
if (isStarted())
|
||||
{
|
||||
return getInt("memoStateEx" + slot);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -375,6 +375,8 @@ public enum AbnormalType
|
||||
ELEMENTAL_RESISTANCE_ISS,
|
||||
HOLY_ATTACK_RESISTANCE_ISS,
|
||||
MENTAL_ATTACK_RESISTANCE_ISS,
|
||||
CRIPPLING_ATTACK,
|
||||
SHADOW_BLADE,
|
||||
SIGEL_AURA,
|
||||
FEOH_STANCE,
|
||||
YUL_STANCE,
|
||||
|
@@ -31,7 +31,6 @@ import com.l2jmobius.gameserver.model.zone.TaskZoneSettings;
|
||||
import com.l2jmobius.gameserver.model.zone.ZoneId;
|
||||
import com.l2jmobius.gameserver.network.serverpackets.EtcStatusUpdate;
|
||||
import com.l2jmobius.util.Rnd;
|
||||
import com.l2jmobius.util.StringUtil;
|
||||
|
||||
/**
|
||||
* another type of damage zone with skills
|
||||
@@ -96,7 +95,7 @@ public class L2EffectZone extends L2ZoneType
|
||||
final String[] skillSplit = skill.split("-");
|
||||
if (skillSplit.length != 2)
|
||||
{
|
||||
_log.warning(StringUtil.concat(getClass().getSimpleName() + ": invalid config property -> skillsIdLvl \"", skill, "\""));
|
||||
_log.warning(getClass().getSimpleName() + ": invalid config property -> skillsIdLvl \"" + skill + "\"");
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -108,7 +107,7 @@ public class L2EffectZone extends L2ZoneType
|
||||
{
|
||||
if (!skill.isEmpty())
|
||||
{
|
||||
_log.warning(StringUtil.concat(getClass().getSimpleName() + ": invalid config property -> skillsIdLvl \"", skillSplit[0], "\"", skillSplit[1]));
|
||||
_log.warning(getClass().getSimpleName() + ": invalid config property -> skillsIdLvl \"" + skillSplit[0] + "\"" + skillSplit[1]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -21,7 +21,7 @@ import com.l2jmobius.gameserver.model.zone.L2ZoneType;
|
||||
import com.l2jmobius.gameserver.model.zone.ZoneId;
|
||||
|
||||
/**
|
||||
* A scripted zone... Creation of such a zone should require somekind of jython script reference which can handle onEnter() / onExit()
|
||||
* A scripted zone... Creation of such a zone should require somekind of script reference which can handle onEnter() / onExit()
|
||||
* @author durgus
|
||||
*/
|
||||
public class L2ScriptZone extends L2ZoneType
|
||||
|
Reference in New Issue
Block a user