tx · E2BvC9T6r69WRoA4nudpRC4u6oWjyymSSui7Khs3MBbd 3NBXer7qR9yJh6bkDDMK1fWcMYyVgAMhGFX: -0.01000000 Waves 2021.08.10 18:56 [1652457] smart account 3NBXer7qR9yJh6bkDDMK1fWcMYyVgAMhGFX > SELF 0.00000000 Waves
{ "type": 13, "id": "E2BvC9T6r69WRoA4nudpRC4u6oWjyymSSui7Khs3MBbd", "fee": 1000000, "feeAssetId": null, "timestamp": 1628610966908, "version": 2, "chainId": 84, "sender": "3NBXer7qR9yJh6bkDDMK1fWcMYyVgAMhGFX", "senderPublicKey": "FzLqgx3z1ige5YuhjR5esJe6Ug78Eq1Nwezof8APt4h4", "proofs": [ "4ccgsd63nUQNHn2TTg37Y7147BXsQVpe741itAJock5bUKSGUEFCC6SNGuCJ9EPLmX9ekMeQ9KJdoQhqhkYt6ERt" ], "script": "base64:AAIFAAAAAAAABSsIAhIECgIICBoJCgJhMRIDaW52GgoKAmEyEgRjYXJkGgsKAmEzEgVjbGFzcxoTCgJhNBINdHJhbnNhY3Rpb25JZBoQCgJhNRIKY3VycmVudEtleRoPCgJhNhIJcGF5QW1vdW50GhUKAmE3Eg9jdXJyZW50S2V5Qnl0ZXMaDgoCYTgSCGNhcmROYW1lGhsKAmE5EhVjYXJkTmFtZUN1cnJlbnRQbGF5ZXIaEQoCYjESC2NhcmRzT3JhY2xlGg8KAmIyEgljYXJkc0dhbWUaDwoCYjMSCWNsYXNzR2FtZRoQCgJiNBIKYXNzZXRzR2FtZRoQCgJiNRIKaGlzdG9yaWNJZBoNCgJiNhIHJG1hdGNoMBoHCgJiNxIBdBoXCgJiOBIRY3VycmVudENhcmRTdGF0dXMaFgoCYjkSEGN1cnJlbnRDYXJkU2NvcmUaHQoCYzESF2N1cnJlbnRLZXlQbGF5ZXJCYWxhbmNlGhoKAmMyEhRjdXJyZW50UGxheWVyQmFsYW5jZRoWCgJjMxIQcGxheWVySW5UaGVBcmVuYRobCgJjNBIVYXJlbmFLZXlQbGF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AAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAICAAAAEHsiaGlzdG9yaWNJZCI6ICIJAAGkAAAAAQUAAAACaDICAAAAFSIsICJ0cmFuc2FjdGlvbklkIjogIgUAAAACYTQCAAAAFCIsICJwbGF5ZXJBdHRhY2siOiAiBQAAAAJhNwIAAAAYIiwgInBsYXllckluVGhlQXJlbmEiOiAiBQAAAAJjMwIAAAAQIiwgInVzZWRDYXJkIjogIgUAAAACYTgCAAAAFiIsICJjYXJkSW5UaGVBcmVuYSI6ICIFAAAAAmM2AgAAABYiLCAiYXJlbmFDYXJkU2NvcmUiOiAiCQABpAAAAAEFAAAAAmM3AgAAAA4iLCAid2lubmVyIjogIgUAAAACZzMCAAAAEyIsICJ3aW5uaW5nQ2FyZCI6ICIFAAAAAmc1AgAAABAiLCAiZGVmZWF0ZWQiOiAiBQAAAAJnNAIAAAAUIiwgImRlZmVhdGVkQ2FyZCI6ICIFAAAAAmc2AgAAACQiLCAicG9pbnRzUmVtYWluaW5nT25XaW5uaW5nQ2FyZCI6ICIJAAGkAAAAAQUAAAACZzcCAAAAESIsICJ3aW5SZXdhcmQiOiAiCQABpAAAAAEFAAAAAmc4AgAAABQiLCAiZGVmZWF0UmV3YXJkIjogIgkAAaQAAAABBQAAAAJoMQIAAAACIn0JAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAASwAAAACAgAAAAdzdGF0dXNfBQAAAAJhOQIAAAAEVXNlZAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAAKaGlzdG9yaWNJZAUAAAACaDIFAAAAA25pbAAAAACuxlPD", "height": 1652457, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HfHpx3PwsPCtXhzFb71z3rM18LqqmXHWaNLqyCZ9PidY Next: AyAEaYAVAM1uuyom2cZ7n3s19t5BkrFHeZSseqsLN8BA Diff:
Old | New | Differences | |
---|---|---|---|
4 | 4 | ||
5 | 5 | ||
6 | 6 | @Callable(a) | |
7 | - | func play (b,c | |
8 | - | let | |
9 | - | let | |
10 | - | let | |
11 | - | let | |
12 | - | let | |
13 | - | let | |
14 | - | let | |
15 | - | let | |
16 | - | let | |
17 | - | let | |
18 | - | let | |
19 | - | let | |
20 | - | if ($isInstanceOf( | |
7 | + | func play (b,c) = { | |
8 | + | let d = toBase58String(a.transactionId) | |
9 | + | let e = a.caller | |
10 | + | let f = value(a.payments[0].amount) | |
11 | + | let g = toBase58String(a.caller.bytes) | |
12 | + | let h = ((c + "_") + b) | |
13 | + | let i = ((((c + "_") + b) + "_") + g) | |
14 | + | let j = base58'CRsDX3VXierYph4hHHpVTUz7DAMPioK633YNjrdCHPef' | |
15 | + | let k = ["Card_100", "Card_200", "Card_300", "Card_400", "Card_500", "Card_600", "Card_700", "Card_800", "Card_900", "Card_1000"] | |
16 | + | let l = ["Card"] | |
17 | + | let m = ["CRsDX3VXierYph4hHHpVTUz7DAMPioK633YNjrdCHPef"] | |
18 | + | let n = { | |
19 | + | let o = getInteger(this, "historicId") | |
20 | + | if ($isInstanceOf(o, "Int")) | |
21 | 21 | then { | |
22 | - | let | |
23 | - | | |
22 | + | let p = o | |
23 | + | p | |
24 | 24 | } | |
25 | 25 | else 0 | |
26 | 26 | } | |
27 | - | let | |
28 | - | let | |
29 | - | if ($isInstanceOf( | |
27 | + | let q = { | |
28 | + | let o = getString(this, ("status_" + i)) | |
29 | + | if ($isInstanceOf(o, "String")) | |
30 | 30 | then { | |
31 | - | let | |
32 | - | | |
31 | + | let p = o | |
32 | + | p | |
33 | 33 | } | |
34 | 34 | else "" | |
35 | 35 | } | |
36 | - | let | |
37 | - | let | |
38 | - | if ($isInstanceOf( | |
36 | + | let r = { | |
37 | + | let o = getInteger(this, h) | |
38 | + | if ($isInstanceOf(o, "Int")) | |
39 | 39 | then { | |
40 | - | let | |
41 | - | | |
40 | + | let p = o | |
41 | + | p | |
42 | 42 | } | |
43 | 43 | else 0 | |
44 | 44 | } | |
45 | - | let | |
46 | - | let | |
47 | - | let | |
48 | - | if ($isInstanceOf( | |
45 | + | let s = ("balance_reward_" + g) | |
46 | + | let t = { | |
47 | + | let o = getInteger(this, s) | |
48 | + | if ($isInstanceOf(o, "Int")) | |
49 | 49 | then { | |
50 | - | let | |
51 | - | | |
50 | + | let p = o | |
51 | + | p | |
52 | 52 | } | |
53 | 53 | else 0 | |
54 | 54 | } | |
55 | - | let | |
56 | - | let | |
57 | - | if ($isInstanceOf( | |
55 | + | let u = { | |
56 | + | let o = getString(this, "playerInTheArena") | |
57 | + | if ($isInstanceOf(o, "String")) | |
58 | 58 | then { | |
59 | - | let | |
60 | - | | |
59 | + | let p = o | |
60 | + | p | |
61 | 61 | } | |
62 | 62 | else "" | |
63 | 63 | } | |
64 | - | let | |
65 | - | let | |
66 | - | let | |
67 | - | if ($isInstanceOf( | |
64 | + | let v = ("balance_reward_" + u) | |
65 | + | let w = { | |
66 | + | let o = getInteger(this, v) | |
67 | + | if ($isInstanceOf(o, "Int")) | |
68 | 68 | then { | |
69 | - | let | |
70 | - | | |
69 | + | let p = o | |
70 | + | p | |
71 | 71 | } | |
72 | 72 | else 0 | |
73 | 73 | } | |
74 | - | let | |
75 | - | let | |
76 | - | if ($isInstanceOf( | |
74 | + | let x = { | |
75 | + | let o = getString(this, "cardInTheArena") | |
76 | + | if ($isInstanceOf(o, "String")) | |
77 | 77 | then { | |
78 | - | let | |
79 | - | | |
78 | + | let p = o | |
79 | + | p | |
80 | 80 | } | |
81 | 81 | else "" | |
82 | 82 | } | |
83 | - | let | |
84 | - | let | |
85 | - | if ($isInstanceOf( | |
83 | + | let y = { | |
84 | + | let o = getInteger(this, "arenaCardScore") | |
85 | + | if ($isInstanceOf(o, "Int")) | |
86 | 86 | then { | |
87 | - | let | |
88 | - | | |
87 | + | let p = o | |
88 | + | p | |
89 | 89 | } | |
90 | 90 | else 0 | |
91 | 91 | } | |
92 | + | let z = if (({ | |
93 | + | let o = getString(this, ((("status_" + c) + "_100_") + g)) | |
94 | + | if ($isInstanceOf(o, "String")) | |
95 | + | then { | |
96 | + | let p = o | |
97 | + | p | |
98 | + | } | |
99 | + | else "" | |
100 | + | } == "Used")) | |
101 | + | then 1 | |
102 | + | else 0 | |
92 | 103 | let A = if (({ | |
93 | - | let | |
94 | - | if ($isInstanceOf( | |
104 | + | let o = getString(this, ((("status_" + c) + "_200_") + g)) | |
105 | + | if ($isInstanceOf(o, "String")) | |
95 | 106 | then { | |
96 | - | let | |
97 | - | | |
107 | + | let p = o | |
108 | + | p | |
98 | 109 | } | |
99 | 110 | else "" | |
100 | 111 | } == "Used")) | |
101 | 112 | then 1 | |
102 | 113 | else 0 | |
103 | 114 | let B = if (({ | |
104 | - | let | |
105 | - | if ($isInstanceOf( | |
115 | + | let o = getString(this, ((("status_" + c) + "_300_") + g)) | |
116 | + | if ($isInstanceOf(o, "String")) | |
106 | 117 | then { | |
107 | - | let | |
108 | - | | |
118 | + | let p = o | |
119 | + | p | |
109 | 120 | } | |
110 | 121 | else "" | |
111 | 122 | } == "Used")) | |
112 | 123 | then 1 | |
113 | 124 | else 0 | |
114 | 125 | let C = if (({ | |
115 | - | let | |
116 | - | if ($isInstanceOf( | |
126 | + | let o = getString(this, ((("status_" + c) + "_400_") + g)) | |
127 | + | if ($isInstanceOf(o, "String")) | |
117 | 128 | then { | |
118 | - | let | |
119 | - | | |
129 | + | let p = o | |
130 | + | p | |
120 | 131 | } | |
121 | 132 | else "" | |
122 | 133 | } == "Used")) | |
123 | 134 | then 1 | |
124 | 135 | else 0 | |
125 | 136 | let D = if (({ | |
126 | - | let | |
127 | - | if ($isInstanceOf( | |
137 | + | let o = getString(this, ((("status_" + c) + "_500_") + g)) | |
138 | + | if ($isInstanceOf(o, "String")) | |
128 | 139 | then { | |
129 | - | let | |
130 | - | | |
140 | + | let p = o | |
141 | + | p | |
131 | 142 | } | |
132 | 143 | else "" | |
133 | 144 | } == "Used")) | |
134 | 145 | then 1 | |
135 | 146 | else 0 | |
136 | 147 | let E = if (({ | |
137 | - | let | |
138 | - | if ($isInstanceOf( | |
148 | + | let o = getString(this, ((("status_" + c) + "_600_") + g)) | |
149 | + | if ($isInstanceOf(o, "String")) | |
139 | 150 | then { | |
140 | - | let | |
141 | - | | |
151 | + | let p = o | |
152 | + | p | |
142 | 153 | } | |
143 | 154 | else "" | |
144 | 155 | } == "Used")) | |
145 | 156 | then 1 | |
146 | 157 | else 0 | |
147 | 158 | let F = if (({ | |
148 | - | let | |
149 | - | if ($isInstanceOf( | |
159 | + | let o = getString(this, ((("status_" + c) + "_700_") + g)) | |
160 | + | if ($isInstanceOf(o, "String")) | |
150 | 161 | then { | |
151 | - | let | |
152 | - | | |
162 | + | let p = o | |
163 | + | p | |
153 | 164 | } | |
154 | 165 | else "" | |
155 | 166 | } == "Used")) | |
156 | 167 | then 1 | |
157 | 168 | else 0 | |
158 | 169 | let G = if (({ | |
159 | - | let | |
160 | - | if ($isInstanceOf( | |
170 | + | let o = getString(this, ((("status_" + c) + "_800_") + g)) | |
171 | + | if ($isInstanceOf(o, "String")) | |
161 | 172 | then { | |
162 | - | let | |
163 | - | | |
173 | + | let p = o | |
174 | + | p | |
164 | 175 | } | |
165 | 176 | else "" | |
166 | 177 | } == "Used")) | |
167 | 178 | then 1 | |
168 | 179 | else 0 | |
169 | 180 | let H = if (({ | |
170 | - | let | |
171 | - | if ($isInstanceOf( | |
181 | + | let o = getString(this, ((("status_" + c) + "_900_") + g)) | |
182 | + | if ($isInstanceOf(o, "String")) | |
172 | 183 | then { | |
173 | - | let | |
174 | - | | |
184 | + | let p = o | |
185 | + | p | |
175 | 186 | } | |
176 | 187 | else "" | |
177 | 188 | } == "Used")) | |
178 | 189 | then 1 | |
179 | 190 | else 0 | |
180 | 191 | let I = if (({ | |
181 | - | let | |
182 | - | if ($isInstanceOf( | |
192 | + | let o = getString(this, ((("status_" + c) + "_1000_") + g)) | |
193 | + | if ($isInstanceOf(o, "String")) | |
183 | 194 | then { | |
184 | - | let | |
185 | - | | |
195 | + | let p = o | |
196 | + | p | |
186 | 197 | } | |
187 | 198 | else "" | |
188 | 199 | } == "Used")) | |
189 | 200 | then 1 | |
190 | 201 | else 0 | |
191 | - | let J = | |
192 | - | let | |
193 | - | if ($isInstanceOf( | |
202 | + | let J = { | |
203 | + | let o = getInteger(this, ("purchased tokens_" + g)) | |
204 | + | if ($isInstanceOf(o, "Int")) | |
194 | 205 | then { | |
195 | - | let q = p | |
196 | - | q | |
197 | - | } | |
198 | - | else "" | |
199 | - | } == "Used")) | |
200 | - | then 1 | |
201 | - | else 0 | |
202 | - | let K = { | |
203 | - | let p = getInteger(this, ("purchased tokens_" + h)) | |
204 | - | if ($isInstanceOf(p, "Int")) | |
205 | - | then { | |
206 | - | let q = p | |
207 | - | q | |
206 | + | let p = o | |
207 | + | p | |
208 | 208 | } | |
209 | 209 | else 0 | |
210 | 210 | } | |
211 | - | let | |
212 | - | let | |
213 | - | func | |
211 | + | let K = parseBigIntValue(b) | |
212 | + | let L = [z, A, B, C, D, E, F, G, H, I] | |
213 | + | func M (N,O) = (N + O) | |
214 | 214 | ||
215 | - | let | |
216 | - | let | |
217 | - | let | |
218 | - | let | |
219 | - | if (( | |
220 | - | then | |
215 | + | let P = { | |
216 | + | let Q = L | |
217 | + | let R = size(Q) | |
218 | + | let S = 0 | |
219 | + | if ((R == 0)) | |
220 | + | then S | |
221 | 221 | else { | |
222 | - | let | |
223 | - | if (( | |
224 | - | then | |
222 | + | let T = M(S, Q[0]) | |
223 | + | if ((R == 1)) | |
224 | + | then T | |
225 | 225 | else { | |
226 | - | let | |
227 | - | if (( | |
228 | - | then | |
226 | + | let U = M(T, Q[1]) | |
227 | + | if ((R == 2)) | |
228 | + | then U | |
229 | 229 | else { | |
230 | - | let | |
231 | - | if (( | |
232 | - | then | |
230 | + | let V = M(U, Q[2]) | |
231 | + | if ((R == 3)) | |
232 | + | then V | |
233 | 233 | else { | |
234 | - | let | |
235 | - | if (( | |
236 | - | then | |
234 | + | let W = M(V, Q[3]) | |
235 | + | if ((R == 4)) | |
236 | + | then W | |
237 | 237 | else { | |
238 | - | let | |
239 | - | if (( | |
240 | - | then | |
238 | + | let X = M(W, Q[4]) | |
239 | + | if ((R == 5)) | |
240 | + | then X | |
241 | 241 | else { | |
242 | - | let | |
243 | - | if (( | |
244 | - | then | |
242 | + | let Y = M(X, Q[5]) | |
243 | + | if ((R == 6)) | |
244 | + | then Y | |
245 | 245 | else { | |
246 | - | let | |
247 | - | if (( | |
248 | - | then | |
246 | + | let Z = M(Y, Q[6]) | |
247 | + | if ((R == 7)) | |
248 | + | then Z | |
249 | 249 | else { | |
250 | - | let | |
251 | - | if (( | |
252 | - | then | |
250 | + | let aa = M(Z, Q[7]) | |
251 | + | if ((R == 8)) | |
252 | + | then aa | |
253 | 253 | else { | |
254 | - | let | |
255 | - | if (( | |
256 | - | then | |
254 | + | let ab = M(aa, Q[8]) | |
255 | + | if ((R == 9)) | |
256 | + | then ab | |
257 | 257 | else { | |
258 | - | let | |
259 | - | if (( | |
260 | - | then | |
258 | + | let ac = M(ab, Q[9]) | |
259 | + | if ((R == 10)) | |
260 | + | then ac | |
261 | 261 | else { | |
262 | - | let | |
262 | + | let ad = M(ac, Q[10]) | |
263 | 263 | throw("List size exceed 10") | |
264 | 264 | } | |
265 | 265 | } | |
274 | 274 | } | |
275 | 275 | } | |
276 | 276 | if ((c == "Buy Tokens Oracle Arena")) | |
277 | - | then throw(toString( | |
277 | + | then throw(toString(K)) | |
278 | 278 | else if (if ((b == "Buy Cards")) | |
279 | - | then ( | |
279 | + | then (f == 100000000) | |
280 | 280 | else false) | |
281 | - | then [ScriptTransfer( | |
282 | - | else if (if (!(containsElement( | |
281 | + | then [ScriptTransfer(e, 10, j)] | |
282 | + | else if (if (!(containsElement(l, c))) | |
283 | 283 | then true | |
284 | - | else !(containsElement( | |
284 | + | else !(containsElement(k, h))) | |
285 | 285 | then throw("The card sent does not exist in the game! Please check your cards!") | |
286 | - | else if (( | |
286 | + | else if ((f != 10000000)) | |
287 | 287 | then throw("Each move has a fixed value of 1 token.") | |
288 | - | else if ((0 >= assetBalance( | |
288 | + | else if ((0 >= assetBalance(e, j))) | |
289 | 289 | then throw("You must have the cards in your wallet! Get it on the marketplace!") | |
290 | - | else if (if (( | |
290 | + | else if (if ((x == "")) | |
291 | 291 | then true | |
292 | - | else ( | |
293 | - | then [StringEntry("playerInTheArena", | |
294 | - | else if (( | |
292 | + | else (u == "")) | |
293 | + | then [StringEntry("playerInTheArena", g), StringEntry("cardInTheArena", h), IntegerEntry("arenaCardScore", r), StringEntry(("status_" + i), "Used")] | |
294 | + | else if ((q == "Used")) | |
295 | 295 | then throw("This card has already been used! Use all the cards in the deck to unlock it again!") | |
296 | 296 | else { | |
297 | - | let af = if ((s > z)) | |
297 | + | let ae = if ((r > y)) | |
298 | + | then g | |
299 | + | else u | |
300 | + | let af = if ((y > r)) | |
301 | + | then g | |
302 | + | else if ((r > y)) | |
303 | + | then u | |
304 | + | else g | |
305 | + | let ag = if ((r > y)) | |
298 | 306 | then h | |
299 | - | else | |
300 | - | let | |
307 | + | else x | |
308 | + | let ah = if ((y > r)) | |
301 | 309 | then h | |
302 | - | else if ((s > z)) | |
303 | - | then v | |
304 | - | else h | |
305 | - | let ah = if ((s > z)) | |
306 | - | then i | |
307 | - | else y | |
308 | - | let ai = if ((z > s)) | |
309 | - | then i | |
310 | - | else if ((s > z)) | |
311 | - | then y | |
312 | - | else h | |
313 | - | let aj = if ((s > z)) | |
314 | - | then (s - z) | |
315 | - | else (z - s) | |
316 | - | let ak = if ((s > z)) | |
317 | - | then g | |
318 | - | else (g / 2) | |
319 | - | let al = if ((af == h)) | |
320 | - | then (ak + u) | |
321 | - | else if ((af == v)) | |
322 | - | then (ak + x) | |
310 | + | else if ((r > y)) | |
311 | + | then x | |
312 | + | else g | |
313 | + | let ai = if ((r > y)) | |
314 | + | then (r - y) | |
315 | + | else (y - r) | |
316 | + | let aj = if ((r > y)) | |
317 | + | then f | |
318 | + | else (f / 2) | |
319 | + | let ak = if ((ae == g)) | |
320 | + | then (aj + t) | |
321 | + | else if ((ae == u)) | |
322 | + | then (aj + w) | |
323 | 323 | else throw("Código 010105. Contate o suporte!") | |
324 | - | let | |
325 | - | let | |
326 | - | [StringEntry("playerInTheArena", | |
327 | - | then StringEntry(((("status_" + c) + "_100_") + | |
328 | - | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if (( | |
329 | - | then StringEntry(((("status_" + c) + "_200_") + | |
330 | - | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if (( | |
331 | - | then StringEntry(((("status_" + c) + "_300_") + | |
332 | - | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if (( | |
333 | - | then StringEntry(((("status_" + c) + "_400_") + | |
334 | - | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if (( | |
335 | - | then StringEntry(((("status_" + c) + "_500_") + | |
336 | - | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if (( | |
337 | - | then StringEntry(((("status_" + c) + "_600_") + | |
338 | - | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if (( | |
339 | - | then StringEntry(((("status_" + c) + "_700_") + | |
340 | - | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if (( | |
341 | - | then StringEntry(((("status_" + c) + "_800_") + | |
342 | - | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if (( | |
343 | - | then StringEntry(((("status_" + c) + "_900_") + | |
344 | - | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if (( | |
345 | - | then StringEntry(((("status_" + c) + "_1000_") + | |
346 | - | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), IntegerEntry(("balance_reward_" + | |
324 | + | let al = 0 | |
325 | + | let am = (n + 1) | |
326 | + | [StringEntry("playerInTheArena", ae), StringEntry("cardInTheArena", ag), IntegerEntry("arenaCardScore", ai), if ((P == 9)) | |
327 | + | then StringEntry(((("status_" + c) + "_100_") + g), "") | |
328 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((P == 9)) | |
329 | + | then StringEntry(((("status_" + c) + "_200_") + g), "") | |
330 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((P == 9)) | |
331 | + | then StringEntry(((("status_" + c) + "_300_") + g), "") | |
332 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((P == 9)) | |
333 | + | then StringEntry(((("status_" + c) + "_400_") + g), "") | |
334 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((P == 9)) | |
335 | + | then StringEntry(((("status_" + c) + "_500_") + g), "") | |
336 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((P == 9)) | |
337 | + | then StringEntry(((("status_" + c) + "_600_") + g), "") | |
338 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((P == 9)) | |
339 | + | then StringEntry(((("status_" + c) + "_700_") + g), "") | |
340 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((P == 9)) | |
341 | + | then StringEntry(((("status_" + c) + "_800_") + g), "") | |
342 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((P == 9)) | |
343 | + | then StringEntry(((("status_" + c) + "_900_") + g), "") | |
344 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((P == 9)) | |
345 | + | then StringEntry(((("status_" + c) + "_1000_") + g), "") | |
346 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), IntegerEntry(("balance_reward_" + ae), ak), StringEntry(((((((("history_" + g) + "_") + u) + "_") + d) + "_") + toString(am)), (((((((((((((((((((((((((((("{\"historicId\": \"" + toString(am)) + "\", \"transactionId\": \"") + d) + "\", \"playerAttack\": \"") + g) + "\", \"playerInTheArena\": \"") + u) + "\", \"usedCard\": \"") + h) + "\", \"cardInTheArena\": \"") + x) + "\", \"arenaCardScore\": \"") + toString(y)) + "\", \"winner\": \"") + ae) + "\", \"winningCard\": \"") + ag) + "\", \"defeated\": \"") + af) + "\", \"defeatedCard\": \"") + ah) + "\", \"pointsRemainingOnWinningCard\": \"") + toString(ai)) + "\", \"winReward\": \"") + toString(aj)) + "\", \"defeatReward\": \"") + toString(al)) + "\"}")), StringEntry(("status_" + i), "Used"), IntegerEntry("historicId", am)] | |
347 | 347 | } | |
348 | 348 | } | |
349 | 349 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | ||
5 | 5 | ||
6 | 6 | @Callable(a) | |
7 | - | func play (b,c | |
8 | - | let | |
9 | - | let | |
10 | - | let | |
11 | - | let | |
12 | - | let | |
13 | - | let | |
14 | - | let | |
15 | - | let | |
16 | - | let | |
17 | - | let | |
18 | - | let | |
19 | - | let | |
20 | - | if ($isInstanceOf( | |
7 | + | func play (b,c) = { | |
8 | + | let d = toBase58String(a.transactionId) | |
9 | + | let e = a.caller | |
10 | + | let f = value(a.payments[0].amount) | |
11 | + | let g = toBase58String(a.caller.bytes) | |
12 | + | let h = ((c + "_") + b) | |
13 | + | let i = ((((c + "_") + b) + "_") + g) | |
14 | + | let j = base58'CRsDX3VXierYph4hHHpVTUz7DAMPioK633YNjrdCHPef' | |
15 | + | let k = ["Card_100", "Card_200", "Card_300", "Card_400", "Card_500", "Card_600", "Card_700", "Card_800", "Card_900", "Card_1000"] | |
16 | + | let l = ["Card"] | |
17 | + | let m = ["CRsDX3VXierYph4hHHpVTUz7DAMPioK633YNjrdCHPef"] | |
18 | + | let n = { | |
19 | + | let o = getInteger(this, "historicId") | |
20 | + | if ($isInstanceOf(o, "Int")) | |
21 | 21 | then { | |
22 | - | let | |
23 | - | | |
22 | + | let p = o | |
23 | + | p | |
24 | 24 | } | |
25 | 25 | else 0 | |
26 | 26 | } | |
27 | - | let | |
28 | - | let | |
29 | - | if ($isInstanceOf( | |
27 | + | let q = { | |
28 | + | let o = getString(this, ("status_" + i)) | |
29 | + | if ($isInstanceOf(o, "String")) | |
30 | 30 | then { | |
31 | - | let | |
32 | - | | |
31 | + | let p = o | |
32 | + | p | |
33 | 33 | } | |
34 | 34 | else "" | |
35 | 35 | } | |
36 | - | let | |
37 | - | let | |
38 | - | if ($isInstanceOf( | |
36 | + | let r = { | |
37 | + | let o = getInteger(this, h) | |
38 | + | if ($isInstanceOf(o, "Int")) | |
39 | 39 | then { | |
40 | - | let | |
41 | - | | |
40 | + | let p = o | |
41 | + | p | |
42 | 42 | } | |
43 | 43 | else 0 | |
44 | 44 | } | |
45 | - | let | |
46 | - | let | |
47 | - | let | |
48 | - | if ($isInstanceOf( | |
45 | + | let s = ("balance_reward_" + g) | |
46 | + | let t = { | |
47 | + | let o = getInteger(this, s) | |
48 | + | if ($isInstanceOf(o, "Int")) | |
49 | 49 | then { | |
50 | - | let | |
51 | - | | |
50 | + | let p = o | |
51 | + | p | |
52 | 52 | } | |
53 | 53 | else 0 | |
54 | 54 | } | |
55 | - | let | |
56 | - | let | |
57 | - | if ($isInstanceOf( | |
55 | + | let u = { | |
56 | + | let o = getString(this, "playerInTheArena") | |
57 | + | if ($isInstanceOf(o, "String")) | |
58 | 58 | then { | |
59 | - | let | |
60 | - | | |
59 | + | let p = o | |
60 | + | p | |
61 | 61 | } | |
62 | 62 | else "" | |
63 | 63 | } | |
64 | - | let | |
65 | - | let | |
66 | - | let | |
67 | - | if ($isInstanceOf( | |
64 | + | let v = ("balance_reward_" + u) | |
65 | + | let w = { | |
66 | + | let o = getInteger(this, v) | |
67 | + | if ($isInstanceOf(o, "Int")) | |
68 | 68 | then { | |
69 | - | let | |
70 | - | | |
69 | + | let p = o | |
70 | + | p | |
71 | 71 | } | |
72 | 72 | else 0 | |
73 | 73 | } | |
74 | - | let | |
75 | - | let | |
76 | - | if ($isInstanceOf( | |
74 | + | let x = { | |
75 | + | let o = getString(this, "cardInTheArena") | |
76 | + | if ($isInstanceOf(o, "String")) | |
77 | 77 | then { | |
78 | - | let | |
79 | - | | |
78 | + | let p = o | |
79 | + | p | |
80 | 80 | } | |
81 | 81 | else "" | |
82 | 82 | } | |
83 | - | let | |
84 | - | let | |
85 | - | if ($isInstanceOf( | |
83 | + | let y = { | |
84 | + | let o = getInteger(this, "arenaCardScore") | |
85 | + | if ($isInstanceOf(o, "Int")) | |
86 | 86 | then { | |
87 | - | let | |
88 | - | | |
87 | + | let p = o | |
88 | + | p | |
89 | 89 | } | |
90 | 90 | else 0 | |
91 | 91 | } | |
92 | + | let z = if (({ | |
93 | + | let o = getString(this, ((("status_" + c) + "_100_") + g)) | |
94 | + | if ($isInstanceOf(o, "String")) | |
95 | + | then { | |
96 | + | let p = o | |
97 | + | p | |
98 | + | } | |
99 | + | else "" | |
100 | + | } == "Used")) | |
101 | + | then 1 | |
102 | + | else 0 | |
92 | 103 | let A = if (({ | |
93 | - | let | |
94 | - | if ($isInstanceOf( | |
104 | + | let o = getString(this, ((("status_" + c) + "_200_") + g)) | |
105 | + | if ($isInstanceOf(o, "String")) | |
95 | 106 | then { | |
96 | - | let | |
97 | - | | |
107 | + | let p = o | |
108 | + | p | |
98 | 109 | } | |
99 | 110 | else "" | |
100 | 111 | } == "Used")) | |
101 | 112 | then 1 | |
102 | 113 | else 0 | |
103 | 114 | let B = if (({ | |
104 | - | let | |
105 | - | if ($isInstanceOf( | |
115 | + | let o = getString(this, ((("status_" + c) + "_300_") + g)) | |
116 | + | if ($isInstanceOf(o, "String")) | |
106 | 117 | then { | |
107 | - | let | |
108 | - | | |
118 | + | let p = o | |
119 | + | p | |
109 | 120 | } | |
110 | 121 | else "" | |
111 | 122 | } == "Used")) | |
112 | 123 | then 1 | |
113 | 124 | else 0 | |
114 | 125 | let C = if (({ | |
115 | - | let | |
116 | - | if ($isInstanceOf( | |
126 | + | let o = getString(this, ((("status_" + c) + "_400_") + g)) | |
127 | + | if ($isInstanceOf(o, "String")) | |
117 | 128 | then { | |
118 | - | let | |
119 | - | | |
129 | + | let p = o | |
130 | + | p | |
120 | 131 | } | |
121 | 132 | else "" | |
122 | 133 | } == "Used")) | |
123 | 134 | then 1 | |
124 | 135 | else 0 | |
125 | 136 | let D = if (({ | |
126 | - | let | |
127 | - | if ($isInstanceOf( | |
137 | + | let o = getString(this, ((("status_" + c) + "_500_") + g)) | |
138 | + | if ($isInstanceOf(o, "String")) | |
128 | 139 | then { | |
129 | - | let | |
130 | - | | |
140 | + | let p = o | |
141 | + | p | |
131 | 142 | } | |
132 | 143 | else "" | |
133 | 144 | } == "Used")) | |
134 | 145 | then 1 | |
135 | 146 | else 0 | |
136 | 147 | let E = if (({ | |
137 | - | let | |
138 | - | if ($isInstanceOf( | |
148 | + | let o = getString(this, ((("status_" + c) + "_600_") + g)) | |
149 | + | if ($isInstanceOf(o, "String")) | |
139 | 150 | then { | |
140 | - | let | |
141 | - | | |
151 | + | let p = o | |
152 | + | p | |
142 | 153 | } | |
143 | 154 | else "" | |
144 | 155 | } == "Used")) | |
145 | 156 | then 1 | |
146 | 157 | else 0 | |
147 | 158 | let F = if (({ | |
148 | - | let | |
149 | - | if ($isInstanceOf( | |
159 | + | let o = getString(this, ((("status_" + c) + "_700_") + g)) | |
160 | + | if ($isInstanceOf(o, "String")) | |
150 | 161 | then { | |
151 | - | let | |
152 | - | | |
162 | + | let p = o | |
163 | + | p | |
153 | 164 | } | |
154 | 165 | else "" | |
155 | 166 | } == "Used")) | |
156 | 167 | then 1 | |
157 | 168 | else 0 | |
158 | 169 | let G = if (({ | |
159 | - | let | |
160 | - | if ($isInstanceOf( | |
170 | + | let o = getString(this, ((("status_" + c) + "_800_") + g)) | |
171 | + | if ($isInstanceOf(o, "String")) | |
161 | 172 | then { | |
162 | - | let | |
163 | - | | |
173 | + | let p = o | |
174 | + | p | |
164 | 175 | } | |
165 | 176 | else "" | |
166 | 177 | } == "Used")) | |
167 | 178 | then 1 | |
168 | 179 | else 0 | |
169 | 180 | let H = if (({ | |
170 | - | let | |
171 | - | if ($isInstanceOf( | |
181 | + | let o = getString(this, ((("status_" + c) + "_900_") + g)) | |
182 | + | if ($isInstanceOf(o, "String")) | |
172 | 183 | then { | |
173 | - | let | |
174 | - | | |
184 | + | let p = o | |
185 | + | p | |
175 | 186 | } | |
176 | 187 | else "" | |
177 | 188 | } == "Used")) | |
178 | 189 | then 1 | |
179 | 190 | else 0 | |
180 | 191 | let I = if (({ | |
181 | - | let | |
182 | - | if ($isInstanceOf( | |
192 | + | let o = getString(this, ((("status_" + c) + "_1000_") + g)) | |
193 | + | if ($isInstanceOf(o, "String")) | |
183 | 194 | then { | |
184 | - | let | |
185 | - | | |
195 | + | let p = o | |
196 | + | p | |
186 | 197 | } | |
187 | 198 | else "" | |
188 | 199 | } == "Used")) | |
189 | 200 | then 1 | |
190 | 201 | else 0 | |
191 | - | let J = | |
192 | - | let | |
193 | - | if ($isInstanceOf( | |
202 | + | let J = { | |
203 | + | let o = getInteger(this, ("purchased tokens_" + g)) | |
204 | + | if ($isInstanceOf(o, "Int")) | |
194 | 205 | then { | |
195 | - | let q = p | |
196 | - | q | |
197 | - | } | |
198 | - | else "" | |
199 | - | } == "Used")) | |
200 | - | then 1 | |
201 | - | else 0 | |
202 | - | let K = { | |
203 | - | let p = getInteger(this, ("purchased tokens_" + h)) | |
204 | - | if ($isInstanceOf(p, "Int")) | |
205 | - | then { | |
206 | - | let q = p | |
207 | - | q | |
206 | + | let p = o | |
207 | + | p | |
208 | 208 | } | |
209 | 209 | else 0 | |
210 | 210 | } | |
211 | - | let | |
212 | - | let | |
213 | - | func | |
211 | + | let K = parseBigIntValue(b) | |
212 | + | let L = [z, A, B, C, D, E, F, G, H, I] | |
213 | + | func M (N,O) = (N + O) | |
214 | 214 | ||
215 | - | let | |
216 | - | let | |
217 | - | let | |
218 | - | let | |
219 | - | if (( | |
220 | - | then | |
215 | + | let P = { | |
216 | + | let Q = L | |
217 | + | let R = size(Q) | |
218 | + | let S = 0 | |
219 | + | if ((R == 0)) | |
220 | + | then S | |
221 | 221 | else { | |
222 | - | let | |
223 | - | if (( | |
224 | - | then | |
222 | + | let T = M(S, Q[0]) | |
223 | + | if ((R == 1)) | |
224 | + | then T | |
225 | 225 | else { | |
226 | - | let | |
227 | - | if (( | |
228 | - | then | |
226 | + | let U = M(T, Q[1]) | |
227 | + | if ((R == 2)) | |
228 | + | then U | |
229 | 229 | else { | |
230 | - | let | |
231 | - | if (( | |
232 | - | then | |
230 | + | let V = M(U, Q[2]) | |
231 | + | if ((R == 3)) | |
232 | + | then V | |
233 | 233 | else { | |
234 | - | let | |
235 | - | if (( | |
236 | - | then | |
234 | + | let W = M(V, Q[3]) | |
235 | + | if ((R == 4)) | |
236 | + | then W | |
237 | 237 | else { | |
238 | - | let | |
239 | - | if (( | |
240 | - | then | |
238 | + | let X = M(W, Q[4]) | |
239 | + | if ((R == 5)) | |
240 | + | then X | |
241 | 241 | else { | |
242 | - | let | |
243 | - | if (( | |
244 | - | then | |
242 | + | let Y = M(X, Q[5]) | |
243 | + | if ((R == 6)) | |
244 | + | then Y | |
245 | 245 | else { | |
246 | - | let | |
247 | - | if (( | |
248 | - | then | |
246 | + | let Z = M(Y, Q[6]) | |
247 | + | if ((R == 7)) | |
248 | + | then Z | |
249 | 249 | else { | |
250 | - | let | |
251 | - | if (( | |
252 | - | then | |
250 | + | let aa = M(Z, Q[7]) | |
251 | + | if ((R == 8)) | |
252 | + | then aa | |
253 | 253 | else { | |
254 | - | let | |
255 | - | if (( | |
256 | - | then | |
254 | + | let ab = M(aa, Q[8]) | |
255 | + | if ((R == 9)) | |
256 | + | then ab | |
257 | 257 | else { | |
258 | - | let | |
259 | - | if (( | |
260 | - | then | |
258 | + | let ac = M(ab, Q[9]) | |
259 | + | if ((R == 10)) | |
260 | + | then ac | |
261 | 261 | else { | |
262 | - | let | |
262 | + | let ad = M(ac, Q[10]) | |
263 | 263 | throw("List size exceed 10") | |
264 | 264 | } | |
265 | 265 | } | |
266 | 266 | } | |
267 | 267 | } | |
268 | 268 | } | |
269 | 269 | } | |
270 | 270 | } | |
271 | 271 | } | |
272 | 272 | } | |
273 | 273 | } | |
274 | 274 | } | |
275 | 275 | } | |
276 | 276 | if ((c == "Buy Tokens Oracle Arena")) | |
277 | - | then throw(toString( | |
277 | + | then throw(toString(K)) | |
278 | 278 | else if (if ((b == "Buy Cards")) | |
279 | - | then ( | |
279 | + | then (f == 100000000) | |
280 | 280 | else false) | |
281 | - | then [ScriptTransfer( | |
282 | - | else if (if (!(containsElement( | |
281 | + | then [ScriptTransfer(e, 10, j)] | |
282 | + | else if (if (!(containsElement(l, c))) | |
283 | 283 | then true | |
284 | - | else !(containsElement( | |
284 | + | else !(containsElement(k, h))) | |
285 | 285 | then throw("The card sent does not exist in the game! Please check your cards!") | |
286 | - | else if (( | |
286 | + | else if ((f != 10000000)) | |
287 | 287 | then throw("Each move has a fixed value of 1 token.") | |
288 | - | else if ((0 >= assetBalance( | |
288 | + | else if ((0 >= assetBalance(e, j))) | |
289 | 289 | then throw("You must have the cards in your wallet! Get it on the marketplace!") | |
290 | - | else if (if (( | |
290 | + | else if (if ((x == "")) | |
291 | 291 | then true | |
292 | - | else ( | |
293 | - | then [StringEntry("playerInTheArena", | |
294 | - | else if (( | |
292 | + | else (u == "")) | |
293 | + | then [StringEntry("playerInTheArena", g), StringEntry("cardInTheArena", h), IntegerEntry("arenaCardScore", r), StringEntry(("status_" + i), "Used")] | |
294 | + | else if ((q == "Used")) | |
295 | 295 | then throw("This card has already been used! Use all the cards in the deck to unlock it again!") | |
296 | 296 | else { | |
297 | - | let af = if ((s > z)) | |
297 | + | let ae = if ((r > y)) | |
298 | + | then g | |
299 | + | else u | |
300 | + | let af = if ((y > r)) | |
301 | + | then g | |
302 | + | else if ((r > y)) | |
303 | + | then u | |
304 | + | else g | |
305 | + | let ag = if ((r > y)) | |
298 | 306 | then h | |
299 | - | else | |
300 | - | let | |
307 | + | else x | |
308 | + | let ah = if ((y > r)) | |
301 | 309 | then h | |
302 | - | else if ((s > z)) | |
303 | - | then v | |
304 | - | else h | |
305 | - | let ah = if ((s > z)) | |
306 | - | then i | |
307 | - | else y | |
308 | - | let ai = if ((z > s)) | |
309 | - | then i | |
310 | - | else if ((s > z)) | |
311 | - | then y | |
312 | - | else h | |
313 | - | let aj = if ((s > z)) | |
314 | - | then (s - z) | |
315 | - | else (z - s) | |
316 | - | let ak = if ((s > z)) | |
317 | - | then g | |
318 | - | else (g / 2) | |
319 | - | let al = if ((af == h)) | |
320 | - | then (ak + u) | |
321 | - | else if ((af == v)) | |
322 | - | then (ak + x) | |
310 | + | else if ((r > y)) | |
311 | + | then x | |
312 | + | else g | |
313 | + | let ai = if ((r > y)) | |
314 | + | then (r - y) | |
315 | + | else (y - r) | |
316 | + | let aj = if ((r > y)) | |
317 | + | then f | |
318 | + | else (f / 2) | |
319 | + | let ak = if ((ae == g)) | |
320 | + | then (aj + t) | |
321 | + | else if ((ae == u)) | |
322 | + | then (aj + w) | |
323 | 323 | else throw("Código 010105. Contate o suporte!") | |
324 | - | let | |
325 | - | let | |
326 | - | [StringEntry("playerInTheArena", | |
327 | - | then StringEntry(((("status_" + c) + "_100_") + | |
328 | - | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if (( | |
329 | - | then StringEntry(((("status_" + c) + "_200_") + | |
330 | - | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if (( | |
331 | - | then StringEntry(((("status_" + c) + "_300_") + | |
332 | - | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if (( | |
333 | - | then StringEntry(((("status_" + c) + "_400_") + | |
334 | - | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if (( | |
335 | - | then StringEntry(((("status_" + c) + "_500_") + | |
336 | - | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if (( | |
337 | - | then StringEntry(((("status_" + c) + "_600_") + | |
338 | - | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if (( | |
339 | - | then StringEntry(((("status_" + c) + "_700_") + | |
340 | - | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if (( | |
341 | - | then StringEntry(((("status_" + c) + "_800_") + | |
342 | - | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if (( | |
343 | - | then StringEntry(((("status_" + c) + "_900_") + | |
344 | - | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if (( | |
345 | - | then StringEntry(((("status_" + c) + "_1000_") + | |
346 | - | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), IntegerEntry(("balance_reward_" + | |
324 | + | let al = 0 | |
325 | + | let am = (n + 1) | |
326 | + | [StringEntry("playerInTheArena", ae), StringEntry("cardInTheArena", ag), IntegerEntry("arenaCardScore", ai), if ((P == 9)) | |
327 | + | then StringEntry(((("status_" + c) + "_100_") + g), "") | |
328 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((P == 9)) | |
329 | + | then StringEntry(((("status_" + c) + "_200_") + g), "") | |
330 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((P == 9)) | |
331 | + | then StringEntry(((("status_" + c) + "_300_") + g), "") | |
332 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((P == 9)) | |
333 | + | then StringEntry(((("status_" + c) + "_400_") + g), "") | |
334 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((P == 9)) | |
335 | + | then StringEntry(((("status_" + c) + "_500_") + g), "") | |
336 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((P == 9)) | |
337 | + | then StringEntry(((("status_" + c) + "_600_") + g), "") | |
338 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((P == 9)) | |
339 | + | then StringEntry(((("status_" + c) + "_700_") + g), "") | |
340 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((P == 9)) | |
341 | + | then StringEntry(((("status_" + c) + "_800_") + g), "") | |
342 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((P == 9)) | |
343 | + | then StringEntry(((("status_" + c) + "_900_") + g), "") | |
344 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), if ((P == 9)) | |
345 | + | then StringEntry(((("status_" + c) + "_1000_") + g), "") | |
346 | + | else StringEntry("ElseObrigatorio", "Todos os elses gravados"), IntegerEntry(("balance_reward_" + ae), ak), StringEntry(((((((("history_" + g) + "_") + u) + "_") + d) + "_") + toString(am)), (((((((((((((((((((((((((((("{\"historicId\": \"" + toString(am)) + "\", \"transactionId\": \"") + d) + "\", \"playerAttack\": \"") + g) + "\", \"playerInTheArena\": \"") + u) + "\", \"usedCard\": \"") + h) + "\", \"cardInTheArena\": \"") + x) + "\", \"arenaCardScore\": \"") + toString(y)) + "\", \"winner\": \"") + ae) + "\", \"winningCard\": \"") + ag) + "\", \"defeated\": \"") + af) + "\", \"defeatedCard\": \"") + ah) + "\", \"pointsRemainingOnWinningCard\": \"") + toString(ai)) + "\", \"winReward\": \"") + toString(aj)) + "\", \"defeatReward\": \"") + toString(al)) + "\"}")), StringEntry(("status_" + i), "Used"), IntegerEntry("historicId", am)] | |
347 | 347 | } | |
348 | 348 | } | |
349 | 349 | ||
350 | 350 |
github/deemru/w8io/026f985 176.00 ms ◑