Addition of configuration for teleport flags.
This commit is contained in:
@@ -576,6 +576,16 @@ CustomMultisellLoad = True
|
||||
# Default: False
|
||||
CustomBuyListLoad = True
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Teleport Bookmark Settings
|
||||
# ---------------------------------------------------------------------------
|
||||
# Consume item for teleporting.
|
||||
# No item consume: -1
|
||||
# Default: 20033 (Teleport Flag)
|
||||
BookmarkConsumeItemId = 20033
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Birthday Event Settings
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
@@ -576,6 +576,7 @@ public class Config
|
||||
public static boolean CUSTOM_ITEMS_LOAD;
|
||||
public static boolean CUSTOM_MULTISELL_LOAD;
|
||||
public static boolean CUSTOM_BUYLIST_LOAD;
|
||||
public static int BOOKMARK_CONSUME_ITEM_ID;
|
||||
public static int ALT_BIRTHDAY_GIFT;
|
||||
public static String ALT_BIRTHDAY_MAIL_SUBJECT;
|
||||
public static String ALT_BIRTHDAY_MAIL_TEXT;
|
||||
@@ -2069,6 +2070,7 @@ public class Config
|
||||
CUSTOM_ITEMS_LOAD = General.getBoolean("CustomItemsLoad", false);
|
||||
CUSTOM_MULTISELL_LOAD = General.getBoolean("CustomMultisellLoad", false);
|
||||
CUSTOM_BUYLIST_LOAD = General.getBoolean("CustomBuyListLoad", false);
|
||||
BOOKMARK_CONSUME_ITEM_ID = General.getInt("BookmarkConsumeItemId", -1);
|
||||
ALT_BIRTHDAY_GIFT = General.getInt("AltBirthdayGift", 22187);
|
||||
ALT_BIRTHDAY_MAIL_SUBJECT = General.getString("AltBirthdayMailSubject", "Happy Birthday!");
|
||||
ALT_BIRTHDAY_MAIL_TEXT = General.getString("AltBirthdayMailText", "Hello Adventurer!! Seeing as you're one year older now, I thought I would send you some birthday cheer :) Please find your birthday pack attached. May these gifts bring you joy and happiness on this very special day." + EOL + EOL + "Sincerely, Alegria");
|
||||
|
||||
+13
-7
@@ -12198,12 +12198,24 @@ public class PlayerInstance extends Playable
|
||||
return;
|
||||
}
|
||||
|
||||
if (_inventory.getInventoryItemCount(20033, 0) == 0)
|
||||
if (Config.BOOKMARK_CONSUME_ITEM_ID > 0)
|
||||
{
|
||||
if (_inventory.getInventoryItemCount(Config.BOOKMARK_CONSUME_ITEM_ID, -1) == 0)
|
||||
{
|
||||
if (Config.BOOKMARK_CONSUME_ITEM_ID == 20033)
|
||||
{
|
||||
sendPacket(SystemMessageId.YOU_CANNOT_BOOKMARK_THIS_LOCATION_BECAUSE_YOU_DO_NOT_HAVE_A_MY_TELEPORT_FLAG);
|
||||
}
|
||||
else
|
||||
{
|
||||
sendPacket(SystemMessageId.INCORRECT_ITEM_COUNT_2);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
destroyItem("Consume", _inventory.getItemByItemId(Config.BOOKMARK_CONSUME_ITEM_ID).getObjectId(), 1, null, true);
|
||||
}
|
||||
|
||||
int id;
|
||||
for (id = 1; id <= _bookmarkslot; ++id)
|
||||
{
|
||||
@@ -12214,12 +12226,6 @@ public class PlayerInstance extends Playable
|
||||
}
|
||||
_tpbookmarks.put(id, new TeleportBookmark(id, x, y, z, icon, tag, name));
|
||||
|
||||
destroyItem("Consume", _inventory.getItemByItemId(20033).getObjectId(), 1, null, false);
|
||||
|
||||
final SystemMessage sm = new SystemMessage(SystemMessageId.S1_DISAPPEARED);
|
||||
sm.addItemName(20033);
|
||||
sendPacket(sm);
|
||||
|
||||
try (Connection con = DatabaseFactory.getConnection();
|
||||
PreparedStatement statement = con.prepareStatement(INSERT_TP_BOOKMARK))
|
||||
{
|
||||
|
||||
@@ -584,6 +584,16 @@ CustomMultisellLoad = True
|
||||
# Default: False
|
||||
CustomBuyListLoad = True
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Teleport Bookmark Settings
|
||||
# ---------------------------------------------------------------------------
|
||||
# Consume item for teleporting.
|
||||
# No item consume: -1
|
||||
# Default: 20033 (Teleport Flag)
|
||||
BookmarkConsumeItemId = 20033
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Birthday Event Settings
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
@@ -586,6 +586,7 @@ public class Config
|
||||
public static boolean CUSTOM_ITEMS_LOAD;
|
||||
public static boolean CUSTOM_MULTISELL_LOAD;
|
||||
public static boolean CUSTOM_BUYLIST_LOAD;
|
||||
public static int BOOKMARK_CONSUME_ITEM_ID;
|
||||
public static int ALT_BIRTHDAY_GIFT;
|
||||
public static String ALT_BIRTHDAY_MAIL_SUBJECT;
|
||||
public static String ALT_BIRTHDAY_MAIL_TEXT;
|
||||
@@ -2092,6 +2093,7 @@ public class Config
|
||||
CUSTOM_ITEMS_LOAD = General.getBoolean("CustomItemsLoad", false);
|
||||
CUSTOM_MULTISELL_LOAD = General.getBoolean("CustomMultisellLoad", false);
|
||||
CUSTOM_BUYLIST_LOAD = General.getBoolean("CustomBuyListLoad", false);
|
||||
BOOKMARK_CONSUME_ITEM_ID = General.getInt("BookmarkConsumeItemId", -1);
|
||||
ALT_BIRTHDAY_GIFT = General.getInt("AltBirthdayGift", 22187);
|
||||
ALT_BIRTHDAY_MAIL_SUBJECT = General.getString("AltBirthdayMailSubject", "Happy Birthday!");
|
||||
ALT_BIRTHDAY_MAIL_TEXT = General.getString("AltBirthdayMailText", "Hello Adventurer!! Seeing as you're one year older now, I thought I would send you some birthday cheer :) Please find your birthday pack attached. May these gifts bring you joy and happiness on this very special day." + EOL + EOL + "Sincerely, Alegria");
|
||||
|
||||
+13
-7
@@ -12205,12 +12205,24 @@ public class PlayerInstance extends Playable
|
||||
return;
|
||||
}
|
||||
|
||||
if (_inventory.getInventoryItemCount(20033, 0) == 0)
|
||||
if (Config.BOOKMARK_CONSUME_ITEM_ID > 0)
|
||||
{
|
||||
if (_inventory.getInventoryItemCount(Config.BOOKMARK_CONSUME_ITEM_ID, -1) == 0)
|
||||
{
|
||||
if (Config.BOOKMARK_CONSUME_ITEM_ID == 20033)
|
||||
{
|
||||
sendPacket(SystemMessageId.YOU_CANNOT_BOOKMARK_THIS_LOCATION_BECAUSE_YOU_DO_NOT_HAVE_A_MY_TELEPORT_FLAG);
|
||||
}
|
||||
else
|
||||
{
|
||||
sendPacket(SystemMessageId.INCORRECT_ITEM_COUNT_2);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
destroyItem("Consume", _inventory.getItemByItemId(Config.BOOKMARK_CONSUME_ITEM_ID).getObjectId(), 1, null, true);
|
||||
}
|
||||
|
||||
int id;
|
||||
for (id = 1; id <= _bookmarkslot; ++id)
|
||||
{
|
||||
@@ -12221,12 +12233,6 @@ public class PlayerInstance extends Playable
|
||||
}
|
||||
_tpbookmarks.put(id, new TeleportBookmark(id, x, y, z, icon, tag, name));
|
||||
|
||||
destroyItem("Consume", _inventory.getItemByItemId(20033).getObjectId(), 1, null, false);
|
||||
|
||||
final SystemMessage sm = new SystemMessage(SystemMessageId.S1_DISAPPEARED);
|
||||
sm.addItemName(20033);
|
||||
sendPacket(sm);
|
||||
|
||||
try (Connection con = DatabaseFactory.getConnection();
|
||||
PreparedStatement statement = con.prepareStatement(INSERT_TP_BOOKMARK))
|
||||
{
|
||||
|
||||
@@ -584,6 +584,16 @@ CustomMultisellLoad = True
|
||||
# Default: False
|
||||
CustomBuyListLoad = True
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Teleport Bookmark Settings
|
||||
# ---------------------------------------------------------------------------
|
||||
# Consume item for teleporting.
|
||||
# No item consume: -1
|
||||
# Default: 20033 (Teleport Flag)
|
||||
BookmarkConsumeItemId = 20033
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Birthday Event Settings
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
@@ -586,6 +586,7 @@ public class Config
|
||||
public static boolean CUSTOM_ITEMS_LOAD;
|
||||
public static boolean CUSTOM_MULTISELL_LOAD;
|
||||
public static boolean CUSTOM_BUYLIST_LOAD;
|
||||
public static int BOOKMARK_CONSUME_ITEM_ID;
|
||||
public static int ALT_BIRTHDAY_GIFT;
|
||||
public static String ALT_BIRTHDAY_MAIL_SUBJECT;
|
||||
public static String ALT_BIRTHDAY_MAIL_TEXT;
|
||||
@@ -2105,6 +2106,7 @@ public class Config
|
||||
CUSTOM_ITEMS_LOAD = General.getBoolean("CustomItemsLoad", false);
|
||||
CUSTOM_MULTISELL_LOAD = General.getBoolean("CustomMultisellLoad", false);
|
||||
CUSTOM_BUYLIST_LOAD = General.getBoolean("CustomBuyListLoad", false);
|
||||
BOOKMARK_CONSUME_ITEM_ID = General.getInt("BookmarkConsumeItemId", -1);
|
||||
ALT_BIRTHDAY_GIFT = General.getInt("AltBirthdayGift", 22187);
|
||||
ALT_BIRTHDAY_MAIL_SUBJECT = General.getString("AltBirthdayMailSubject", "Happy Birthday!");
|
||||
ALT_BIRTHDAY_MAIL_TEXT = General.getString("AltBirthdayMailText", "Hello Adventurer!! Seeing as you're one year older now, I thought I would send you some birthday cheer :) Please find your birthday pack attached. May these gifts bring you joy and happiness on this very special day." + EOL + EOL + "Sincerely, Alegria");
|
||||
|
||||
+13
-7
@@ -12207,12 +12207,24 @@ public class PlayerInstance extends Playable
|
||||
return;
|
||||
}
|
||||
|
||||
if (_inventory.getInventoryItemCount(20033, 0) == 0)
|
||||
if (Config.BOOKMARK_CONSUME_ITEM_ID > 0)
|
||||
{
|
||||
if (_inventory.getInventoryItemCount(Config.BOOKMARK_CONSUME_ITEM_ID, -1) == 0)
|
||||
{
|
||||
if (Config.BOOKMARK_CONSUME_ITEM_ID == 20033)
|
||||
{
|
||||
sendPacket(SystemMessageId.YOU_CANNOT_BOOKMARK_THIS_LOCATION_BECAUSE_YOU_DO_NOT_HAVE_A_MY_TELEPORT_FLAG);
|
||||
}
|
||||
else
|
||||
{
|
||||
sendPacket(SystemMessageId.INCORRECT_ITEM_COUNT_2);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
destroyItem("Consume", _inventory.getItemByItemId(Config.BOOKMARK_CONSUME_ITEM_ID).getObjectId(), 1, null, true);
|
||||
}
|
||||
|
||||
int id;
|
||||
for (id = 1; id <= _bookmarkslot; ++id)
|
||||
{
|
||||
@@ -12223,12 +12235,6 @@ public class PlayerInstance extends Playable
|
||||
}
|
||||
_tpbookmarks.put(id, new TeleportBookmark(id, x, y, z, icon, tag, name));
|
||||
|
||||
destroyItem("Consume", _inventory.getItemByItemId(20033).getObjectId(), 1, null, false);
|
||||
|
||||
final SystemMessage sm = new SystemMessage(SystemMessageId.S1_DISAPPEARED);
|
||||
sm.addItemName(20033);
|
||||
sendPacket(sm);
|
||||
|
||||
try (Connection con = DatabaseFactory.getConnection();
|
||||
PreparedStatement statement = con.prepareStatement(INSERT_TP_BOOKMARK))
|
||||
{
|
||||
|
||||
@@ -584,6 +584,16 @@ CustomMultisellLoad = True
|
||||
# Default: False
|
||||
CustomBuyListLoad = True
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Teleport Bookmark Settings
|
||||
# ---------------------------------------------------------------------------
|
||||
# Consume item for teleporting.
|
||||
# No item consume: -1
|
||||
# Default: 20033 (Teleport Flag)
|
||||
BookmarkConsumeItemId = 20033
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Birthday Event Settings
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
@@ -574,6 +574,7 @@ public class Config
|
||||
public static boolean CUSTOM_ITEMS_LOAD;
|
||||
public static boolean CUSTOM_MULTISELL_LOAD;
|
||||
public static boolean CUSTOM_BUYLIST_LOAD;
|
||||
public static int BOOKMARK_CONSUME_ITEM_ID;
|
||||
public static int ALT_BIRTHDAY_GIFT;
|
||||
public static String ALT_BIRTHDAY_MAIL_SUBJECT;
|
||||
public static String ALT_BIRTHDAY_MAIL_TEXT;
|
||||
@@ -2085,6 +2086,7 @@ public class Config
|
||||
CUSTOM_ITEMS_LOAD = General.getBoolean("CustomItemsLoad", false);
|
||||
CUSTOM_MULTISELL_LOAD = General.getBoolean("CustomMultisellLoad", false);
|
||||
CUSTOM_BUYLIST_LOAD = General.getBoolean("CustomBuyListLoad", false);
|
||||
BOOKMARK_CONSUME_ITEM_ID = General.getInt("BookmarkConsumeItemId", -1);
|
||||
ALT_BIRTHDAY_GIFT = General.getInt("AltBirthdayGift", 22187);
|
||||
ALT_BIRTHDAY_MAIL_SUBJECT = General.getString("AltBirthdayMailSubject", "Happy Birthday!");
|
||||
ALT_BIRTHDAY_MAIL_TEXT = General.getString("AltBirthdayMailText", "Hello Adventurer!! Seeing as you're one year older now, I thought I would send you some birthday cheer :) Please find your birthday pack attached. May these gifts bring you joy and happiness on this very special day." + EOL + EOL + "Sincerely, Alegria");
|
||||
|
||||
+13
-7
@@ -12188,12 +12188,24 @@ public class PlayerInstance extends Playable
|
||||
return;
|
||||
}
|
||||
|
||||
if (_inventory.getInventoryItemCount(20033, 0) == 0)
|
||||
if (Config.BOOKMARK_CONSUME_ITEM_ID > 0)
|
||||
{
|
||||
if (_inventory.getInventoryItemCount(Config.BOOKMARK_CONSUME_ITEM_ID, -1) == 0)
|
||||
{
|
||||
if (Config.BOOKMARK_CONSUME_ITEM_ID == 20033)
|
||||
{
|
||||
sendPacket(SystemMessageId.YOU_CANNOT_BOOKMARK_THIS_LOCATION_BECAUSE_YOU_DO_NOT_HAVE_A_MY_TELEPORT_FLAG);
|
||||
}
|
||||
else
|
||||
{
|
||||
sendPacket(SystemMessageId.INCORRECT_ITEM_COUNT_2);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
destroyItem("Consume", _inventory.getItemByItemId(Config.BOOKMARK_CONSUME_ITEM_ID).getObjectId(), 1, null, true);
|
||||
}
|
||||
|
||||
int id;
|
||||
for (id = 1; id <= _bookmarkslot; ++id)
|
||||
{
|
||||
@@ -12204,12 +12216,6 @@ public class PlayerInstance extends Playable
|
||||
}
|
||||
_tpbookmarks.put(id, new TeleportBookmark(id, x, y, z, icon, tag, name));
|
||||
|
||||
destroyItem("Consume", _inventory.getItemByItemId(20033).getObjectId(), 1, null, false);
|
||||
|
||||
final SystemMessage sm = new SystemMessage(SystemMessageId.S1_DISAPPEARED);
|
||||
sm.addItemName(20033);
|
||||
sendPacket(sm);
|
||||
|
||||
try (Connection con = DatabaseFactory.getConnection();
|
||||
PreparedStatement statement = con.prepareStatement(INSERT_TP_BOOKMARK))
|
||||
{
|
||||
|
||||
@@ -584,6 +584,16 @@ CustomMultisellLoad = True
|
||||
# Default: False
|
||||
CustomBuyListLoad = True
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Teleport Bookmark Settings
|
||||
# ---------------------------------------------------------------------------
|
||||
# Consume item for teleporting.
|
||||
# No item consume: -1
|
||||
# Default: 20033 (Teleport Flag)
|
||||
BookmarkConsumeItemId = 20033
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Birthday Event Settings
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
@@ -569,6 +569,7 @@ public class Config
|
||||
public static boolean CUSTOM_ITEMS_LOAD;
|
||||
public static boolean CUSTOM_MULTISELL_LOAD;
|
||||
public static boolean CUSTOM_BUYLIST_LOAD;
|
||||
public static int BOOKMARK_CONSUME_ITEM_ID;
|
||||
public static int ALT_BIRTHDAY_GIFT;
|
||||
public static String ALT_BIRTHDAY_MAIL_SUBJECT;
|
||||
public static String ALT_BIRTHDAY_MAIL_TEXT;
|
||||
@@ -2086,6 +2087,7 @@ public class Config
|
||||
CUSTOM_ITEMS_LOAD = General.getBoolean("CustomItemsLoad", false);
|
||||
CUSTOM_MULTISELL_LOAD = General.getBoolean("CustomMultisellLoad", false);
|
||||
CUSTOM_BUYLIST_LOAD = General.getBoolean("CustomBuyListLoad", false);
|
||||
BOOKMARK_CONSUME_ITEM_ID = General.getInt("BookmarkConsumeItemId", -1);
|
||||
ALT_BIRTHDAY_GIFT = General.getInt("AltBirthdayGift", 22187);
|
||||
ALT_BIRTHDAY_MAIL_SUBJECT = General.getString("AltBirthdayMailSubject", "Happy Birthday!");
|
||||
ALT_BIRTHDAY_MAIL_TEXT = General.getString("AltBirthdayMailText", "Hello Adventurer!! Seeing as you're one year older now, I thought I would send you some birthday cheer :) Please find your birthday pack attached. May these gifts bring you joy and happiness on this very special day." + EOL + EOL + "Sincerely, Alegria");
|
||||
|
||||
+13
-7
@@ -12178,12 +12178,24 @@ public class PlayerInstance extends Playable
|
||||
return;
|
||||
}
|
||||
|
||||
if (_inventory.getInventoryItemCount(20033, 0) == 0)
|
||||
if (Config.BOOKMARK_CONSUME_ITEM_ID > 0)
|
||||
{
|
||||
if (_inventory.getInventoryItemCount(Config.BOOKMARK_CONSUME_ITEM_ID, -1) == 0)
|
||||
{
|
||||
if (Config.BOOKMARK_CONSUME_ITEM_ID == 20033)
|
||||
{
|
||||
sendPacket(SystemMessageId.YOU_CANNOT_BOOKMARK_THIS_LOCATION_BECAUSE_YOU_DO_NOT_HAVE_A_MY_TELEPORT_FLAG);
|
||||
}
|
||||
else
|
||||
{
|
||||
sendPacket(SystemMessageId.INCORRECT_ITEM_COUNT_2);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
destroyItem("Consume", _inventory.getItemByItemId(Config.BOOKMARK_CONSUME_ITEM_ID).getObjectId(), 1, null, true);
|
||||
}
|
||||
|
||||
int id;
|
||||
for (id = 1; id <= _bookmarkslot; ++id)
|
||||
{
|
||||
@@ -12194,12 +12206,6 @@ public class PlayerInstance extends Playable
|
||||
}
|
||||
_tpbookmarks.put(id, new TeleportBookmark(id, x, y, z, icon, tag, name));
|
||||
|
||||
destroyItem("Consume", _inventory.getItemByItemId(20033).getObjectId(), 1, null, false);
|
||||
|
||||
final SystemMessage sm = new SystemMessage(SystemMessageId.S1_DISAPPEARED);
|
||||
sm.addItemName(20033);
|
||||
sendPacket(sm);
|
||||
|
||||
try (Connection con = DatabaseFactory.getConnection();
|
||||
PreparedStatement statement = con.prepareStatement(INSERT_TP_BOOKMARK))
|
||||
{
|
||||
|
||||
@@ -584,6 +584,16 @@ CustomMultisellLoad = True
|
||||
# Default: False
|
||||
CustomBuyListLoad = True
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Teleport Bookmark Settings
|
||||
# ---------------------------------------------------------------------------
|
||||
# Consume item for teleporting.
|
||||
# No item consume: -1
|
||||
# Default: 20033 (Teleport Flag)
|
||||
BookmarkConsumeItemId = 20033
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Birthday Event Settings
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
@@ -569,6 +569,7 @@ public class Config
|
||||
public static boolean CUSTOM_ITEMS_LOAD;
|
||||
public static boolean CUSTOM_MULTISELL_LOAD;
|
||||
public static boolean CUSTOM_BUYLIST_LOAD;
|
||||
public static int BOOKMARK_CONSUME_ITEM_ID;
|
||||
public static int ALT_BIRTHDAY_GIFT;
|
||||
public static String ALT_BIRTHDAY_MAIL_SUBJECT;
|
||||
public static String ALT_BIRTHDAY_MAIL_TEXT;
|
||||
@@ -2093,6 +2094,7 @@ public class Config
|
||||
CUSTOM_ITEMS_LOAD = General.getBoolean("CustomItemsLoad", false);
|
||||
CUSTOM_MULTISELL_LOAD = General.getBoolean("CustomMultisellLoad", false);
|
||||
CUSTOM_BUYLIST_LOAD = General.getBoolean("CustomBuyListLoad", false);
|
||||
BOOKMARK_CONSUME_ITEM_ID = General.getInt("BookmarkConsumeItemId", -1);
|
||||
ALT_BIRTHDAY_GIFT = General.getInt("AltBirthdayGift", 22187);
|
||||
ALT_BIRTHDAY_MAIL_SUBJECT = General.getString("AltBirthdayMailSubject", "Happy Birthday!");
|
||||
ALT_BIRTHDAY_MAIL_TEXT = General.getString("AltBirthdayMailText", "Hello Adventurer!! Seeing as you're one year older now, I thought I would send you some birthday cheer :) Please find your birthday pack attached. May these gifts bring you joy and happiness on this very special day." + EOL + EOL + "Sincerely, Alegria");
|
||||
|
||||
+13
-7
@@ -12181,12 +12181,24 @@ public class PlayerInstance extends Playable
|
||||
return;
|
||||
}
|
||||
|
||||
if (_inventory.getInventoryItemCount(20033, 0) == 0)
|
||||
if (Config.BOOKMARK_CONSUME_ITEM_ID > 0)
|
||||
{
|
||||
if (_inventory.getInventoryItemCount(Config.BOOKMARK_CONSUME_ITEM_ID, -1) == 0)
|
||||
{
|
||||
if (Config.BOOKMARK_CONSUME_ITEM_ID == 20033)
|
||||
{
|
||||
sendPacket(SystemMessageId.YOU_CANNOT_BOOKMARK_THIS_LOCATION_BECAUSE_YOU_DO_NOT_HAVE_A_MY_TELEPORT_FLAG);
|
||||
}
|
||||
else
|
||||
{
|
||||
sendPacket(SystemMessageId.INCORRECT_ITEM_COUNT_2);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
destroyItem("Consume", _inventory.getItemByItemId(Config.BOOKMARK_CONSUME_ITEM_ID).getObjectId(), 1, null, true);
|
||||
}
|
||||
|
||||
int id;
|
||||
for (id = 1; id <= _bookmarkslot; ++id)
|
||||
{
|
||||
@@ -12197,12 +12209,6 @@ public class PlayerInstance extends Playable
|
||||
}
|
||||
_tpbookmarks.put(id, new TeleportBookmark(id, x, y, z, icon, tag, name));
|
||||
|
||||
destroyItem("Consume", _inventory.getItemByItemId(20033).getObjectId(), 1, null, false);
|
||||
|
||||
final SystemMessage sm = new SystemMessage(SystemMessageId.S1_DISAPPEARED);
|
||||
sm.addItemName(20033);
|
||||
sendPacket(sm);
|
||||
|
||||
try (Connection con = DatabaseFactory.getConnection();
|
||||
PreparedStatement statement = con.prepareStatement(INSERT_TP_BOOKMARK))
|
||||
{
|
||||
|
||||
@@ -584,6 +584,16 @@ CustomMultisellLoad = True
|
||||
# Default: False
|
||||
CustomBuyListLoad = True
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Teleport Bookmark Settings
|
||||
# ---------------------------------------------------------------------------
|
||||
# Consume item for teleporting.
|
||||
# No item consume: -1
|
||||
# Default: 20033 (Teleport Flag)
|
||||
BookmarkConsumeItemId = 20033
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Birthday Event Settings
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
@@ -570,6 +570,7 @@ public class Config
|
||||
public static boolean CUSTOM_ITEMS_LOAD;
|
||||
public static boolean CUSTOM_MULTISELL_LOAD;
|
||||
public static boolean CUSTOM_BUYLIST_LOAD;
|
||||
public static int BOOKMARK_CONSUME_ITEM_ID;
|
||||
public static int ALT_BIRTHDAY_GIFT;
|
||||
public static String ALT_BIRTHDAY_MAIL_SUBJECT;
|
||||
public static String ALT_BIRTHDAY_MAIL_TEXT;
|
||||
@@ -2132,6 +2133,7 @@ public class Config
|
||||
CUSTOM_ITEMS_LOAD = General.getBoolean("CustomItemsLoad", false);
|
||||
CUSTOM_MULTISELL_LOAD = General.getBoolean("CustomMultisellLoad", false);
|
||||
CUSTOM_BUYLIST_LOAD = General.getBoolean("CustomBuyListLoad", false);
|
||||
BOOKMARK_CONSUME_ITEM_ID = General.getInt("BookmarkConsumeItemId", -1);
|
||||
ALT_BIRTHDAY_GIFT = General.getInt("AltBirthdayGift", 22187);
|
||||
ALT_BIRTHDAY_MAIL_SUBJECT = General.getString("AltBirthdayMailSubject", "Happy Birthday!");
|
||||
ALT_BIRTHDAY_MAIL_TEXT = General.getString("AltBirthdayMailText", "Hello Adventurer!! Seeing as you're one year older now, I thought I would send you some birthday cheer :) Please find your birthday pack attached. May these gifts bring you joy and happiness on this very special day." + EOL + EOL + "Sincerely, Alegria");
|
||||
|
||||
+13
-7
@@ -12187,12 +12187,24 @@ public class PlayerInstance extends Playable
|
||||
return;
|
||||
}
|
||||
|
||||
if (_inventory.getInventoryItemCount(20033, 0) == 0)
|
||||
if (Config.BOOKMARK_CONSUME_ITEM_ID > 0)
|
||||
{
|
||||
if (_inventory.getInventoryItemCount(Config.BOOKMARK_CONSUME_ITEM_ID, -1) == 0)
|
||||
{
|
||||
if (Config.BOOKMARK_CONSUME_ITEM_ID == 20033)
|
||||
{
|
||||
sendPacket(SystemMessageId.YOU_CANNOT_BOOKMARK_THIS_LOCATION_BECAUSE_YOU_DO_NOT_HAVE_A_MY_TELEPORT_FLAG);
|
||||
}
|
||||
else
|
||||
{
|
||||
sendPacket(SystemMessageId.INCORRECT_ITEM_COUNT_2);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
destroyItem("Consume", _inventory.getItemByItemId(Config.BOOKMARK_CONSUME_ITEM_ID).getObjectId(), 1, null, true);
|
||||
}
|
||||
|
||||
int id;
|
||||
for (id = 1; id <= _bookmarkslot; ++id)
|
||||
{
|
||||
@@ -12203,12 +12215,6 @@ public class PlayerInstance extends Playable
|
||||
}
|
||||
_tpbookmarks.put(id, new TeleportBookmark(id, x, y, z, icon, tag, name));
|
||||
|
||||
destroyItem("Consume", _inventory.getItemByItemId(20033).getObjectId(), 1, null, false);
|
||||
|
||||
final SystemMessage sm = new SystemMessage(SystemMessageId.S1_DISAPPEARED);
|
||||
sm.addItemName(20033);
|
||||
sendPacket(sm);
|
||||
|
||||
try (Connection con = DatabaseFactory.getConnection();
|
||||
PreparedStatement statement = con.prepareStatement(INSERT_TP_BOOKMARK))
|
||||
{
|
||||
|
||||
@@ -586,6 +586,15 @@ CustomMultisellLoad = True
|
||||
CustomBuyListLoad = True
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Teleport Bookmark Settings
|
||||
# ---------------------------------------------------------------------------
|
||||
# Consume item for teleporting.
|
||||
# No item consume: -1
|
||||
# Default: 20033 (Teleport Flag)
|
||||
BookmarkConsumeItemId = 20033
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Birthday Event Settings
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
@@ -570,6 +570,7 @@ public class Config
|
||||
public static boolean CUSTOM_ITEMS_LOAD;
|
||||
public static boolean CUSTOM_MULTISELL_LOAD;
|
||||
public static boolean CUSTOM_BUYLIST_LOAD;
|
||||
public static int BOOKMARK_CONSUME_ITEM_ID;
|
||||
public static int ALT_BIRTHDAY_GIFT;
|
||||
public static String ALT_BIRTHDAY_MAIL_SUBJECT;
|
||||
public static String ALT_BIRTHDAY_MAIL_TEXT;
|
||||
@@ -2141,6 +2142,7 @@ public class Config
|
||||
CUSTOM_ITEMS_LOAD = General.getBoolean("CustomItemsLoad", false);
|
||||
CUSTOM_MULTISELL_LOAD = General.getBoolean("CustomMultisellLoad", false);
|
||||
CUSTOM_BUYLIST_LOAD = General.getBoolean("CustomBuyListLoad", false);
|
||||
BOOKMARK_CONSUME_ITEM_ID = General.getInt("BookmarkConsumeItemId", -1);
|
||||
ALT_BIRTHDAY_GIFT = General.getInt("AltBirthdayGift", 22187);
|
||||
ALT_BIRTHDAY_MAIL_SUBJECT = General.getString("AltBirthdayMailSubject", "Happy Birthday!");
|
||||
ALT_BIRTHDAY_MAIL_TEXT = General.getString("AltBirthdayMailText", "Hello Adventurer!! Seeing as you're one year older now, I thought I would send you some birthday cheer :) Please find your birthday pack attached. May these gifts bring you joy and happiness on this very special day." + EOL + EOL + "Sincerely, Alegria");
|
||||
|
||||
+13
-7
@@ -12204,12 +12204,24 @@ public class PlayerInstance extends Playable
|
||||
return;
|
||||
}
|
||||
|
||||
if (_inventory.getInventoryItemCount(20033, 0) == 0)
|
||||
if (Config.BOOKMARK_CONSUME_ITEM_ID > 0)
|
||||
{
|
||||
if (_inventory.getInventoryItemCount(Config.BOOKMARK_CONSUME_ITEM_ID, -1) == 0)
|
||||
{
|
||||
if (Config.BOOKMARK_CONSUME_ITEM_ID == 20033)
|
||||
{
|
||||
sendPacket(SystemMessageId.YOU_CANNOT_BOOKMARK_THIS_LOCATION_BECAUSE_YOU_DO_NOT_HAVE_A_MY_TELEPORT_FLAG);
|
||||
}
|
||||
else
|
||||
{
|
||||
sendPacket(SystemMessageId.INCORRECT_ITEM_COUNT_2);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
destroyItem("Consume", _inventory.getItemByItemId(Config.BOOKMARK_CONSUME_ITEM_ID).getObjectId(), 1, null, true);
|
||||
}
|
||||
|
||||
int id;
|
||||
for (id = 1; id <= _bookmarkslot; ++id)
|
||||
{
|
||||
@@ -12220,12 +12232,6 @@ public class PlayerInstance extends Playable
|
||||
}
|
||||
_tpbookmarks.put(id, new TeleportBookmark(id, x, y, z, icon, tag, name));
|
||||
|
||||
destroyItem("Consume", _inventory.getItemByItemId(20033).getObjectId(), 1, null, false);
|
||||
|
||||
final SystemMessage sm = new SystemMessage(SystemMessageId.S1_DISAPPEARED);
|
||||
sm.addItemName(20033);
|
||||
sendPacket(sm);
|
||||
|
||||
try (Connection con = DatabaseFactory.getConnection();
|
||||
PreparedStatement statement = con.prepareStatement(INSERT_TP_BOOKMARK))
|
||||
{
|
||||
|
||||
@@ -581,6 +581,15 @@ CustomMultisellLoad = True
|
||||
CustomBuyListLoad = True
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Teleport Bookmark Settings
|
||||
# ---------------------------------------------------------------------------
|
||||
# Consume item for teleporting.
|
||||
# Default: 20033 (Teleport Flag)
|
||||
# No item consume: -1
|
||||
BookmarkConsumeItemId = -1
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Birthday Event Settings
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
@@ -567,6 +567,7 @@ public class Config
|
||||
public static boolean CUSTOM_ITEMS_LOAD;
|
||||
public static boolean CUSTOM_MULTISELL_LOAD;
|
||||
public static boolean CUSTOM_BUYLIST_LOAD;
|
||||
public static int BOOKMARK_CONSUME_ITEM_ID;
|
||||
public static int ALT_BIRTHDAY_GIFT;
|
||||
public static String ALT_BIRTHDAY_MAIL_SUBJECT;
|
||||
public static String ALT_BIRTHDAY_MAIL_TEXT;
|
||||
@@ -2135,6 +2136,7 @@ public class Config
|
||||
CUSTOM_ITEMS_LOAD = General.getBoolean("CustomItemsLoad", false);
|
||||
CUSTOM_MULTISELL_LOAD = General.getBoolean("CustomMultisellLoad", false);
|
||||
CUSTOM_BUYLIST_LOAD = General.getBoolean("CustomBuyListLoad", false);
|
||||
BOOKMARK_CONSUME_ITEM_ID = General.getInt("BookmarkConsumeItemId", -1);
|
||||
ALT_BIRTHDAY_GIFT = General.getInt("AltBirthdayGift", 22187);
|
||||
ALT_BIRTHDAY_MAIL_SUBJECT = General.getString("AltBirthdayMailSubject", "Happy Birthday!");
|
||||
ALT_BIRTHDAY_MAIL_TEXT = General.getString("AltBirthdayMailText", "Hello Adventurer!! Seeing as you're one year older now, I thought I would send you some birthday cheer :) Please find your birthday pack attached. May these gifts bring you joy and happiness on this very special day." + EOL + EOL + "Sincerely, Alegria");
|
||||
|
||||
+13
-7
@@ -12322,12 +12322,24 @@ public class PlayerInstance extends Playable
|
||||
return;
|
||||
}
|
||||
|
||||
if (_inventory.getInventoryItemCount(20033, 0) == 0)
|
||||
if (Config.BOOKMARK_CONSUME_ITEM_ID > 0)
|
||||
{
|
||||
if (_inventory.getInventoryItemCount(Config.BOOKMARK_CONSUME_ITEM_ID, -1) == 0)
|
||||
{
|
||||
if (Config.BOOKMARK_CONSUME_ITEM_ID == 20033)
|
||||
{
|
||||
sendPacket(SystemMessageId.YOU_CANNOT_BOOKMARK_THIS_LOCATION_BECAUSE_YOU_DO_NOT_HAVE_A_MY_TELEPORT_FLAG);
|
||||
}
|
||||
else
|
||||
{
|
||||
sendPacket(SystemMessageId.INCORRECT_ITEM_COUNT_2);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
destroyItem("Consume", _inventory.getItemByItemId(Config.BOOKMARK_CONSUME_ITEM_ID).getObjectId(), 1, null, true);
|
||||
}
|
||||
|
||||
int id;
|
||||
for (id = 1; id <= _bookmarkslot; ++id)
|
||||
{
|
||||
@@ -12338,12 +12350,6 @@ public class PlayerInstance extends Playable
|
||||
}
|
||||
_tpbookmarks.put(id, new TeleportBookmark(id, x, y, z, icon, tag, name));
|
||||
|
||||
destroyItem("Consume", _inventory.getItemByItemId(20033).getObjectId(), 1, null, false);
|
||||
|
||||
final SystemMessage sm = new SystemMessage(SystemMessageId.S1_DISAPPEARED);
|
||||
sm.addItemName(20033);
|
||||
sendPacket(sm);
|
||||
|
||||
try (Connection con = DatabaseFactory.getConnection();
|
||||
PreparedStatement statement = con.prepareStatement(INSERT_TP_BOOKMARK))
|
||||
{
|
||||
|
||||
@@ -581,6 +581,15 @@ CustomMultisellLoad = True
|
||||
CustomBuyListLoad = True
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Teleport Bookmark Settings
|
||||
# ---------------------------------------------------------------------------
|
||||
# Consume item for teleporting.
|
||||
# Default: 20033 (Teleport Flag)
|
||||
# No item consume: -1
|
||||
BookmarkConsumeItemId = -1
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Birthday Event Settings
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
@@ -567,6 +567,7 @@ public class Config
|
||||
public static boolean CUSTOM_ITEMS_LOAD;
|
||||
public static boolean CUSTOM_MULTISELL_LOAD;
|
||||
public static boolean CUSTOM_BUYLIST_LOAD;
|
||||
public static int BOOKMARK_CONSUME_ITEM_ID;
|
||||
public static int ALT_BIRTHDAY_GIFT;
|
||||
public static String ALT_BIRTHDAY_MAIL_SUBJECT;
|
||||
public static String ALT_BIRTHDAY_MAIL_TEXT;
|
||||
@@ -2135,6 +2136,7 @@ public class Config
|
||||
CUSTOM_ITEMS_LOAD = General.getBoolean("CustomItemsLoad", false);
|
||||
CUSTOM_MULTISELL_LOAD = General.getBoolean("CustomMultisellLoad", false);
|
||||
CUSTOM_BUYLIST_LOAD = General.getBoolean("CustomBuyListLoad", false);
|
||||
BOOKMARK_CONSUME_ITEM_ID = General.getInt("BookmarkConsumeItemId", -1);
|
||||
ALT_BIRTHDAY_GIFT = General.getInt("AltBirthdayGift", 22187);
|
||||
ALT_BIRTHDAY_MAIL_SUBJECT = General.getString("AltBirthdayMailSubject", "Happy Birthday!");
|
||||
ALT_BIRTHDAY_MAIL_TEXT = General.getString("AltBirthdayMailText", "Hello Adventurer!! Seeing as you're one year older now, I thought I would send you some birthday cheer :) Please find your birthday pack attached. May these gifts bring you joy and happiness on this very special day." + EOL + EOL + "Sincerely, Alegria");
|
||||
|
||||
+13
-7
@@ -12349,12 +12349,24 @@ public class PlayerInstance extends Playable
|
||||
return;
|
||||
}
|
||||
|
||||
if (_inventory.getInventoryItemCount(20033, 0) == 0)
|
||||
if (Config.BOOKMARK_CONSUME_ITEM_ID > 0)
|
||||
{
|
||||
if (_inventory.getInventoryItemCount(Config.BOOKMARK_CONSUME_ITEM_ID, -1) == 0)
|
||||
{
|
||||
if (Config.BOOKMARK_CONSUME_ITEM_ID == 20033)
|
||||
{
|
||||
sendPacket(SystemMessageId.YOU_CANNOT_BOOKMARK_THIS_LOCATION_BECAUSE_YOU_DO_NOT_HAVE_A_MY_TELEPORT_FLAG);
|
||||
}
|
||||
else
|
||||
{
|
||||
sendPacket(SystemMessageId.INCORRECT_ITEM_COUNT_2);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
destroyItem("Consume", _inventory.getItemByItemId(Config.BOOKMARK_CONSUME_ITEM_ID).getObjectId(), 1, null, true);
|
||||
}
|
||||
|
||||
int id;
|
||||
for (id = 1; id <= _bookmarkslot; ++id)
|
||||
{
|
||||
@@ -12365,12 +12377,6 @@ public class PlayerInstance extends Playable
|
||||
}
|
||||
_tpbookmarks.put(id, new TeleportBookmark(id, x, y, z, icon, tag, name));
|
||||
|
||||
destroyItem("Consume", _inventory.getItemByItemId(20033).getObjectId(), 1, null, false);
|
||||
|
||||
final SystemMessage sm = new SystemMessage(SystemMessageId.S1_DISAPPEARED);
|
||||
sm.addItemName(20033);
|
||||
sendPacket(sm);
|
||||
|
||||
try (Connection con = DatabaseFactory.getConnection();
|
||||
PreparedStatement statement = con.prepareStatement(INSERT_TP_BOOKMARK))
|
||||
{
|
||||
|
||||
@@ -678,6 +678,16 @@ CustomMultisellLoad = True
|
||||
# Default: False
|
||||
CustomBuyListLoad = True
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Teleport Bookmark Settings
|
||||
# ---------------------------------------------------------------------------
|
||||
# Consume item for teleporting.
|
||||
# No item consume: -1
|
||||
# Default: 20033 (Teleport Flag)
|
||||
BookmarkConsumeItemId = 20033
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Birthday Event Settings
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
@@ -668,6 +668,7 @@ public class Config
|
||||
public static boolean CUSTOM_ITEMS_LOAD;
|
||||
public static boolean CUSTOM_MULTISELL_LOAD;
|
||||
public static boolean CUSTOM_BUYLIST_LOAD;
|
||||
public static int BOOKMARK_CONSUME_ITEM_ID;
|
||||
public static int ALT_BIRTHDAY_GIFT;
|
||||
public static String ALT_BIRTHDAY_MAIL_SUBJECT;
|
||||
public static String ALT_BIRTHDAY_MAIL_TEXT;
|
||||
@@ -2193,6 +2194,7 @@ public class Config
|
||||
CUSTOM_ITEMS_LOAD = General.getBoolean("CustomItemsLoad", false);
|
||||
CUSTOM_MULTISELL_LOAD = General.getBoolean("CustomMultisellLoad", false);
|
||||
CUSTOM_BUYLIST_LOAD = General.getBoolean("CustomBuyListLoad", false);
|
||||
BOOKMARK_CONSUME_ITEM_ID = General.getInt("BookmarkConsumeItemId", -1);
|
||||
ALT_BIRTHDAY_GIFT = General.getInt("AltBirthdayGift", 22187);
|
||||
ALT_BIRTHDAY_MAIL_SUBJECT = General.getString("AltBirthdayMailSubject", "Happy Birthday!");
|
||||
ALT_BIRTHDAY_MAIL_TEXT = General.getString("AltBirthdayMailText", "Hello Adventurer!! Seeing as you're one year older now, I thought I would send you some birthday cheer :) Please find your birthday pack attached. May these gifts bring you joy and happiness on this very special day." + EOL + EOL + "Sincerely, Alegria");
|
||||
|
||||
+13
-7
@@ -13022,12 +13022,24 @@ public class PlayerInstance extends Playable
|
||||
return;
|
||||
}
|
||||
|
||||
if (_inventory.getInventoryItemCount(20033, 0) == 0)
|
||||
if (Config.BOOKMARK_CONSUME_ITEM_ID > 0)
|
||||
{
|
||||
if (_inventory.getInventoryItemCount(Config.BOOKMARK_CONSUME_ITEM_ID, -1) == 0)
|
||||
{
|
||||
if (Config.BOOKMARK_CONSUME_ITEM_ID == 20033)
|
||||
{
|
||||
sendPacket(SystemMessageId.YOU_CANNOT_BOOKMARK_THIS_LOCATION_BECAUSE_YOU_DO_NOT_HAVE_A_MY_TELEPORT_FLAG);
|
||||
}
|
||||
else
|
||||
{
|
||||
sendPacket(SystemMessageId.INCORRECT_ITEM_COUNT_2);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
destroyItem("Consume", _inventory.getItemByItemId(Config.BOOKMARK_CONSUME_ITEM_ID).getObjectId(), 1, null, true);
|
||||
}
|
||||
|
||||
int id;
|
||||
for (id = 1; id <= _bookmarkSlot; ++id)
|
||||
{
|
||||
@@ -13038,12 +13050,6 @@ public class PlayerInstance extends Playable
|
||||
}
|
||||
_tpbookmarks.put(id, new TeleportBookmark(id, x, y, z, icon, tag, name));
|
||||
|
||||
destroyItem("Consume", _inventory.getItemByItemId(20033).getObjectId(), 1, null, false);
|
||||
|
||||
final SystemMessage sm = new SystemMessage(SystemMessageId.S1_HAS_DISAPPEARED);
|
||||
sm.addItemName(20033);
|
||||
sendPacket(sm);
|
||||
|
||||
try (Connection con = DatabaseFactory.getConnection();
|
||||
PreparedStatement ps = con.prepareStatement(INSERT_TP_BOOKMARK))
|
||||
{
|
||||
|
||||
@@ -678,6 +678,16 @@ CustomMultisellLoad = True
|
||||
# Default: False
|
||||
CustomBuyListLoad = True
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Teleport Bookmark Settings
|
||||
# ---------------------------------------------------------------------------
|
||||
# Consume item for teleporting.
|
||||
# No item consume: -1
|
||||
# Default: 20033 (Teleport Flag)
|
||||
BookmarkConsumeItemId = 20033
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Birthday Event Settings
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
@@ -673,6 +673,7 @@ public class Config
|
||||
public static boolean CUSTOM_ITEMS_LOAD;
|
||||
public static boolean CUSTOM_MULTISELL_LOAD;
|
||||
public static boolean CUSTOM_BUYLIST_LOAD;
|
||||
public static int BOOKMARK_CONSUME_ITEM_ID;
|
||||
public static int ALT_BIRTHDAY_GIFT;
|
||||
public static String ALT_BIRTHDAY_MAIL_SUBJECT;
|
||||
public static String ALT_BIRTHDAY_MAIL_TEXT;
|
||||
@@ -2198,6 +2199,7 @@ public class Config
|
||||
CUSTOM_ITEMS_LOAD = General.getBoolean("CustomItemsLoad", false);
|
||||
CUSTOM_MULTISELL_LOAD = General.getBoolean("CustomMultisellLoad", false);
|
||||
CUSTOM_BUYLIST_LOAD = General.getBoolean("CustomBuyListLoad", false);
|
||||
BOOKMARK_CONSUME_ITEM_ID = General.getInt("BookmarkConsumeItemId", -1);
|
||||
ALT_BIRTHDAY_GIFT = General.getInt("AltBirthdayGift", 22187);
|
||||
ALT_BIRTHDAY_MAIL_SUBJECT = General.getString("AltBirthdayMailSubject", "Happy Birthday!");
|
||||
ALT_BIRTHDAY_MAIL_TEXT = General.getString("AltBirthdayMailText", "Hello Adventurer!! Seeing as you're one year older now, I thought I would send you some birthday cheer :) Please find your birthday pack attached. May these gifts bring you joy and happiness on this very special day." + EOL + EOL + "Sincerely, Alegria");
|
||||
|
||||
+13
-7
@@ -12915,12 +12915,24 @@ public class PlayerInstance extends Playable
|
||||
return;
|
||||
}
|
||||
|
||||
if (_inventory.getInventoryItemCount(20033, 0) == 0)
|
||||
if (Config.BOOKMARK_CONSUME_ITEM_ID > 0)
|
||||
{
|
||||
if (_inventory.getInventoryItemCount(Config.BOOKMARK_CONSUME_ITEM_ID, -1) == 0)
|
||||
{
|
||||
if (Config.BOOKMARK_CONSUME_ITEM_ID == 20033)
|
||||
{
|
||||
sendPacket(SystemMessageId.YOU_CANNOT_BOOKMARK_THIS_LOCATION_BECAUSE_YOU_DO_NOT_HAVE_A_MY_TELEPORT_FLAG);
|
||||
}
|
||||
else
|
||||
{
|
||||
sendPacket(SystemMessageId.INCORRECT_ITEM_COUNT_2);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
destroyItem("Consume", _inventory.getItemByItemId(Config.BOOKMARK_CONSUME_ITEM_ID).getObjectId(), 1, null, true);
|
||||
}
|
||||
|
||||
int id;
|
||||
for (id = 1; id <= _bookmarkSlot; ++id)
|
||||
{
|
||||
@@ -12931,12 +12943,6 @@ public class PlayerInstance extends Playable
|
||||
}
|
||||
_tpbookmarks.put(id, new TeleportBookmark(id, x, y, z, icon, tag, name));
|
||||
|
||||
destroyItem("Consume", _inventory.getItemByItemId(20033).getObjectId(), 1, null, false);
|
||||
|
||||
final SystemMessage sm = new SystemMessage(SystemMessageId.S1_HAS_DISAPPEARED);
|
||||
sm.addItemName(20033);
|
||||
sendPacket(sm);
|
||||
|
||||
try (Connection con = DatabaseFactory.getConnection();
|
||||
PreparedStatement ps = con.prepareStatement(INSERT_TP_BOOKMARK))
|
||||
{
|
||||
|
||||
@@ -580,6 +580,16 @@ CustomMultisellLoad = True
|
||||
# Default: False
|
||||
CustomBuyListLoad = True
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Teleport Bookmark Settings
|
||||
# ---------------------------------------------------------------------------
|
||||
# Consume item for teleporting.
|
||||
# No item consume: -1
|
||||
# Default: 20033 (Teleport Flag)
|
||||
BookmarkConsumeItemId = 20033
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Birthday Event Settings
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
@@ -593,6 +593,7 @@ public class Config
|
||||
public static boolean CUSTOM_ITEMS_LOAD;
|
||||
public static boolean CUSTOM_MULTISELL_LOAD;
|
||||
public static boolean CUSTOM_BUYLIST_LOAD;
|
||||
public static int BOOKMARK_CONSUME_ITEM_ID;
|
||||
public static int ALT_BIRTHDAY_GIFT;
|
||||
public static String ALT_BIRTHDAY_MAIL_SUBJECT;
|
||||
public static String ALT_BIRTHDAY_MAIL_TEXT;
|
||||
@@ -2037,6 +2038,7 @@ public class Config
|
||||
CUSTOM_ITEMS_LOAD = General.getBoolean("CustomItemsLoad", false);
|
||||
CUSTOM_MULTISELL_LOAD = General.getBoolean("CustomMultisellLoad", false);
|
||||
CUSTOM_BUYLIST_LOAD = General.getBoolean("CustomBuyListLoad", false);
|
||||
BOOKMARK_CONSUME_ITEM_ID = General.getInt("BookmarkConsumeItemId", -1);
|
||||
ALT_BIRTHDAY_GIFT = General.getInt("AltBirthdayGift", 22187);
|
||||
ALT_BIRTHDAY_MAIL_SUBJECT = General.getString("AltBirthdayMailSubject", "Happy Birthday!");
|
||||
ALT_BIRTHDAY_MAIL_TEXT = General.getString("AltBirthdayMailText", "Hello Adventurer!! Seeing as you're one year older now, I thought I would send you some birthday cheer :) Please find your birthday pack attached. May these gifts bring you joy and happiness on this very special day." + EOL + EOL + "Sincerely, Alegria");
|
||||
|
||||
+13
-7
@@ -12010,12 +12010,24 @@ public class PlayerInstance extends Playable
|
||||
return;
|
||||
}
|
||||
|
||||
if (_inventory.getInventoryItemCount(20033, 0) == 0)
|
||||
if (Config.BOOKMARK_CONSUME_ITEM_ID > 0)
|
||||
{
|
||||
if (_inventory.getInventoryItemCount(Config.BOOKMARK_CONSUME_ITEM_ID, -1) == 0)
|
||||
{
|
||||
if (Config.BOOKMARK_CONSUME_ITEM_ID == 20033)
|
||||
{
|
||||
sendPacket(SystemMessageId.YOU_CANNOT_BOOKMARK_THIS_LOCATION_BECAUSE_YOU_DO_NOT_HAVE_A_MY_TELEPORT_FLAG);
|
||||
}
|
||||
else
|
||||
{
|
||||
sendPacket(SystemMessageId.INCORRECT_ITEM_COUNT_2);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
destroyItem("Consume", _inventory.getItemByItemId(Config.BOOKMARK_CONSUME_ITEM_ID).getObjectId(), 1, null, true);
|
||||
}
|
||||
|
||||
int id;
|
||||
for (id = 1; id <= _bookmarkslot; ++id)
|
||||
{
|
||||
@@ -12026,12 +12038,6 @@ public class PlayerInstance extends Playable
|
||||
}
|
||||
_tpbookmarks.put(id, new TeleportBookmark(id, x, y, z, icon, tag, name));
|
||||
|
||||
destroyItem("Consume", _inventory.getItemByItemId(20033).getObjectId(), 1, null, false);
|
||||
|
||||
final SystemMessage sm = new SystemMessage(SystemMessageId.S1_DISAPPEARED);
|
||||
sm.addItemName(20033);
|
||||
sendPacket(sm);
|
||||
|
||||
try (Connection con = DatabaseFactory.getConnection();
|
||||
PreparedStatement statement = con.prepareStatement(INSERT_TP_BOOKMARK))
|
||||
{
|
||||
|
||||
@@ -580,6 +580,16 @@ CustomMultisellLoad = True
|
||||
# Default: False
|
||||
CustomBuyListLoad = True
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Teleport Bookmark Settings
|
||||
# ---------------------------------------------------------------------------
|
||||
# Consume item for teleporting.
|
||||
# No item consume: -1
|
||||
# Default: 20033 (Teleport Flag)
|
||||
BookmarkConsumeItemId = 20033
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Birthday Event Settings
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
@@ -593,6 +593,7 @@ public class Config
|
||||
public static boolean CUSTOM_ITEMS_LOAD;
|
||||
public static boolean CUSTOM_MULTISELL_LOAD;
|
||||
public static boolean CUSTOM_BUYLIST_LOAD;
|
||||
public static int BOOKMARK_CONSUME_ITEM_ID;
|
||||
public static int ALT_BIRTHDAY_GIFT;
|
||||
public static String ALT_BIRTHDAY_MAIL_SUBJECT;
|
||||
public static String ALT_BIRTHDAY_MAIL_TEXT;
|
||||
@@ -2041,6 +2042,7 @@ public class Config
|
||||
CUSTOM_ITEMS_LOAD = General.getBoolean("CustomItemsLoad", false);
|
||||
CUSTOM_MULTISELL_LOAD = General.getBoolean("CustomMultisellLoad", false);
|
||||
CUSTOM_BUYLIST_LOAD = General.getBoolean("CustomBuyListLoad", false);
|
||||
BOOKMARK_CONSUME_ITEM_ID = General.getInt("BookmarkConsumeItemId", -1);
|
||||
ALT_BIRTHDAY_GIFT = General.getInt("AltBirthdayGift", 22187);
|
||||
ALT_BIRTHDAY_MAIL_SUBJECT = General.getString("AltBirthdayMailSubject", "Happy Birthday!");
|
||||
ALT_BIRTHDAY_MAIL_TEXT = General.getString("AltBirthdayMailText", "Hello Adventurer!! Seeing as you're one year older now, I thought I would send you some birthday cheer :) Please find your birthday pack attached. May these gifts bring you joy and happiness on this very special day." + EOL + EOL + "Sincerely, Alegria");
|
||||
|
||||
+13
-7
@@ -12010,12 +12010,24 @@ public class PlayerInstance extends Playable
|
||||
return;
|
||||
}
|
||||
|
||||
if (_inventory.getInventoryItemCount(20033, 0) == 0)
|
||||
if (Config.BOOKMARK_CONSUME_ITEM_ID > 0)
|
||||
{
|
||||
if (_inventory.getInventoryItemCount(Config.BOOKMARK_CONSUME_ITEM_ID, -1) == 0)
|
||||
{
|
||||
if (Config.BOOKMARK_CONSUME_ITEM_ID == 20033)
|
||||
{
|
||||
sendPacket(SystemMessageId.YOU_CANNOT_BOOKMARK_THIS_LOCATION_BECAUSE_YOU_DO_NOT_HAVE_A_MY_TELEPORT_FLAG);
|
||||
}
|
||||
else
|
||||
{
|
||||
sendPacket(SystemMessageId.INCORRECT_ITEM_COUNT_2);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
destroyItem("Consume", _inventory.getItemByItemId(Config.BOOKMARK_CONSUME_ITEM_ID).getObjectId(), 1, null, true);
|
||||
}
|
||||
|
||||
int id;
|
||||
for (id = 1; id <= _bookmarkslot; ++id)
|
||||
{
|
||||
@@ -12026,12 +12038,6 @@ public class PlayerInstance extends Playable
|
||||
}
|
||||
_tpbookmarks.put(id, new TeleportBookmark(id, x, y, z, icon, tag, name));
|
||||
|
||||
destroyItem("Consume", _inventory.getItemByItemId(20033).getObjectId(), 1, null, false);
|
||||
|
||||
final SystemMessage sm = new SystemMessage(SystemMessageId.S1_DISAPPEARED);
|
||||
sm.addItemName(20033);
|
||||
sendPacket(sm);
|
||||
|
||||
try (Connection con = DatabaseFactory.getConnection();
|
||||
PreparedStatement statement = con.prepareStatement(INSERT_TP_BOOKMARK))
|
||||
{
|
||||
|
||||
@@ -580,6 +580,16 @@ CustomMultisellLoad = True
|
||||
# Default: False
|
||||
CustomBuyListLoad = True
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Teleport Bookmark Settings
|
||||
# ---------------------------------------------------------------------------
|
||||
# Consume item for teleporting.
|
||||
# No item consume: -1
|
||||
# Default: 20033 (Teleport Flag)
|
||||
BookmarkConsumeItemId = 20033
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Birthday Event Settings
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
@@ -593,6 +593,7 @@ public class Config
|
||||
public static boolean CUSTOM_ITEMS_LOAD;
|
||||
public static boolean CUSTOM_MULTISELL_LOAD;
|
||||
public static boolean CUSTOM_BUYLIST_LOAD;
|
||||
public static int BOOKMARK_CONSUME_ITEM_ID;
|
||||
public static int ALT_BIRTHDAY_GIFT;
|
||||
public static String ALT_BIRTHDAY_MAIL_SUBJECT;
|
||||
public static String ALT_BIRTHDAY_MAIL_TEXT;
|
||||
@@ -2041,6 +2042,7 @@ public class Config
|
||||
CUSTOM_ITEMS_LOAD = General.getBoolean("CustomItemsLoad", false);
|
||||
CUSTOM_MULTISELL_LOAD = General.getBoolean("CustomMultisellLoad", false);
|
||||
CUSTOM_BUYLIST_LOAD = General.getBoolean("CustomBuyListLoad", false);
|
||||
BOOKMARK_CONSUME_ITEM_ID = General.getInt("BookmarkConsumeItemId", -1);
|
||||
ALT_BIRTHDAY_GIFT = General.getInt("AltBirthdayGift", 22187);
|
||||
ALT_BIRTHDAY_MAIL_SUBJECT = General.getString("AltBirthdayMailSubject", "Happy Birthday!");
|
||||
ALT_BIRTHDAY_MAIL_TEXT = General.getString("AltBirthdayMailText", "Hello Adventurer!! Seeing as you're one year older now, I thought I would send you some birthday cheer :) Please find your birthday pack attached. May these gifts bring you joy and happiness on this very special day." + EOL + EOL + "Sincerely, Alegria");
|
||||
|
||||
+13
-7
@@ -11996,12 +11996,24 @@ public class PlayerInstance extends Playable
|
||||
return;
|
||||
}
|
||||
|
||||
if (_inventory.getInventoryItemCount(20033, 0) == 0)
|
||||
if (Config.BOOKMARK_CONSUME_ITEM_ID > 0)
|
||||
{
|
||||
if (_inventory.getInventoryItemCount(Config.BOOKMARK_CONSUME_ITEM_ID, -1) == 0)
|
||||
{
|
||||
if (Config.BOOKMARK_CONSUME_ITEM_ID == 20033)
|
||||
{
|
||||
sendPacket(SystemMessageId.YOU_CANNOT_BOOKMARK_THIS_LOCATION_BECAUSE_YOU_DO_NOT_HAVE_A_MY_TELEPORT_FLAG);
|
||||
}
|
||||
else
|
||||
{
|
||||
sendPacket(SystemMessageId.INCORRECT_ITEM_COUNT_2);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
destroyItem("Consume", _inventory.getItemByItemId(Config.BOOKMARK_CONSUME_ITEM_ID).getObjectId(), 1, null, true);
|
||||
}
|
||||
|
||||
int id;
|
||||
for (id = 1; id <= _bookmarkslot; ++id)
|
||||
{
|
||||
@@ -12012,12 +12024,6 @@ public class PlayerInstance extends Playable
|
||||
}
|
||||
_tpbookmarks.put(id, new TeleportBookmark(id, x, y, z, icon, tag, name));
|
||||
|
||||
destroyItem("Consume", _inventory.getItemByItemId(20033).getObjectId(), 1, null, false);
|
||||
|
||||
final SystemMessage sm = new SystemMessage(SystemMessageId.S1_DISAPPEARED);
|
||||
sm.addItemName(20033);
|
||||
sendPacket(sm);
|
||||
|
||||
try (Connection con = DatabaseFactory.getConnection();
|
||||
PreparedStatement statement = con.prepareStatement(INSERT_TP_BOOKMARK))
|
||||
{
|
||||
|
||||
@@ -580,6 +580,16 @@ CustomMultisellLoad = True
|
||||
# Default: False
|
||||
CustomBuyListLoad = True
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Teleport Bookmark Settings
|
||||
# ---------------------------------------------------------------------------
|
||||
# Consume item for teleporting.
|
||||
# No item consume: -1
|
||||
# Default: 20033 (Teleport Flag)
|
||||
BookmarkConsumeItemId = 20033
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Birthday Event Settings
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
@@ -593,6 +593,7 @@ public class Config
|
||||
public static boolean CUSTOM_ITEMS_LOAD;
|
||||
public static boolean CUSTOM_MULTISELL_LOAD;
|
||||
public static boolean CUSTOM_BUYLIST_LOAD;
|
||||
public static int BOOKMARK_CONSUME_ITEM_ID;
|
||||
public static int ALT_BIRTHDAY_GIFT;
|
||||
public static String ALT_BIRTHDAY_MAIL_SUBJECT;
|
||||
public static String ALT_BIRTHDAY_MAIL_TEXT;
|
||||
@@ -2042,6 +2043,7 @@ public class Config
|
||||
CUSTOM_ITEMS_LOAD = General.getBoolean("CustomItemsLoad", false);
|
||||
CUSTOM_MULTISELL_LOAD = General.getBoolean("CustomMultisellLoad", false);
|
||||
CUSTOM_BUYLIST_LOAD = General.getBoolean("CustomBuyListLoad", false);
|
||||
BOOKMARK_CONSUME_ITEM_ID = General.getInt("BookmarkConsumeItemId", -1);
|
||||
ALT_BIRTHDAY_GIFT = General.getInt("AltBirthdayGift", 22187);
|
||||
ALT_BIRTHDAY_MAIL_SUBJECT = General.getString("AltBirthdayMailSubject", "Happy Birthday!");
|
||||
ALT_BIRTHDAY_MAIL_TEXT = General.getString("AltBirthdayMailText", "Hello Adventurer!! Seeing as you're one year older now, I thought I would send you some birthday cheer :) Please find your birthday pack attached. May these gifts bring you joy and happiness on this very special day." + EOL + EOL + "Sincerely, Alegria");
|
||||
|
||||
+13
-7
@@ -12042,12 +12042,24 @@ public class PlayerInstance extends Playable
|
||||
return;
|
||||
}
|
||||
|
||||
if (_inventory.getInventoryItemCount(20033, 0) == 0)
|
||||
if (Config.BOOKMARK_CONSUME_ITEM_ID > 0)
|
||||
{
|
||||
if (_inventory.getInventoryItemCount(Config.BOOKMARK_CONSUME_ITEM_ID, -1) == 0)
|
||||
{
|
||||
if (Config.BOOKMARK_CONSUME_ITEM_ID == 20033)
|
||||
{
|
||||
sendPacket(SystemMessageId.YOU_CANNOT_BOOKMARK_THIS_LOCATION_BECAUSE_YOU_DO_NOT_HAVE_A_MY_TELEPORT_FLAG);
|
||||
}
|
||||
else
|
||||
{
|
||||
sendPacket(SystemMessageId.INCORRECT_ITEM_COUNT_2);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
destroyItem("Consume", _inventory.getItemByItemId(Config.BOOKMARK_CONSUME_ITEM_ID).getObjectId(), 1, null, true);
|
||||
}
|
||||
|
||||
int id;
|
||||
for (id = 1; id <= _bookmarkslot; ++id)
|
||||
{
|
||||
@@ -12058,12 +12070,6 @@ public class PlayerInstance extends Playable
|
||||
}
|
||||
_tpbookmarks.put(id, new TeleportBookmark(id, x, y, z, icon, tag, name));
|
||||
|
||||
destroyItem("Consume", _inventory.getItemByItemId(20033).getObjectId(), 1, null, false);
|
||||
|
||||
final SystemMessage sm = new SystemMessage(SystemMessageId.S1_DISAPPEARED);
|
||||
sm.addItemName(20033);
|
||||
sendPacket(sm);
|
||||
|
||||
try (Connection con = DatabaseFactory.getConnection();
|
||||
PreparedStatement statement = con.prepareStatement(INSERT_TP_BOOKMARK))
|
||||
{
|
||||
|
||||
@@ -580,6 +580,16 @@ CustomMultisellLoad = True
|
||||
# Default: False
|
||||
CustomBuyListLoad = True
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Teleport Bookmark Settings
|
||||
# ---------------------------------------------------------------------------
|
||||
# Consume item for teleporting.
|
||||
# No item consume: -1
|
||||
# Default: 20033 (Teleport Flag)
|
||||
BookmarkConsumeItemId = 20033
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Birthday Event Settings
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
@@ -593,6 +593,7 @@ public class Config
|
||||
public static boolean CUSTOM_ITEMS_LOAD;
|
||||
public static boolean CUSTOM_MULTISELL_LOAD;
|
||||
public static boolean CUSTOM_BUYLIST_LOAD;
|
||||
public static int BOOKMARK_CONSUME_ITEM_ID;
|
||||
public static int ALT_BIRTHDAY_GIFT;
|
||||
public static String ALT_BIRTHDAY_MAIL_SUBJECT;
|
||||
public static String ALT_BIRTHDAY_MAIL_TEXT;
|
||||
@@ -2051,6 +2052,7 @@ public class Config
|
||||
CUSTOM_ITEMS_LOAD = General.getBoolean("CustomItemsLoad", false);
|
||||
CUSTOM_MULTISELL_LOAD = General.getBoolean("CustomMultisellLoad", false);
|
||||
CUSTOM_BUYLIST_LOAD = General.getBoolean("CustomBuyListLoad", false);
|
||||
BOOKMARK_CONSUME_ITEM_ID = General.getInt("BookmarkConsumeItemId", -1);
|
||||
ALT_BIRTHDAY_GIFT = General.getInt("AltBirthdayGift", 22187);
|
||||
ALT_BIRTHDAY_MAIL_SUBJECT = General.getString("AltBirthdayMailSubject", "Happy Birthday!");
|
||||
ALT_BIRTHDAY_MAIL_TEXT = General.getString("AltBirthdayMailText", "Hello Adventurer!! Seeing as you're one year older now, I thought I would send you some birthday cheer :) Please find your birthday pack attached. May these gifts bring you joy and happiness on this very special day." + EOL + EOL + "Sincerely, Alegria");
|
||||
|
||||
+13
-7
@@ -12042,12 +12042,24 @@ public class PlayerInstance extends Playable
|
||||
return;
|
||||
}
|
||||
|
||||
if (_inventory.getInventoryItemCount(20033, 0) == 0)
|
||||
if (Config.BOOKMARK_CONSUME_ITEM_ID > 0)
|
||||
{
|
||||
if (_inventory.getInventoryItemCount(Config.BOOKMARK_CONSUME_ITEM_ID, -1) == 0)
|
||||
{
|
||||
if (Config.BOOKMARK_CONSUME_ITEM_ID == 20033)
|
||||
{
|
||||
sendPacket(SystemMessageId.YOU_CANNOT_BOOKMARK_THIS_LOCATION_BECAUSE_YOU_DO_NOT_HAVE_A_MY_TELEPORT_FLAG);
|
||||
}
|
||||
else
|
||||
{
|
||||
sendPacket(SystemMessageId.INCORRECT_ITEM_COUNT_2);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
destroyItem("Consume", _inventory.getItemByItemId(Config.BOOKMARK_CONSUME_ITEM_ID).getObjectId(), 1, null, true);
|
||||
}
|
||||
|
||||
int id;
|
||||
for (id = 1; id <= _bookmarkslot; ++id)
|
||||
{
|
||||
@@ -12058,12 +12070,6 @@ public class PlayerInstance extends Playable
|
||||
}
|
||||
_tpbookmarks.put(id, new TeleportBookmark(id, x, y, z, icon, tag, name));
|
||||
|
||||
destroyItem("Consume", _inventory.getItemByItemId(20033).getObjectId(), 1, null, false);
|
||||
|
||||
final SystemMessage sm = new SystemMessage(SystemMessageId.S1_DISAPPEARED);
|
||||
sm.addItemName(20033);
|
||||
sendPacket(sm);
|
||||
|
||||
try (Connection con = DatabaseFactory.getConnection();
|
||||
PreparedStatement statement = con.prepareStatement(INSERT_TP_BOOKMARK))
|
||||
{
|
||||
|
||||
@@ -581,6 +581,15 @@ CustomMultisellLoad = True
|
||||
CustomBuyListLoad = True
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Teleport Bookmark Settings
|
||||
# ---------------------------------------------------------------------------
|
||||
# Consume item for teleporting.
|
||||
# No item consume: -1
|
||||
# Default: 20033 (Teleport Flag)
|
||||
BookmarkConsumeItemId = 20033
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Birthday Event Settings
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
@@ -592,6 +592,7 @@ public class Config
|
||||
public static boolean CUSTOM_ITEMS_LOAD;
|
||||
public static boolean CUSTOM_MULTISELL_LOAD;
|
||||
public static boolean CUSTOM_BUYLIST_LOAD;
|
||||
public static int BOOKMARK_CONSUME_ITEM_ID;
|
||||
public static int ALT_BIRTHDAY_GIFT;
|
||||
public static String ALT_BIRTHDAY_MAIL_SUBJECT;
|
||||
public static String ALT_BIRTHDAY_MAIL_TEXT;
|
||||
@@ -2053,6 +2054,7 @@ public class Config
|
||||
CUSTOM_ITEMS_LOAD = General.getBoolean("CustomItemsLoad", false);
|
||||
CUSTOM_MULTISELL_LOAD = General.getBoolean("CustomMultisellLoad", false);
|
||||
CUSTOM_BUYLIST_LOAD = General.getBoolean("CustomBuyListLoad", false);
|
||||
BOOKMARK_CONSUME_ITEM_ID = General.getInt("BookmarkConsumeItemId", -1);
|
||||
ALT_BIRTHDAY_GIFT = General.getInt("AltBirthdayGift", 22187);
|
||||
ALT_BIRTHDAY_MAIL_SUBJECT = General.getString("AltBirthdayMailSubject", "Happy Birthday!");
|
||||
ALT_BIRTHDAY_MAIL_TEXT = General.getString("AltBirthdayMailText", "Hello Adventurer!! Seeing as you're one year older now, I thought I would send you some birthday cheer :) Please find your birthday pack attached. May these gifts bring you joy and happiness on this very special day." + EOL + EOL + "Sincerely, Alegria");
|
||||
|
||||
+13
-7
@@ -12033,12 +12033,24 @@ public class PlayerInstance extends Playable
|
||||
return;
|
||||
}
|
||||
|
||||
if (_inventory.getInventoryItemCount(20033, 0) == 0)
|
||||
if (Config.BOOKMARK_CONSUME_ITEM_ID > 0)
|
||||
{
|
||||
if (_inventory.getInventoryItemCount(Config.BOOKMARK_CONSUME_ITEM_ID, -1) == 0)
|
||||
{
|
||||
if (Config.BOOKMARK_CONSUME_ITEM_ID == 20033)
|
||||
{
|
||||
sendPacket(SystemMessageId.YOU_CANNOT_BOOKMARK_THIS_LOCATION_BECAUSE_YOU_DO_NOT_HAVE_A_MY_TELEPORT_FLAG);
|
||||
}
|
||||
else
|
||||
{
|
||||
sendPacket(SystemMessageId.INCORRECT_ITEM_COUNT_2);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
destroyItem("Consume", _inventory.getItemByItemId(Config.BOOKMARK_CONSUME_ITEM_ID).getObjectId(), 1, null, true);
|
||||
}
|
||||
|
||||
int id;
|
||||
for (id = 1; id <= _bookmarkslot; ++id)
|
||||
{
|
||||
@@ -12049,12 +12061,6 @@ public class PlayerInstance extends Playable
|
||||
}
|
||||
_tpbookmarks.put(id, new TeleportBookmark(id, x, y, z, icon, tag, name));
|
||||
|
||||
destroyItem("Consume", _inventory.getItemByItemId(20033).getObjectId(), 1, null, false);
|
||||
|
||||
final SystemMessage sm = new SystemMessage(SystemMessageId.S1_DISAPPEARED);
|
||||
sm.addItemName(20033);
|
||||
sendPacket(sm);
|
||||
|
||||
try (Connection con = DatabaseFactory.getConnection();
|
||||
PreparedStatement statement = con.prepareStatement(INSERT_TP_BOOKMARK))
|
||||
{
|
||||
|
||||
@@ -612,6 +612,16 @@ CustomMultisellLoad = True
|
||||
# Default: False
|
||||
CustomBuyListLoad = True
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Teleport Bookmark Settings
|
||||
# ---------------------------------------------------------------------------
|
||||
# Consume item for teleporting.
|
||||
# No item consume: -1
|
||||
# Default: 20033 (Teleport Flag)
|
||||
BookmarkConsumeItemId = 20033
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Birthday Event Settings
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
@@ -600,6 +600,7 @@ public class Config
|
||||
public static boolean CUSTOM_ITEMS_LOAD;
|
||||
public static boolean CUSTOM_MULTISELL_LOAD;
|
||||
public static boolean CUSTOM_BUYLIST_LOAD;
|
||||
public static int BOOKMARK_CONSUME_ITEM_ID;
|
||||
public static int ALT_BIRTHDAY_GIFT;
|
||||
public static String ALT_BIRTHDAY_MAIL_SUBJECT;
|
||||
public static String ALT_BIRTHDAY_MAIL_TEXT;
|
||||
@@ -2052,6 +2053,7 @@ public class Config
|
||||
CUSTOM_ITEMS_LOAD = General.getBoolean("CustomItemsLoad", false);
|
||||
CUSTOM_MULTISELL_LOAD = General.getBoolean("CustomMultisellLoad", false);
|
||||
CUSTOM_BUYLIST_LOAD = General.getBoolean("CustomBuyListLoad", false);
|
||||
BOOKMARK_CONSUME_ITEM_ID = General.getInt("BookmarkConsumeItemId", -1);
|
||||
ALT_BIRTHDAY_GIFT = General.getInt("AltBirthdayGift", 22187);
|
||||
ALT_BIRTHDAY_MAIL_SUBJECT = General.getString("AltBirthdayMailSubject", "Happy Birthday!");
|
||||
ALT_BIRTHDAY_MAIL_TEXT = General.getString("AltBirthdayMailText", "Hello Adventurer!! Seeing as you're one year older now, I thought I would send you some birthday cheer :) Please find your birthday pack attached. May these gifts bring you joy and happiness on this very special day." + EOL + EOL + "Sincerely, Alegria");
|
||||
|
||||
+13
-7
@@ -12006,12 +12006,24 @@ public class PlayerInstance extends Playable
|
||||
return;
|
||||
}
|
||||
|
||||
if (_inventory.getInventoryItemCount(20033, 0) == 0)
|
||||
if (Config.BOOKMARK_CONSUME_ITEM_ID > 0)
|
||||
{
|
||||
if (_inventory.getInventoryItemCount(Config.BOOKMARK_CONSUME_ITEM_ID, -1) == 0)
|
||||
{
|
||||
if (Config.BOOKMARK_CONSUME_ITEM_ID == 20033)
|
||||
{
|
||||
sendPacket(SystemMessageId.YOU_CANNOT_BOOKMARK_THIS_LOCATION_BECAUSE_YOU_DO_NOT_HAVE_A_MY_TELEPORT_FLAG);
|
||||
}
|
||||
else
|
||||
{
|
||||
sendPacket(SystemMessageId.INCORRECT_ITEM_COUNT_2);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
destroyItem("Consume", _inventory.getItemByItemId(Config.BOOKMARK_CONSUME_ITEM_ID).getObjectId(), 1, null, true);
|
||||
}
|
||||
|
||||
int id;
|
||||
for (id = 1; id <= _bookmarkslot; ++id)
|
||||
{
|
||||
@@ -12022,12 +12034,6 @@ public class PlayerInstance extends Playable
|
||||
}
|
||||
_tpbookmarks.put(id, new TeleportBookmark(id, x, y, z, icon, tag, name));
|
||||
|
||||
destroyItem("Consume", _inventory.getItemByItemId(20033).getObjectId(), 1, null, false);
|
||||
|
||||
final SystemMessage sm = new SystemMessage(SystemMessageId.S1_DISAPPEARED);
|
||||
sm.addItemName(20033);
|
||||
sendPacket(sm);
|
||||
|
||||
try (Connection con = DatabaseFactory.getConnection();
|
||||
PreparedStatement statement = con.prepareStatement(INSERT_TP_BOOKMARK))
|
||||
{
|
||||
|
||||
@@ -581,6 +581,15 @@ CustomMultisellLoad = True
|
||||
CustomBuyListLoad = True
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Teleport Bookmark Settings
|
||||
# ---------------------------------------------------------------------------
|
||||
# Consume item for teleporting.
|
||||
# Default: 20033 (Teleport Flag)
|
||||
# No item consume: -1
|
||||
BookmarkConsumeItemId = -1
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Birthday Event Settings
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
@@ -594,6 +594,7 @@ public class Config
|
||||
public static boolean CUSTOM_ITEMS_LOAD;
|
||||
public static boolean CUSTOM_MULTISELL_LOAD;
|
||||
public static boolean CUSTOM_BUYLIST_LOAD;
|
||||
public static int BOOKMARK_CONSUME_ITEM_ID;
|
||||
public static int ALT_BIRTHDAY_GIFT;
|
||||
public static String ALT_BIRTHDAY_MAIL_SUBJECT;
|
||||
public static String ALT_BIRTHDAY_MAIL_TEXT;
|
||||
@@ -2087,6 +2088,7 @@ public class Config
|
||||
CUSTOM_ITEMS_LOAD = General.getBoolean("CustomItemsLoad", false);
|
||||
CUSTOM_MULTISELL_LOAD = General.getBoolean("CustomMultisellLoad", false);
|
||||
CUSTOM_BUYLIST_LOAD = General.getBoolean("CustomBuyListLoad", false);
|
||||
BOOKMARK_CONSUME_ITEM_ID = General.getInt("BookmarkConsumeItemId", -1);
|
||||
ALT_BIRTHDAY_GIFT = General.getInt("AltBirthdayGift", 22187);
|
||||
ALT_BIRTHDAY_MAIL_SUBJECT = General.getString("AltBirthdayMailSubject", "Happy Birthday!");
|
||||
ALT_BIRTHDAY_MAIL_TEXT = General.getString("AltBirthdayMailText", "Hello Adventurer!! Seeing as you're one year older now, I thought I would send you some birthday cheer :) Please find your birthday pack attached. May these gifts bring you joy and happiness on this very special day." + EOL + EOL + "Sincerely, Alegria");
|
||||
|
||||
+13
-7
@@ -12293,12 +12293,24 @@ public class PlayerInstance extends Playable
|
||||
return;
|
||||
}
|
||||
|
||||
if (_inventory.getInventoryItemCount(20033, 0) == 0)
|
||||
if (Config.BOOKMARK_CONSUME_ITEM_ID > 0)
|
||||
{
|
||||
if (_inventory.getInventoryItemCount(Config.BOOKMARK_CONSUME_ITEM_ID, -1) == 0)
|
||||
{
|
||||
if (Config.BOOKMARK_CONSUME_ITEM_ID == 20033)
|
||||
{
|
||||
sendPacket(SystemMessageId.YOU_CANNOT_BOOKMARK_THIS_LOCATION_BECAUSE_YOU_DO_NOT_HAVE_A_MY_TELEPORT_FLAG);
|
||||
}
|
||||
else
|
||||
{
|
||||
sendPacket(SystemMessageId.INCORRECT_ITEM_COUNT_2);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
destroyItem("Consume", _inventory.getItemByItemId(Config.BOOKMARK_CONSUME_ITEM_ID).getObjectId(), 1, null, true);
|
||||
}
|
||||
|
||||
int id;
|
||||
for (id = 1; id <= _bookmarkslot; ++id)
|
||||
{
|
||||
@@ -12309,12 +12321,6 @@ public class PlayerInstance extends Playable
|
||||
}
|
||||
_tpbookmarks.put(id, new TeleportBookmark(id, x, y, z, icon, tag, name));
|
||||
|
||||
destroyItem("Consume", _inventory.getItemByItemId(20033).getObjectId(), 1, null, false);
|
||||
|
||||
final SystemMessage sm = new SystemMessage(SystemMessageId.S1_DISAPPEARED);
|
||||
sm.addItemName(20033);
|
||||
sendPacket(sm);
|
||||
|
||||
try (Connection con = DatabaseFactory.getConnection();
|
||||
PreparedStatement statement = con.prepareStatement(INSERT_TP_BOOKMARK))
|
||||
{
|
||||
|
||||
@@ -581,6 +581,15 @@ CustomMultisellLoad = True
|
||||
CustomBuyListLoad = True
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Teleport Bookmark Settings
|
||||
# ---------------------------------------------------------------------------
|
||||
# Consume item for teleporting.
|
||||
# Default: 20033 (Teleport Flag)
|
||||
# No item consume: -1
|
||||
BookmarkConsumeItemId = -1
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Birthday Event Settings
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
@@ -594,6 +594,7 @@ public class Config
|
||||
public static boolean CUSTOM_ITEMS_LOAD;
|
||||
public static boolean CUSTOM_MULTISELL_LOAD;
|
||||
public static boolean CUSTOM_BUYLIST_LOAD;
|
||||
public static int BOOKMARK_CONSUME_ITEM_ID;
|
||||
public static int ALT_BIRTHDAY_GIFT;
|
||||
public static String ALT_BIRTHDAY_MAIL_SUBJECT;
|
||||
public static String ALT_BIRTHDAY_MAIL_TEXT;
|
||||
@@ -2090,6 +2091,7 @@ public class Config
|
||||
CUSTOM_ITEMS_LOAD = General.getBoolean("CustomItemsLoad", false);
|
||||
CUSTOM_MULTISELL_LOAD = General.getBoolean("CustomMultisellLoad", false);
|
||||
CUSTOM_BUYLIST_LOAD = General.getBoolean("CustomBuyListLoad", false);
|
||||
BOOKMARK_CONSUME_ITEM_ID = General.getInt("BookmarkConsumeItemId", -1);
|
||||
ALT_BIRTHDAY_GIFT = General.getInt("AltBirthdayGift", 22187);
|
||||
ALT_BIRTHDAY_MAIL_SUBJECT = General.getString("AltBirthdayMailSubject", "Happy Birthday!");
|
||||
ALT_BIRTHDAY_MAIL_TEXT = General.getString("AltBirthdayMailText", "Hello Adventurer!! Seeing as you're one year older now, I thought I would send you some birthday cheer :) Please find your birthday pack attached. May these gifts bring you joy and happiness on this very special day." + EOL + EOL + "Sincerely, Alegria");
|
||||
|
||||
+13
-7
@@ -12360,12 +12360,24 @@ public class PlayerInstance extends Playable
|
||||
return;
|
||||
}
|
||||
|
||||
if (_inventory.getInventoryItemCount(20033, 0) == 0)
|
||||
if (Config.BOOKMARK_CONSUME_ITEM_ID > 0)
|
||||
{
|
||||
if (_inventory.getInventoryItemCount(Config.BOOKMARK_CONSUME_ITEM_ID, -1) == 0)
|
||||
{
|
||||
if (Config.BOOKMARK_CONSUME_ITEM_ID == 20033)
|
||||
{
|
||||
sendPacket(SystemMessageId.YOU_CANNOT_BOOKMARK_THIS_LOCATION_BECAUSE_YOU_DO_NOT_HAVE_A_MY_TELEPORT_FLAG);
|
||||
}
|
||||
else
|
||||
{
|
||||
sendPacket(SystemMessageId.INCORRECT_ITEM_COUNT_2);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
destroyItem("Consume", _inventory.getItemByItemId(Config.BOOKMARK_CONSUME_ITEM_ID).getObjectId(), 1, null, true);
|
||||
}
|
||||
|
||||
int id;
|
||||
for (id = 1; id <= _bookmarkslot; ++id)
|
||||
{
|
||||
@@ -12376,12 +12388,6 @@ public class PlayerInstance extends Playable
|
||||
}
|
||||
_tpbookmarks.put(id, new TeleportBookmark(id, x, y, z, icon, tag, name));
|
||||
|
||||
destroyItem("Consume", _inventory.getItemByItemId(20033).getObjectId(), 1, null, false);
|
||||
|
||||
final SystemMessage sm = new SystemMessage(SystemMessageId.S1_DISAPPEARED);
|
||||
sm.addItemName(20033);
|
||||
sendPacket(sm);
|
||||
|
||||
try (Connection con = DatabaseFactory.getConnection();
|
||||
PreparedStatement statement = con.prepareStatement(INSERT_TP_BOOKMARK))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user