Skip to content

Commit 0f8929d

Browse files
fix: price mismatch between NPCs and typo in the rent house message (#2830)
Monitoring feature to alert whenever there's a price mismatch between NPCs for item transactions. This ensures any instance where an item is sold for less than its purchase price, or vice versa, is promptly identified and reported. Co-authored-by: Leilani A. <168607226+kaleohanopahala@users.noreply.github.com>
1 parent 06c6a67 commit 0f8929d

18 files changed

Lines changed: 57 additions & 60 deletions

File tree

data-otservbr-global/npc/arito.lua

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,6 @@ npcConfig.shop = {
134134
{ itemName = "mug of lemonade", clientId = 2880, buy = 2, count = 12 },
135135
{ itemName = "mug of water", clientId = 2880, buy = 1, count = 1 },
136136
{ itemName = "mug of wine", clientId = 2880, buy = 3, count = 2 },
137-
{ itemName = "vial of beer", clientId = 2874, buy = 2, count = 1, subType = 3 },
138-
{ itemName = "vial of wine", clientId = 2874, buy = 3, count = 1, subType = 2 },
139-
{ itemName = "vial of water", clientId = 2874, buy = 1, count = 1 },
140137
}
141138
-- On buy npc shop message
142139
npcType.onBuyItem = function(npc, player, itemId, subType, amount, ignore, inBackpacks, totalCost)

data-otservbr-global/npc/armenius.lua

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,6 @@ npcConfig.shop = {
9797
{ itemName = "mug of rum", clientId = 2880, buy = 10, count = 13 },
9898
{ itemName = "mug of wine", clientId = 2880, buy = 4, count = 2 },
9999
{ itemName = "tomato", clientId = 3596, buy = 3 },
100-
{ itemName = "vial of beer", clientId = 2874, buy = 3, count = 1, subType = 3 },
101-
{ itemName = "vial of wine", clientId = 2874, buy = 4, count = 1, subType = 2 },
102100
}
103101
-- On buy npc shop message
104102
npcType.onBuyItem = function(npc, player, itemId, subType, amount, ignore, inBackpacks, totalCost)

data-otservbr-global/npc/bolfona.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ npcConfig.shop = {
103103
{ itemName = "ham", clientId = 3582, buy = 8 },
104104
{ itemName = "meat", clientId = 3577, buy = 5 },
105105
{ itemName = "mug of beer", clientId = 2880, buy = 2, count = 3 },
106-
{ itemName = "vial of beer", clientId = 2874, buy = 2, count = 1, subType = 3 },
107106
}
108107
-- On buy npc shop message
109108
npcType.onBuyItem = function(npc, player, itemId, subType, amount, ignore, inBackpacks, totalCost)

data-otservbr-global/npc/boozer.lua

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,6 @@ npcConfig.shop = {
9898
{ itemName = "mug of lemonade", clientId = 2880, buy = 2, count = 12 },
9999
{ itemName = "mug of water", clientId = 2880, buy = 2, count = 1 },
100100
{ itemName = "mug of wine", clientId = 2880, buy = 3, count = 2 },
101-
{ itemName = "vial of beer", clientId = 2874, buy = 2, count = 1, subType = 3 },
102-
{ itemName = "vial of wine", clientId = 2874, buy = 3, count = 1, subType = 2 },
103101
}
104102
-- On buy npc shop message
105103
npcType.onBuyItem = function(npc, player, itemId, subType, amount, ignore, inBackpacks, totalCost)

data-otservbr-global/npc/clyde.lua

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,6 @@ npcConfig.shop = {
6464
{ itemName = "mug of water", clientId = 2880, buy = 2, count = 1 },
6565
{ itemName = "mug of wine", clientId = 2880, buy = 3, count = 2 },
6666
{ itemName = "tomato", clientId = 3596, buy = 3 },
67-
{ itemName = "vial of beer", clientId = 2874, buy = 2, count = 1, subType = 3 },
68-
{ itemName = "vial of wine", clientId = 2874, buy = 3, count = 1, subType = 2 },
69-
{ itemName = "vial of water", clientId = 2874, buy = 1, count = 1 },
7067
}
7168
-- On buy npc shop message
7269
npcType.onBuyItem = function(npc, player, itemId, subType, amount, ignore, inBackpacks, totalCost)

data-otservbr-global/npc/dane.lua

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,6 @@ npcConfig.shop = {
6767
{ itemName = "bottle of lemonade", clientId = 2875, buy = 12, count = 12 },
6868
{ itemName = "bottle of milk", clientId = 2875, buy = 4, count = 9 },
6969
{ itemName = "bottle of water", clientId = 2875, buy = 2, count = 1 },
70-
{ itemName = "vial of milk", clientId = 2874, buy = 4, count = 1, subType = 9 },
71-
{ itemName = "vial of water", clientId = 2874, buy = 2, count = 1 },
7270
}
7371
-- On buy npc shop message
7472
npcType.onBuyItem = function(npc, player, itemId, subType, amount, ignore, inBackpacks, totalCost)

data-otservbr-global/npc/maria.lua

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,6 @@ npcConfig.shop = {
6565
{ itemName = "mug of wine", clientId = 2880, buy = 3, count = 2 },
6666
{ itemName = "tomato", clientId = 3596, buy = 5 },
6767
{ itemName = "valentine's cake", clientId = 6392, buy = 100 },
68-
{ itemName = "vial of beer", clientId = 2874, buy = 2, count = 1, subType = 3 },
69-
{ itemName = "vial of wine", clientId = 2874, buy = 3, count = 1, subType = 2 },
7068
}
7169
-- On buy npc shop message
7270
npcType.onBuyItem = function(npc, player, itemId, subType, amount, ignore, inBackpacks, totalCost)

data-otservbr-global/npc/mirabell.lua

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,6 @@ npcConfig.shop = {
134134
{ itemName = "mug of lemonade", clientId = 2880, buy = 2, count = 12 },
135135
{ itemName = "mug of water", clientId = 2880, buy = 1, count = 1 },
136136
{ itemName = "mug of wine", clientId = 2880, buy = 3, count = 2 },
137-
{ itemName = "vial of beer", clientId = 2874, buy = 2, count = 1, subType = 3 },
138-
{ itemName = "vial of wine", clientId = 2874, buy = 3, count = 1, subType = 2 },
139-
{ itemName = "vial of water", clientId = 2874, buy = 1, count = 1 },
140137
}
141138
-- On buy npc shop message
142139
npcType.onBuyItem = function(npc, player, itemId, subType, amount, ignore, inBackpacks, totalCost)

data-otservbr-global/npc/miraia.lua

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,6 @@ npcConfig.shop = {
200200
{ itemName = "mug of milk", clientId = 2880, buy = 5, count = 9 },
201201
{ itemName = "mug of water", clientId = 2880, buy = 2, count = 1 },
202202
{ itemName = "scarab cheese", clientId = 169, buy = 100 },
203-
{ itemName = "vial of milk", clientId = 2874, buy = 5, count = 1, subType = 9 },
204-
{ itemName = "vial of water", clientId = 2874, buy = 2, count = 1 },
205203
}
206204
-- On buy npc shop message
207205
npcType.onBuyItem = function(npc, player, itemId, subType, amount, ignore, inBackpacks, totalCost)

data-otservbr-global/npc/norma.lua

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,6 @@ npcConfig.shop = {
200200
{ itemName = "mug of milk", clientId = 2880, buy = 2, count = 6 },
201201
{ itemName = "mug of wine", clientId = 2880, buy = 3, count = 2 },
202202
{ itemName = "party cake", clientId = 6279, buy = 50 },
203-
{ itemName = "vial of beer", clientId = 2874, buy = 3, count = 1, subType = 3 },
204-
{ itemName = "vial of wine", clientId = 2874, buy = 3, count = 1, subType = 2 },
205-
{ itemName = "vial of milk", clientId = 2874, buy = 2, count = 1, subType = 9 },
206203
}
207204
-- On buy npc shop message
208205
npcType.onBuyItem = function(npc, player, itemId, subType, amount, ignore, inBackpacks, totalCost)

0 commit comments

Comments
 (0)