Toggle the NX coupon loot notice
Added a toggle to the showHint that announces the NX gain on a NX coupon loot
This commit is contained in:
@@ -1966,7 +1966,9 @@ public class Character extends AbstractCharacterObject {
|
|||||||
int nxGain = mapitem.getItemId() == ItemId.NX_CARD_100 ? 100 : 250;
|
int nxGain = mapitem.getItemId() == ItemId.NX_CARD_100 ? 100 : 250;
|
||||||
this.getCashShop().gainCash(1, nxGain);
|
this.getCashShop().gainCash(1, nxGain);
|
||||||
|
|
||||||
|
if (YamlConfig.config.server.USE_NX_COUPON_LOOT_NOTICE) {
|
||||||
showHint("You have earned #e#b" + nxGain + " NX#k#n. (" + this.getCashShop().getCash(1) + " NX)", 300);
|
showHint("You have earned #e#b" + nxGain + " NX#k#n. (" + this.getCashShop().getCash(1) + " NX)", 300);
|
||||||
|
}
|
||||||
|
|
||||||
this.getMap().pickItemDrop(pickupPacket, mapitem);
|
this.getMap().pickItemDrop(pickupPacket, mapitem);
|
||||||
} else if (InventoryManipulator.addFromDrop(client, mItem, true)) {
|
} else if (InventoryManipulator.addFromDrop(client, mItem, true)) {
|
||||||
@@ -2016,7 +2018,9 @@ public class Character extends AbstractCharacterObject {
|
|||||||
int nxGain = mapitem.getItemId() == ItemId.NX_CARD_100 ? 100 : 250;
|
int nxGain = mapitem.getItemId() == ItemId.NX_CARD_100 ? 100 : 250;
|
||||||
this.getCashShop().gainCash(1, nxGain);
|
this.getCashShop().gainCash(1, nxGain);
|
||||||
|
|
||||||
|
if (YamlConfig.config.server.USE_NX_COUPON_LOOT_NOTICE) {
|
||||||
showHint("You have earned #e#b" + nxGain + " NX#k#n. (" + this.getCashShop().getCash(1) + " NX)", 300);
|
showHint("You have earned #e#b" + nxGain + " NX#k#n. (" + this.getCashShop().getCash(1) + " NX)", 300);
|
||||||
|
}
|
||||||
} else if (applyConsumeOnPickup(mItem.getItemId())) {
|
} else if (applyConsumeOnPickup(mItem.getItemId())) {
|
||||||
} else if (InventoryManipulator.addFromDrop(client, mItem, true)) {
|
} else if (InventoryManipulator.addFromDrop(client, mItem, true)) {
|
||||||
if (mItem.getItemId() == ItemId.ARPQ_SPIRIT_JEWEL) {
|
if (mItem.getItemId() == ItemId.ARPQ_SPIRIT_JEWEL) {
|
||||||
|
|||||||
@@ -122,6 +122,7 @@ public class ServerConfig {
|
|||||||
//Announcement Configuration
|
//Announcement Configuration
|
||||||
public boolean USE_ANNOUNCE_SHOPITEMSOLD;
|
public boolean USE_ANNOUNCE_SHOPITEMSOLD;
|
||||||
public boolean USE_ANNOUNCE_CHANGEJOB;
|
public boolean USE_ANNOUNCE_CHANGEJOB;
|
||||||
|
public boolean USE_NX_COUPON_LOOT_NOTICE;
|
||||||
|
|
||||||
//Cash Shop Configuration
|
//Cash Shop Configuration
|
||||||
public boolean USE_JOINT_CASHSHOP_INVENTORY;
|
public boolean USE_JOINT_CASHSHOP_INVENTORY;
|
||||||
|
|||||||
Reference in New Issue
Block a user