tx · HQ24TL6vk42KutiY1mHLzeCxVAXmnFPPnT4yQQTHjP5

3N8yhbgiVQSoN23tkgVCbyJm7mcUkAkZUnT:  -0.01000000 Waves

2021.08.01 01:14 [1638395] smart account 3N8yhbgiVQSoN23tkgVCbyJm7mcUkAkZUnT > SELF 0.00000000 Waves

{ "type": 13, "id": "HQ24TL6vk42KutiY1mHLzeCxVAXmnFPPnT4yQQTHjP5", "fee": 1000000, "feeAssetId": null, "timestamp": 1627769687556, "version": 2, "chainId": 84, "sender": "3N8yhbgiVQSoN23tkgVCbyJm7mcUkAkZUnT", "senderPublicKey": "CuwzjevdV5RCgwvv5RmXDzzqYaRvw3V21dJL7FH9gpLj", "proofs": [ "2dWJFb2iTarNVXmZs9yMYuHzUkt8mWRcgiDVCPWp1BqQJGYiS1oJrLKPDU9781hpn38nxX6neXNSmZ55AKaF4EUe" ], "script": "base64:AAIFAAAAAAAAAAgIAhIECgIICAAAAAAAAAABAAAAA2ludgEAAAAEcGxheQAAAAIAAAAEY2FyZAAAAAVjbGFzcwQAAAANdHJhbnNhY3Rpb25JZAkAAlgAAAABCAUAAAADaW52AAAADXRyYW5zYWN0aW9uSWQEAAAACmN1cnJlbnRLZXkIBQAAAANpbnYAAAAGY2FsbGVyBAAAAAlwYXlBbW91bnQJAQAAAAV2YWx1ZQAAAAEICQABkQAAAAIIBQAAAANpbnYAAAAIcGF5bWVudHMAAAAAAAAAAAAAAAAGYW1vdW50BAAAAA9jdXJyZW50S2V5Qnl0ZXMJAAJYAAAAAQgIBQAAAANpbnYAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAAhjYXJkTmFtZQkAASwAAAACCQABLAAAAAIFAAAABWNsYXNzAgAAAAFfBQAAAARjYXJkBAAAABVjYXJkTmFtZUN1cnJlbnRQbGF5ZXIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgUAAAAFY2xhc3MCAAAAAV8FAAAABGNhcmQCAAAAAV8FAAAAD2N1cnJlbnRLZXlCeXR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3", "height": 1638395, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Dy26oLihexz5CWTUWpjNWKC4oa8QB2FQRenbodPD3vL Next: 5atFe3ZMMhEN7k36rEeKa7NzXMjzGZZkDc3nEDAW5f8h Diff:
OldNewDifferences
209209 }
210210 }
211211 }
212- if (if (!(containsElement(classGame, class)))
213- then true
214- else !(containsElement(cardsGame, cardName)))
215- then throw("A classe enviada não existe no game! Por favor verifique suas cartas!")
216- else if ((payAmount != 10000000))
217- then throw("Cada jogada possui um valor fixo de 0.1 waves.")
218- else if ((0 >= assetBalance(currentKey, undead)))
219- then throw("E necessário ter o token do deck em sua carteira! Para adquirir, realize a compra em Swap Decks.")
220- else if (if ((cardInTheArena == ""))
221- then true
222- else (playerInTheArena == ""))
223- then [StringEntry("playerInTheArena", currentKeyBytes), StringEntry("cardInTheArena", cardName), IntegerEntry("arenaCardScore", currentCardScore), StringEntry(("status_" + cardNameCurrentPlayer), "Used")]
224- else if ((currentCardStatus == "Used"))
225- then throw("Esta carta já foi utilizada! Utilize todas as cartas do deck para esta ser liberada novamente!")
226- else {
227- let winner = if ((currentCardScore > arenaCardScore))
228- then currentKeyBytes
229- else playerInTheArena
230- let defeated = if ((arenaCardScore > currentCardScore))
231- then currentKeyBytes
232- else if ((currentCardScore > arenaCardScore))
233- then playerInTheArena
234- else currentKeyBytes
235- let winningCard = if ((currentCardScore > arenaCardScore))
236- then cardName
237- else cardInTheArena
238- let defeatedCard = if ((arenaCardScore > currentCardScore))
239- then cardName
240- else if ((currentCardScore > arenaCardScore))
241- then cardInTheArena
242- else currentKeyBytes
243- let pointsRemainingOnWinningCard = if ((currentCardScore > arenaCardScore))
244- then (currentCardScore - arenaCardScore)
245- else (arenaCardScore - currentCardScore)
246- let rewardValue = if ((winner == currentKeyBytes))
247- then ((((payAmount * 19) / 10) / 2) + currentPlayerBalance)
248- else if ((winner == playerInTheArena))
249- then ((((payAmount * 19) / 10) / 2) + arenaPlayerBalance)
250- else throw("Código 010105. Contate o suporte!")
251- let winReward = (((payAmount * 19) / 10) / 2)
252- let defeatReward = 0
253- let newHistoricId = (historicId + 1)
212+ if ((class == "Undead Cards"))
213+ then [ScriptTransfer(currentKey, 1, undead)]
214+ else if (if (!(containsElement(classGame, class)))
215+ then true
216+ else !(containsElement(cardsGame, cardName)))
217+ then throw("A classe enviada não existe no game! Por favor verifique suas cartas!")
218+ else if ((payAmount != 10000000))
219+ then throw("Cada jogada possui um valor fixo de 0.1 waves.")
220+ else if ((0 >= assetBalance(currentKey, undead)))
221+ then throw("E necessário ter o token do deck em sua carteira! Para adquirir, realize a compra em Swap Decks.")
222+ else if (if ((cardInTheArena == ""))
223+ then true
224+ else (playerInTheArena == ""))
225+ then [StringEntry("playerInTheArena", currentKeyBytes), StringEntry("cardInTheArena", cardName), IntegerEntry("arenaCardScore", currentCardScore), StringEntry(("status_" + cardNameCurrentPlayer), "Used")]
226+ else if ((currentCardStatus == "Used"))
227+ then throw("Esta carta já foi utilizada! Utilize todas as cartas do deck para esta ser liberada novamente!")
228+ else {
229+ let winner = if ((currentCardScore > arenaCardScore))
230+ then currentKeyBytes
231+ else playerInTheArena
232+ let defeated = if ((arenaCardScore > currentCardScore))
233+ then currentKeyBytes
234+ else if ((currentCardScore > arenaCardScore))
235+ then playerInTheArena
236+ else currentKeyBytes
237+ let winningCard = if ((currentCardScore > arenaCardScore))
238+ then cardName
239+ else cardInTheArena
240+ let defeatedCard = if ((arenaCardScore > currentCardScore))
241+ then cardName
242+ else if ((currentCardScore > arenaCardScore))
243+ then cardInTheArena
244+ else currentKeyBytes
245+ let pointsRemainingOnWinningCard = if ((currentCardScore > arenaCardScore))
246+ then (currentCardScore - arenaCardScore)
247+ else (arenaCardScore - currentCardScore)
248+ let rewardValue = if ((winner == currentKeyBytes))
249+ then ((((payAmount * 19) / 10) / 2) + currentPlayerBalance)
250+ else if ((winner == playerInTheArena))
251+ then ((((payAmount * 19) / 10) / 2) + arenaPlayerBalance)
252+ else throw("Código 010105. Contate o suporte!")
253+ let winReward = (((payAmount * 19) / 10) / 2)
254+ let defeatReward = 0
255+ let newHistoricId = (historicId + 1)
254256 [StringEntry("playerInTheArena", winner), StringEntry("cardInTheArena", winningCard), IntegerEntry("arenaCardScore", pointsRemainingOnWinningCard), if ((resultVerifyStatusCards == 9))
255- then StringEntry(((("status_" + class) + "_100_") + currentKeyBytes), "")
256- else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
257- then StringEntry(((("status_" + class) + "_200_") + currentKeyBytes), "")
258- else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
259- then StringEntry(((("status_" + class) + "_300_") + currentKeyBytes), "")
260- else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
261- then StringEntry(((("status_" + class) + "_400_") + currentKeyBytes), "")
262- else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
263- then StringEntry(((("status_" + class) + "_500_") + currentKeyBytes), "")
264- else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
265- then StringEntry(((("status_" + class) + "_600_") + currentKeyBytes), "")
266- else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
267- then StringEntry(((("status_" + class) + "_700_") + currentKeyBytes), "")
268- else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
269- then StringEntry(((("status_" + class) + "_800_") + currentKeyBytes), "")
270- else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
271- then StringEntry(((("status_" + class) + "_900_") + currentKeyBytes), "")
272- else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
273- then StringEntry(((("status_" + class) + "_1000_") + currentKeyBytes), "")
274- else StringEntry("ElseObrigatorio", "Todos os elses gravados"), IntegerEntry(("balance_waves_" + winner), rewardValue), StringEntry(((((((("history_" + currentKeyBytes) + "_") + playerInTheArena) + "_") + transactionId) + "_") + toString(newHistoricId)), (((((((((((((((((((((((((((("{\"historicId\": \"" + toString(newHistoricId)) + "\", \"transactionId\": \"") + transactionId) + "\", \"playerAttack\": \"") + currentKeyBytes) + "\", \"playerInTheArena\": \"") + playerInTheArena) + "\", \"usedCard\": \"") + cardName) + "\", \"cardInTheArena\": \"") + cardInTheArena) + "\", \"arenaCardScore\": \"") + toString(arenaCardScore)) + "\", \"winner\": \"") + winner) + "\", \"winningCard\": \"") + winningCard) + "\", \"defeated\": \"") + defeated) + "\", \"defeatedCard\": \"") + defeatedCard) + "\", \"pointsRemainingOnWinningCard\": \"") + toString(pointsRemainingOnWinningCard)) + "\", \"winReward\": \"") + toString(winReward)) + "\", \"defeatReward\": \"") + toString(defeatReward)) + "\"}")), StringEntry(("status_" + cardNameCurrentPlayer), "Used"), DeleteEntry("history_3N15bPRtX127MXJ3TAuerRbdgmNJPrGrbj6_3N62yyXbLXB6ptVkBX2k8V2chVbTy7Rsugd_BJNDhAcdcdJnx8YX1YUdA1kuPFd9Ja8NSNCKuDM72qnR_9"), DeleteEntry("history_3N62yyXbLXB6ptVkBX2k8V2chVbTy7Rsugd_3N15bPRtX127MXJ3TAuerRbdgmNJPrGrbj6_8ot6FpU7m3EdEz5DowJt1DNfn8N1HsZzhHoTcchziNLq_8"), IntegerEntry("historicId", newHistoricId)]
275- }
257+ then StringEntry(((("status_" + class) + "_100_") + currentKeyBytes), "")
258+ else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
259+ then StringEntry(((("status_" + class) + "_200_") + currentKeyBytes), "")
260+ else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
261+ then StringEntry(((("status_" + class) + "_300_") + currentKeyBytes), "")
262+ else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
263+ then StringEntry(((("status_" + class) + "_400_") + currentKeyBytes), "")
264+ else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
265+ then StringEntry(((("status_" + class) + "_500_") + currentKeyBytes), "")
266+ else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
267+ then StringEntry(((("status_" + class) + "_600_") + currentKeyBytes), "")
268+ else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
269+ then StringEntry(((("status_" + class) + "_700_") + currentKeyBytes), "")
270+ else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
271+ then StringEntry(((("status_" + class) + "_800_") + currentKeyBytes), "")
272+ else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
273+ then StringEntry(((("status_" + class) + "_900_") + currentKeyBytes), "")
274+ else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
275+ then StringEntry(((("status_" + class) + "_1000_") + currentKeyBytes), "")
276+ else StringEntry("ElseObrigatorio", "Todos os elses gravados"), IntegerEntry(("balance_waves_" + winner), rewardValue), StringEntry(((((((("history_" + currentKeyBytes) + "_") + playerInTheArena) + "_") + transactionId) + "_") + toString(newHistoricId)), (((((((((((((((((((((((((((("{\"historicId\": \"" + toString(newHistoricId)) + "\", \"transactionId\": \"") + transactionId) + "\", \"playerAttack\": \"") + currentKeyBytes) + "\", \"playerInTheArena\": \"") + playerInTheArena) + "\", \"usedCard\": \"") + cardName) + "\", \"cardInTheArena\": \"") + cardInTheArena) + "\", \"arenaCardScore\": \"") + toString(arenaCardScore)) + "\", \"winner\": \"") + winner) + "\", \"winningCard\": \"") + winningCard) + "\", \"defeated\": \"") + defeated) + "\", \"defeatedCard\": \"") + defeatedCard) + "\", \"pointsRemainingOnWinningCard\": \"") + toString(pointsRemainingOnWinningCard)) + "\", \"winReward\": \"") + toString(winReward)) + "\", \"defeatReward\": \"") + toString(defeatReward)) + "\"}")), StringEntry(("status_" + cardNameCurrentPlayer), "Used"), IntegerEntry("historicId", newHistoricId)]
277+ }
276278 }
277279
278280
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'AYNhdXWw3qmAWqkJMQfKyLBRQpkaPPkP8jjNzMb8V5cd'
1515 let cardsGame = ["Undead_100", "Undead_200", "Undead_300", "Undead_400", "Undead_500", "Undead_600", "Undead_700", "Undead_800", "Undead_900", "Undead_1000"]
1616 let classGame = ["Undead"]
1717 let assetsGame = ["AYNhdXWw3qmAWqkJMQfKyLBRQpkaPPkP8jjNzMb8V5cd"]
1818 let historicId = match getInteger(this, "historicId") {
1919 case t: Int =>
2020 t
2121 case _ =>
2222 0
2323 }
2424 let currentCardStatus = match getString(this, ("status_" + cardNameCurrentPlayer)) {
2525 case t: String =>
2626 t
2727 case _ =>
2828 ""
2929 }
3030 let currentCardScore = match getInteger(this, cardName) {
3131 case t: Int =>
3232 t
3333 case _ =>
3434 0
3535 }
3636 let currentKeyPlayerBalance = ("balance_waves_" + currentKeyBytes)
3737 let currentPlayerBalance = match getInteger(this, currentKeyPlayerBalance) {
3838 case t: Int =>
3939 t
4040 case _ =>
4141 0
4242 }
4343 let playerInTheArena = match getString(this, "playerInTheArena") {
4444 case t: String =>
4545 t
4646 case _ =>
4747 ""
4848 }
4949 let arenaKeyPlayerBalance = ("balance_waves_" + playerInTheArena)
5050 let arenaPlayerBalance = match getInteger(this, arenaKeyPlayerBalance) {
5151 case t: Int =>
5252 t
5353 case _ =>
5454 0
5555 }
5656 let cardInTheArena = match getString(this, "cardInTheArena") {
5757 case t: String =>
5858 t
5959 case _ =>
6060 ""
6161 }
6262 let arenaCardScore = match getInteger(this, "arenaCardScore") {
6363 case t: Int =>
6464 t
6565 case _ =>
6666 0
6767 }
6868 let statusCard1 = if (( match getString(this, ((("status_" + class) + "_100_") + currentKeyBytes)) {
6969 case t: String =>
7070 t
7171 case _ =>
7272 ""
7373 } == "Used"))
7474 then 1
7575 else 0
7676 let statusCard2 = if (( match getString(this, ((("status_" + class) + "_200_") + currentKeyBytes)) {
7777 case t: String =>
7878 t
7979 case _ =>
8080 ""
8181 } == "Used"))
8282 then 1
8383 else 0
8484 let statusCard3 = if (( match getString(this, ((("status_" + class) + "_300_") + currentKeyBytes)) {
8585 case t: String =>
8686 t
8787 case _ =>
8888 ""
8989 } == "Used"))
9090 then 1
9191 else 0
9292 let statusCard4 = if (( match getString(this, ((("status_" + class) + "_400_") + currentKeyBytes)) {
9393 case t: String =>
9494 t
9595 case _ =>
9696 ""
9797 } == "Used"))
9898 then 1
9999 else 0
100100 let statusCard5 = if (( match getString(this, ((("status_" + class) + "_500_") + currentKeyBytes)) {
101101 case t: String =>
102102 t
103103 case _ =>
104104 ""
105105 } == "Used"))
106106 then 1
107107 else 0
108108 let statusCard6 = if (( match getString(this, ((("status_" + class) + "_600_") + currentKeyBytes)) {
109109 case t: String =>
110110 t
111111 case _ =>
112112 ""
113113 } == "Used"))
114114 then 1
115115 else 0
116116 let statusCard7 = if (( match getString(this, ((("status_" + class) + "_700_") + currentKeyBytes)) {
117117 case t: String =>
118118 t
119119 case _ =>
120120 ""
121121 } == "Used"))
122122 then 1
123123 else 0
124124 let statusCard8 = if (( match getString(this, ((("status_" + class) + "_800_") + currentKeyBytes)) {
125125 case t: String =>
126126 t
127127 case _ =>
128128 ""
129129 } == "Used"))
130130 then 1
131131 else 0
132132 let statusCard9 = if (( match getString(this, ((("status_" + class) + "_900_") + currentKeyBytes)) {
133133 case t: String =>
134134 t
135135 case _ =>
136136 ""
137137 } == "Used"))
138138 then 1
139139 else 0
140140 let statusCard10 = if (( match getString(this, ((("status_" + class) + "_1000_") + currentKeyBytes)) {
141141 case t: String =>
142142 t
143143 case _ =>
144144 ""
145145 } == "Used"))
146146 then 1
147147 else 0
148148 let statusCards = [statusCard1, statusCard2, statusCard3, statusCard4, statusCard5, statusCard6, statusCard7, statusCard8, statusCard9, statusCard10]
149149 func foldFunc (acc,e) = (acc + e)
150150
151151 let resultVerifyStatusCards = {
152152 let $list49464980 = statusCards
153153 let $size49464980 = size($list49464980)
154154 let $acc049464980 = 0
155155 if (($size49464980 == 0))
156156 then $acc049464980
157157 else {
158158 let $acc149464980 = foldFunc($acc049464980, $list49464980[0])
159159 if (($size49464980 == 1))
160160 then $acc149464980
161161 else {
162162 let $acc249464980 = foldFunc($acc149464980, $list49464980[1])
163163 if (($size49464980 == 2))
164164 then $acc249464980
165165 else {
166166 let $acc349464980 = foldFunc($acc249464980, $list49464980[2])
167167 if (($size49464980 == 3))
168168 then $acc349464980
169169 else {
170170 let $acc449464980 = foldFunc($acc349464980, $list49464980[3])
171171 if (($size49464980 == 4))
172172 then $acc449464980
173173 else {
174174 let $acc549464980 = foldFunc($acc449464980, $list49464980[4])
175175 if (($size49464980 == 5))
176176 then $acc549464980
177177 else {
178178 let $acc649464980 = foldFunc($acc549464980, $list49464980[5])
179179 if (($size49464980 == 6))
180180 then $acc649464980
181181 else {
182182 let $acc749464980 = foldFunc($acc649464980, $list49464980[6])
183183 if (($size49464980 == 7))
184184 then $acc749464980
185185 else {
186186 let $acc849464980 = foldFunc($acc749464980, $list49464980[7])
187187 if (($size49464980 == 8))
188188 then $acc849464980
189189 else {
190190 let $acc949464980 = foldFunc($acc849464980, $list49464980[8])
191191 if (($size49464980 == 9))
192192 then $acc949464980
193193 else {
194194 let $acc1049464980 = foldFunc($acc949464980, $list49464980[9])
195195 if (($size49464980 == 10))
196196 then $acc1049464980
197197 else {
198198 let $acc1149464980 = foldFunc($acc1049464980, $list49464980[10])
199199 throw("List size exceed 10")
200200 }
201201 }
202202 }
203203 }
204204 }
205205 }
206206 }
207207 }
208208 }
209209 }
210210 }
211211 }
212- if (if (!(containsElement(classGame, class)))
213- then true
214- else !(containsElement(cardsGame, cardName)))
215- then throw("A classe enviada não existe no game! Por favor verifique suas cartas!")
216- else if ((payAmount != 10000000))
217- then throw("Cada jogada possui um valor fixo de 0.1 waves.")
218- else if ((0 >= assetBalance(currentKey, undead)))
219- then throw("E necessário ter o token do deck em sua carteira! Para adquirir, realize a compra em Swap Decks.")
220- else if (if ((cardInTheArena == ""))
221- then true
222- else (playerInTheArena == ""))
223- then [StringEntry("playerInTheArena", currentKeyBytes), StringEntry("cardInTheArena", cardName), IntegerEntry("arenaCardScore", currentCardScore), StringEntry(("status_" + cardNameCurrentPlayer), "Used")]
224- else if ((currentCardStatus == "Used"))
225- then throw("Esta carta já foi utilizada! Utilize todas as cartas do deck para esta ser liberada novamente!")
226- else {
227- let winner = if ((currentCardScore > arenaCardScore))
228- then currentKeyBytes
229- else playerInTheArena
230- let defeated = if ((arenaCardScore > currentCardScore))
231- then currentKeyBytes
232- else if ((currentCardScore > arenaCardScore))
233- then playerInTheArena
234- else currentKeyBytes
235- let winningCard = if ((currentCardScore > arenaCardScore))
236- then cardName
237- else cardInTheArena
238- let defeatedCard = if ((arenaCardScore > currentCardScore))
239- then cardName
240- else if ((currentCardScore > arenaCardScore))
241- then cardInTheArena
242- else currentKeyBytes
243- let pointsRemainingOnWinningCard = if ((currentCardScore > arenaCardScore))
244- then (currentCardScore - arenaCardScore)
245- else (arenaCardScore - currentCardScore)
246- let rewardValue = if ((winner == currentKeyBytes))
247- then ((((payAmount * 19) / 10) / 2) + currentPlayerBalance)
248- else if ((winner == playerInTheArena))
249- then ((((payAmount * 19) / 10) / 2) + arenaPlayerBalance)
250- else throw("Código 010105. Contate o suporte!")
251- let winReward = (((payAmount * 19) / 10) / 2)
252- let defeatReward = 0
253- let newHistoricId = (historicId + 1)
212+ if ((class == "Undead Cards"))
213+ then [ScriptTransfer(currentKey, 1, undead)]
214+ else if (if (!(containsElement(classGame, class)))
215+ then true
216+ else !(containsElement(cardsGame, cardName)))
217+ then throw("A classe enviada não existe no game! Por favor verifique suas cartas!")
218+ else if ((payAmount != 10000000))
219+ then throw("Cada jogada possui um valor fixo de 0.1 waves.")
220+ else if ((0 >= assetBalance(currentKey, undead)))
221+ then throw("E necessário ter o token do deck em sua carteira! Para adquirir, realize a compra em Swap Decks.")
222+ else if (if ((cardInTheArena == ""))
223+ then true
224+ else (playerInTheArena == ""))
225+ then [StringEntry("playerInTheArena", currentKeyBytes), StringEntry("cardInTheArena", cardName), IntegerEntry("arenaCardScore", currentCardScore), StringEntry(("status_" + cardNameCurrentPlayer), "Used")]
226+ else if ((currentCardStatus == "Used"))
227+ then throw("Esta carta já foi utilizada! Utilize todas as cartas do deck para esta ser liberada novamente!")
228+ else {
229+ let winner = if ((currentCardScore > arenaCardScore))
230+ then currentKeyBytes
231+ else playerInTheArena
232+ let defeated = if ((arenaCardScore > currentCardScore))
233+ then currentKeyBytes
234+ else if ((currentCardScore > arenaCardScore))
235+ then playerInTheArena
236+ else currentKeyBytes
237+ let winningCard = if ((currentCardScore > arenaCardScore))
238+ then cardName
239+ else cardInTheArena
240+ let defeatedCard = if ((arenaCardScore > currentCardScore))
241+ then cardName
242+ else if ((currentCardScore > arenaCardScore))
243+ then cardInTheArena
244+ else currentKeyBytes
245+ let pointsRemainingOnWinningCard = if ((currentCardScore > arenaCardScore))
246+ then (currentCardScore - arenaCardScore)
247+ else (arenaCardScore - currentCardScore)
248+ let rewardValue = if ((winner == currentKeyBytes))
249+ then ((((payAmount * 19) / 10) / 2) + currentPlayerBalance)
250+ else if ((winner == playerInTheArena))
251+ then ((((payAmount * 19) / 10) / 2) + arenaPlayerBalance)
252+ else throw("Código 010105. Contate o suporte!")
253+ let winReward = (((payAmount * 19) / 10) / 2)
254+ let defeatReward = 0
255+ let newHistoricId = (historicId + 1)
254256 [StringEntry("playerInTheArena", winner), StringEntry("cardInTheArena", winningCard), IntegerEntry("arenaCardScore", pointsRemainingOnWinningCard), if ((resultVerifyStatusCards == 9))
255- then StringEntry(((("status_" + class) + "_100_") + currentKeyBytes), "")
256- else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
257- then StringEntry(((("status_" + class) + "_200_") + currentKeyBytes), "")
258- else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
259- then StringEntry(((("status_" + class) + "_300_") + currentKeyBytes), "")
260- else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
261- then StringEntry(((("status_" + class) + "_400_") + currentKeyBytes), "")
262- else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
263- then StringEntry(((("status_" + class) + "_500_") + currentKeyBytes), "")
264- else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
265- then StringEntry(((("status_" + class) + "_600_") + currentKeyBytes), "")
266- else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
267- then StringEntry(((("status_" + class) + "_700_") + currentKeyBytes), "")
268- else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
269- then StringEntry(((("status_" + class) + "_800_") + currentKeyBytes), "")
270- else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
271- then StringEntry(((("status_" + class) + "_900_") + currentKeyBytes), "")
272- else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
273- then StringEntry(((("status_" + class) + "_1000_") + currentKeyBytes), "")
274- else StringEntry("ElseObrigatorio", "Todos os elses gravados"), IntegerEntry(("balance_waves_" + winner), rewardValue), StringEntry(((((((("history_" + currentKeyBytes) + "_") + playerInTheArena) + "_") + transactionId) + "_") + toString(newHistoricId)), (((((((((((((((((((((((((((("{\"historicId\": \"" + toString(newHistoricId)) + "\", \"transactionId\": \"") + transactionId) + "\", \"playerAttack\": \"") + currentKeyBytes) + "\", \"playerInTheArena\": \"") + playerInTheArena) + "\", \"usedCard\": \"") + cardName) + "\", \"cardInTheArena\": \"") + cardInTheArena) + "\", \"arenaCardScore\": \"") + toString(arenaCardScore)) + "\", \"winner\": \"") + winner) + "\", \"winningCard\": \"") + winningCard) + "\", \"defeated\": \"") + defeated) + "\", \"defeatedCard\": \"") + defeatedCard) + "\", \"pointsRemainingOnWinningCard\": \"") + toString(pointsRemainingOnWinningCard)) + "\", \"winReward\": \"") + toString(winReward)) + "\", \"defeatReward\": \"") + toString(defeatReward)) + "\"}")), StringEntry(("status_" + cardNameCurrentPlayer), "Used"), DeleteEntry("history_3N15bPRtX127MXJ3TAuerRbdgmNJPrGrbj6_3N62yyXbLXB6ptVkBX2k8V2chVbTy7Rsugd_BJNDhAcdcdJnx8YX1YUdA1kuPFd9Ja8NSNCKuDM72qnR_9"), DeleteEntry("history_3N62yyXbLXB6ptVkBX2k8V2chVbTy7Rsugd_3N15bPRtX127MXJ3TAuerRbdgmNJPrGrbj6_8ot6FpU7m3EdEz5DowJt1DNfn8N1HsZzhHoTcchziNLq_8"), IntegerEntry("historicId", newHistoricId)]
275- }
257+ then StringEntry(((("status_" + class) + "_100_") + currentKeyBytes), "")
258+ else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
259+ then StringEntry(((("status_" + class) + "_200_") + currentKeyBytes), "")
260+ else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
261+ then StringEntry(((("status_" + class) + "_300_") + currentKeyBytes), "")
262+ else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
263+ then StringEntry(((("status_" + class) + "_400_") + currentKeyBytes), "")
264+ else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
265+ then StringEntry(((("status_" + class) + "_500_") + currentKeyBytes), "")
266+ else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
267+ then StringEntry(((("status_" + class) + "_600_") + currentKeyBytes), "")
268+ else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
269+ then StringEntry(((("status_" + class) + "_700_") + currentKeyBytes), "")
270+ else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
271+ then StringEntry(((("status_" + class) + "_800_") + currentKeyBytes), "")
272+ else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
273+ then StringEntry(((("status_" + class) + "_900_") + currentKeyBytes), "")
274+ else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((resultVerifyStatusCards == 9))
275+ then StringEntry(((("status_" + class) + "_1000_") + currentKeyBytes), "")
276+ else StringEntry("ElseObrigatorio", "Todos os elses gravados"), IntegerEntry(("balance_waves_" + winner), rewardValue), StringEntry(((((((("history_" + currentKeyBytes) + "_") + playerInTheArena) + "_") + transactionId) + "_") + toString(newHistoricId)), (((((((((((((((((((((((((((("{\"historicId\": \"" + toString(newHistoricId)) + "\", \"transactionId\": \"") + transactionId) + "\", \"playerAttack\": \"") + currentKeyBytes) + "\", \"playerInTheArena\": \"") + playerInTheArena) + "\", \"usedCard\": \"") + cardName) + "\", \"cardInTheArena\": \"") + cardInTheArena) + "\", \"arenaCardScore\": \"") + toString(arenaCardScore)) + "\", \"winner\": \"") + winner) + "\", \"winningCard\": \"") + winningCard) + "\", \"defeated\": \"") + defeated) + "\", \"defeatedCard\": \"") + defeatedCard) + "\", \"pointsRemainingOnWinningCard\": \"") + toString(pointsRemainingOnWinningCard)) + "\", \"winReward\": \"") + toString(winReward)) + "\", \"defeatReward\": \"") + toString(defeatReward)) + "\"}")), StringEntry(("status_" + cardNameCurrentPlayer), "Used"), IntegerEntry("historicId", newHistoricId)]
277+ }
276278 }
277279
278280

github/deemru/w8io/169f3d6 
91.70 ms