View difference between Paste ID: Uh9utRCt and Fh1JDDVf
SHOW: | | - or go back to the newest paste.
1
Index: head-src/com/l2jfrozen/gameserver/network/clientpackets/MultiSellChoose.java
2
===================================================================
3
--- head-src/com/l2jfrozen/gameserver/network/clientpackets/MultiSellChoose.java	(revision 968)
4
+++ head-src/com/l2jfrozen/gameserver/network/clientpackets/MultiSellChoose.java	(working copy)
5
@@ -240,7 +240,8 @@
6
                 _ingredientsList.clear();
7
                 _ingredientsList = null;
8
                 FastList<L2Augmentation> augmentation = new FastList<L2Augmentation>();
9
-                /** All ok, remove items and add final product */
10
+                // All ok. Remove items, add final product and send success message.
11
+                player.sendPacket(new SystemMessage(SystemMessageId.SUCCESSFULLY_TRADED_WITH_NPC));
12
 
13
                 for (MultiSellIngredient e : entry.getIngredients())
14
                 {
15
Index: head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestBuyItem.java
16
===================================================================
17
--- head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestBuyItem.java	(revision 968)
18
+++ head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestBuyItem.java	(working copy)
19
@@ -374,6 +374,10 @@
20
 			} 
21
 			// Add item to Inventory and adjust update packet
22
 			player.getInventory().addItem("Buy", itemId, count, player, merchant);
23
+
24
+			// Send success message.
25
+			player.sendPacket(new SystemMessage(SystemMessageId.SUCCESSFULLY_TRADED_WITH_NPC));
26
+			
27
 			/* TODO: Disabled until Leaseholders are rewritten ;-)
28
 						// Update Leaseholder list
29
 						if (_listId >= 1000000)
30
Index: head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestSellItem.java
31
===================================================================
32
--- head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestSellItem.java	(revision 968)
33
+++ head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestSellItem.java	(working copy)
34
@@ -204,6 +204,9 @@
35
 		}
36
 		player.addAdena("Sell", (int) totalPrice, merchant, false);
37
 
38
+		// Send success message.
39
+		player.sendPacket(new SystemMessage(SystemMessageId.SUCCESSFULLY_TRADED_WITH_NPC));
40
+		
41
 		String html = HtmCache.getInstance().getHtm("data/html/" + htmlFolder + "/" + merchant.getNpcId() + "-sold.htm");
42
 
43
 		if(html != null)
44
Index: head-src/com/l2jfrozen/gameserver/network/SystemMessageId.java
45
===================================================================
46
--- head-src/com/l2jfrozen/gameserver/network/SystemMessageId.java	(revision 968)
47
+++ head-src/com/l2jfrozen/gameserver/network/SystemMessageId.java	(working copy)
48
@@ -3829,6 +3829,12 @@
49
 	THE_OLYMPIAD_GAME_IS_NOT_CURRENTLY_IN_PROGRESS(1651),
50
 
51
 	/**
52
+	 * ID: 1656<br>
53
+	 * Message: You have successfully traded the item with the NPC.
54
+	 */
55
+	SUCCESSFULLY_TRADED_WITH_NPC(1656),
56
+
57
+	/**
58
 	 * ID: 1657<br>
59
 	 * Message: $s1 has earned $s2 points in the Grand Olympiad Games.
60
 	 */