Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve: updating files with old functions #1974

Closed
wants to merge 20 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 1 addition & 3 deletions data-otservbr-global/npc/al_dee.lua
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,7 @@ npcType.onBuyItem = function(npc, player, itemId, subType, amount, ignore, inBac
npc:sellItem(player, itemId, amount, subType, 0, ignore, inBackpacks)
end
-- On sell npc shop message
npcType.onSellItem = function(npc, player, itemId, subtype, amount, ignore, name, totalCost)
player:sendTextMessage(MESSAGE_TRADE, string.format("Sold %ix %s for %i gold.", amount, name, totalCost))
end
npcType.onSellItem = function(npc, player, itemId, subtype, amount, ignore, name, totalCost) end
-- On check npc shop message (look item)
npcType.onCheckItem = function(npc, player, clientId, subType) end

Expand Down
4 changes: 1 addition & 3 deletions data-otservbr-global/npc/alaistar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,7 @@ npcType.onBuyItem = function(npc, player, itemId, subType, amount, ignore, inBac
npc:sellItem(player, itemId, amount, subType, 0, ignore, inBackpacks)
end
-- On sell npc shop message
npcType.onSellItem = function(npc, player, itemId, subtype, amount, ignore, name, totalCost)
player:sendTextMessage(MESSAGE_TRADE, string.format("Sold %ix %s for %i gold.", amount, name, totalCost))
end
npcType.onSellItem = function(npc, player, itemId, subtype, amount, ignore, name, totalCost) end
-- On check npc shop message (look item)
npcType.onCheckItem = function(npc, player, clientId, subType) end

Expand Down
4 changes: 1 addition & 3 deletions data-otservbr-global/npc/albinius.lua
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ npcType.onBuyItem = function(npc, player, itemId, subType, amount, ignore, inBac
npc:sellItem(player, itemId, amount, subType, 0, ignore, inBackpacks)
end
-- On sell npc shop message
npcType.onSellItem = function(npc, player, itemId, subtype, amount, ignore, name, totalCost)
player:sendTextMessage(MESSAGE_TRADE, string.format("Sold %ix %s for %i gold.", amount, name, totalCost))
end
npcType.onSellItem = function(npc, player, itemId, subtype, amount, ignore, name, totalCost) end
-- On check npc shop message (look item)
npcType.onCheckItem = function(npc, player, clientId, subType) end

Expand Down
4 changes: 1 addition & 3 deletions data-otservbr-global/npc/aldo.lua
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,7 @@ npcType.onBuyItem = function(npc, player, itemId, subType, amount, ignore, inBac
npc:sellItem(player, itemId, amount, subType, 0, ignore, inBackpacks)
end
-- On sell npc shop message
npcType.onSellItem = function(npc, player, itemId, subtype, amount, ignore, name, totalCost)
player:sendTextMessage(MESSAGE_TRADE, string.format("Sold %ix %s for %i gold.", amount, name, totalCost))
end
npcType.onSellItem = function(npc, player, itemId, subtype, amount, ignore, name, totalCost) end
-- On check npc shop message (look item)
npcType.onCheckItem = function(npc, player, clientId, subType) end

Expand Down
4 changes: 1 addition & 3 deletions data-otservbr-global/npc/alesar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,7 @@ npcType.onBuyItem = function(npc, player, itemId, subType, amount, ignore, inBac
npc:sellItem(player, itemId, amount, subType, 0, ignore, inBackpacks)
end
-- On sell npc shop message
npcType.onSellItem = function(npc, player, itemId, subtype, amount, ignore, name, totalCost)
player:sendTextMessage(MESSAGE_TRADE, string.format("Sold %ix %s for %i gold.", amount, name, totalCost))
end
npcType.onSellItem = function(npc, player, itemId, subtype, amount, ignore, name, totalCost) end
-- On check npc shop message (look item)
npcType.onCheckItem = function(npc, player, clientId, subType) end

Expand Down
4 changes: 1 addition & 3 deletions data-otservbr-global/npc/alexander.lua
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,7 @@ npcType.onBuyItem = function(npc, player, itemId, subType, amount, ignore, inBac
npc:sellItem(player, itemId, amount, subType, 0, ignore, inBackpacks)
end
-- On sell npc shop message
npcType.onSellItem = function(npc, player, itemId, subtype, amount, ignore, name, totalCost)
player:sendTextMessage(MESSAGE_TRADE, string.format("Sold %ix %s for %i gold.", amount, name, totalCost))
end
npcType.onSellItem = function(npc, player, itemId, subtype, amount, ignore, name, totalCost) end
-- On check npc shop message (look item)
npcType.onCheckItem = function(npc, player, clientId, subType) end

Expand Down
4 changes: 1 addition & 3 deletions data-otservbr-global/npc/alissa.lua
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,7 @@ npcType.onBuyItem = function(npc, player, itemId, subType, amount, ignore, inBac
npc:sellItem(player, itemId, amount, subType, 0, ignore, inBackpacks)
end
-- On sell npc shop message
npcType.onSellItem = function(npc, player, itemId, subtype, amount, ignore, name, totalCost)
player:sendTextMessage(MESSAGE_TRADE, string.format("Sold %ix %s for %i gold.", amount, name, totalCost))
end
npcType.onSellItem = function(npc, player, itemId, subtype, amount, ignore, name, totalCost) end
-- On check npc shop message (look item)
npcType.onCheckItem = function(npc, player, clientId, subType) end

Expand Down
4 changes: 1 addition & 3 deletions data-otservbr-global/npc/allen.lua
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,7 @@ npcType.onBuyItem = function(npc, player, itemId, subType, amount, ignore, inBac
npc:sellItem(player, itemId, amount, subType, 0, ignore, inBackpacks)
end
-- On sell npc shop message
npcType.onSellItem = function(npc, player, itemId, subtype, amount, ignore, name, totalCost)
player:sendTextMessage(MESSAGE_TRADE, string.format("Sold %ix %s for %i gold.", amount, name, totalCost))
end
npcType.onSellItem = function(npc, player, itemId, subtype, amount, ignore, name, totalCost) end
-- On check npc shop message (look item)
npcType.onCheckItem = function(npc, player, clientId, subType) end

Expand Down
4 changes: 1 addition & 3 deletions data-otservbr-global/npc/amra.lua
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,7 @@ npcType.onBuyItem = function(npc, player, itemId, subType, amount, ignore, inBac
npc:sellItem(player, itemId, amount, subType, 0, ignore, inBackpacks)
end
-- On sell npc shop message
npcType.onSellItem = function(npc, player, itemId, subtype, amount, ignore, name, totalCost)
player:sendTextMessage(MESSAGE_TRADE, string.format("Sold %ix %s for %i gold.", amount, name, totalCost))
end
npcType.onSellItem = function(npc, player, itemId, subtype, amount, ignore, name, totalCost) end
-- On check npc shop message (look item)
npcType.onCheckItem = function(npc, player, clientId, subType) end

Expand Down
4 changes: 1 addition & 3 deletions data-otservbr-global/npc/andrew_lyze.lua
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ npcType.onBuyItem = function(npc, player, itemId, subType, amount, ignore, inBac
npc:sellItem(player, itemId, amount, subType, 0, ignore, inBackpacks)
end
-- On sell npc shop message
npcType.onSellItem = function(npc, player, itemId, subtype, amount, ignore, name, totalCost)
player:sendTextMessage(MESSAGE_TRADE, string.format("Sold %ix %s for %i gold.", amount, name, totalCost))
end
npcType.onSellItem = function(npc, player, itemId, subtype, amount, ignore, name, totalCost) end
-- On check npc shop message (look item)
npcType.onCheckItem = function(npc, player, clientId, subType) end

Expand Down
4 changes: 1 addition & 3 deletions data-otservbr-global/npc/anerui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,7 @@ npcType.onBuyItem = function(npc, player, itemId, subType, amount, ignore, inBac
npc:sellItem(player, itemId, amount, subType, 0, ignore, inBackpacks)
end
-- On sell npc shop message
npcType.onSellItem = function(npc, player, itemId, subtype, amount, ignore, name, totalCost)
player:sendTextMessage(MESSAGE_TRADE, string.format("Sold %ix %s for %i gold.", amount, name, totalCost))
end
npcType.onSellItem = function(npc, player, itemId, subtype, amount, ignore, name, totalCost) end
-- On check npc shop message (look item)
npcType.onCheckItem = function(npc, player, clientId, subType) end

Expand Down
4 changes: 1 addition & 3 deletions data-otservbr-global/npc/angus.lua
Original file line number Diff line number Diff line change
Expand Up @@ -677,9 +677,7 @@ npcType.onBuyItem = function(npc, player, itemId, subType, amount, ignore, inBac
npc:sellItem(player, itemId, amount, subType, 0, ignore, inBackpacks)
end
-- On sell npc shop message
npcType.onSellItem = function(npc, player, itemId, subtype, amount, ignore, name, totalCost)
player:sendTextMessage(MESSAGE_TRADE, string.format("Sold %ix %s for %i gold.", amount, name, totalCost))
end
npcType.onSellItem = function(npc, player, itemId, subtype, amount, ignore, name, totalCost) end
-- On check npc shop message (look item)
npcType.onCheckItem = function(npc, player, clientId, subType) end

Expand Down
4 changes: 1 addition & 3 deletions data-otservbr-global/npc/archery.lua
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,7 @@ npcType.onBuyItem = function(npc, player, itemId, subType, amount, ignore, inBac
npc:sellItem(player, itemId, amount, subType, 0, ignore, inBackpacks)
end
-- On sell npc shop message
npcType.onSellItem = function(npc, player, itemId, subtype, amount, ignore, name, totalCost)
player:sendTextMessage(MESSAGE_TRADE, string.format("Sold %ix %s for %i gold.", amount, name, totalCost))
end
npcType.onSellItem = function(npc, player, itemId, subtype, amount, ignore, name, totalCost) end
-- On check npc shop message (look item)
npcType.onCheckItem = function(npc, player, clientId, subType) end

Expand Down
4 changes: 1 addition & 3 deletions data-otservbr-global/npc/archery_rook.lua
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,7 @@ npcType.onBuyItem = function(npc, player, itemId, subType, amount, ignore, inBac
npc:sellItem(player, itemId, amount, subType, 0, ignore, inBackpacks)
end
-- On sell npc shop message
npcType.onSellItem = function(npc, player, itemId, subtype, amount, ignore, name, totalCost)
player:sendTextMessage(MESSAGE_TRADE, string.format("Sold %ix %s for %i gold.", amount, name, totalCost))
end
npcType.onSellItem = function(npc, player, itemId, subtype, amount, ignore, name, totalCost) end
-- On check npc shop message (look item)
npcType.onCheckItem = function(npc, player, clientId, subType) end

Expand Down
4 changes: 1 addition & 3 deletions data-otservbr-global/npc/ariella.lua
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,7 @@ npcType.onBuyItem = function(npc, player, itemId, subType, amount, ignore, inBac
npc:sellItem(player, itemId, amount, subType, 0, ignore, inBackpacks)
end
-- On sell npc shop message
npcType.onSellItem = function(npc, player, itemId, subtype, amount, ignore, name, totalCost)
player:sendTextMessage(MESSAGE_TRADE, string.format("Sold %ix %s for %i gold.", amount, name, totalCost))
end
npcType.onSellItem = function(npc, player, itemId, subtype, amount, ignore, name, totalCost) end
-- On check npc shop message (look item)
npcType.onCheckItem = function(npc, player, clientId, subType) end

Expand Down
4 changes: 1 addition & 3 deletions data-otservbr-global/npc/arito.lua
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,7 @@ npcType.onBuyItem = function(npc, player, itemId, subType, amount, ignore, inBac
npc:sellItem(player, itemId, amount, subType, 0, ignore, inBackpacks)
end
-- On sell npc shop message
npcType.onSellItem = function(npc, player, itemId, subtype, amount, ignore, name, totalCost)
player:sendTextMessage(MESSAGE_TRADE, string.format("Sold %ix %s for %i gold.", amount, name, totalCost))
end
npcType.onSellItem = function(npc, player, itemId, subtype, amount, ignore, name, totalCost) end
-- On check npc shop message (look item)
npcType.onCheckItem = function(npc, player, clientId, subType) end

Expand Down
4 changes: 1 addition & 3 deletions data-otservbr-global/npc/arkulius.lua
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,7 @@ npcType.onBuyItem = function(npc, player, itemId, subType, amount, ignore, inBac
npc:sellItem(player, itemId, amount, subType, 0, ignore, inBackpacks)
end
-- On sell npc shop message
npcType.onSellItem = function(npc, player, itemId, subtype, amount, ignore, name, totalCost)
player:sendTextMessage(MESSAGE_TRADE, string.format("Sold %ix %s for %i gold.", amount, name, totalCost))
end
npcType.onSellItem = function(npc, player, itemId, subtype, amount, ignore, name, totalCost) end
-- On check npc shop message (look item)
npcType.onCheckItem = function(npc, player, clientId, subType) end

Expand Down
4 changes: 1 addition & 3 deletions data-otservbr-global/npc/armenius.lua
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,7 @@ npcType.onBuyItem = function(npc, player, itemId, subType, amount, ignore, inBac
npc:sellItem(player, itemId, amount, subType, 0, ignore, inBackpacks)
end
-- On sell npc shop message
npcType.onSellItem = function(npc, player, itemId, subtype, amount, ignore, name, totalCost)
player:sendTextMessage(MESSAGE_TRADE, string.format("Sold %ix %s for %i gold.", amount, name, totalCost))
end
npcType.onSellItem = function(npc, player, itemId, subtype, amount, ignore, name, totalCost) end
-- On check npc shop message (look item)
npcType.onCheckItem = function(npc, player, clientId, subType) end

Expand Down
4 changes: 1 addition & 3 deletions data-otservbr-global/npc/asima.lua
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,7 @@ npcType.onBuyItem = function(npc, player, itemId, subType, amount, ignore, inBac
npc:sellItem(player, itemId, amount, subType, 0, ignore, inBackpacks)
end
-- On sell npc shop message
npcType.onSellItem = function(npc, player, itemId, subtype, amount, ignore, name, totalCost)
player:sendTextMessage(MESSAGE_TRADE, string.format("Sold %ix %s for %i gold.", amount, name, totalCost))
end
npcType.onSellItem = function(npc, player, itemId, subtype, amount, ignore, name, totalCost) end
-- On check npc shop message (look item)
npcType.onCheckItem = function(npc, player, clientId, subType) end

Expand Down
4 changes: 1 addition & 3 deletions data-otservbr-global/npc/asnarus.lua
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,7 @@ npcType.onBuyItem = function(npc, player, itemId, subType, amount, ignore, inBac
npc:sellItem(player, itemId, amount, subType, 0, ignore, inBackpacks)
end
-- On sell npc shop message
npcType.onSellItem = function(npc, player, itemId, subtype, amount, ignore, name, totalCost)
player:sendTextMessage(MESSAGE_TRADE, string.format("Sold %ix %s for %i gold.", amount, name, totalCost))
end
npcType.onSellItem = function(npc, player, itemId, subtype, amount, ignore, name, totalCost) end
-- On check npc shop message (look item)
npcType.onCheckItem = function(npc, player, clientId, subType) end

Expand Down
4 changes: 1 addition & 3 deletions data-otservbr-global/npc/asphota.lua
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,7 @@ npcType.onBuyItem = function(npc, player, itemId, subType, amount, ignore, inBac
npc:sellItem(player, itemId, amount, subType, 0, ignore, inBackpacks)
end
-- On sell npc shop message
npcType.onSellItem = function(npc, player, itemId, subtype, amount, ignore, name, totalCost)
player:sendTextMessage(MESSAGE_TRADE, string.format("Sold %ix %s for %i gold.", amount, name, totalCost))
end
npcType.onSellItem = function(npc, player, itemId, subtype, amount, ignore, name, totalCost) end
-- On check npc shop message (look item)
npcType.onCheckItem = function(npc, player, clientId, subType) end

Expand Down
4 changes: 1 addition & 3 deletions data-otservbr-global/npc/atrad.lua
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,7 @@ npcType.onBuyItem = function(npc, player, itemId, subType, amount, ignore, inBac
npc:sellItem(player, itemId, amount, subType, 0, ignore, inBackpacks)
end
-- On sell npc shop message
npcType.onSellItem = function(npc, player, itemId, subtype, amount, ignore, name, totalCost)
player:sendTextMessage(MESSAGE_TRADE, string.format("Sold %ix %s for %i gold.", amount, name, totalCost))
end
npcType.onSellItem = function(npc, player, itemId, subtype, amount, ignore, name, totalCost) end
-- On check npc shop message (look item)
npcType.onCheckItem = function(npc, player, clientId, subType) end

Expand Down
4 changes: 1 addition & 3 deletions data-otservbr-global/npc/auron.lua
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,7 @@ npcType.onBuyItem = function(npc, player, itemId, subType, amount, ignore, inBac
npc:sellItem(player, itemId, amount, subType, 0, ignore, inBackpacks)
end
-- On sell npc shop message
npcType.onSellItem = function(npc, player, itemId, subtype, amount, ignore, name, totalCost)
player:sendTextMessage(MESSAGE_TRADE, string.format("Sold %ix %s for %i gold.", amount, name, totalCost))
end
npcType.onSellItem = function(npc, player, itemId, subtype, amount, ignore, name, totalCost) end
-- On check npc shop message (look item)
npcType.onCheckItem = function(npc, player, clientId, subType) end

Expand Down
4 changes: 1 addition & 3 deletions data-otservbr-global/npc/azil.lua
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,7 @@ npcType.onBuyItem = function(npc, player, itemId, subType, amount, ignore, inBac
npc:sellItem(player, itemId, amount, subType, 0, ignore, inBackpacks)
end
-- On sell npc shop message
npcType.onSellItem = function(npc, player, itemId, subtype, amount, ignore, name, totalCost)
player:sendTextMessage(MESSAGE_TRADE, string.format("Sold %ix %s for %i gold.", amount, name, totalCost))
end
npcType.onSellItem = function(npc, player, itemId, subtype, amount, ignore, name, totalCost) end
-- On check npc shop message (look item)
npcType.onCheckItem = function(npc, player, clientId, subType) end

Expand Down
4 changes: 1 addition & 3 deletions data-otservbr-global/npc/baltim.lua
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,7 @@ npcType.onBuyItem = function(npc, player, itemId, subType, amount, ignore, inBac
npc:sellItem(player, itemId, amount, subType, 0, ignore, inBackpacks)
end
-- On sell npc shop message
npcType.onSellItem = function(npc, player, itemId, subtype, amount, ignore, name, totalCost)
player:sendTextMessage(MESSAGE_TRADE, string.format("Sold %ix %s for %i gold.", amount, name, totalCost))
end
npcType.onSellItem = function(npc, player, itemId, subtype, amount, ignore, name, totalCost) end
-- On check npc shop message (look item)
npcType.onCheckItem = function(npc, player, clientId, subType) end

Expand Down
4 changes: 1 addition & 3 deletions data-otservbr-global/npc/bashira.lua
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,7 @@ npcType.onBuyItem = function(npc, player, itemId, subType, amount, ignore, inBac
npc:sellItem(player, itemId, amount, subType, 0, ignore, inBackpacks)
end
-- On sell npc shop message
npcType.onSellItem = function(npc, player, itemId, subtype, amount, ignore, name, totalCost)
player:sendTextMessage(MESSAGE_TRADE, string.format("Sold %ix %s for %i gold.", amount, name, totalCost))
end
npcType.onSellItem = function(npc, player, itemId, subtype, amount, ignore, name, totalCost) end
-- On check npc shop message (look item)
npcType.onCheckItem = function(npc, player, clientId, subType) end

Expand Down
4 changes: 1 addition & 3 deletions data-otservbr-global/npc/battlemart.lua
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,7 @@ npcType.onBuyItem = function(npc, player, itemId, subType, amount, ignore, inBac
npc:sellItem(player, itemId, amount, subType, 0, ignore, inBackpacks)
end
-- On sell npc shop message
npcType.onSellItem = function(npc, player, itemId, subtype, amount, ignore, name, totalCost)
player:sendTextMessage(MESSAGE_TRADE, string.format("Sold %ix %s for %i gold.", amount, name, totalCost))
end
npcType.onSellItem = function(npc, player, itemId, subtype, amount, ignore, name, totalCost) end
-- On check npc shop message (look item)
npcType.onCheckItem = function(npc, player, clientId, subType) end

Expand Down
4 changes: 1 addition & 3 deletions data-otservbr-global/npc/baxter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,7 @@ npcType.onBuyItem = function(npc, player, itemId, subType, amount, ignore, inBac
npc:sellItem(player, itemId, amount, subType, 0, ignore, inBackpacks)
end
-- On sell npc shop message
npcType.onSellItem = function(npc, player, itemId, subtype, amount, ignore, name, totalCost)
player:sendTextMessage(MESSAGE_TRADE, string.format("Sold %ix %s for %i gold.", amount, name, totalCost))
end
npcType.onSellItem = function(npc, player, itemId, subtype, amount, ignore, name, totalCost) end
-- On check npc shop message (look item)
npcType.onCheckItem = function(npc, player, clientId, subType) end

Expand Down
4 changes: 1 addition & 3 deletions data-otservbr-global/npc/beatrice.lua
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,7 @@ npcType.onBuyItem = function(npc, player, itemId, subType, amount, ignore, inBac
npc:sellItem(player, itemId, amount, subType, 0, ignore, inBackpacks)
end
-- On sell npc shop message
npcType.onSellItem = function(npc, player, itemId, subtype, amount, ignore, name, totalCost)
player:sendTextMessage(MESSAGE_TRADE, string.format("Sold %ix %s for %i gold.", amount, name, totalCost))
end
npcType.onSellItem = function(npc, player, itemId, subtype, amount, ignore, name, totalCost) end
-- On check npc shop message (look item)
npcType.onCheckItem = function(npc, player, clientId, subType) end

Expand Down
4 changes: 1 addition & 3 deletions data-otservbr-global/npc/benjamin.lua
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,7 @@ npcType.onBuyItem = function(npc, player, itemId, subType, amount, ignore, inBac
npc:sellItem(player, itemId, amount, subType, 0, ignore, inBackpacks)
end
-- On sell npc shop message
npcType.onSellItem = function(npc, player, itemId, subtype, amount, ignore, name, totalCost)
player:sendTextMessage(MESSAGE_TRADE, string.format("Sold %ix %s for %i gold.", amount, name, totalCost))
end
npcType.onSellItem = function(npc, player, itemId, subtype, amount, ignore, name, totalCost) end
-- On check npc shop message (look item)
npcType.onCheckItem = function(npc, player, clientId, subType) end

Expand Down
4 changes: 1 addition & 3 deletions data-otservbr-global/npc/berenice.lua
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,7 @@ npcType.onBuyItem = function(npc, player, itemId, subType, amount, ignore, inBac
npc:sellItem(player, itemId, amount, subType, 0, ignore, inBackpacks)
end
-- On sell npc shop message
npcType.onSellItem = function(npc, player, itemId, subtype, amount, ignore, name, totalCost)
player:sendTextMessage(MESSAGE_TRADE, string.format("Sold %ix %s for %i gold.", amount, name, totalCost))
end
npcType.onSellItem = function(npc, player, itemId, subtype, amount, ignore, name, totalCost) end
-- On check npc shop message (look item)
npcType.onCheckItem = function(npc, player, clientId, subType) end

Expand Down
4 changes: 1 addition & 3 deletions data-otservbr-global/npc/bertha.lua
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,7 @@ npcType.onBuyItem = function(npc, player, itemId, subType, amount, ignore, inBac
npc:sellItem(player, itemId, amount, subType, 0, ignore, inBackpacks)
end
-- On sell npc shop message
npcType.onSellItem = function(npc, player, itemId, subtype, amount, ignore, name, totalCost)
player:sendTextMessage(MESSAGE_TRADE, string.format("Sold %ix %s for %i gold.", amount, name, totalCost))
end
npcType.onSellItem = function(npc, player, itemId, subtype, amount, ignore, name, totalCost) end
-- On check npc shop message (look item)
npcType.onCheckItem = function(npc, player, clientId, subType) end

Expand Down
Loading
Loading