RecipeController and some other changes.

This commit is contained in:
MobiusDev
2016-06-03 18:40:51 +00:00
parent 57a7b15213
commit 2d6440aafd
3 changed files with 8 additions and 6 deletions

View File

@@ -1,7 +1,7 @@
# This file contains a list of scripts that should be loaded by the GameServer # This file contains a list of scripts that should be loaded by the GameServer
# The path is relative to the scripts folder, for example scripts/event.py would # The path is relative to the scripts folder, for example scripts/event.java would
# require the following entry: # require the following entry:
# event.py # event.java
# #
# Note: You can also load an script during server runtime using the Admin Panel # Note: You can also load an script during server runtime using the Admin Panel

View File

@@ -649,6 +649,9 @@ public class RecipeController
sm = SystemMessage.getSystemMessage(SystemMessageId.C1_CREATED_S2_AFTER_RECEIVING_S3_ADENA); sm = SystemMessage.getSystemMessage(SystemMessageId.C1_CREATED_S2_AFTER_RECEIVING_S3_ADENA);
sm.addString(_player.getName()); sm.addString(_player.getName());
sm.addItemName(itemId);
sm.addLong(_price);
_target.sendPacket(sm);
} }
else else
{ {
@@ -662,11 +665,11 @@ public class RecipeController
sm = SystemMessage.getSystemMessage(SystemMessageId.C1_CREATED_S3_S2_S_AT_THE_PRICE_OF_S4_ADENA); sm = SystemMessage.getSystemMessage(SystemMessageId.C1_CREATED_S3_S2_S_AT_THE_PRICE_OF_S4_ADENA);
sm.addString(_player.getName()); sm.addString(_player.getName());
sm.addInt(itemCount); sm.addInt(itemCount);
}
sm.addLong(_price);
sm.addItemName(itemId); sm.addItemName(itemId);
sm.addLong(_price);
_target.sendPacket(sm); _target.sendPacket(sm);
} }
}
if (itemCount > 1) if (itemCount > 1)
{ {

View File

@@ -44,5 +44,4 @@ public interface IParserAdvUtils extends IParserUtils
Duration getDuration(String key); Duration getDuration(String key);
<T extends Enum<T>> T getEnum(String key, Class<T> clazz); <T extends Enum<T>> T getEnum(String key, Class<T> clazz);
} }