rogeriomorais
Бродяга
MOD = Announcement: Successsful Create!!
но я не знаю, как добавить, не знаю Мечера с модом!
так что кто-то должен был добавить для меня, но никто не добавил!
Потом другой друг сказал мне, что разработчики rusacis очень скромны и когда есть время добавить запросы и предложения от членов, то я подумал о том, чтобы сделать этот запрос.
ФУНКЦИЯ МОД = объявлять в виде глобального объявления при создании определенного рецепта. раскрывать предмет и имя игрока и города.
ПРИМЕЧАНИЕ: так сказал мой друг!
Идея этого мода была = создать на сервере эксклюзивный статус для игрока, который создал элемент, как способ быть супер сложным рецептов для создания. (то есть только снижает процент успеха рецепта).
PTBR =
um amigo criou esse mod a meu pedido!!
porem eu não sei adicionar, nao sei mecher com mod!!
então ficou a merce de alguem adicionar para mim mas ninguém o fez!
ai um outro amigo me disse que os desenvolvedores da rusacis são bem humildes e quando há tempo adicionam pedidos e sugestoes dos membros. ai pensei em fazer este pedido.
FUNÇÃO DO MOD = é anunciar como forma de annuncio global quando um determinado recipe foi criado. divulganto o item e o nome do jogador e cidade.
OBS: foi oque meu amio disse!
a ideia por detraz desse mod foi = criar no server status de exclusividade para o player que criou o item como forma de serem recipes super dificeis de se criar. (ou seja é só baixa a % porcentagem de sucessu do recipe)
porem eu não sei adicionar, nao sei mecher com mod!!
então ficou a merce de alguem adicionar para mim mas ninguém o fez!
ai um outro amigo me disse que os desenvolvedores da rusacis são bem humildes e quando há tempo adicionam pedidos e sugestoes dos membros. ai pensei em fazer este pedido.
FUNÇÃO DO MOD = é anunciar como forma de annuncio global quando um determinado recipe foi criado. divulganto o item e o nome do jogador e cidade.
OBS: foi oque meu amio disse!
a ideia por detraz desse mod foi = criar no server status de exclusividade para o player que criou o item como forma de serem recipes super dificeis de se criar. (ou seja é só baixa a % porcentagem de sucessu do recipe)
ENLGISH =
a friend created this mod at my request!
but i don't know how to add it, i don't know how to work with mod!
so it was up to someone to add for me but no one did!
Then another friend told me that the developers of rusacis are very humble and when there is time to add requests and suggestions from members. then I thought I would make this request.
FUNCTION OF MOD = is to announce as a form of global announcement when a certain recipe was created. disclosing the item and the name of the player and city.
NOTE: That's what my friend said!
the idea behind this mod was = create on the server exclusive status for the player who created the item as a way to be super difficult recipes to create. (i.e. just lower the % success percentage of the recipe)
but i don't know how to add it, i don't know how to work with mod!
so it was up to someone to add for me but no one did!
Then another friend told me that the developers of rusacis are very humble and when there is time to add requests and suggestions from members. then I thought I would make this request.
FUNCTION OF MOD = is to announce as a form of global announcement when a certain recipe was created. disclosing the item and the name of the player and city.
NOTE: That's what my friend said!
the idea behind this mod was = create on the server exclusive status for the player who created the item as a way to be super difficult recipes to create. (i.e. just lower the % success percentage of the recipe)
CLICK IN SPOILER view MOD CODE
diff --git a/aCis_gameserver/config/players.properties b/aCis_gameserver/config/players.properties
index a62d970..ec88242 100644
--- a/aCis_gameserver/config/players.properties
+++ b/aCis_gameserver/config/players.properties
@@ -50,6 +50,9 @@
# Amount of Adena to receive.
BankingAdenaCount = 1000000000
+# Announce Recipe success. Use the variables %name% for Name players and %item% for items
+AnnounceCrafts = HOOOOLLY!! %name% CREATED AN %item% in the region
+
#=============================================================
# Inventory / Warehouse
#=============================================================
diff --git a/aCis_gameserver/java/net/sf/l2j/Config.java b/aCis_gameserver/java/net/sf/l2j/Config.java
index dafa6cf..e4bf579 100644
--- a/aCis_gameserver/java/net/sf/l2j/Config.java
+++ b/aCis_gameserver/java/net/sf/l2j/Config.java
@@ -341,6 +341,7 @@
public static int TRANSFORM_NPC_ID;
public static int BANKING_SYSTEM_ADENA;
public static IntIntHolder[] BANKING_SYSTEM_GOLDCOIN;
+ public static String ANNOUNCE_CRAFTS;
/** Inventory & WH */
public static int INVENTORY_MAXIMUM_NO_DWARF;
@@ -977,6 +978,7 @@
TRANSFORM_NPC_ID = players.getProperty("TransformId", 0);
BANKING_SYSTEM_GOLDCOIN = players.parseIntIntList("BankingGoldCoin", "3470-1");
BANKING_SYSTEM_ADENA = players.getProperty("BankingAdenaCount", 1000000000);
+ ANNOUNCE_CRAFTS = players.getProperty("AnnounceCrafts", "HOOOOLLY!! %name% CREATED AN %item% in the region ");
INVENTORY_MAXIMUM_NO_DWARF = players.getProperty("MaximumSlotsForNoDwarf", 80);
INVENTORY_MAXIMUM_DWARF = players.getProperty("MaximumSlotsForDwarf", 100);
diff --git a/aCis_gameserver/java/net/sf/l2j/gameserver/model/craft/RecipeItemMaker.java b/aCis_gameserver/java/net/sf/l2j/gameserver/model/craft/RecipeItemMaker.java
index 02a581d..91c1484 100644
--- a/aCis_gameserver/java/net/sf/l2j/gameserver/model/craft/RecipeItemMaker.java
+++ b/aCis_gameserver/java/net/sf/l2j/gameserver/model/craft/RecipeItemMaker.java
@@ -3,7 +3,9 @@
import net.sf.l2j.commons.random.Rnd;
import net.sf.l2j.Config;
+import net.sf.l2j.gameserver.data.xml.ItemData;
import net.sf.l2j.gameserver.enums.StatusType;
+import net.sf.l2j.gameserver.model.World;
import net.sf.l2j.gameserver.model.actor.Player;
import net.sf.l2j.gameserver.model.holder.IntIntHolder;
import net.sf.l2j.gameserver.model.item.Recipe;
@@ -266,6 +268,14 @@
final int itemCount = _recipe.getProduct().getValue();
_target.getInventory().addItem("Manufacture", itemId, itemCount, _target, _player);
+
+ if (!Config.ANNOUNCE_CRAFTS.isEmpty())
+ {
+ World.getInstance().getPlayers().forEach(players ->
+ {
+ players.sendPacket(SystemMessage.getSystemMessage(SystemMessageId.S1_S2).addString(Config.ANNOUNCE_CRAFTS.replace("%name%", players.getName()).replace("%item%", ItemData.getInstance().getTemplate(itemId).getName())).addZoneName(players.getPosition()));
+ });
+ }
// inform customer of earned item
if (_target != _player)
index a62d970..ec88242 100644
--- a/aCis_gameserver/config/players.properties
+++ b/aCis_gameserver/config/players.properties
@@ -50,6 +50,9 @@
# Amount of Adena to receive.
BankingAdenaCount = 1000000000
+# Announce Recipe success. Use the variables %name% for Name players and %item% for items
+AnnounceCrafts = HOOOOLLY!! %name% CREATED AN %item% in the region
+
#=============================================================
# Inventory / Warehouse
#=============================================================
diff --git a/aCis_gameserver/java/net/sf/l2j/Config.java b/aCis_gameserver/java/net/sf/l2j/Config.java
index dafa6cf..e4bf579 100644
--- a/aCis_gameserver/java/net/sf/l2j/Config.java
+++ b/aCis_gameserver/java/net/sf/l2j/Config.java
@@ -341,6 +341,7 @@
public static int TRANSFORM_NPC_ID;
public static int BANKING_SYSTEM_ADENA;
public static IntIntHolder[] BANKING_SYSTEM_GOLDCOIN;
+ public static String ANNOUNCE_CRAFTS;
/** Inventory & WH */
public static int INVENTORY_MAXIMUM_NO_DWARF;
@@ -977,6 +978,7 @@
TRANSFORM_NPC_ID = players.getProperty("TransformId", 0);
BANKING_SYSTEM_GOLDCOIN = players.parseIntIntList("BankingGoldCoin", "3470-1");
BANKING_SYSTEM_ADENA = players.getProperty("BankingAdenaCount", 1000000000);
+ ANNOUNCE_CRAFTS = players.getProperty("AnnounceCrafts", "HOOOOLLY!! %name% CREATED AN %item% in the region ");
INVENTORY_MAXIMUM_NO_DWARF = players.getProperty("MaximumSlotsForNoDwarf", 80);
INVENTORY_MAXIMUM_DWARF = players.getProperty("MaximumSlotsForDwarf", 100);
diff --git a/aCis_gameserver/java/net/sf/l2j/gameserver/model/craft/RecipeItemMaker.java b/aCis_gameserver/java/net/sf/l2j/gameserver/model/craft/RecipeItemMaker.java
index 02a581d..91c1484 100644
--- a/aCis_gameserver/java/net/sf/l2j/gameserver/model/craft/RecipeItemMaker.java
+++ b/aCis_gameserver/java/net/sf/l2j/gameserver/model/craft/RecipeItemMaker.java
@@ -3,7 +3,9 @@
import net.sf.l2j.commons.random.Rnd;
import net.sf.l2j.Config;
+import net.sf.l2j.gameserver.data.xml.ItemData;
import net.sf.l2j.gameserver.enums.StatusType;
+import net.sf.l2j.gameserver.model.World;
import net.sf.l2j.gameserver.model.actor.Player;
import net.sf.l2j.gameserver.model.holder.IntIntHolder;
import net.sf.l2j.gameserver.model.item.Recipe;
@@ -266,6 +268,14 @@
final int itemCount = _recipe.getProduct().getValue();
_target.getInventory().addItem("Manufacture", itemId, itemCount, _target, _player);
+
+ if (!Config.ANNOUNCE_CRAFTS.isEmpty())
+ {
+ World.getInstance().getPlayers().forEach(players ->
+ {
+ players.sendPacket(SystemMessage.getSystemMessage(SystemMessageId.S1_S2).addString(Config.ANNOUNCE_CRAFTS.replace("%name%", players.getName()).replace("%item%", ItemData.getInstance().getTemplate(itemId).getName())).addZoneName(players.getPosition()));
+ });
+ }
// inform customer of earned item
if (_target != _player)
Последнее редактирование модератором: