tx · 5iDBYtFLCixmKSfenVfEX7pa3UCYpc7SjgHSBqzPPHcd

3N7wjRDZ2ABrsnoCx4VQX3RP3r3DPkj9eDx:  -0.01000000 Waves

2021.07.26 10:35 [1630323] smart account 3N7wjRDZ2ABrsnoCx4VQX3RP3r3DPkj9eDx > SELF 0.00000000 Waves

{ "type": 13, "id": "5iDBYtFLCixmKSfenVfEX7pa3UCYpc7SjgHSBqzPPHcd", "fee": 1000000, "feeAssetId": null, "timestamp": 1627284928024, "version": 2, "chainId": 84, "sender": "3N7wjRDZ2ABrsnoCx4VQX3RP3r3DPkj9eDx", "senderPublicKey": "6qoAe8r1esyuGECiN4UZSvi5RpyExfXXS8izyNwWZaJP", "proofs": [ "4Pycc4FFo91iiysfWXvPatMNDn16dgJahh9eUBCUP7Y8fhEReXhE1SZXeFXLBhiD7tEJNpXLa9zNaQKHTSfUhFGu" ], "script": "base64:AAIFAAAAAAAAAAgIAhIECgIICAAAAAAAAAABAAAAA2ludgEAAAAEcGxheQAAAAIAAAAEY2FyZAAAAAVjbGFzcwQAAAANdHJhbnNhY3Rpb25JZAkAAlgAAAABCAUAAAADaW52AAAADXRyYW5zYWN0aW9uSWQEAAAACmN1cnJlbnRLZXkIBQAAAANpbnYAAAAGY2FsbGVyBAAAAAlwYXlBbW91bnQJAQAAAAV2YWx1ZQAAAAEICQABkQAAAAIIBQAAAANpbnYAAAAIcGF5bWVudHMAAAAAAAAAAAAAAAAGYW1vdW50BAAAAA9jdXJyZW50S2V5Qnl0ZXMJAAJYAAAAAQgIBQAAAANpbnYAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAAhjYXJkTmFtZQkAASwAAAACCQABLAAAAAIFAAAABWNsYXNzAgAAAAFfBQAAAARjYXJkBAAAABVjYXJkTmFtZUN1cnJlbnRQbGF5ZXIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgUAAAAFY2xhc3MCAAAAAV8FAAAABGNhcmQCAAAAAV8FAAAAD2N1cnJlbnRL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wAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgIAAAAJdXNlZENhcmQ6BQAAAAhjYXJkTmFtZQIAAAASLyBjYXJkSW5UaGVBcmVuYTogBQAAAA5jYXJkSW5UaGVBcmVuYQIAAAARLyBhcmVuYUNhcmRTY29yZToJAAGkAAAAAQUAAAAOYXJlbmFDYXJkU2NvcmUCAAAACS8gd2lubmVyOgUAAAAGd2lubmVyAgAAAA4vIHdpbm5pbmdDYXJkOgUAAAALd2lubmluZ0NhcmQCAAAAHy8gcG9pbnRzUmVtYWluaW5nT25XaW5uaW5nQ2FyZDoJAAGkAAAAAQUAAAAccG9pbnRzUmVtYWluaW5nT25XaW5uaW5nQ2FyZAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAABZSZXN1bHRhZG8gZGEgUGFydGlkYTogCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAICAAAACXVzZWRDYXJkOgUAAAAIY2FyZE5hbWUCAAAACS8gd2lubmVyOgUAAAAGd2lubmVyAgAAAA4vIHdpbm5pbmdDYXJkOgUAAAALd2lubmluZ0NhcmQCAAAAHy8gcG9pbnRzUmVtYWluaW5nT25XaW5uaW5nQ2FyZDoJAAGkAAAAAQUAAAAccG9pbnRzUmVtYWluaW5nT25XaW5uaW5nQ2FyZAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABLAAAAAICAAAAB3N0YXR1c18FAAAAFWNhcmROYW1lQ3VycmVudFBsYXllcgIAAAAEVXNlZAUAAAADbmlsAAAAADL4P14=", "height": 1630323, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: AU2MbzgvgsvU9yHc3MUKgDKj25s7JkXLPqaWb18aYHfp Next: C4gYUMkLcjjGWf6zB7ibk5Jzn7Zrv5zQ4tEaPXDuJA8F Diff:
OldNewDifferences
203203 }
204204 }
205205 }
206+ let randSoldierPlayer01 = sha256((((inv.callerPublicKey + lastBlock.generationSignature) + toBytes(lastBlock.timestamp)) + toBytes(lastBlock.height)))
206207 if (if (!(containsElement(classGame, class)))
207208 then true
208209 else !(containsElement(cardsGame, cardName)))
209210 then throw("A classe enviada não existe no game! Por favor verifique suas cartas!")
210- else if ((payAmount != 10000000))
211- then throw("Cada jogada possui um valor fixo de 0.01 waves.")
212- else if ((0 >= assetBalance(currentKey, undead)))
213- then throw("E necessário ter o token do deck em sua carteira! Para adquirir, realize a compra em Swap Decks.")
214- else if (if ((cardInTheArena == ""))
215- then true
216- else (playerInTheArena == ""))
217- then [StringEntry("playerInTheArena", currentKeyBytes), StringEntry("cardInTheArena", cardName), IntegerEntry("arenaCardScore", currentCardScore), StringEntry(("status_" + cardNameCurrentPlayer), "Used")]
218- else if ((currentCardStatus == "Used"))
219- then throw("Esta carta já foi utilizada! Utilize todas as cartas do deck para esta ser liberada novamente!")
220- else {
221- let winner = if ((currentCardScore > arenaCardScore))
222- then currentKeyBytes
223- else playerInTheArena
224- let winningCard = if ((currentCardScore > arenaCardScore))
225- then cardName
226- else cardInTheArena
227- let pointsRemainingOnWinningCard = if ((currentCardScore > arenaCardScore))
228- then (currentCardScore - arenaCardScore)
229- else (arenaCardScore - currentCardScore)
230- let rewardValue = if ((winner == currentKeyBytes))
231- then ((((payAmount * 19) / 10) / 2) + currentPlayerBalance)
232- else if ((winner == playerInTheArena))
233- then ((((payAmount * 19) / 10) / 2) + arenaPlayerBalance)
234- else throw("Código 010105. Contate o suporte!")
211+ else if (true)
212+ then throw(toString(toInt(randSoldierPlayer01)))
213+ else if ((payAmount != 10000000))
214+ then throw("Cada jogada possui um valor fixo de 0.01 waves.")
215+ else if ((0 >= assetBalance(currentKey, undead)))
216+ then throw("E necessário ter o token do deck em sua carteira! Para adquirir, realize a compra em Swap Decks.")
217+ else if (if ((cardInTheArena == ""))
218+ then true
219+ else (playerInTheArena == ""))
220+ then [StringEntry("playerInTheArena", currentKeyBytes), StringEntry("cardInTheArena", cardName), IntegerEntry("arenaCardScore", currentCardScore), StringEntry(("status_" + cardNameCurrentPlayer), "Used")]
221+ else if ((currentCardStatus == "Used"))
222+ then throw("Esta carta já foi utilizada! Utilize todas as cartas do deck para esta ser liberada novamente!")
223+ else {
224+ let winner = if ((currentCardScore > arenaCardScore))
225+ then currentKeyBytes
226+ else playerInTheArena
227+ let winningCard = if ((currentCardScore > arenaCardScore))
228+ then cardName
229+ else cardInTheArena
230+ let pointsRemainingOnWinningCard = if ((currentCardScore > arenaCardScore))
231+ then (currentCardScore - arenaCardScore)
232+ else (arenaCardScore - currentCardScore)
233+ let rewardValue = if ((winner == currentKeyBytes))
234+ then ((((payAmount * 19) / 10) / 2) + currentPlayerBalance)
235+ else if ((winner == playerInTheArena))
236+ then ((((payAmount * 19) / 10) / 2) + arenaPlayerBalance)
237+ else throw("Código 010105. Contate o suporte!")
235238 [StringEntry("playerInTheArena", winner), StringEntry("cardInTheArena", winningCard), IntegerEntry("arenaCardScore", pointsRemainingOnWinningCard), if ((resultVerifyStatusCards == 9))
236- then StringEntry(((("status_" + class) + "_1_") + currentKeyBytes), "")
237- else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
238- then StringEntry(((("status_" + class) + "_2_") + currentKeyBytes), "")
239- else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
240- then StringEntry(((("status_" + class) + "_3_") + currentKeyBytes), "")
241- else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
242- then StringEntry(((("status_" + class) + "_4_") + currentKeyBytes), "")
243- else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
244- then StringEntry(((("status_" + class) + "_5_") + currentKeyBytes), "")
245- else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
246- then StringEntry(((("status_" + class) + "_6_") + currentKeyBytes), "")
247- else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
248- then StringEntry(((("status_" + class) + "_7_") + currentKeyBytes), "")
249- else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
250- then StringEntry(((("status_" + class) + "_8_") + currentKeyBytes), "")
251- else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
252- then StringEntry(((("status_" + class) + "_9_") + currentKeyBytes), "")
253- else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
254- then StringEntry(((("status_" + class) + "_10_") + currentKeyBytes), "")
255- else StringEntry("ElseObrigatorio", "Todos os elses gravados"), IntegerEntry(("balance_waves_" + winner), rewardValue), StringEntry(((("history_" + currentKeyBytes) + "_") + transactionId), ((((((((((("usedCard:" + cardName) + "/ cardInTheArena: ") + cardInTheArena) + "/ arenaCardScore:") + toString(arenaCardScore)) + "/ winner:") + winner) + "/ winningCard:") + winningCard) + "/ pointsRemainingOnWinningCard:") + toString(pointsRemainingOnWinningCard))), StringEntry("Resultado da Partida: ", ((((((("usedCard:" + cardName) + "/ winner:") + winner) + "/ winningCard:") + winningCard) + "/ pointsRemainingOnWinningCard:") + toString(pointsRemainingOnWinningCard))), StringEntry(("status_" + cardNameCurrentPlayer), "Used")]
256- }
239+ then StringEntry(((("status_" + class) + "_1_") + currentKeyBytes), "")
240+ else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
241+ then StringEntry(((("status_" + class) + "_2_") + currentKeyBytes), "")
242+ else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
243+ then StringEntry(((("status_" + class) + "_3_") + currentKeyBytes), "")
244+ else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
245+ then StringEntry(((("status_" + class) + "_4_") + currentKeyBytes), "")
246+ else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
247+ then StringEntry(((("status_" + class) + "_5_") + currentKeyBytes), "")
248+ else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
249+ then StringEntry(((("status_" + class) + "_6_") + currentKeyBytes), "")
250+ else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
251+ then StringEntry(((("status_" + class) + "_7_") + currentKeyBytes), "")
252+ else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
253+ then StringEntry(((("status_" + class) + "_8_") + currentKeyBytes), "")
254+ else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
255+ then StringEntry(((("status_" + class) + "_9_") + currentKeyBytes), "")
256+ else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
257+ then StringEntry(((("status_" + class) + "_10_") + currentKeyBytes), "")
258+ else StringEntry("ElseObrigatorio", "Todos os elses gravados"), IntegerEntry(("balance_waves_" + winner), rewardValue), StringEntry(((("history_" + currentKeyBytes) + "_") + transactionId), ((((((((((("usedCard:" + cardName) + "/ cardInTheArena: ") + cardInTheArena) + "/ arenaCardScore:") + toString(arenaCardScore)) + "/ winner:") + winner) + "/ winningCard:") + winningCard) + "/ pointsRemainingOnWinningCard:") + toString(pointsRemainingOnWinningCard))), StringEntry("Resultado da Partida: ", ((((((("usedCard:" + cardName) + "/ winner:") + winner) + "/ winningCard:") + winningCard) + "/ pointsRemainingOnWinningCard:") + toString(pointsRemainingOnWinningCard))), StringEntry(("status_" + cardNameCurrentPlayer), "Used")]
259+ }
257260 }
258261
259262
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(inv)
77 func play (card,class) = {
88 let transactionId = toBase58String(inv.transactionId)
99 let currentKey = inv.caller
1010 let payAmount = value(inv.payments[0].amount)
1111 let currentKeyBytes = toBase58String(inv.caller.bytes)
1212 let cardName = ((class + "_") + card)
1313 let cardNameCurrentPlayer = ((((class + "_") + card) + "_") + currentKeyBytes)
1414 let undead = base58'6pdMqnpdaD6xEf7gbkgdwKq9UhVsQTFCN1mEDvYiL5NY'
1515 let cardsGame = ["Undead_1", "Undead_2", "Undead_3", "Undead_4", "Undead_5", "Undead_6", "Undead_7", "Undead_8", "Undead_9", "Undead_10"]
1616 let classGame = ["Undead"]
1717 let assetsGame = ["6pdMqnpdaD6xEf7gbkgdwKq9UhVsQTFCN1mEDvYiL5NY"]
1818 let currentCardStatus = match getString(this, ("status_" + cardNameCurrentPlayer)) {
1919 case t: String =>
2020 t
2121 case _ =>
2222 ""
2323 }
2424 let currentCardScore = match getInteger(this, cardName) {
2525 case t: Int =>
2626 t
2727 case _ =>
2828 0
2929 }
3030 let currentKeyPlayerBalance = ("balance_waves_" + currentKeyBytes)
3131 let currentPlayerBalance = match getInteger(this, currentKeyPlayerBalance) {
3232 case t: Int =>
3333 t
3434 case _ =>
3535 0
3636 }
3737 let playerInTheArena = match getString(this, "playerInTheArena") {
3838 case t: String =>
3939 t
4040 case _ =>
4141 ""
4242 }
4343 let arenaKeyPlayerBalance = ("balance_waves_" + playerInTheArena)
4444 let arenaPlayerBalance = match getInteger(this, arenaKeyPlayerBalance) {
4545 case t: Int =>
4646 t
4747 case _ =>
4848 0
4949 }
5050 let cardInTheArena = match getString(this, "cardInTheArena") {
5151 case t: String =>
5252 t
5353 case _ =>
5454 ""
5555 }
5656 let arenaCardScore = match getInteger(this, "arenaCardScore") {
5757 case t: Int =>
5858 t
5959 case _ =>
6060 0
6161 }
6262 let statusCard1 = if (( match getString(this, ((("status_" + class) + "_1_") + currentKeyBytes)) {
6363 case t: String =>
6464 t
6565 case _ =>
6666 ""
6767 } == "Used"))
6868 then 1
6969 else 0
7070 let statusCard2 = if (( match getString(this, ((("status_" + class) + "_2_") + currentKeyBytes)) {
7171 case t: String =>
7272 t
7373 case _ =>
7474 ""
7575 } == "Used"))
7676 then 1
7777 else 0
7878 let statusCard3 = if (( match getString(this, ((("status_" + class) + "_3_") + currentKeyBytes)) {
7979 case t: String =>
8080 t
8181 case _ =>
8282 ""
8383 } == "Used"))
8484 then 1
8585 else 0
8686 let statusCard4 = if (( match getString(this, ((("status_" + class) + "_4_") + currentKeyBytes)) {
8787 case t: String =>
8888 t
8989 case _ =>
9090 ""
9191 } == "Used"))
9292 then 1
9393 else 0
9494 let statusCard5 = if (( match getString(this, ((("status_" + class) + "_5_") + currentKeyBytes)) {
9595 case t: String =>
9696 t
9797 case _ =>
9898 ""
9999 } == "Used"))
100100 then 1
101101 else 0
102102 let statusCard6 = if (( match getString(this, ((("status_" + class) + "_6_") + currentKeyBytes)) {
103103 case t: String =>
104104 t
105105 case _ =>
106106 ""
107107 } == "Used"))
108108 then 1
109109 else 0
110110 let statusCard7 = if (( match getString(this, ((("status_" + class) + "_7_") + currentKeyBytes)) {
111111 case t: String =>
112112 t
113113 case _ =>
114114 ""
115115 } == "Used"))
116116 then 1
117117 else 0
118118 let statusCard8 = if (( match getString(this, ((("status_" + class) + "_8_") + currentKeyBytes)) {
119119 case t: String =>
120120 t
121121 case _ =>
122122 ""
123123 } == "Used"))
124124 then 1
125125 else 0
126126 let statusCard9 = if (( match getString(this, ((("status_" + class) + "_9_") + currentKeyBytes)) {
127127 case t: String =>
128128 t
129129 case _ =>
130130 ""
131131 } == "Used"))
132132 then 1
133133 else 0
134134 let statusCard10 = if (( match getString(this, ((("status_" + class) + "_10_") + currentKeyBytes)) {
135135 case t: String =>
136136 t
137137 case _ =>
138138 ""
139139 } == "Used"))
140140 then 1
141141 else 0
142142 let statusCards = [statusCard1, statusCard2, statusCard3, statusCard4, statusCard5, statusCard6, statusCard7, statusCard8, statusCard9, statusCard10]
143143 func foldFunc (acc,e) = (acc + e)
144144
145145 let resultVerifyStatusCards = {
146146 let $list47754809 = statusCards
147147 let $size47754809 = size($list47754809)
148148 let $acc047754809 = 0
149149 if (($size47754809 == 0))
150150 then $acc047754809
151151 else {
152152 let $acc147754809 = foldFunc($acc047754809, $list47754809[0])
153153 if (($size47754809 == 1))
154154 then $acc147754809
155155 else {
156156 let $acc247754809 = foldFunc($acc147754809, $list47754809[1])
157157 if (($size47754809 == 2))
158158 then $acc247754809
159159 else {
160160 let $acc347754809 = foldFunc($acc247754809, $list47754809[2])
161161 if (($size47754809 == 3))
162162 then $acc347754809
163163 else {
164164 let $acc447754809 = foldFunc($acc347754809, $list47754809[3])
165165 if (($size47754809 == 4))
166166 then $acc447754809
167167 else {
168168 let $acc547754809 = foldFunc($acc447754809, $list47754809[4])
169169 if (($size47754809 == 5))
170170 then $acc547754809
171171 else {
172172 let $acc647754809 = foldFunc($acc547754809, $list47754809[5])
173173 if (($size47754809 == 6))
174174 then $acc647754809
175175 else {
176176 let $acc747754809 = foldFunc($acc647754809, $list47754809[6])
177177 if (($size47754809 == 7))
178178 then $acc747754809
179179 else {
180180 let $acc847754809 = foldFunc($acc747754809, $list47754809[7])
181181 if (($size47754809 == 8))
182182 then $acc847754809
183183 else {
184184 let $acc947754809 = foldFunc($acc847754809, $list47754809[8])
185185 if (($size47754809 == 9))
186186 then $acc947754809
187187 else {
188188 let $acc1047754809 = foldFunc($acc947754809, $list47754809[9])
189189 if (($size47754809 == 10))
190190 then $acc1047754809
191191 else {
192192 let $acc1147754809 = foldFunc($acc1047754809, $list47754809[10])
193193 throw("List size exceed 10")
194194 }
195195 }
196196 }
197197 }
198198 }
199199 }
200200 }
201201 }
202202 }
203203 }
204204 }
205205 }
206+ let randSoldierPlayer01 = sha256((((inv.callerPublicKey + lastBlock.generationSignature) + toBytes(lastBlock.timestamp)) + toBytes(lastBlock.height)))
206207 if (if (!(containsElement(classGame, class)))
207208 then true
208209 else !(containsElement(cardsGame, cardName)))
209210 then throw("A classe enviada não existe no game! Por favor verifique suas cartas!")
210- else if ((payAmount != 10000000))
211- then throw("Cada jogada possui um valor fixo de 0.01 waves.")
212- else if ((0 >= assetBalance(currentKey, undead)))
213- then throw("E necessário ter o token do deck em sua carteira! Para adquirir, realize a compra em Swap Decks.")
214- else if (if ((cardInTheArena == ""))
215- then true
216- else (playerInTheArena == ""))
217- then [StringEntry("playerInTheArena", currentKeyBytes), StringEntry("cardInTheArena", cardName), IntegerEntry("arenaCardScore", currentCardScore), StringEntry(("status_" + cardNameCurrentPlayer), "Used")]
218- else if ((currentCardStatus == "Used"))
219- then throw("Esta carta já foi utilizada! Utilize todas as cartas do deck para esta ser liberada novamente!")
220- else {
221- let winner = if ((currentCardScore > arenaCardScore))
222- then currentKeyBytes
223- else playerInTheArena
224- let winningCard = if ((currentCardScore > arenaCardScore))
225- then cardName
226- else cardInTheArena
227- let pointsRemainingOnWinningCard = if ((currentCardScore > arenaCardScore))
228- then (currentCardScore - arenaCardScore)
229- else (arenaCardScore - currentCardScore)
230- let rewardValue = if ((winner == currentKeyBytes))
231- then ((((payAmount * 19) / 10) / 2) + currentPlayerBalance)
232- else if ((winner == playerInTheArena))
233- then ((((payAmount * 19) / 10) / 2) + arenaPlayerBalance)
234- else throw("Código 010105. Contate o suporte!")
211+ else if (true)
212+ then throw(toString(toInt(randSoldierPlayer01)))
213+ else if ((payAmount != 10000000))
214+ then throw("Cada jogada possui um valor fixo de 0.01 waves.")
215+ else if ((0 >= assetBalance(currentKey, undead)))
216+ then throw("E necessário ter o token do deck em sua carteira! Para adquirir, realize a compra em Swap Decks.")
217+ else if (if ((cardInTheArena == ""))
218+ then true
219+ else (playerInTheArena == ""))
220+ then [StringEntry("playerInTheArena", currentKeyBytes), StringEntry("cardInTheArena", cardName), IntegerEntry("arenaCardScore", currentCardScore), StringEntry(("status_" + cardNameCurrentPlayer), "Used")]
221+ else if ((currentCardStatus == "Used"))
222+ then throw("Esta carta já foi utilizada! Utilize todas as cartas do deck para esta ser liberada novamente!")
223+ else {
224+ let winner = if ((currentCardScore > arenaCardScore))
225+ then currentKeyBytes
226+ else playerInTheArena
227+ let winningCard = if ((currentCardScore > arenaCardScore))
228+ then cardName
229+ else cardInTheArena
230+ let pointsRemainingOnWinningCard = if ((currentCardScore > arenaCardScore))
231+ then (currentCardScore - arenaCardScore)
232+ else (arenaCardScore - currentCardScore)
233+ let rewardValue = if ((winner == currentKeyBytes))
234+ then ((((payAmount * 19) / 10) / 2) + currentPlayerBalance)
235+ else if ((winner == playerInTheArena))
236+ then ((((payAmount * 19) / 10) / 2) + arenaPlayerBalance)
237+ else throw("Código 010105. Contate o suporte!")
235238 [StringEntry("playerInTheArena", winner), StringEntry("cardInTheArena", winningCard), IntegerEntry("arenaCardScore", pointsRemainingOnWinningCard), if ((resultVerifyStatusCards == 9))
236- then StringEntry(((("status_" + class) + "_1_") + currentKeyBytes), "")
237- else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
238- then StringEntry(((("status_" + class) + "_2_") + currentKeyBytes), "")
239- else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
240- then StringEntry(((("status_" + class) + "_3_") + currentKeyBytes), "")
241- else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
242- then StringEntry(((("status_" + class) + "_4_") + currentKeyBytes), "")
243- else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
244- then StringEntry(((("status_" + class) + "_5_") + currentKeyBytes), "")
245- else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
246- then StringEntry(((("status_" + class) + "_6_") + currentKeyBytes), "")
247- else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
248- then StringEntry(((("status_" + class) + "_7_") + currentKeyBytes), "")
249- else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
250- then StringEntry(((("status_" + class) + "_8_") + currentKeyBytes), "")
251- else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
252- then StringEntry(((("status_" + class) + "_9_") + currentKeyBytes), "")
253- else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
254- then StringEntry(((("status_" + class) + "_10_") + currentKeyBytes), "")
255- else StringEntry("ElseObrigatorio", "Todos os elses gravados"), IntegerEntry(("balance_waves_" + winner), rewardValue), StringEntry(((("history_" + currentKeyBytes) + "_") + transactionId), ((((((((((("usedCard:" + cardName) + "/ cardInTheArena: ") + cardInTheArena) + "/ arenaCardScore:") + toString(arenaCardScore)) + "/ winner:") + winner) + "/ winningCard:") + winningCard) + "/ pointsRemainingOnWinningCard:") + toString(pointsRemainingOnWinningCard))), StringEntry("Resultado da Partida: ", ((((((("usedCard:" + cardName) + "/ winner:") + winner) + "/ winningCard:") + winningCard) + "/ pointsRemainingOnWinningCard:") + toString(pointsRemainingOnWinningCard))), StringEntry(("status_" + cardNameCurrentPlayer), "Used")]
256- }
239+ then StringEntry(((("status_" + class) + "_1_") + currentKeyBytes), "")
240+ else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
241+ then StringEntry(((("status_" + class) + "_2_") + currentKeyBytes), "")
242+ else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
243+ then StringEntry(((("status_" + class) + "_3_") + currentKeyBytes), "")
244+ else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
245+ then StringEntry(((("status_" + class) + "_4_") + currentKeyBytes), "")
246+ else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
247+ then StringEntry(((("status_" + class) + "_5_") + currentKeyBytes), "")
248+ else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
249+ then StringEntry(((("status_" + class) + "_6_") + currentKeyBytes), "")
250+ else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
251+ then StringEntry(((("status_" + class) + "_7_") + currentKeyBytes), "")
252+ else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
253+ then StringEntry(((("status_" + class) + "_8_") + currentKeyBytes), "")
254+ else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
255+ then StringEntry(((("status_" + class) + "_9_") + currentKeyBytes), "")
256+ else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
257+ then StringEntry(((("status_" + class) + "_10_") + currentKeyBytes), "")
258+ else StringEntry("ElseObrigatorio", "Todos os elses gravados"), IntegerEntry(("balance_waves_" + winner), rewardValue), StringEntry(((("history_" + currentKeyBytes) + "_") + transactionId), ((((((((((("usedCard:" + cardName) + "/ cardInTheArena: ") + cardInTheArena) + "/ arenaCardScore:") + toString(arenaCardScore)) + "/ winner:") + winner) + "/ winningCard:") + winningCard) + "/ pointsRemainingOnWinningCard:") + toString(pointsRemainingOnWinningCard))), StringEntry("Resultado da Partida: ", ((((((("usedCard:" + cardName) + "/ winner:") + winner) + "/ winningCard:") + winningCard) + "/ pointsRemainingOnWinningCard:") + toString(pointsRemainingOnWinningCard))), StringEntry(("status_" + cardNameCurrentPlayer), "Used")]
259+ }
257260 }
258261
259262

github/deemru/w8io/169f3d6 
64.16 ms