Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ### Eclipse Workspace Patch 1.0
- #P OrionRev28
- diff --git files/game/config/main/L2jOrion.ini files/game/config/main/L2jOrion.ini
- index 97ef069..126f1bc 100644
- --- files/game/config/main/L2jOrion.ini
- +++ files/game/config/main/L2jOrion.ini
- @@ -511,3 +511,13 @@
- BlackCouponId = 6392
- +#==========================================================================
- +# RANDOM CRAFT SYSTEM NPC - ID - CONSUME - REFRESH - CREATE - ITEMS
- +#==========================================================================
- +
- +RandomCraftItemId = 57
- +
- +RandomCraftConsumeRefresh = 50000
- +
- +RandromCraftConsumeCreate = 300000
- +
- diff --git files/game/data/xml/RandomCraft.xml files/game/data/xml/RandomCraft.xml
- new file mode 100644
- index 0000000..c4972de
- --- /dev/null
- +++ files/game/data/xml/RandomCraft.xml
- @@ -0,0 +1,27 @@
- +<?xml version="1.0" encoding="UTF-8"?>
- + <rewards>
- + <item id="6392" count="1" chance="10" />
- + <item id="5714" count="1" chance="10" />
- + <item id="5715" count="1" chance="10" />
- + <item id="5720" count="1" chance="10" />
- + <item id="5727" count="1" chance="10" />
- + <item id="5709" count="1" chance="10" />
- + <item id="5765" count="1" chance="10" />
- + <item id="5768" count="1" chance="10" />
- + <item id="5777" count="1" chance="10" />
- + <item id="5778" count="1" chance="10" />
- + <item id="5779" count="1" chance="10" />
- + <item id="5780" count="1" chance="10" />
- + <item id="5787" count="1" chance="10" />
- + <item id="5788" count="1" chance="10" />
- + <item id="5783" count="1" chance="10" />
- + <item id="5784" count="1" chance="10" />
- + <item id="5781" count="1" chance="10" />
- + <item id="5644" count="1" chance="20" />
- + <item id="5706" count="1" chance="20" />
- + <item id="5704" count="1" chance="20" />
- + <item id="6372" count="1" chance="25" />
- + <item id="6377" count="1" chance="50" />
- + <item id="6367" count="1" chance="40" />
- + </rewards>
- +
- diff --git src/Base/RandomCraftSystem/RandomCraftItem.java src/Base/RandomCraftSystem/RandomCraftItem.java
- new file mode 100644
- index 0000000..3687699
- --- /dev/null
- +++ src/Base/RandomCraftSystem/RandomCraftItem.java
- @@ -0,0 +1,48 @@
- +package Base.RandomCraftSystem;
- +
- +import l2jorion.game.datatables.sql.ItemTable;
- +import l2jorion.game.templates.L2Item;
- +
- +/**
- + * @author Terius
- + */
- +
- +public class RandomCraftItem
- +{
- + private int id;
- + private int cantidad;
- + private double probabilidad;
- +
- + public RandomCraftItem(int id, int cantidad, double probabilidad)
- + {
- + this.id = id;
- + this.cantidad = cantidad;
- + this.probabilidad = probabilidad;
- + }
- +
- + public int getId()
- + {
- + return id;
- + }
- +
- + public int getCantidad()
- + {
- + return cantidad;
- + }
- +
- + public double getProbabilidad()
- + {
- + return probabilidad;
- + }
- +
- + public String getIcon()
- + {
- + return getItem().getIcon();
- + }
- +
- + public L2Item getItem()
- + {
- + return ItemTable.getInstance().getTemplate(id);
- + }
- +
- +}
- diff --git src/Base/RandomCraftSystem/RandomCraftXML.java src/Base/RandomCraftSystem/RandomCraftXML.java
- new file mode 100644
- index 0000000..242304e
- --- /dev/null
- +++ src/Base/RandomCraftSystem/RandomCraftXML.java
- @@ -0,0 +1,83 @@
- +package Base.RandomCraftSystem;
- +
- +import java.io.File;
- +import java.util.HashMap;
- +import java.util.Map;
- +
- +import org.w3c.dom.Document;
- +import org.w3c.dom.NamedNodeMap;
- +import org.w3c.dom.Node;
- +
- +import Base.Data.XMLDocument;
- +
- +/**
- + * @author Terius
- + */
- +
- +public class RandomCraftXML extends XMLDocument
- +{
- + private Map<Integer, RandomCraftItem> items;
- +
- + public RandomCraftXML()
- + {
- + items = new HashMap<>();
- + load();
- + }
- +
- + public static RandomCraftXML getInstance()
- + {
- + return SingletonHolder.INSTANCE;
- + }
- +
- + private static class SingletonHolder
- + {
- + protected static final RandomCraftXML INSTANCE = new RandomCraftXML();
- + }
- +
- + @Override
- + protected void load()
- + {
- + loadDocument("./data/xml/RandomCraft.xml");
- + LOG.info("RandomCraftItemData: Loaded " + items.size() + " items.");
- + }
- +
- + @Override
- + protected void parseDocument(Document doc, File file)
- + {
- + try
- + {
- + final Node root = doc.getFirstChild();
- +
- + for (Node node = root.getFirstChild(); node != null; node = node.getNextSibling())
- + {
- + if (!"item".equalsIgnoreCase(node.getNodeName()))
- + {
- + continue;
- + }
- +
- + NamedNodeMap attrs = node.getAttributes();
- + int id = Integer.parseInt(attrs.getNamedItem("id").getNodeValue());
- + int cantidad = Integer.parseInt(attrs.getNamedItem("count").getNodeValue());
- + double probabilidad = Double.parseDouble(attrs.getNamedItem("chance").getNodeValue());
- +
- + RandomCraftItem item = new RandomCraftItem(id, cantidad, probabilidad);
- + items.put(id, item);
- + }
- + }
- + catch (Exception e)
- + {
- + // LOG.warning("RandomCraftItemData: Error while loading items: " + e);
- + e.printStackTrace();
- + }
- + }
- +
- + public Map<Integer, RandomCraftItem> getItems()
- + {
- + return items;
- + }
- +
- + public RandomCraftItem getItemById(int id)
- + {
- + return items.get(id);
- + }
- +}
- diff --git src/l2jorion/Config.java src/l2jorion/Config.java
- index 06bdba7..3f1eab1 100644
- --- src/l2jorion/Config.java
- +++ src/l2jorion/Config.java
- @@ -2530,6 +2530,10 @@
- public static int BLACK_COUPON_ID;
- + public static int RANDOM_CRAFT_ITEM_ID_CONSUME;
- + public static int RANDOM_CRAFT_ITEM_CONSUME_REFRESH;
- + public static int RANDOM_CRAFT_ITEM_CONSUME_CREATE;
- +
- public static void loadL2jOrionConfig()
- {
- final String L2jOrion = ConfigLoader.L2jOrion_CONFIG_FILE;
- @@ -2551,6 +2555,12 @@
- BLACK_COUPON_ID = Integer.parseInt(L2jOrionSettings.getProperty("BlackCouponId", "6392"));
- + RANDOM_CRAFT_ITEM_ID_CONSUME = Integer.parseInt(L2jOrionSettings.getProperty("RandomCraftItemId", "57"));
- +
- + RANDOM_CRAFT_ITEM_CONSUME_REFRESH = Integer.parseInt(L2jOrionSettings.getProperty("RandomCraftConsumeRefresh", "50000"));
- +
- + RANDOM_CRAFT_ITEM_CONSUME_CREATE = Integer.parseInt(L2jOrionSettings.getProperty("RandromCraftConsumeCreate", "300000"));
- +
- ALLOW_FREIGHT_AUGMENTED = Boolean.parseBoolean(L2jOrionSettings.getProperty("AllowFreightAugmentedItem", "False"));
- ANNOUNCE_BOSS_UNDER_ATTACK = Boolean.parseBoolean(L2jOrionSettings.getProperty("AnnounceBossUnderAttack", "False"));
- LIVE_CASTING_CHECK = Boolean.parseBoolean(L2jOrionSettings.getProperty("LiveCastingCheck", "False"));
- diff --git src/l2jorion/game/GameServer.java src/l2jorion/game/GameServer.java
- index 543cccd..fc177e3 100644
- --- src/l2jorion/game/GameServer.java
- +++ src/l2jorion/game/GameServer.java
- @@ -12,6 +12,7 @@
- import java.util.logging.LogManager;
- import Base.Data.IconTable;
- +import Base.RandomCraftSystem.RandomCraftXML;
- import l2jorion.Config;
- import l2jorion.ConfigLoader;
- import l2jorion.ServerType;
- @@ -496,6 +497,9 @@
- VoicedCommandHandler.getInstance();
- CommunityBoardManager.getInstance();
- + Util.printSection("RandomCraft - Terius");
- + RandomCraftXML.getInstance();
- +
- IconTable.getInstance();
- LOG.info("AutoChatHandler: Loaded " + AutoChatHandler.getInstance().size() + " handlers");
- diff --git src/l2jorion/game/model/actor/instance/L2PcInstance.java src/l2jorion/game/model/actor/instance/L2PcInstance.java
- index b35e5f3..9d13dd2 100644
- --- src/l2jorion/game/model/actor/instance/L2PcInstance.java
- +++ src/l2jorion/game/model/actor/instance/L2PcInstance.java
- @@ -22,6 +22,7 @@
- import java.util.concurrent.TimeUnit;
- import java.util.concurrent.locks.ReentrantLock;
- +import Base.RandomCraftSystem.RandomCraftItem;
- import javolution.text.TextBuilder;
- import javolution.util.FastMap;
- import javolution.util.FastSet;
- @@ -306,6 +307,8 @@
- private int _bossZoneId = 0;
- + private List<RandomCraftItem> generatedCraftItems;
- +
- private int _autofarm_radius = 0;
- private String _autofarm_mode = "None";
- private Location _autofarm_distance;
- @@ -20117,6 +20120,21 @@
- _weeklyBoardOnlineBeginTime = System.currentTimeMillis();
- }
- + public List<RandomCraftItem> getGeneratedCraftItems()
- + {
- + return generatedCraftItems;
- + }
- +
- + public void setGeneratedCraftItems(List<RandomCraftItem> items)
- + {
- + generatedCraftItems = items;
- + }
- +
- + public void clearGeneratedCraftItems()
- + {
- + generatedCraftItems.clear();
- + }
- +
- @Override
- public boolean isBot()
- {
- diff --git src/l2jorion/game/model/actor/instance/L2RandomCraftInstance.java src/l2jorion/game/model/actor/instance/L2RandomCraftInstance.java
- new file mode 100644
- index 0000000..a528388
- --- /dev/null
- +++ src/l2jorion/game/model/actor/instance/L2RandomCraftInstance.java
- @@ -0,0 +1,452 @@
- +package l2jorion.game.model.actor.instance;
- +
- +import java.sql.Connection;
- +import java.sql.PreparedStatement;
- +import java.sql.ResultSet;
- +import java.sql.SQLException;
- +import java.util.ArrayList;
- +import java.util.LinkedList;
- +import java.util.List;
- +import java.util.Map;
- +import java.util.Random;
- +
- +import Base.RandomCraftSystem.RandomCraftItem;
- +import Base.RandomCraftSystem.RandomCraftXML;
- +import l2jorion.Config;
- +import l2jorion.game.ai.CtrlIntention;
- +import l2jorion.game.network.serverpackets.ActionFailed;
- +import l2jorion.game.network.serverpackets.ItemList;
- +import l2jorion.game.network.serverpackets.MoveToPawn;
- +import l2jorion.game.network.serverpackets.MyTargetSelected;
- +import l2jorion.game.network.serverpackets.NpcHtmlMessage;
- +import l2jorion.game.network.serverpackets.ValidateLocation;
- +import l2jorion.game.templates.L2NpcTemplate;
- +import l2jorion.util.database.L2DatabaseFactory;
- +
- +/**
- + * @author Terius
- + */
- +
- +public class L2RandomCraftInstance extends L2NpcInstance
- +{
- + private boolean hasGeneratedItems;
- + List<RandomCraftItem> items = new LinkedList<>();
- +
- + public L2RandomCraftInstance(int objectId, L2NpcTemplate template)
- + {
- + super(objectId, template);
- + setHasGeneratedItems(false);
- + }
- +
- + @Override
- + public void onAction(L2PcInstance player)
- + {
- + if (this != player.getTarget())
- + {
- + player.setTarget(this);
- + player.sendPacket(new MyTargetSelected(getObjectId(), 0));
- + player.sendPacket(new ValidateLocation(this));
- + }
- + else
- + {
- + if (!canInteract(player))
- + {
- + player.getAI().setIntention(CtrlIntention.AI_INTENTION_INTERACT, this);
- + }
- + else
- + {
- + // Gira el jugador para enfrentar la instancia
- + player.sendPacket(new MoveToPawn(player, this, L2NpcInstance.INTERACTION_DISTANCE));
- +
- + if (hasRandomAnimation())
- + {
- + onRandomAnimation();
- + }
- +
- + loadGeneratedItems(player);
- +
- + showHtmlWindow(player);
- +
- + // Enviar ActionFailed al jugador para evitar quedarse atascado
- + player.sendPacket(ActionFailed.STATIC_PACKET);
- + }
- + }
- + }
- +
- + @Override
- + public void onBypassFeedback(L2PcInstance player, String command)
- + {
- + if (command.startsWith("refresh"))
- + {
- + // Verifique si el jugador tiene el artículo requerido (ID 57) y la cantidad (50000)
- + L2ItemInstance item57 = player.getInventory().getItemByItemId(Config.RANDOM_CRAFT_ITEM_ID_CONSUME);
- + if (item57 != null && item57.getCount() >= Config.RANDOM_CRAFT_ITEM_CONSUME_REFRESH)
- + {
- + // Cargue al jugador el artículo requerido (ID 57) y la cantidad (50000)
- + player.getInventory().destroyItemByItemId("Random Craft", Config.RANDOM_CRAFT_ITEM_ID_CONSUME, Config.RANDOM_CRAFT_ITEM_CONSUME_REFRESH, player, this);
- +
- + generateItems(player);
- + showHtmlWindow(player);
- + player.sendPacket(new ItemList(player, true));
- +
- + // Almacene los elementos generados en la base de datos para el jugador
- + saveGeneratedItems(player);
- + }
- + else
- + {
- + player.sendMessage("Necesitas al menos 50000 Adena para actualizar Random Craft.");
- + }
- + }
- + else if (command.startsWith("create"))
- + {
- + // Eliminar los elementos generados para el jugador de la tabla RandomCraftItem
- + deleteGeneratedItems(player);
- +
- + createItem(player);
- + showHtmlWindow(player);
- + }
- + }
- +
- + private void generateItems(L2PcInstance player)
- + {
- + List<RandomCraftItem> items = new LinkedList<>();
- + RandomCraftXML randomCraftXML = RandomCraftXML.getInstance();
- + Map<Integer, RandomCraftItem> craftItems = randomCraftXML.getItems();
- +
- + // Genera 4 elementos únicos para cada jugador en función de la probabilidad
- + List<Integer> selectedItems = new ArrayList<>();
- + while (selectedItems.size() < 4)
- + {
- + int itemId = getRandomItem(craftItems);
- + if (!selectedItems.contains(itemId))
- + {
- + selectedItems.add(itemId);
- + items.add(craftItems.get(itemId));
- + }
- + }
- +
- + // Asignar los elementos generados al jugador
- + player.setGeneratedCraftItems(items);
- + setHasGeneratedItems(true);
- +
- + }
- +
- + private void deleteGeneratedItems(L2PcInstance player)
- + {
- + Connection con = null;
- + PreparedStatement stmt = null;
- +
- + try
- + {
- + con = L2DatabaseFactory.getInstance().getConnection();
- + stmt = con.prepareStatement("DELETE FROM RandomCraftItem WHERE object_id = ?");
- + stmt.setInt(1, player.getObjectId());
- + stmt.execute();
- + }
- + catch (SQLException e)
- + {
- + e.printStackTrace();
- + }
- + finally
- + {
- + // Cerrar recursos
- + try
- + {
- + if (stmt != null)
- + {
- + stmt.close();
- + }
- + }
- + catch (SQLException e)
- + {
- + e.printStackTrace();
- + }
- + try
- + {
- + if (con != null)
- + {
- + con.close();
- + }
- + }
- + catch (SQLException e)
- + {
- + e.printStackTrace();
- + }
- + }
- + }
- +
- + private void saveGeneratedItems(L2PcInstance player)
- + {
- + Connection con = null;
- + PreparedStatement stmt = null;
- + try
- + {
- + con = L2DatabaseFactory.getInstance().getConnection();
- + stmt = con.prepareStatement("DELETE FROM RandomCraftItem WHERE object_id = ?");
- + stmt.setInt(1, player.getObjectId());
- + stmt.execute();
- + stmt.close();
- +
- + stmt = con.prepareStatement("INSERT INTO RandomCraftItem (object_id, item_id, amount, chance) VALUES (?, ?, ?, ?)");
- + stmt.setInt(1, player.getObjectId());
- + List<RandomCraftItem> items = player.getGeneratedCraftItems();
- + if (items != null)
- + {
- + for (RandomCraftItem item : items)
- + {
- + stmt.setInt(2, item.getId());
- + stmt.setInt(3, item.getCantidad());
- + stmt.setDouble(4, item.getProbabilidad());
- + stmt.addBatch(); // Agregar la consulta al lote (batch)
- + }
- + stmt.executeBatch(); // Ejecutar el lote de consultas
- + }
- + stmt.close();
- + }
- + catch (SQLException e)
- + {
- + e.printStackTrace();
- + }
- + finally
- + {
- + // Cerrar recursos
- + try
- + {
- + if (stmt != null)
- + {
- + stmt.close();
- + }
- + }
- + catch (SQLException e)
- + {
- + e.printStackTrace();
- + }
- + try
- + {
- + if (con != null)
- + {
- + con.close();
- + }
- + }
- + catch (SQLException e)
- + {
- + e.printStackTrace();
- + }
- + }
- + }
- +
- + private void loadGeneratedItems(L2PcInstance player)
- + {
- + Connection con = null;
- + PreparedStatement stmt = null;
- + ResultSet rset = null;
- +
- + try
- + {
- + con = L2DatabaseFactory.getInstance().getConnection();
- + stmt = con.prepareStatement("SELECT item_id, amount, chance FROM RandomCraftItem WHERE object_id = ?");
- + stmt.setInt(1, player.getObjectId());
- + rset = stmt.executeQuery();
- +
- + List<RandomCraftItem> items = new LinkedList<>();
- + while (rset.next())
- + {
- + int itemId = rset.getInt("item_id");
- + int amount = rset.getInt("amount");
- + int chance = rset.getInt("chance");
- + RandomCraftItem item = new RandomCraftItem(itemId, amount, chance);
- + items.add(item);
- + }
- +
- + player.setGeneratedCraftItems(items);
- + setHasGeneratedItems(!items.isEmpty());
- +
- + }
- + catch (SQLException e)
- + {
- + e.printStackTrace();
- + }
- + finally
- + {
- + // Cerrar recursos
- + try
- + {
- + if (stmt != null)
- + {
- + stmt.close();
- + }
- + }
- + catch (SQLException e)
- + {
- + e.printStackTrace();
- + }
- + try
- + {
- + if (con != null)
- + {
- + con.close();
- + }
- + }
- + catch (SQLException e)
- + {
- + e.printStackTrace();
- + }
- + }
- + }
- +
- + private int getRandomItem(Map<Integer, RandomCraftItem> craftItems)
- + {
- + // Calcular la suma de probabilidad total
- + double totalProbability = 0;
- + for (RandomCraftItem item : craftItems.values())
- + {
- + totalProbability += item.getProbabilidad();
- + }
- +
- + // Generar un valor aleatorio entre 0 y la probabilidad total
- + Random random = new Random();
- + double randomValue = random.nextDouble() * totalProbability;
- +
- + // Seleccione el elemento en función de la probabilidad
- + double cumulativeProbability = 0;
- + for (RandomCraftItem item : craftItems.values())
- + {
- + cumulativeProbability += item.getProbabilidad();
- + if (randomValue <= cumulativeProbability)
- + {
- + return item.getId();
- + }
- + }
- +
- + // Si no se selecciona ningún artículo, devolver un artículo al azar
- + List<Integer> itemIds = new ArrayList<>(craftItems.keySet());
- + int index = random.nextInt(itemIds.size());
- + return itemIds.get(index);
- + }
- +
- + private void createItem(L2PcInstance player)
- + {
- + // Compruebe si la lista de elementos está vacía
- + List<RandomCraftItem> items = player.getGeneratedCraftItems();
- + if (items == null || items.isEmpty())
- + {
- + player.sendMessage("Necesita actualizar para poder crear un elemento aleatorio.");
- + return;
- + }
- +
- + // Obtenga un elemento aleatorio de la lista de elementos generados
- + Random random = new Random();
- + int index = random.nextInt(items.size());
- + RandomCraftItem craftItem = items.get(index);
- +
- + // Cargue al jugador el artículo con ID 57 y cantidad 300000
- + L2ItemInstance item57 = player.getInventory().getItemByItemId(Config.RANDOM_CRAFT_ITEM_ID_CONSUME);
- + if (item57 != null && item57.getCount() >= Config.RANDOM_CRAFT_ITEM_CONSUME_CREATE)
- + {
- + player.getInventory().destroyItemByItemId("Random Craft", Config.RANDOM_CRAFT_ITEM_ID_CONSUME, Config.RANDOM_CRAFT_ITEM_CONSUME_CREATE, player, this);
- +
- + // Dar el artículo al jugado
- + L2ItemInstance itemInstance = player.getInventory().addItem("Random Craft", craftItem.getId(), craftItem.getCantidad(), player, this);
- + if (itemInstance != null)
- + {
- + player.sendPacket(new ItemList(player, true));
- +
- + // Envía un mensaje al jugador con el nombre del artículo y la cantidad.
- + String message = "¡Felicidades! Has recibido " + craftItem.getItem().getName() + " (Cantidad: " + craftItem.getCantidad() + ")";
- + player.sendMessage(message);
- +
- + // Borrar la lista de elementos para el jugador
- + player.clearGeneratedCraftItems();
- + setHasGeneratedItems(false);
- + return;
- + }
- + }
- +
- + player.sendMessage("Necesitas al menos 300000 Adena para crear un elemento aleatorio.");
- + }
- +
- + private void showHtmlWindow(L2PcInstance player)
- + {
- + StringBuilder html = new StringBuilder();
- + html.append("<html><body>");
- + html.append("<center>Bienvenido a Random Craft System!</center>");
- + html.append("<br>");
- + html.append("<center>Podras Crear 1 item entre los 4 que salgan random!</center>");
- + html.append("<br>");
- + html.append("<center>Les Deseo Mucha Suerte</center>");
- + html.append("<br>");
- + html.append("<br>");
- +
- + List<RandomCraftItem> items = player.getGeneratedCraftItems();
- + if (items == null || items.isEmpty())
- + {
- + html.append("<center>La Lista Esta Vacia Dale a Refresh</center>");
- + }
- + else
- + {
- + // Generar los iconos de los artículos en forma horizontal
- + for (RandomCraftItem item : items)
- + {
- + html.append("<img src=\"L2UI.SquareGray\" width=295 height=1>");
- + html.append("<div align=center>");
- + html.append("<table>");
- + html.append("<tr>");
- + html.append("<td>");
- + html.append("<img src=").append(item.getIcon()).append(" width=32 height=32>");
- + html.append("</td>");
- + html.append("<td width=260>");
- + html.append("<font color=LEVEL>").append(item.getItem().getName()).append("</font>");
- +
- + html.append("</td>");
- + html.append("</tr>");
- + html.append("</table>");
- + html.append("</div>");
- + html.append("<img src=\"L2UI.SquareGray\" width=295 height=1>");
- + html.append("<br>");
- + }
- + }
- +
- + html.append("<br>");
- + html.append("<br>");
- + html.append("<center>");
- + html.append("<table>");
- + html.append("<tr>");
- + html.append("<td width=75 height=21>");
- + html.append("<button value=\"Refresh\" action=\"bypass -h npc_").append(getObjectId()).append("_refresh\" width=75 height=21 back=\"L2UI.DefaultButton_click\" fore=\"L2UI.DefaultButton\">");
- + html.append("</td>");
- + html.append("<td width=75 height=21>");
- + html.append("<button value=\"Create\" action=\"bypass -h npc_").append(getObjectId()).append("_create\" width=75 height=21 back=\"L2UI.DefaultButton_click\" fore=\"L2UI.DefaultButton\">");
- + html.append("</td>");
- + html.append("</tr>");
- + html.append("</table>");
- + html.append("</center>");
- +
- + html.append("</body></html>");
- +
- + showHtmlWindow(player, html.toString());
- + }
- +
- + private void showHtmlWindow(L2PcInstance player, String htmlContent)
- + {
- + NpcHtmlMessage html = new NpcHtmlMessage(getObjectId());
- + html.setHtml(htmlContent);
- +
- + player.sendPacket(html);
- + }
- +
- + /**
- + * @return the hasGeneratedItems
- + */
- + public boolean isHasGeneratedItems()
- + {
- + return hasGeneratedItems;
- + }
- +
- + /**
- + * @param hasGeneratedItems the hasGeneratedItems to set
- + */
- + public void setHasGeneratedItems(boolean hasGeneratedItems)
- + {
- + this.hasGeneratedItems = hasGeneratedItems;
- + }
- +}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement