diff --git a/item_atm.lua b/item_atm.lua
index 8f0466a..7cea0e0 100644
--- a/item_atm.lua
+++ b/item_atm.lua
@@ -184,6 +184,64 @@ modMinerTrade.getSalt_Hash = function()
return modMinerTrade.bank.salt_hash
end
+modMinerTrade.addTransferProof_v2 = function(player, accountname, txtBeneficiary, txtValue, txtReason)
+ local playername = player:get_player_name()
+ local when = os.date("%Y-%B-%d %Hh:%Mm:%Ss")
+ local title = modMinerTrade.translate("TRANSFER PROOF")
+ local itemDescription = core.colorize("#00FF00", title)
+ .."\n"..modMinerTrade.translate("Reason: %s"):format(
+ txtReason:sub(1, modMinerTrade.paperprinted.max_title_size)
+ )
+
+ local docData = ""
+ .."\n"..modMinerTrade.translate("Document Type")..": "..modMinerTrade.translate("TRANSFER PROOF")
+ .."\n"..modMinerTrade.translate("Responsible Player")..": "..playername
+ .."\n"..modMinerTrade.translate("Account Holder")..": "..accountname
+ .."\n"..modMinerTrade.translate("Beneficiary")..": "..txtBeneficiary
+ .."\n"..modMinerTrade.translate("When")..": "..when
+ .."\n"..modMinerTrade.translate("Value")..": "..txtValue.." minercash"
+ .."\n"..modMinerTrade.translate("Transfer Reason")..": "..txtReason
+
+ local Auth = minetest.get_password_hash(
+ modMinerTrade.getSalt_Hash(),
+ minetest.encode_base64(docData:trim())
+ )
+
+ local htmlBody = [[
+
+
+
+ [TRANSFER_PROOF]
+
+
+[DOC_DATA]
+
+
+---------------------------------= [AUTHENTICATION_HASH] =-------------------------------------
+[AUTH]
+-----------------------------------------------------------------------------------------------
+[EXIST_MESSAGE]
+
+]]
+ --[[
+ htmlBody = htmlBody:gsub(
+ "[MINETEST_BANK]",
+ modMinerTrade.translate("MINETEST BANK")
+ )
+ htmlBody = htmlBody:gsub(
+ "[EXIST_MESSAGE]",
+ modMinerTrade.translate("Press ESC to exit this screen!")
+ )
+ htmlBody = htmlBody:gsub("[TRANSFER_PROOF]", title)
+ htmlBody = htmlBody:gsub("[DOC_DATA]", docData)
+ htmlBody = htmlBody:gsub("[AUTH]", Auth)
+ --]]
+
+ --local player = minetest.get_player_by_name(playername)
+ modMinerTrade.addPaperPrinted(player, itemDescription, htmlBody)
+
+end
+
modMinerTrade.addTransferProof = function(player, accountname, txtBeneficiary, txtValue, txtReason)
local playername = player:get_player_name()
local objProof = modMinerTrade.getProofStack(playername, accountname, txtBeneficiary, txtValue, txtReason)
diff --git a/item_paper_written.lua b/item_paper_written.lua
index a20f023..00c89fe 100644
--- a/item_paper_written.lua
+++ b/item_paper_written.lua
@@ -30,9 +30,10 @@ modMinerTrade.addPaperPrinted = function(player, txtTitle, txtPrinted)
local playername = player:get_player_name()
local data = {}
--data.title = fields.title:sub(1, max_title_size)
- data.title = txtTitle:sub(1, modMinerTrade.paperprinted.max_title_size)
- data.description = core.colorize("#00FF00", modMinerTrade.translate("PAPER WRITTEN") )
- .."\n".." * "..data.title
+ --data.title = txtTitle:sub(1, modMinerTrade.paperprinted.max_title_size)
+ --data.description = core.colorize("#00FF00", modMinerTrade.translate("PAPER WRITTEN") )
+ --.."\n".." * "..data.title
+ data.description = txtItemDescription
data.when = os.date() --os.date("%Y-%B-%d %Hh:%Mm:%Ss")
data.text = minetest.encode_base64(txtPrinted:trim())
@@ -134,7 +135,12 @@ Pressione ESC para sair desta tela!
]]
local player = minetest.get_player_by_name(playername)
- modMinerTrade.addPaperPrinted(player, "Exemplo de Impressão em Papel.", txtPrintedSample:format(playername))
+ modMinerTrade.addPaperPrinted(
+ player,
+ core.colorize("#00FF00", modMinerTrade.translate("PAPER WRITTEN") )
+ .."\n * Exemplo de Impressão em Papel.",
+ txtPrintedSample:format(playername)
+ )
end,
})