| | | @@ -0,0 +1,2298 @@ |
| 1 | + | local PLAYER_INFO_OPCODE, CRIPTOMOEDA_OPCODE, BLACKMARKET_OPCODE, MONITORANDO_ITEMS, BOT_PLAYER_MONIT, MENSAGEM_RESPOSTA = 116, 117, 118, 119, 122, 124 |
| 2 | + | local Section, ButtonAct, LastLine, StatusIDEdit, SaveFilter = "", 00, 01, 00, 00 |
| 3 | + | local exitWindow, clickMapReset, CAIXA_MSG_ID = nil, false, 01 |
| 4 | + | local TARGET_NAME, BACKPACK_EXT, MONITORA_COUNT, SAVE_ID, MON_TYPE = '', 0, 0, 0, 0 |
| 5 | + | local BUSCAR_TEXT_COMPLET, BUSCAR_MES, BUSCAR_ANO, CAVEBOT_COUNT, LAST_TYPE, AFK_COUNT = '', 00, 00, 00, 00, 00 |
| 6 | + | local RASTREAR_ID, MON_FILTER_1, MON_FILTER_2, MON_FILTER_3, MON_FILTER_4, BOT_NAME = 00, 00, 00, 00, 00, "" |
| 7 | + | local ONLY_FRENESY, GOD_NAME, MSG_MONITE_TYPE, RESP_MONITE_TYPE = false, "Frenesy", 00, 00 |
| 8 | + | local SHOP_CAT = { |
| 9 | + | [01] = {UID = 00}, |
| 10 | + | [02] = {UID = 00}, |
| 11 | + | [03] = {UID = 00}, |
| 12 | + | [04] = {UID = 00}, |
| 13 | + | [05] = {UID = 00}, |
| 14 | + | [06] = {UID = 00}, |
| 15 | + | [07] = {UID = 00}, |
| 16 | + | [08] = {UID = 00}, |
| 17 | + | [09] = {UID = 00}, |
| 18 | + | [10] = {UID = 00}, |
| 19 | + | [11] = {UID = 00}, |
| 20 | + | [12] = {UID = 00}, |
| 21 | + | } |
| 22 | + | local MONITORAMENTO_SEARCH = { |
| 23 | + | [00] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 24 | + | [01] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 25 | + | [02] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 26 | + | [03] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 27 | + | [04] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 28 | + | [05] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 29 | + | [06] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 30 | + | [07] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 31 | + | [08] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 32 | + | [09] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 33 | + | [10] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 34 | + | [11] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 35 | + | [12] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 36 | + | [13] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 37 | + | [14] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 38 | + | [15] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 39 | + | [16] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 40 | + | [17] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 41 | + | [18] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 42 | + | [19] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 43 | + | [20] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 44 | + | [21] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 45 | + | [22] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 46 | + | [23] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 47 | + | [24] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 48 | + | [25] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 49 | + | [26] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 50 | + | [27] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 51 | + | [28] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 52 | + | [29] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 53 | + | [30] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 54 | + | [31] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 55 | + | [32] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 56 | + | [33] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 57 | + | [34] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 58 | + | [35] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 59 | + | [36] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 60 | + | [37] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 61 | + | [38] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 62 | + | [39] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 63 | + | [40] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 64 | + | [41] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 65 | + | [42] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 66 | + | [43] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 67 | + | [44] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 68 | + | [45] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 69 | + | [46] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 70 | + | [47] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 71 | + | [48] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 72 | + | [49] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 73 | + | [50] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 74 | + | [51] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 75 | + | [52] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 76 | + | [53] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 77 | + | [54] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 78 | + | [55] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 79 | + | [56] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 80 | + | [57] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 81 | + | [58] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 82 | + | [59] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 83 | + | [60] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 84 | + | [61] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 85 | + | [62] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 86 | + | [63] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 87 | + | [64] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 88 | + | [65] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 89 | + | [66] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 90 | + | [67] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 91 | + | [68] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 92 | + | [69] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 93 | + | [70] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 94 | + | [71] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 95 | + | [72] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 96 | + | [73] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 97 | + | [74] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 98 | + | [75] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 99 | + | [76] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 100 | + | [77] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 101 | + | [78] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 102 | + | [79] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 103 | + | [80] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 104 | + | [81] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 105 | + | [82] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 106 | + | [83] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 107 | + | [84] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 108 | + | [85] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 109 | + | [86] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 110 | + | [87] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 111 | + | [88] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 112 | + | [89] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 113 | + | [90] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 114 | + | [91] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 115 | + | [92] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 116 | + | [93] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 117 | + | [94] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 118 | + | [95] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 119 | + | [96] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 120 | + | [97] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 121 | + | [98] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 122 | + | [99] = {NAME = '', SLOT = '', TARGET_1 = 0, TARGET_2 = 0, UID_1 = 0, UID_2 = 0, UID_3 = 0, UID_4 = 0, UID_5 = 0, UID_6 = 0, UID_7 = 0, UID_8 = 0, UID_9 = 0, UID_10 = 0}, |
| 123 | + | } |
| 124 | + | local EMPTY = { |
| 125 | + | [01] = "/images/game/slots/amulet"; |
| 126 | + | [02] = "/images/game/slots/helmet"; |
| 127 | + | [03] = "/images/game/slots/backpack"; |
| 128 | + | [04] = "/images/game/slots/gun"; |
| 129 | + | [05] = "/images/game/slots/armor"; |
| 130 | + | [06] = "/images/game/slots/glove"; |
| 131 | + | [07] = "/images/game/slots/ring"; |
| 132 | + | [08] = "/images/game/slots/leg"; |
| 133 | + | [09] = "/images/game/slots/boot"; |
| 134 | + | } |
| 135 | + | local CAIXA_MENSAGEM = { |
| 136 | + | [00] = {ID = 00, TYPE = 00, PLAYER_ID = 00, NAME = "", TARGET_ID = 00, TARGET_NAME = "", TITLE = "", MESSAGEM = "", RESPOSTA = "", BOX_1 = "", BOX_2 = "", BOX_3 = "", BOX_4 = "", GOLD = 00, VIP = 00, LIDA = 00, BOX_CHECK = 00, DEL_MSG = 00, DEL_RESP = 00}, |
| 137 | + | |
| 138 | + | [01] = {ID = 00, TYPE = 00, PLAYER_ID = 00, NAME = "", TARGET_ID = 00, TARGET_NAME = "", TITLE = "", MESSAGEM = "", RESPOSTA = "", BOX_1 = "", BOX_2 = "", BOX_3 = "", BOX_4 = "", GOLD = 00, VIP = 00, LIDA = 00, BOX_CHECK = 00, DEL_MSG = 00, DEL_RESP = 00}, |
| 139 | + | [02] = {ID = 00, TYPE = 00, PLAYER_ID = 00, NAME = "", TARGET_ID = 00, TARGET_NAME = "", TITLE = "", MESSAGEM = "", RESPOSTA = "", BOX_1 = "", BOX_2 = "", BOX_3 = "", BOX_4 = "", GOLD = 00, VIP = 00, LIDA = 00, BOX_CHECK = 00, DEL_MSG = 00, DEL_RESP = 00}, |
| 140 | + | [03] = {ID = 00, TYPE = 00, PLAYER_ID = 00, NAME = "", TARGET_ID = 00, TARGET_NAME = "", TITLE = "", MESSAGEM = "", RESPOSTA = "", BOX_1 = "", BOX_2 = "", BOX_3 = "", BOX_4 = "", GOLD = 00, VIP = 00, LIDA = 00, BOX_CHECK = 00, DEL_MSG = 00, DEL_RESP = 00}, |
| 141 | + | [04] = {ID = 00, TYPE = 00, PLAYER_ID = 00, NAME = "", TARGET_ID = 00, TARGET_NAME = "", TITLE = "", MESSAGEM = "", RESPOSTA = "", BOX_1 = "", BOX_2 = "", BOX_3 = "", BOX_4 = "", GOLD = 00, VIP = 00, LIDA = 00, BOX_CHECK = 00, DEL_MSG = 00, DEL_RESP = 00}, |
| 142 | + | [05] = {ID = 00, TYPE = 00, PLAYER_ID = 00, NAME = "", TARGET_ID = 00, TARGET_NAME = "", TITLE = "", MESSAGEM = "", RESPOSTA = "", BOX_1 = "", BOX_2 = "", BOX_3 = "", BOX_4 = "", GOLD = 00, VIP = 00, LIDA = 00, BOX_CHECK = 00, DEL_MSG = 00, DEL_RESP = 00}, |
| 143 | + | [06] = {ID = 00, TYPE = 00, PLAYER_ID = 00, NAME = "", TARGET_ID = 00, TARGET_NAME = "", TITLE = "", MESSAGEM = "", RESPOSTA = "", BOX_1 = "", BOX_2 = "", BOX_3 = "", BOX_4 = "", GOLD = 00, VIP = 00, LIDA = 00, BOX_CHECK = 00, DEL_MSG = 00, DEL_RESP = 00}, |
| 144 | + | [07] = {ID = 00, TYPE = 00, PLAYER_ID = 00, NAME = "", TARGET_ID = 00, TARGET_NAME = "", TITLE = "", MESSAGEM = "", RESPOSTA = "", BOX_1 = "", BOX_2 = "", BOX_3 = "", BOX_4 = "", GOLD = 00, VIP = 00, LIDA = 00, BOX_CHECK = 00, DEL_MSG = 00, DEL_RESP = 00}, |
| 145 | + | [08] = {ID = 00, TYPE = 00, PLAYER_ID = 00, NAME = "", TARGET_ID = 00, TARGET_NAME = "", TITLE = "", MESSAGEM = "", RESPOSTA = "", BOX_1 = "", BOX_2 = "", BOX_3 = "", BOX_4 = "", GOLD = 00, VIP = 00, LIDA = 00, BOX_CHECK = 00, DEL_MSG = 00, DEL_RESP = 00}, |
| 146 | + | [09] = {ID = 00, TYPE = 00, PLAYER_ID = 00, NAME = "", TARGET_ID = 00, TARGET_NAME = "", TITLE = "", MESSAGEM = "", RESPOSTA = "", BOX_1 = "", BOX_2 = "", BOX_3 = "", BOX_4 = "", GOLD = 00, VIP = 00, LIDA = 00, BOX_CHECK = 00, DEL_MSG = 00, DEL_RESP = 00}, |
| 147 | + | [10] = {ID = 00, TYPE = 00, PLAYER_ID = 00, NAME = "", TARGET_ID = 00, TARGET_NAME = "", TITLE = "", MESSAGEM = "", RESPOSTA = "", BOX_1 = "", BOX_2 = "", BOX_3 = "", BOX_4 = "", GOLD = 00, VIP = 00, LIDA = 00, BOX_CHECK = 00, DEL_MSG = 00, DEL_RESP = 00}, |
| 148 | + | [11] = {ID = 00, TYPE = 00, PLAYER_ID = 00, NAME = "", TARGET_ID = 00, TARGET_NAME = "", TITLE = "", MESSAGEM = "", RESPOSTA = "", BOX_1 = "", BOX_2 = "", BOX_3 = "", BOX_4 = "", GOLD = 00, VIP = 00, LIDA = 00, BOX_CHECK = 00, DEL_MSG = 00, DEL_RESP = 00}, |
| 149 | + | [12] = {ID = 00, TYPE = 00, PLAYER_ID = 00, NAME = "", TARGET_ID = 00, TARGET_NAME = "", TITLE = "", MESSAGEM = "", RESPOSTA = "", BOX_1 = "", BOX_2 = "", BOX_3 = "", BOX_4 = "", GOLD = 00, VIP = 00, LIDA = 00, BOX_CHECK = 00, DEL_MSG = 00, DEL_RESP = 00}, |
| 150 | + | [13] = {ID = 00, TYPE = 00, PLAYER_ID = 00, NAME = "", TARGET_ID = 00, TARGET_NAME = "", TITLE = "", MESSAGEM = "", RESPOSTA = "", BOX_1 = "", BOX_2 = "", BOX_3 = "", BOX_4 = "", GOLD = 00, VIP = 00, LIDA = 00, BOX_CHECK = 00, DEL_MSG = 00, DEL_RESP = 00}, |
| 151 | + | [14] = {ID = 00, TYPE = 00, PLAYER_ID = 00, NAME = "", TARGET_ID = 00, TARGET_NAME = "", TITLE = "", MESSAGEM = "", RESPOSTA = "", BOX_1 = "", BOX_2 = "", BOX_3 = "", BOX_4 = "", GOLD = 00, VIP = 00, LIDA = 00, BOX_CHECK = 00, DEL_MSG = 00, DEL_RESP = 00}, |
| 152 | + | [15] = {ID = 00, TYPE = 00, PLAYER_ID = 00, NAME = "", TARGET_ID = 00, TARGET_NAME = "", TITLE = "", MESSAGEM = "", RESPOSTA = "", BOX_1 = "", BOX_2 = "", BOX_3 = "", BOX_4 = "", GOLD = 00, VIP = 00, LIDA = 00, BOX_CHECK = 00, DEL_MSG = 00, DEL_RESP = 00}, |
| 153 | + | [16] = {ID = 00, TYPE = 00, PLAYER_ID = 00, NAME = "", TARGET_ID = 00, TARGET_NAME = "", TITLE = "", MESSAGEM = "", RESPOSTA = "", BOX_1 = "", BOX_2 = "", BOX_3 = "", BOX_4 = "", GOLD = 00, VIP = 00, LIDA = 00, BOX_CHECK = 00, DEL_MSG = 00, DEL_RESP = 00}, |
| 154 | + | [17] = {ID = 00, TYPE = 00, PLAYER_ID = 00, NAME = "", TARGET_ID = 00, TARGET_NAME = "", TITLE = "", MESSAGEM = "", RESPOSTA = "", BOX_1 = "", BOX_2 = "", BOX_3 = "", BOX_4 = "", GOLD = 00, VIP = 00, LIDA = 00, BOX_CHECK = 00, DEL_MSG = 00, DEL_RESP = 00}, |
| 155 | + | [18] = {ID = 00, TYPE = 00, PLAYER_ID = 00, NAME = "", TARGET_ID = 00, TARGET_NAME = "", TITLE = "", MESSAGEM = "", RESPOSTA = "", BOX_1 = "", BOX_2 = "", BOX_3 = "", BOX_4 = "", GOLD = 00, VIP = 00, LIDA = 00, BOX_CHECK = 00, DEL_MSG = 00, DEL_RESP = 00}, |
| 156 | + | [19] = {ID = 00, TYPE = 00, PLAYER_ID = 00, NAME = "", TARGET_ID = 00, TARGET_NAME = "", TITLE = "", MESSAGEM = "", RESPOSTA = "", BOX_1 = "", BOX_2 = "", BOX_3 = "", BOX_4 = "", GOLD = 00, VIP = 00, LIDA = 00, BOX_CHECK = 00, DEL_MSG = 00, DEL_RESP = 00}, |
| 157 | + | [20] = {ID = 00, TYPE = 00, PLAYER_ID = 00, NAME = "", TARGET_ID = 00, TARGET_NAME = "", TITLE = "", MESSAGEM = "", RESPOSTA = "", BOX_1 = "", BOX_2 = "", BOX_3 = "", BOX_4 = "", GOLD = 00, VIP = 00, LIDA = 00, BOX_CHECK = 00, DEL_MSG = 00, DEL_RESP = 00}, |
| 158 | + | [21] = {ID = 00, TYPE = 00, PLAYER_ID = 00, NAME = "", TARGET_ID = 00, TARGET_NAME = "", TITLE = "", MESSAGEM = "", RESPOSTA = "", BOX_1 = "", BOX_2 = "", BOX_3 = "", BOX_4 = "", GOLD = 00, VIP = 00, LIDA = 00, BOX_CHECK = 00, DEL_MSG = 00, DEL_RESP = 00}, |
| 159 | + | [22] = {ID = 00, TYPE = 00, PLAYER_ID = 00, NAME = "", TARGET_ID = 00, TARGET_NAME = "", TITLE = "", MESSAGEM = "", RESPOSTA = "", BOX_1 = "", BOX_2 = "", BOX_3 = "", BOX_4 = "", GOLD = 00, VIP = 00, LIDA = 00, BOX_CHECK = 00, DEL_MSG = 00, DEL_RESP = 00}, |
| 160 | + | [23] = {ID = 00, TYPE = 00, PLAYER_ID = 00, NAME = "", TARGET_ID = 00, TARGET_NAME = "", TITLE = "", MESSAGEM = "", RESPOSTA = "", BOX_1 = "", BOX_2 = "", BOX_3 = "", BOX_4 = "", GOLD = 00, VIP = 00, LIDA = 00, BOX_CHECK = 00, DEL_MSG = 00, DEL_RESP = 00}, |
| 161 | + | [24] = {ID = 00, TYPE = 00, PLAYER_ID = 00, NAME = "", TARGET_ID = 00, TARGET_NAME = "", TITLE = "", MESSAGEM = "", RESPOSTA = "", BOX_1 = "", BOX_2 = "", BOX_3 = "", BOX_4 = "", GOLD = 00, VIP = 00, LIDA = 00, BOX_CHECK = 00, DEL_MSG = 00, DEL_RESP = 00}, |
| 162 | + | [25] = {ID = 00, TYPE = 00, PLAYER_ID = 00, NAME = "", TARGET_ID = 00, TARGET_NAME = "", TITLE = "", MESSAGEM = "", RESPOSTA = "", BOX_1 = "", BOX_2 = "", BOX_3 = "", BOX_4 = "", GOLD = 00, VIP = 00, LIDA = 00, BOX_CHECK = 00, DEL_MSG = 00, DEL_RESP = 00}, |
| 163 | + | [26] = {ID = 00, TYPE = 00, PLAYER_ID = 00, NAME = "", TARGET_ID = 00, TARGET_NAME = "", TITLE = "", MESSAGEM = "", RESPOSTA = "", BOX_1 = "", BOX_2 = "", BOX_3 = "", BOX_4 = "", GOLD = 00, VIP = 00, LIDA = 00, BOX_CHECK = 00, DEL_MSG = 00, DEL_RESP = 00}, |
| 164 | + | [27] = {ID = 00, TYPE = 00, PLAYER_ID = 00, NAME = "", TARGET_ID = 00, TARGET_NAME = "", TITLE = "", MESSAGEM = "", RESPOSTA = "", BOX_1 = "", BOX_2 = "", BOX_3 = "", BOX_4 = "", GOLD = 00, VIP = 00, LIDA = 00, BOX_CHECK = 00, DEL_MSG = 00, DEL_RESP = 00}, |
| 165 | + | [28] = {ID = 00, TYPE = 00, PLAYER_ID = 00, NAME = "", TARGET_ID = 00, TARGET_NAME = "", TITLE = "", MESSAGEM = "", RESPOSTA = "", BOX_1 = "", BOX_2 = "", BOX_3 = "", BOX_4 = "", GOLD = 00, VIP = 00, LIDA = 00, BOX_CHECK = 00, DEL_MSG = 00, DEL_RESP = 00}, |
| 166 | + | [29] = {ID = 00, TYPE = 00, PLAYER_ID = 00, NAME = "", TARGET_ID = 00, TARGET_NAME = "", TITLE = "", MESSAGEM = "", RESPOSTA = "", BOX_1 = "", BOX_2 = "", BOX_3 = "", BOX_4 = "", GOLD = 00, VIP = 00, LIDA = 00, BOX_CHECK = 00, DEL_MSG = 00, DEL_RESP = 00}, |
| 167 | + | [30] = {ID = 00, TYPE = 00, PLAYER_ID = 00, NAME = "", TARGET_ID = 00, TARGET_NAME = "", TITLE = "", MESSAGEM = "", RESPOSTA = "", BOX_1 = "", BOX_2 = "", BOX_3 = "", BOX_4 = "", GOLD = 00, VIP = 00, LIDA = 00, BOX_CHECK = 00, DEL_MSG = 00, DEL_RESP = 00}, |
| 168 | + | [31] = {ID = 00, TYPE = 00, PLAYER_ID = 00, NAME = "", TARGET_ID = 00, TARGET_NAME = "", TITLE = "", MESSAGEM = "", RESPOSTA = "", BOX_1 = "", BOX_2 = "", BOX_3 = "", BOX_4 = "", GOLD = 00, VIP = 00, LIDA = 00, BOX_CHECK = 00, DEL_MSG = 00, DEL_RESP = 00}, |
| 169 | + | [32] = {ID = 00, TYPE = 00, PLAYER_ID = 00, NAME = "", TARGET_ID = 00, TARGET_NAME = "", TITLE = "", MESSAGEM = "", RESPOSTA = "", BOX_1 = "", BOX_2 = "", BOX_3 = "", BOX_4 = "", GOLD = 00, VIP = 00, LIDA = 00, BOX_CHECK = 00, DEL_MSG = 00, DEL_RESP = 00}, |
| 170 | + | [33] = {ID = 00, TYPE = 00, PLAYER_ID = 00, NAME = "", TARGET_ID = 00, TARGET_NAME = "", TITLE = "", MESSAGEM = "", RESPOSTA = "", BOX_1 = "", BOX_2 = "", BOX_3 = "", BOX_4 = "", GOLD = 00, VIP = 00, LIDA = 00, BOX_CHECK = 00, DEL_MSG = 00, DEL_RESP = 00}, |
| 171 | + | [34] = {ID = 00, TYPE = 00, PLAYER_ID = 00, NAME = "", TARGET_ID = 00, TARGET_NAME = "", TITLE = "", MESSAGEM = "", RESPOSTA = "", BOX_1 = "", BOX_2 = "", BOX_3 = "", BOX_4 = "", GOLD = 00, VIP = 00, LIDA = 00, BOX_CHECK = 00, DEL_MSG = 00, DEL_RESP = 00}, |
| 172 | + | [35] = {ID = 00, TYPE = 00, PLAYER_ID = 00, NAME = "", TARGET_ID = 00, TARGET_NAME = "", TITLE = "", MESSAGEM = "", RESPOSTA = "", BOX_1 = "", BOX_2 = "", BOX_3 = "", BOX_4 = "", GOLD = 00, VIP = 00, LIDA = 00, BOX_CHECK = 00, DEL_MSG = 00, DEL_RESP = 00}, |
| 173 | + | [36] = {ID = 00, TYPE = 00, PLAYER_ID = 00, NAME = "", TARGET_ID = 00, TARGET_NAME = "", TITLE = "", MESSAGEM = "", RESPOSTA = "", BOX_1 = "", BOX_2 = "", BOX_3 = "", BOX_4 = "", GOLD = 00, VIP = 00, LIDA = 00, BOX_CHECK = 00, DEL_MSG = 00, DEL_RESP = 00}, |
| 174 | + | [37] = {ID = 00, TYPE = 00, PLAYER_ID = 00, NAME = "", TARGET_ID = 00, TARGET_NAME = "", TITLE = "", MESSAGEM = "", RESPOSTA = "", BOX_1 = "", BOX_2 = "", BOX_3 = "", BOX_4 = "", GOLD = 00, VIP = 00, LIDA = 00, BOX_CHECK = 00, DEL_MSG = 00, DEL_RESP = 00}, |
| 175 | + | [38] = {ID = 00, TYPE = 00, PLAYER_ID = 00, NAME = "", TARGET_ID = 00, TARGET_NAME = "", TITLE = "", MESSAGEM = "", RESPOSTA = "", BOX_1 = "", BOX_2 = "", BOX_3 = "", BOX_4 = "", GOLD = 00, VIP = 00, LIDA = 00, BOX_CHECK = 00, DEL_MSG = 00, DEL_RESP = 00}, |
| 176 | + | [39] = {ID = 00, TYPE = 00, PLAYER_ID = 00, NAME = "", TARGET_ID = 00, TARGET_NAME = "", TITLE = "", MESSAGEM = "", RESPOSTA = "", BOX_1 = "", BOX_2 = "", BOX_3 = "", BOX_4 = "", GOLD = 00, VIP = 00, LIDA = 00, BOX_CHECK = 00, DEL_MSG = 00, DEL_RESP = 00}, |
| 177 | + | [40] = {ID = 00, TYPE = 00, PLAYER_ID = 00, NAME = "", TARGET_ID = 00, TARGET_NAME = "", TITLE = "", MESSAGEM = "", RESPOSTA = "", BOX_1 = "", BOX_2 = "", BOX_3 = "", BOX_4 = "", GOLD = 00, VIP = 00, LIDA = 00, BOX_CHECK = 00, DEL_MSG = 00, DEL_RESP = 00}, |
| 178 | + | [41] = {ID = 00, TYPE = 00, PLAYER_ID = 00, NAME = "", TARGET_ID = 00, TARGET_NAME = "", TITLE = "", MESSAGEM = "", RESPOSTA = "", BOX_1 = "", BOX_2 = "", BOX_3 = "", BOX_4 = "", GOLD = 00, VIP = 00, LIDA = 00, BOX_CHECK = 00, DEL_MSG = 00, DEL_RESP = 00}, |
| 179 | + | [42] = {ID = 00, TYPE = 00, PLAYER_ID = 00, NAME = "", TARGET_ID = 00, TARGET_NAME = "", TITLE = "", MESSAGEM = "", RESPOSTA = "", BOX_1 = "", BOX_2 = "", BOX_3 = "", BOX_4 = "", GOLD = 00, VIP = 00, LIDA = 00, BOX_CHECK = 00, DEL_MSG = 00, DEL_RESP = 00}, |
| 180 | + | [43] = {ID = 00, TYPE = 00, PLAYER_ID = 00, NAME = "", TARGET_ID = 00, TARGET_NAME = "", TITLE = "", MESSAGEM = "", RESPOSTA = "", BOX_1 = "", BOX_2 = "", BOX_3 = "", BOX_4 = "", GOLD = 00, VIP = 00, LIDA = 00, BOX_CHECK = 00, DEL_MSG = 00, DEL_RESP = 00}, |
| 181 | + | [44] = {ID = 00, TYPE = 00, PLAYER_ID = 00, NAME = "", TARGET_ID = 00, TARGET_NAME = "", TITLE = "", MESSAGEM = "", RESPOSTA = "", BOX_1 = "", BOX_2 = "", BOX_3 = "", BOX_4 = "", GOLD = 00, VIP = 00, LIDA = 00, BOX_CHECK = 00, DEL_MSG = 00, DEL_RESP = 00}, |
| 182 | + | [45] = {ID = 00, TYPE = 00, PLAYER_ID = 00, NAME = "", TARGET_ID = 00, TARGET_NAME = "", TITLE = "", MESSAGEM = "", RESPOSTA = "", BOX_1 = "", BOX_2 = "", BOX_3 = "", BOX_4 = "", GOLD = 00, VIP = 00, LIDA = 00, BOX_CHECK = 00, DEL_MSG = 00, DEL_RESP = 00}, |
| 183 | + | [46] = {ID = 00, TYPE = 00, PLAYER_ID = 00, NAME = "", TARGET_ID = 00, TARGET_NAME = "", TITLE = "", MESSAGEM = "", RESPOSTA = "", BOX_1 = "", BOX_2 = "", BOX_3 = "", BOX_4 = "", GOLD = 00, VIP = 00, LIDA = 00, BOX_CHECK = 00, DEL_MSG = 00, DEL_RESP = 00}, |
| 184 | + | [47] = {ID = 00, TYPE = 00, PLAYER_ID = 00, NAME = "", TARGET_ID = 00, TARGET_NAME = "", TITLE = "", MESSAGEM = "", RESPOSTA = "", BOX_1 = "", BOX_2 = "", BOX_3 = "", BOX_4 = "", GOLD = 00, VIP = 00, LIDA = 00, BOX_CHECK = 00, DEL_MSG = 00, DEL_RESP = 00}, |
| 185 | + | [48] = {ID = 00, TYPE = 00, PLAYER_ID = 00, NAME = "", TARGET_ID = 00, TARGET_NAME = "", TITLE = "", MESSAGEM = "", RESPOSTA = "", BOX_1 = "", BOX_2 = "", BOX_3 = "", BOX_4 = "", GOLD = 00, VIP = 00, LIDA = 00, BOX_CHECK = 00, DEL_MSG = 00, DEL_RESP = 00}, |
| 186 | + | [49] = {ID = 00, TYPE = 00, PLAYER_ID = 00, NAME = "", TARGET_ID = 00, TARGET_NAME = "", TITLE = "", MESSAGEM = "", RESPOSTA = "", BOX_1 = "", BOX_2 = "", BOX_3 = "", BOX_4 = "", GOLD = 00, VIP = 00, LIDA = 00, BOX_CHECK = 00, DEL_MSG = 00, DEL_RESP = 00}, |
| 187 | + | [50] = {ID = 00, TYPE = 00, PLAYER_ID = 00, NAME = "", TARGET_ID = 00, TARGET_NAME = "", TITLE = "", MESSAGEM = "", RESPOSTA = "", BOX_1 = "", BOX_2 = "", BOX_3 = "", BOX_4 = "", GOLD = 00, VIP = 00, LIDA = 00, BOX_CHECK = 00, DEL_MSG = 00, DEL_RESP = 00}, |
| 188 | + | |
| 189 | + | } |
| 190 | + | |
| 191 | + | function init() |
| 192 | + | connect(g_game, { |
| 193 | + | connect(g_game, 'onTextMessage', onAdmPanel), |
| 194 | + | }) |
| 195 | + | connect(g_game, { onGameEnd = offline }) |
| 196 | + | |
| 197 | + | ProtocolGame.registerExtendedOpcode(PLAYER_INFO_OPCODE, function(protocol, opcode, buffer) end) |
| 198 | + | ProtocolGame.registerExtendedOpcode(CRIPTOMOEDA_OPCODE, function(protocol, opcode, buffer) end) |
| 199 | + | ProtocolGame.registerExtendedOpcode(MONITORANDO_ITEMS, function(protocol, opcode, buffer) end) |
| 200 | + | ProtocolGame.registerExtendedOpcode(BOT_PLAYER_MONIT, function(protocol, opcode, buffer) end) |
| 201 | + | ProtocolGame.registerExtendedOpcode(MENSAGEM_RESPOSTA, function(protocol, opcode, buffer) end) |
| 202 | + | admPanel = g_ui.displayUI('adm') |
| 203 | + | statusPanel = g_ui.displayUI('status') |
| 204 | + | blackPanel = g_ui.displayUI('black') |
| 205 | + | loadGlobalPanel = admPanel:recursiveGetChildById('loadGlobalPanel') |
| 206 | + | blackValue = blackPanel:recursiveGetChildById('blackValue') |
| 207 | + | estimativaText = blackPanel:recursiveGetChildById('estimativaText') |
| 208 | + | MonDayText = admPanel:recursiveGetChildById('MonDayText') |
| 209 | + | MonMonthComboBox = admPanel:recursiveGetChildById('MonMonthComboBox') |
| 210 | + | MonMonthComboBox.onOptionChange = onChangeMonthType |
| 211 | + | MonMonthComboBox:addOption("All", "00") |
| 212 | + | MonMonthComboBox:addOption("01", "01") |
| 213 | + | MonMonthComboBox:addOption("02", "02") |
| 214 | + | MonMonthComboBox:addOption("03", "03") |
| 215 | + | MonMonthComboBox:addOption("04", "04") |
| 216 | + | MonMonthComboBox:addOption("05", "05") |
| 217 | + | MonMonthComboBox:addOption("06", "06") |
| 218 | + | MonMonthComboBox:addOption("07", "07") |
| 219 | + | MonMonthComboBox:addOption("08", "08") |
| 220 | + | MonMonthComboBox:addOption("09", "09") |
| 221 | + | MonMonthComboBox:addOption("10", "10") |
| 222 | + | MonMonthComboBox:addOption("11", "11") |
| 223 | + | MonMonthComboBox:addOption("12", "12") |
| 224 | + | MonYearComboBox = admPanel:recursiveGetChildById('MonYearComboBox') |
| 225 | + | MonYearComboBox.onOptionChange = onChangeYearType |
| 226 | + | MonYearComboBox:addOption("All", "00") |
| 227 | + | MonYearComboBox:addOption("2022", "22") |
| 228 | + | MonYearComboBox:addOption("2023", "23") |
| 229 | + | MonYearComboBox:addOption("2024", "24") |
| 230 | + | MonYearComboBox:addOption("2025", "25") |
| 231 | + | MonYearComboBox:addOption("2026", "26") |
| 232 | + | MonYearComboBox:addOption("2027", "27") |
| 233 | + | MonYearComboBox:addOption("2028", "28") |
| 234 | + | MonYearComboBox:addOption("2029", "29") |
| 235 | + | MonYearComboBox:addOption("2030", "30") |
| 236 | + | statusType = statusPanel:recursiveGetChildById('statusType') |
| 237 | + | statusType:addOption(tr("Em Analise"), "01") |
| 238 | + | statusType:addOption(tr("Alerta"), "02") |
| 239 | + | statusType:addOption(tr("Cancelado"), "03") |
| 240 | + | statusType:addOption(tr("Aprovado"), "04") |
| 241 | + | obsTextEdit = statusPanel:recursiveGetChildById('obsTextEdit') |
| 242 | + | -- PLAYER |
| 243 | + | searchButton = admPanel:recursiveGetChildById('searchPlayer') |
| 244 | + | playerName = admPanel:recursiveGetChildById('playerName') |
| 245 | + | playerPanel = admPanel:recursiveGetChildById('playerPanel') |
| 246 | + | loadPanel = admPanel:recursiveGetChildById('loadPanel') |
| 247 | + | playerInfo = admPanel:recursiveGetChildById('playerInfo') |
| 248 | + | -- CRIPTOMOEDA |
| 249 | + | criptomoedaPanel = admPanel:recursiveGetChildById('criptomoedaPanel') |
| 250 | + | CriptScrollPanel = admPanel:recursiveGetChildById('CriptScrollPanel') |
| 251 | + | MonitoramentoPanel = admPanel:recursiveGetChildById('monitoramentoPanel') |
| 252 | + | monBotPanel = admPanel:recursiveGetChildById('monBotPanel') |
| 253 | + | banPanel = admPanel:recursiveGetChildById('banPanel') |
| 254 | + | monBotPlayerName = admPanel:recursiveGetChildById('monBotPlayerName') |
| 255 | + | botPlayerMonitoraStart = admPanel:recursiveGetChildById('botPlayerMonitoraStart') |
| 256 | + | botPlayerMonitoraCancel = admPanel:recursiveGetChildById('botPlayerMonitoraCancel') |
| 257 | + | botTextPlayerFollow = admPanel:recursiveGetChildById('botTextPlayerFollow') |
| 258 | + | botTextPlayerClient = admPanel:recursiveGetChildById('botTextPlayerClient') |
| 259 | + | botTextPlayerBotV8 = admPanel:recursiveGetChildById('botTextPlayerBotV8') |
| 260 | + | botTextPlayerAutoCura = admPanel:recursiveGetChildById('botTextPlayerAutoCura') |
| 261 | + | botBanDays = admPanel:recursiveGetChildById('botBanDays') |
| 262 | + | botBanButton = admPanel:recursiveGetChildById('botBanButton') |
| 263 | + | botBanIPButton = admPanel:recursiveGetChildById('botBanIPButton') |
| 264 | + | botBanDesc = admPanel:recursiveGetChildById('botBanDesc') |
| 265 | + | botGhostButton = admPanel:recursiveGetChildById('botGhostButton') |
| 266 | + | botGotoButton = admPanel:recursiveGetChildById('botGotoButton') |
| 267 | + | sendMessageAFK = admPanel:recursiveGetChildById('sendMessageAFK') |
| 268 | + | AFKText = admPanel:recursiveGetChildById('AFKText') |
| 269 | + | monItemPanel = admPanel:recursiveGetChildById('monItemPanel') |
| 270 | + | QntMonItem = admPanel:recursiveGetChildById('QntMonItem') |
| 271 | + | LoadImg = admPanel:recursiveGetChildById('LoadImg') |
| 272 | + | ListItensScrollPanel = admPanel:recursiveGetChildById('ListItensScrollPanel') |
| 273 | + | MonShopScrollPanel = admPanel:recursiveGetChildById('MonShopScrollPanel') |
| 274 | + | MonBotScrollPanel = admPanel:recursiveGetChildById('MonBotScrollPanel') |
| 275 | + | MonItensScrollPanel = admPanel:recursiveGetChildById('MonItensScrollPanel') |
| 276 | + | MonTypeComboBox = admPanel:recursiveGetChildById('MonTypeComboBox') |
| 277 | + | MonTypeComboBox.onOptionChange = onChangeMonType |
| 278 | + | MonTypeComboBox:addOption(tr("Amuletos"), "01") |
| 279 | + | MonTypeComboBox:addOption(tr("Helmet"), "02") |
| 280 | + | MonTypeComboBox:addOption(tr("Produtos"), "03") |
| 281 | + | MonTypeComboBox:addOption(tr("Armas"), "04") |
| 282 | + | MonTypeComboBox:addOption(tr("Armor"), "05") |
| 283 | + | MonTypeComboBox:addOption(tr("Glove"), "06") |
| 284 | + | MonTypeComboBox:addOption(tr("Ring"), "07") |
| 285 | + | MonTypeComboBox:addOption(tr("Legs"), "08") |
| 286 | + | MonTypeComboBox:addOption(tr("Boots"), "09") |
| 287 | + | MonRareComboBox = admPanel:recursiveGetChildById('MonRareComboBox') |
| 288 | + | MonRareComboBox.onOptionChange = onChangeMonRare |
| 289 | + | MonRareComboBox:addOption("All", "-1") |
| 290 | + | MonRareComboBox:addOption(tr("Comum"), "00") |
| 291 | + | MonRareComboBox:addOption(tr("Melhorado"), "01") |
| 292 | + | MonRareComboBox:addOption(tr("Raro"), "02") |
| 293 | + | MonRareComboBox:addOption(tr("Epico"), "03") |
| 294 | + | MonRareComboBox:addOption(tr("Lendario"), "04") |
| 295 | + | MonStarComboBox = admPanel:recursiveGetChildById('MonStarComboBox') |
| 296 | + | MonStarComboBox.onOptionChange = onChangeMonStar |
| 297 | + | MonStarComboBox:addOption("All", "-1") |
| 298 | + | MonStarComboBox:addOption(tr("00 Estrelas"), "00") |
| 299 | + | MonStarComboBox:addOption(tr("01 Estrelas"), "01") |
| 300 | + | MonStarComboBox:addOption(tr("02 Estrelas"), "02") |
| 301 | + | MonStarComboBox:addOption(tr("03 Estrelas"), "03") |
| 302 | + | MonGunComboBox = admPanel:recursiveGetChildById('MonGunComboBox') |
| 303 | + | MonGunComboBox.onOptionChange = onChangeMonGun |
| 304 | + | MonGunComboBox:addOption(tr("Espingarda"), "00") |
| 305 | + | MonGunComboBox:addOption(tr("Metralhadora"), "01") |
| 306 | + | MonGunComboBox:addOption(tr("Rifle"), "02") |
| 307 | + | MonGunComboBox:addOption(tr("Pistola"), "03") |
| 308 | + | MonItemPesquisar = admPanel:recursiveGetChildById('MonItemPesquisar') |
| 309 | + | |
| 310 | + | monShopPanel = admPanel:recursiveGetChildById('monShopPanel') |
| 311 | + | mensagemPanel = admPanel:recursiveGetChildById('mensagemPanel') |
| 312 | + | BtMensagem = admPanel:recursiveGetChildById('BtMensagem') |
| 313 | + | MessageLabel = admPanel:recursiveGetChildById('MessageLabel') |
| 314 | + | RespostaLabel = admPanel:recursiveGetChildById('RespostaLabel') |
| 315 | + | sendResposta = admPanel:recursiveGetChildById('sendResposta') |
| 316 | + | MessageScrollPanel = admPanel:recursiveGetChildById('MessageScrollPanel') |
| 317 | + | MessageTypeComboBox = admPanel:recursiveGetChildById('MessageTypeComboBox') |
| 318 | + | MessageTypeComboBox.onOptionChange = onChangeMonitMsgType |
| 319 | + | MessageRespComboBox = admPanel:recursiveGetChildById('MessageRespComboBox') |
| 320 | + | MessageRespComboBox.onOptionChange = onChangeMonitRespType |
| 321 | + | |
| 322 | + | SKILL_1 = admPanel:recursiveGetChildById('Skill01') |
| 323 | + | SKILL_2 = admPanel:recursiveGetChildById('Skill02') |
| 324 | + | SKILL_3 = admPanel:recursiveGetChildById('Skill03') |
| 325 | + | BAG_SKILL_1 = admPanel:recursiveGetChildById('BagSkill01') |
| 326 | + | BAG_SKILL_2 = admPanel:recursiveGetChildById('BagSkill02') |
| 327 | + | BAG_SKILL_3 = admPanel:recursiveGetChildById('BagSkill03') |
| 328 | + | EXT_BP_1 = admPanel:recursiveGetChildById('ExtBackpack_1') |
| 329 | + | EXT_BP_2 = admPanel:recursiveGetChildById('ExtBackpack_2') |
| 330 | + | EXT_BP_3 = admPanel:recursiveGetChildById('ExtBackpack_3') |
| 331 | + | EXT_BP_4 = admPanel:recursiveGetChildById('ExtBackpack_4') |
| 332 | + | GOLD_TEXT = admPanel:recursiveGetChildById('GoldLabel') |
| 333 | + | ONLI_TEXT = admPanel:recursiveGetChildById('OnlineLabel') |
| 334 | + | PLAYER_STATUS_ON = admPanel:recursiveGetChildById('changeStatus') |
| 335 | + | PLAYER_STATUS_ON.onMouseRelease = function(widget, mousePos, mouseButton) |
| 336 | + | if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then |
| 337 | + | onMenuTools(01) |
| 338 | + | elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then |
| 339 | + | return |
| 340 | + | end |
| 341 | + | end |
| 342 | + | |
| 343 | + | PLAYER_MAESTRIA = admPanel:recursiveGetChildById('changeMaestria') |
| 344 | + | PLAYER_MAESTRIA.onMouseRelease = function(widget, mousePos, mouseButton) |
| 345 | + | if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then |
| 346 | + | onMenuTools(02) |
| 347 | + | elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then |
| 348 | + | return |
| 349 | + | end |
| 350 | + | end |
| 351 | + | |
| 352 | + | PLAYER_ESPECIALISTA = admPanel:recursiveGetChildById('changeEspecialista') |
| 353 | + | PLAYER_ESPECIALISTA.onMouseRelease = function(widget, mousePos, mouseButton) |
| 354 | + | if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then |
| 355 | + | onMenuTools(03) |
| 356 | + | elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then |
| 357 | + | return |
| 358 | + | end |
| 359 | + | end |
| 360 | + | |
| 361 | + | PLAYER_GOTO = admPanel:recursiveGetChildById('goTo') |
| 362 | + | PLAYER_GOTO.onClick = function() g_game.talk(g_game.talk("/adm " ..TARGET_NAME.. "-11")) end |
| 363 | + | onHideWindows() |
| 364 | + | admPanel:hide() |
| 365 | + | end |
| 366 | + | function mask_number(n) |
| 367 | + | local left,num,right = string.match(n,'^([^%d]*%d)(%d*)(.-)$') |
| 368 | + | return left..(num:reverse():gsub('(%d%d%d)','%1,'):reverse())..right |
| 369 | + | end |
| 370 | + | function onAdmPanel(mode, text) |
| 371 | + | if not g_game.isOnline() then |
| 372 | + | return |
| 373 | + | end |
| 374 | + | if mode == MessageModes.Failure then |
| 375 | + | if string.find(text, "@loadInfo") then |
| 376 | + | local t = string.explode(text, " ") |
| 377 | + | if tonumber(t[02]) == 01 then |
| 378 | + | local SLOT_I = tonumber(t[03]) |
| 379 | + | local UID_01 = tonumber(t[04]) |
| 380 | + | local UID_02 = tonumber(t[05]) |
| 381 | + | local UID_03 = tonumber(t[06]) |
| 382 | + | local UID_04 = tonumber(t[07]) |
| 383 | + | local UID_05 = tonumber(t[08]) |
| 384 | + | local UID_06 = tonumber(t[09]) |
| 385 | + | local UID_07 = tonumber(t[10]) |
| 386 | + | local UID_08 = tonumber(t[11]) |
| 387 | + | local UID_09 = tonumber(t[12]) |
| 388 | + | local UID_10 = tonumber(t[13]) |
| 389 | + | |
| 390 | + | INV_SLOT = admPanel:recursiveGetChildById('SlotInv_' ..SLOT_I) |
| 391 | + | INV_SLOT.onMouseRelease = function(widget, mousePos, mouseButton) |
| 392 | + | if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then |
| 393 | + | onOpenBackpack(SLOT_I, 00) |
| 394 | + | elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then |
| 395 | + | if SLOT_I == 03 then |
| 396 | + | return |
| 397 | + | else |
| 398 | + | onAdmMenuItem(01, SLOT_I) |
| 399 | + | end |
| 400 | + | end |
| 401 | + | end |
| 402 | + | |
| 403 | + | if UID_01 > 00 then |
| 404 | + | INV_SLOT:setIcon('/images/custom/Items/' ..UID_01) |
| 405 | + | INV_SLOT:setImageSource('/images/custom/UI/rare_' ..UID_02) |
| 406 | + | if SLOT_I == 01 or SLOT_I == 03 or SLOT_I == 07 then |
| 407 | + | INV_SLOT:setTooltip("@JOIAS " ..UID_01.. " " ..UID_02.. " " ..UID_03.. " 0 " ..UID_05.. " 0 0 0 " ..UID_09.. " 0") |
| 408 | + | elseif SLOT_I == 04 then |
| 409 | + | INV_SLOT:setTooltip("@INVGUN " ..UID_01.. " " ..UID_02.. " " ..UID_03.. " " ..UID_04.. " " ..UID_05.. " " ..UID_06.. " " ..UID_07.. " " ..UID_08.. " " ..UID_09.. " " ..UID_10) |
| 410 | + | if UID_04 > 00 then |
| 411 | + | SKILL_1:setImageSource('/images/custom/Spells/HUB/skill_' ..UID_04) |
| 412 | + | SKILL_1:setTooltip("@SKILL " ..UID_04.. " --") |
| 413 | + | SKILL_1.onMouseRelease = function(widget, mousePos, mouseButton) |
| 414 | + | if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then |
| 415 | + | return |
| 416 | + | elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then |
| 417 | + | onAdmMenuItem(02, 01) |
| 418 | + | end |
| 419 | + | end |
| 420 | + | else |
| 421 | + | SKILL_1:setImageSource('/images/custom/Spells/HUB/skill_0') |
| 422 | + | SKILL_1:setTooltip("") |
| 423 | + | SKILL_1.onMouseRelease = function(widget, mousePos, mouseButton) |
| 424 | + | if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then |
| 425 | + | return |
| 426 | + | elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then |
| 427 | + | return |
| 428 | + | end |
| 429 | + | end |
| 430 | + | end |
| 431 | + | if UID_05 > 00 then |
| 432 | + | SKILL_2:setImageSource('/images/custom/Spells/HUB/skill_' ..UID_05) |
| 433 | + | SKILL_2:setTooltip("@SKILL " ..UID_05.. " --") |
| 434 | + | SKILL_2.onMouseRelease = function(widget, mousePos, mouseButton) |
| 435 | + | if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then |
| 436 | + | return |
| 437 | + | elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then |
| 438 | + | onAdmMenuItem(02, 02) |
| 439 | + | end |
| 440 | + | end |
| 441 | + | else |
| 442 | + | SKILL_2:setImageSource('/images/custom/Spells/HUB/skill_0') |
| 443 | + | SKILL_2:setTooltip("") |
| 444 | + | SKILL_2.onMouseRelease = function(widget, mousePos, mouseButton) |
| 445 | + | if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then |
| 446 | + | return |
| 447 | + | elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then |
| 448 | + | return |
| 449 | + | end |
| 450 | + | end |
| 451 | + | end |
| 452 | + | if UID_06 > 00 then |
| 453 | + | SKILL_3:setImageSource('/images/custom/Spells/HUB/skill_' ..UID_06) |
| 454 | + | SKILL_3:setTooltip("@SKILL " ..UID_06.. " --") |
| 455 | + | SKILL_3.onMouseRelease = function(widget, mousePos, mouseButton) |
| 456 | + | if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then |
| 457 | + | return |
| 458 | + | elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then |
| 459 | + | onAdmMenuItem(02, 03) |
| 460 | + | end |
| 461 | + | end |
| 462 | + | else |
| 463 | + | SKILL_3:setImageSource('/images/custom/Spells/HUB/skill_0') |
| 464 | + | SKILL_3:setTooltip("") |
| 465 | + | SKILL_3.onMouseRelease = function(widget, mousePos, mouseButton) |
| 466 | + | if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then |
| 467 | + | return |
| 468 | + | elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then |
| 469 | + | return |
| 470 | + | end |
| 471 | + | end |
| 472 | + | end |
| 473 | + | else |
| 474 | + | INV_SLOT:setTooltip("@EQUIP " ..UID_01.. " " ..UID_02.. " " ..UID_03.. " " ..UID_04.. " " ..UID_05.. " " ..UID_06.. " " ..UID_07.. " " ..UID_08.. " " ..UID_09.. " " ..UID_10) |
| 475 | + | end |
| 476 | + | else |
| 477 | + | INV_SLOT:setIcon('/images/custom/Items/0') |
| 478 | + | INV_SLOT:setImageSource(EMPTY[SLOT_I]) |
| 479 | + | INV_SLOT:setTooltip('') |
| 480 | + | end |
| 481 | + | |
| 482 | + | EXT_BP_1:setImageSource('/images/custom/UI/backpack_slot') |
| 483 | + | EXT_BP_2:setImageSource('/images/custom/UI/backpack_slot_lock') |
| 484 | + | EXT_BP_3:setImageSource('/images/custom/UI/backpack_slot_lock') |
| 485 | + | EXT_BP_4:setImageSource('/images/custom/UI/backpack_slot_lock') |
| 486 | + | EXT_BP_1:disable() |
| 487 | + | EXT_BP_2:disable() |
| 488 | + | EXT_BP_3:disable() |
| 489 | + | EXT_BP_4:disable() |
| 490 | + | return |
| 491 | + | end |
| 492 | + | if tonumber(t[02]) == 02 then |
| 493 | + | local BAG_SL = tonumber(t[14]) |
| 494 | + | local SLOT_I = tonumber(t[03]) |
| 495 | + | local UID_01 = tonumber(t[04]) |
| 496 | + | local UID_02 = tonumber(t[05]) |
| 497 | + | local UID_03 = tonumber(t[06]) |
| 498 | + | local UID_04 = tonumber(t[07]) |
| 499 | + | local UID_05 = tonumber(t[08]) |
| 500 | + | local UID_06 = tonumber(t[09]) |
| 501 | + | local UID_07 = tonumber(t[10]) |
| 502 | + | local UID_08 = tonumber(t[11]) |
| 503 | + | local UID_09 = tonumber(t[12]) |
| 504 | + | local UID_10 = tonumber(t[13]) |
| 505 | + | BACKPACK_EXT = tonumber(t[15]) |
| 506 | + | |
| 507 | + | BAG = admPanel:recursiveGetChildById('Bag' ..SLOT_I) |
| 508 | + | if UID_01 > 00 then |
| 509 | + | BAG:setIcon('/images/custom/Items/' ..UID_01) |
| 510 | + | BAG:setImageSource('/images/custom/UI/rare_' ..UID_02) |
| 511 | + | BAG:setTooltip("@BAG " ..UID_01.. " " ..UID_02.. " " ..UID_03.. " " ..UID_04.. " " ..UID_05.. " " ..UID_06.. " " ..UID_07.. " " ..UID_08.. " " ..UID_09.. " " ..UID_10) |
| 512 | + | |
| 513 | + | BAG_SKILL_1:setImageSource('/images/custom/Spells/HUB/skill_0') |
| 514 | + | BAG_SKILL_1:setTooltip("") |
| 515 | + | BAG_SKILL_1.onMouseRelease = function(widget, mousePos, mouseButton) |
| 516 | + | if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then |
| 517 | + | return |
| 518 | + | elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then |
| 519 | + | return |
| 520 | + | end |
| 521 | + | end |
| 522 | + | BAG_SKILL_2:setImageSource('/images/custom/Spells/HUB/skill_0') |
| 523 | + | BAG_SKILL_2:setTooltip("") |
| 524 | + | BAG_SKILL_2.onMouseRelease = function(widget, mousePos, mouseButton) |
| 525 | + | if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then |
| 526 | + | return |
| 527 | + | elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then |
| 528 | + | return |
| 529 | + | end |
| 530 | + | end |
| 531 | + | BAG_SKILL_3:setImageSource('/images/custom/Spells/HUB/skill_0') |
| 532 | + | BAG_SKILL_3:setTooltip("") |
| 533 | + | BAG_SKILL_3.onMouseRelease = function(widget, mousePos, mouseButton) |
| 534 | + | if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then |
| 535 | + | return |
| 536 | + | elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then |
| 537 | + | return |
| 538 | + | end |
| 539 | + | end |
| 540 | + | |
| 541 | + | if BAG_SL == 03 then |
| 542 | + | if UID_04 > 00 then |
| 543 | + | if UID_04 < 10 then |
| 544 | + | BAG:setText('0'..UID_04) |
| 545 | + | else |
| 546 | + | BAG:setText(UID_04) |
| 547 | + | end |
| 548 | + | end |
| 549 | + | else |
| 550 | + | BAG:setText('') |
| 551 | + | end |
| 552 | + | if BAG_SL == 01 or BAG_SL == 03 or BAG_SL == 07 then |
| 553 | + | BAG:setTooltip("@JOIAS " ..UID_01.. " " ..UID_02.. " " ..UID_03.. " 0 " ..UID_05.. " 0 0 0 " ..UID_09.. " 0") |
| 554 | + | elseif BAG_SL == 04 then |
| 555 | + | BAG:setTooltip("@INVGUN " ..UID_01.. " " ..UID_02.. " " ..UID_03.. " " ..UID_04.. " " ..UID_05.. " " ..UID_06.. " " ..UID_07.. " " ..UID_08.. " " ..UID_09.. " " ..UID_10) |
| 556 | + | else |
| 557 | + | BAG:setTooltip("@EQUIP " ..UID_01.. " " ..UID_02.. " " ..UID_03.. " " ..UID_04.. " " ..UID_05.. " " ..UID_06.. " " ..UID_07.. " " ..UID_08.. " " ..UID_09.. " " ..UID_10) |
| 558 | + | end |
| 559 | + | BAG.onMouseRelease = function(widget, mousePos, mouseButton) |
| 560 | + | if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then |
| 561 | + | if BAG_SL == 02 or BAG_SL == 05 or BAG_SL == 06 or BAG_SL == 08 or BAG_SL == 09 then |
| 562 | + | if UID_06 > 00 then |
| 563 | + | BAG_SKILL_1:setImageSource('/images/custom/Spells/atr_' ..UID_06) |
| 564 | + | BAG_SKILL_1:setTooltip("") |
| 565 | + | BAG_SKILL_1.onMouseRelease = function(widget, mousePos, mouseButton) |
| 566 | + | if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then |
| 567 | + | return |
| 568 | + | elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then |
| 569 | + | onAdmMenuItem(06, BAG_SL, SLOT_I, 01) |
| 570 | + | end |
| 571 | + | end |
| 572 | + | else |
| 573 | + | BAG_SKILL_1:setImageSource('/images/custom/Spells/HUB/skill_0') |
| 574 | + | BAG_SKILL_1:setTooltip("") |
| 575 | + | BAG_SKILL_1.onMouseRelease = function(widget, mousePos, mouseButton) |
| 576 | + | if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then |
| 577 | + | return |
| 578 | + | elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then |
| 579 | + | return |
| 580 | + | end |
| 581 | + | end |
| 582 | + | end |
| 583 | + | if UID_07 > 00 then |
| 584 | + | BAG_SKILL_2:setImageSource('/images/custom/Spells/atr_' ..UID_07) |
| 585 | + | BAG_SKILL_2:setTooltip("") |
| 586 | + | BAG_SKILL_2.onMouseRelease = function(widget, mousePos, mouseButton) |
| 587 | + | if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then |
| 588 | + | return |
| 589 | + | elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then |
| 590 | + | onAdmMenuItem(06, BAG_SL, SLOT_I, 02) |
| 591 | + | end |
| 592 | + | end |
| 593 | + | else |
| 594 | + | BAG_SKILL_2:setImageSource('/images/custom/Spells/HUB/skill_0') |
| 595 | + | BAG_SKILL_2:setTooltip("") |
| 596 | + | BAG_SKILL_2.onMouseRelease = function(widget, mousePos, mouseButton) |
| 597 | + | if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then |
| 598 | + | return |
| 599 | + | elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then |
| 600 | + | return |
| 601 | + | end |
| 602 | + | end |
| 603 | + | end |
| 604 | + | end |
| 605 | + | if BAG_SL == 04 then |
| 606 | + | if UID_04 > 00 then |
| 607 | + | BAG_SKILL_1:setImageSource('/images/custom/Spells/HUB/skill_' ..UID_04) |
| 608 | + | BAG_SKILL_1:setTooltip("@SKILL " ..UID_04.. " --") |
| 609 | + | BAG_SKILL_1.onMouseRelease = function(widget, mousePos, mouseButton) |
| 610 | + | if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then |
| 611 | + | return |
| 612 | + | elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then |
| 613 | + | onAdmMenuItem(06, BAG_SL, SLOT_I, 01) |
| 614 | + | end |
| 615 | + | end |
| 616 | + | else |
| 617 | + | BAG_SKILL_1:setImageSource('/images/custom/Spells/HUB/skill_0') |
| 618 | + | BAG_SKILL_1:setTooltip("") |
| 619 | + | BAG_SKILL_1.onMouseRelease = function(widget, mousePos, mouseButton) |
| 620 | + | if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then |
| 621 | + | return |
| 622 | + | elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then |
| 623 | + | return |
| 624 | + | end |
| 625 | + | end |
| 626 | + | end |
| 627 | + | if UID_05 > 00 then |
| 628 | + | BAG_SKILL_2:setImageSource('/images/custom/Spells/HUB/skill_' ..UID_05) |
| 629 | + | BAG_SKILL_2:setTooltip("@SKILL " ..UID_05.. " --") |
| 630 | + | BAG_SKILL_2.onMouseRelease = function(widget, mousePos, mouseButton) |
| 631 | + | if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then |
| 632 | + | return |
| 633 | + | elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then |
| 634 | + | onAdmMenuItem(06, BAG_SL, SLOT_I, 02) |
| 635 | + | end |
| 636 | + | end |
| 637 | + | else |
| 638 | + | BAG_SKILL_2:setImageSource('/images/custom/Spells/HUB/skill_0') |
| 639 | + | BAG_SKILL_2:setTooltip("") |
| 640 | + | BAG_SKILL_2.onMouseRelease = function(widget, mousePos, mouseButton) |
| 641 | + | if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then |
| 642 | + | return |
| 643 | + | elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then |
| 644 | + | return |
| 645 | + | end |
| 646 | + | end |
| 647 | + | end |
| 648 | + | if UID_06 > 00 then |
| 649 | + | BAG_SKILL_3:setImageSource('/images/custom/Spells/HUB/skill_' ..UID_06) |
| 650 | + | BAG_SKILL_3:setTooltip("@SKILL " ..UID_06.. " --") |
| 651 | + | BAG_SKILL_3.onMouseRelease = function(widget, mousePos, mouseButton) |
| 652 | + | if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then |
| 653 | + | return |
| 654 | + | elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then |
| 655 | + | onAdmMenuItem(06, BAG_SL, SLOT_I, 03) |
| 656 | + | end |
| 657 | + | end |
| 658 | + | else |
| 659 | + | BAG_SKILL_3:setImageSource('/images/custom/Spells/HUB/skill_0') |
| 660 | + | BAG_SKILL_3:setTooltip("") |
| 661 | + | BAG_SKILL_3.onMouseRelease = function(widget, mousePos, mouseButton) |
| 662 | + | if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then |
| 663 | + | return |
| 664 | + | elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then |
| 665 | + | return |
| 666 | + | end |
| 667 | + | end |
| 668 | + | end |
| 669 | + | end |
| 670 | + | elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then |
| 671 | + | onAdmMenuItem(04, BAG_SL, SLOT_I) |
| 672 | + | end |
| 673 | + | end |
| 674 | + | else |
| 675 | + | BAG:setIcon('/images/custom/Items/0') |
| 676 | + | BAG:setImageSource('/images/custom/UI/item_slot') |
| 677 | + | BAG:setTooltip('') |
| 678 | + | BAG:setText('') |
| 679 | + | end |
| 680 | + | |
| 681 | + | EXT_BP_1:enable() |
| 682 | + | EXT_BP_1.onClick = function() onOpenBackpack(BAG_SL, 00) end |
| 683 | + | local EXT_BAG = tonumber(t[16]) |
| 684 | + | if EXT_BAG > 00 then |
| 685 | + | EXT_BP_2:setImageSource('/images/custom/UI/backpack_slot') |
| 686 | + | EXT_BP_2:enable() |
| 687 | + | EXT_BP_2.onClick = function() onOpenBackpack(BAG_SL, 01) end |
| 688 | + | else |
| 689 | + | EXT_BP_2:setImageSource('/images/custom/UI/backpack_slot_lock') |
| 690 | + | EXT_BP_2:disable() |
| 691 | + | EXT_BP_2.onClick = function() end |
| 692 | + | end |
| 693 | + | if EXT_BAG > 01 then |
| 694 | + | EXT_BP_3:setImageSource('/images/custom/UI/backpack_slot') |
| 695 | + | EXT_BP_3:enable() |
| 696 | + | EXT_BP_3.onClick = function() onOpenBackpack(BAG_SL, 02) end |
| 697 | + | else |
| 698 | + | EXT_BP_3:setImageSource('/images/custom/UI/backpack_slot_lock') |
| 699 | + | EXT_BP_3:disable() |
| 700 | + | EXT_BP_3.onClick = function() end |
| 701 | + | end |
| 702 | + | if EXT_BAG > 02 then |
| 703 | + | EXT_BP_4:setImageSource('/images/custom/UI/backpack_slot') |
| 704 | + | EXT_BP_4:enable() |
| 705 | + | EXT_BP_4.onClick = function() onOpenBackpack(BAG_SL, 03) end |
| 706 | + | else |
| 707 | + | EXT_BP_4:setImageSource('/images/custom/UI/backpack_slot_lock') |
| 708 | + | EXT_BP_4:disable() |
| 709 | + | EXT_BP_4.onClick = function() end |
| 710 | + | end |
| 711 | + | return |
| 712 | + | end |
| 713 | + | end |
| 714 | + | if string.find(text, "@AdmPanel") then |
| 715 | + | local t = string.explode(text, " ") |
| 716 | + | onHideWindows() |
| 717 | + | if t[02] then |
| 718 | + | if tonumber(t[02]) == 01 then |
| 719 | + | loadPanel:setVisible(false) |
| 720 | + | playerInfo:setVisible(true) |
| 721 | + | playerPanel:setVisible(true) |
| 722 | + | |
| 723 | + | GOLD_TEXT:setText(mask_number(tonumber(t[03]))) |
| 724 | + | ONLI_TEXT:setText(mask_number(tonumber(t[04]))) |
| 725 | + | if tonumber(t[05]) == 01 then |
| 726 | + | PLAYER_STATUS_ON:setText('Online') |
| 727 | + | PLAYER_STATUS_ON:setColor('green') |
| 728 | + | else |
| 729 | + | PLAYER_STATUS_ON:setText('Offline') |
| 730 | + | PLAYER_STATUS_ON:setColor('red') |
| 731 | + | end |
| 732 | + | playerName:enable() |
| 733 | + | searchButton:enable() |
| 734 | + | return |
| 735 | + | else |
| 736 | + | for X = 01, 09 do |
| 737 | + | SLOT = admPanel:recursiveGetChildById('SlotInv_' ..X) |
| 738 | + | SLOT:setIcon('/images/custom/Items/0') |
| 739 | + | SLOT:setImageSource(EMPTY[X]) |
| 740 | + | SLOT.onMouseRelease = function(widget, mousePos, mouseButton) |
| 741 | + | if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then |
| 742 | + | return |
| 743 | + | elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then |
| 744 | + | return |
| 745 | + | end |
| 746 | + | end |
| 747 | + | end |
| 748 | + | SKILL_1:setImageSource('/images/custom/Spells/HUB/skill_0') |
| 749 | + | SKILL_2:setImageSource('/images/custom/Spells/HUB/skill_0') |
| 750 | + | SKILL_3:setImageSource('/images/custom/Spells/HUB/skill_0') |
| 751 | + | SKILL_1:setTooltip("") |
| 752 | + | SKILL_2:setTooltip("") |
| 753 | + | SKILL_3:setTooltip("") |
| 754 | + | SKILL_1.onMouseRelease = function(widget, mousePos, mouseButton) |
| 755 | + | if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then |
| 756 | + | return |
| 757 | + | elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then |
| 758 | + | return |
| 759 | + | end |
| 760 | + | end |
| 761 | + | SKILL_2.onMouseRelease = function(widget, mousePos, mouseButton) |
| 762 | + | if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then |
| 763 | + | return |
| 764 | + | elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then |
| 765 | + | return |
| 766 | + | end |
| 767 | + | end |
| 768 | + | SKILL_3.onMouseRelease = function(widget, mousePos, mouseButton) |
| 769 | + | if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then |
| 770 | + | return |
| 771 | + | elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then |
| 772 | + | return |
| 773 | + | end |
| 774 | + | end |
| 775 | + | loadPanel:setVisible(false) |
| 776 | + | playerInfo:setVisible(false) |
| 777 | + | playerPanel:setVisible(false) |
| 778 | + | |
| 779 | + | playerName:enable() |
| 780 | + | searchButton:enable() |
| 781 | + | admPanel:show() |
| 782 | + | end |
| 783 | + | else |
| 784 | + | if admPanel:isVisible() then |
| 785 | + | admPanel:hide() |
| 786 | + | else |
| 787 | + | loadPanel:setVisible(false) |
| 788 | + | playerInfo:setVisible(false) |
| 789 | + | playerPanel:setVisible(false) |
| 790 | + | |
| 791 | + | playerName:enable() |
| 792 | + | searchButton:enable() |
| 793 | + | admPanel:show() |
| 794 | + | end |
| 795 | + | end |
| 796 | + | end |
| 797 | + | if string.find(text, "@LinksLoad") then |
| 798 | + | local t = string.explode(text, "-") |
| 799 | + | local INSERT_ID = tonumber(t[02]) |
| 800 | + | if INSERT_ID == 01 then |
| 801 | + | for X = 01, 9999 do |
| 802 | + | CRIPT_DEL = admPanel:recursiveGetChildById('CRIPTCOIN_' ..X) |
| 803 | + | if CRIPT_DEL then |
| 804 | + | CRIPT_DEL:destroy() |
| 805 | + | else |
| 806 | + | break |
| 807 | + | end |
| 808 | + | end |
| 809 | + | end |
| 810 | + | |
| 811 | + | INFO = g_ui.createWidget('UIButton', CriptScrollPanel) |
| 812 | + | INFO:setId('CRIPTCOIN_' ..INSERT_ID) |
| 813 | + | INFO:setImageSource("/images/custom/UI/loot_0") |
| 814 | + | INFO:setMarginTop(03) |
| 815 | + | INFO:setTextAlign(AlignLeft) |
| 816 | + | INFO:setTooltip(tr('Informacoes Adicionais') .. ':\n\n� ID: ' ..t[03].. '\n� AccountID: ' ..t[04].. '\n� Nome: ' ..t[05].. '\n� Email: ' ..t[06].. '\n� Banco: ' ..t[07].. '\n� Criptomoeda: ' ..t[08].. '\n� Pre�o: ' ..t[09].. '\n� Valor: R$ ' ..t[10].. '\n� Status: ' ..t[11].. '\n� OBS: ' ..t[12]) |
| 817 | + | |
| 818 | + | if tonumber(t[11]) == 02 then |
| 819 | + | INFO:setImageSource("/images/custom/UI/loot_3") |
| 820 | + | elseif tonumber(t[11]) == 03 then |
| 821 | + | INFO:setImageSource("/images/custom/UI/loot_5") |
| 822 | + | elseif tonumber(t[11]) == 04 then |
| 823 | + | INFO:setImageSource("/images/custom/UI/loot_1") |
| 824 | + | end |
| 825 | + | |
| 826 | + | INFO_ID = g_ui.createWidget('Label', INFO) |
| 827 | + | INFO_ID:setId('CRIPTID') |
| 828 | + | INFO_ID:setSize({width = 70, height = 25}) |
| 829 | + | INFO_ID:setFont('terminus-10px') |
| 830 | + | INFO_ID:setText("ID: " ..t[03]) |
| 831 | + | INFO_ID:addAnchor(AnchorLeft, 'parent', AnchorLeft) |
| 832 | + | INFO_ID:setColor('white') |
| 833 | + | INFO_ID:setTextAlign(AlignLeft) |
| 834 | + | INFO_ID:setPhantom(true) |
| 835 | + | |
| 836 | + | INFO_EMAIL = g_ui.createWidget('Label', INFO) |
| 837 | + | INFO_EMAIL:setId('CRIPTEMAIL') |
| 838 | + | INFO_EMAIL:setSize({width = 200, height = 25}) |
| 839 | + | INFO_EMAIL:addAnchor(AnchorLeft, 'CRIPTID', AnchorRight) |
| 840 | + | INFO_EMAIL:setText(t[06]) |
| 841 | + | INFO_EMAIL:setFont('terminus-10px') |
| 842 | + | INFO_EMAIL:setColor('white') |
| 843 | + | INFO_EMAIL:setTextAlign(AlignLeft) |
| 844 | + | INFO_EMAIL:setPhantom(true) |
| 845 | + | |
| 846 | + | local VALUE_FORMAT = string.format("%.2f", t[10]) |
| 847 | + | INFO_VALOR = g_ui.createWidget('Label', INFO) |
| 848 | + | INFO_VALOR:setId('CRIPTEVALOR') |
| 849 | + | INFO_VALOR:setSize({width = 60, height = 25}) |
| 850 | + | INFO_VALOR:addAnchor(AnchorLeft, 'CRIPTEMAIL', AnchorRight) |
| 851 | + | INFO_VALOR:setText("R$ " ..VALUE_FORMAT) |
| 852 | + | INFO_VALOR:setFont('terminus-10px') |
| 853 | + | INFO_VALOR:setColor('white') |
| 854 | + | INFO_VALOR:setTextAlign(AlignLeft) |
| 855 | + | INFO_VALOR:setPhantom(true) |
| 856 | + | |
| 857 | + | INFO_BUTTON = g_ui.createWidget('Button', INFO) |
| 858 | + | INFO_BUTTON:setId('STATUS_' ..INSERT_ID) |
| 859 | + | INFO_BUTTON:setSize({width = 120, height = 23}) |
| 860 | + | INFO_BUTTON:addAnchor(AnchorLeft, 'CRIPTEVALOR', AnchorRight) |
| 861 | + | INFO_BUTTON:setMarginLeft(05) |
| 862 | + | INFO_BUTTON:setText('STATUS') |
| 863 | + | INFO_BUTTON.onClick = function() |
| 864 | + | StatusIDEdit = t[03] |
| 865 | + | statusPanel:setText(tr('Pedido ID: ') ..t[03]) |
| 866 | + | if ButtonAct == 01 then |
| 867 | + | statusType:setOption("Em Analise", "01") |
| 868 | + | elseif ButtonAct == 02 then |
| 869 | + | statusType:setOption("Alerta", "02") |
| 870 | + | elseif ButtonAct == 03 then |
| 871 | + | statusType:setOption("Cancelado", "03") |
| 872 | + | elseif ButtonAct == 04 then |
| 873 | + | statusType:setOption("Aprovado", "04") |
| 874 | + | end |
| 875 | + | statusType.onOptionChange = onChangeStatusSortType |
| 876 | + | |
| 877 | + | obsTextEdit:setText(t[12]) |
| 878 | + | statusPanel:raise() |
| 879 | + | statusPanel:focus() |
| 880 | + | statusPanel:show() |
| 881 | + | end |
| 882 | + | end |
| 883 | + | if string.find(text, "@DelLinks") then |
| 884 | + | for X = 01, 9999 do |
| 885 | + | CRIPT_DEL = admPanel:recursiveGetChildById('CRIPTCOIN_' ..X) |
| 886 | + | if CRIPT_DEL then |
| 887 | + | CRIPT_DEL:destroy() |
| 888 | + | else |
| 889 | + | break |
| 890 | + | end |
| 891 | + | end |
| 892 | + | end |
| 893 | + | if string.find(text, "@MonItems") then |
| 894 | + | local t = string.explode(text, "-") |
| 895 | + | local A = tonumber(t[04]) |
| 896 | + | local B = tonumber(t[05]) |
| 897 | + | local C = tonumber(t[06]) |
| 898 | + | local D = tonumber(t[07]) |
| 899 | + | local E = tonumber(t[08]) |
| 900 | + | local F = tonumber(t[09]) |
| 901 | + | local G = tonumber(t[10]) |
| 902 | + | local H = tonumber(t[11]) |
| 903 | + | local I = tonumber(t[12]) |
| 904 | + | local J = tonumber(t[13]) |
| 905 | + | local K = tonumber(t[14]) |
| 906 | + | |
| 907 | + | if A < 00 then A = 00 end |
| 908 | + | if B < 00 then B = 00 end |
| 909 | + | if C < 00 then C = 00 end |
| 910 | + | if D < 00 then D = 00 end |
| 911 | + | if E < 00 then E = 00 end |
| 912 | + | if F < 00 then F = 00 end |
| 913 | + | if G < 00 then G = 00 end |
| 914 | + | if H < 00 then H = 00 end |
| 915 | + | if I < 00 then I = 00 end |
| 916 | + | if J < 00 then J = 00 end |
| 917 | + | if K < 00 then K = 00 end |
| 918 | + | |
| 919 | + | MONITORAMENTO_SEARCH[MONITORA_COUNT].NAME = t[02] |
| 920 | + | MONITORAMENTO_SEARCH[MONITORA_COUNT].SLOT = t[03] |
| 921 | + | MONITORAMENTO_SEARCH[MONITORA_COUNT].UID_1 = SAVE_ID |
| 922 | + | MONITORAMENTO_SEARCH[MONITORA_COUNT].TARGET_1 = A |
| 923 | + | MONITORAMENTO_SEARCH[MONITORA_COUNT].TARGET_2 = B |
| 924 | + | MONITORAMENTO_SEARCH[MONITORA_COUNT].UID_2 = C |
| 925 | + | MONITORAMENTO_SEARCH[MONITORA_COUNT].UID_3 = D |
| 926 | + | MONITORAMENTO_SEARCH[MONITORA_COUNT].UID_4 = E |
| 927 | + | MONITORAMENTO_SEARCH[MONITORA_COUNT].UID_5 = F |
| 928 | + | MONITORAMENTO_SEARCH[MONITORA_COUNT].UID_6 = G |
| 929 | + | MONITORAMENTO_SEARCH[MONITORA_COUNT].UID_7 = H |
| 930 | + | MONITORAMENTO_SEARCH[MONITORA_COUNT].UID_8 = I |
| 931 | + | MONITORAMENTO_SEARCH[MONITORA_COUNT].UID_9 = J |
| 932 | + | MONITORAMENTO_SEARCH[MONITORA_COUNT].UID_10 = K |
| 933 | + | MONITORA_COUNT = MONITORA_COUNT + 01 |
| 934 | + | end |
| 935 | + | if string.find(text, "@LoadMonItems") then |
| 936 | + | local t = string.explode(text, " ") |
| 937 | + | if tonumber(t[02]) == 01 then |
| 938 | + | local QntItemCount = 00 |
| 939 | + | for X = 01, #MONITORAMENTO_SEARCH do |
| 940 | + | if MONITORAMENTO_SEARCH[X].UID_1 > 00 then |
| 941 | + | QntItemCount = QntItemCount + 01 |
| 942 | + | ITEM_SEARCH = g_ui.createWidget('UIButton', MonItensScrollPanel) |
| 943 | + | ITEM_SEARCH:setId("BUSCA_ID" ..X) |
| 944 | + | ITEM_SEARCH:setVisible(true) |
| 945 | + | ITEM_SEARCH:setMarginTop(05) |
| 946 | + | if MONITORAMENTO_SEARCH[X].UID_2 < 01 then |
| 947 | + | ITEM_SEARCH:setImageSource("/images/custom/UI/loot_0") |
| 948 | + | else |
| 949 | + | ITEM_SEARCH:setImageSource("/images/custom/UI/loot_" ..MONITORAMENTO_SEARCH[X].UID_2) |
| 950 | + | end |
| 951 | + | |
| 952 | + | ITEM_IMG = g_ui.createWidget('UIButton', ITEM_SEARCH) |
| 953 | + | ITEM_IMG:setId("ITEM_IMG") |
| 954 | + | ITEM_IMG:setIcon("/images/custom/Items/" ..MONITORAMENTO_SEARCH[X].UID_1) |
| 955 | + | ITEM_IMG:setSize({width = 32, height = 32}) |
| 956 | + | ITEM_IMG:setIconRect('05 00 32 32') |
| 957 | + | ITEM_IMG:addAnchor(AnchorLeft, 'parent', AnchorLeft) |
| 958 | + | ITEM_IMG:addAnchor(AnchorTop, 'parent', AnchorTop) |
| 959 | + | ITEM_IMG:setPhantom(true) |
| 960 | + | |
| 961 | + | ITEM_NAME = g_ui.createWidget('UIButton', ITEM_SEARCH) |
| 962 | + | ITEM_NAME:setId("ITEM_NAME") |
| 963 | + | ITEM_NAME:setText(MONITORAMENTO_SEARCH[X].NAME) |
| 964 | + | ITEM_NAME:setSize({width = 135, height = 20}) |
| 965 | + | ITEM_NAME:addAnchor(AnchorLeft, 'ITEM_IMG', AnchorRight) |
| 966 | + | ITEM_NAME:addAnchor(AnchorTop, 'parent', AnchorTop) |
| 967 | + | ITEM_NAME:setPhantom(true) |
| 968 | + | ITEM_NAME:setMarginRight(15) |
| 969 | + | |
| 970 | + | ITEM_STAR = g_ui.createWidget('UIButton', ITEM_SEARCH) |
| 971 | + | ITEM_STAR:setSize({width = 31, height = 10}) |
| 972 | + | ITEM_STAR:addAnchor(AnchorLeft, 'ITEM_IMG', AnchorRight) |
| 973 | + | ITEM_STAR:addAnchor(AnchorBottom, 'parent', AnchorBottom) |
| 974 | + | ITEM_STAR:setPhantom(true) |
| 975 | + | ITEM_STAR:setMarginLeft(50) |
| 976 | + | ITEM_STAR:setMarginBottom(03) |
| 977 | + | if MONITORAMENTO_SEARCH[X].UID_3 < 01 then |
| 978 | + | ITEM_STAR:setImageSource("/images/custom/UI/star_0") |
| 979 | + | else |
| 980 | + | ITEM_STAR:setImageSource("/images/custom/UI/star_" ..MONITORAMENTO_SEARCH[X].UID_3) |
| 981 | + | end |
| 982 | + | |
| 983 | + | ITEM_SLOT = g_ui.createWidget('UIButton', ITEM_SEARCH) |
| 984 | + | if MON_TYPE == 03 then |
| 985 | + | ITEM_SLOT:setText(MONITORAMENTO_SEARCH[X].SLOT.. " " ..MONITORAMENTO_SEARCH[X].TARGET_1.. " (" ..MONITORAMENTO_SEARCH[X].TARGET_2.. ")\nQuantidade: " ..MONITORAMENTO_SEARCH[X].UID_4) |
| 986 | + | else |
| 987 | + | if MONITORAMENTO_SEARCH[X].SLOT == "Equipado" then |
| 988 | + | ITEM_SLOT:setText(MONITORAMENTO_SEARCH[X].SLOT) |
| 989 | + | else |
| 990 | + | ITEM_SLOT:setText(MONITORAMENTO_SEARCH[X].SLOT.. " " ..MONITORAMENTO_SEARCH[X].TARGET_1.. " (" ..MONITORAMENTO_SEARCH[X].TARGET_2.. ")") |
| 991 | + | end |
| 992 | + | end |
| 993 | + | ITEM_SLOT:setSize({width = 135, height = 25}) |
| 994 | + | ITEM_SLOT:addAnchor(AnchorLeft, 'ITEM_NAME', AnchorRight) |
| 995 | + | ITEM_SLOT:addAnchor(AnchorTop, 'parent', AnchorTop) |
| 996 | + | ITEM_SLOT:setPhantom(true) |
| 997 | + | ITEM_SLOT:setMarginRight(15) |
| 998 | + | |
| 999 | + | ITEM_DEL = g_ui.createWidget('Button', ITEM_SEARCH) |
| 1000 | + | ITEM_DEL:setText('DEL') |
| 1001 | + | ITEM_DEL:setSize({width = 50, height = 22}) |
| 1002 | + | ITEM_DEL:addAnchor(AnchorRight, 'parent', AnchorRight) |
| 1003 | + | ITEM_DEL:addAnchor(AnchorTop, 'parent', AnchorTop) |
| 1004 | + | ITEM_DEL:setMarginRight(05) |
| 1005 | + | ITEM_DEL:setMarginTop(05) |
| 1006 | + | ITEM_DEL.onClick = function(widget) |
| 1007 | + | local yesChoose = function() |
| 1008 | + | g_game.getProtocolGame():sendExtendedOpcode(MONITORANDO_ITEMS, ",02," ..MONITORAMENTO_SEARCH[X].NAME.. "," ..MON_TYPE.. "," ..MONITORAMENTO_SEARCH[X].SLOT.. "," ..MONITORAMENTO_SEARCH[X].TARGET_1.. "," ..MONITORAMENTO_SEARCH[X].TARGET_2) |
| 1009 | + | exitWindow:destroy() |
| 1010 | + | exitWindow = nil |
| 1011 | + | return |
| 1012 | + | end |
| 1013 | + | local noChoose = function() |
| 1014 | + | exitWindow:destroy() |
| 1015 | + | exitWindow = nil |
| 1016 | + | end |
| 1017 | + | if exitWindow ~= nil then |
| 1018 | + | exitWindow:destroy() |
| 1019 | + | exitWindow = nil |
| 1020 | + | end |
| 1021 | + | exitWindow = displayGeneralBox(tr('Destruindo'), tr("Deseja realmente destruir este item?\n\n" ..MONITORAMENTO_SEARCH[X].NAME.. " - ( " ..MONITORAMENTO_SEARCH[X].SLOT.. " " ..MONITORAMENTO_SEARCH[X].TARGET_1.. " (" ..MONITORAMENTO_SEARCH[X].TARGET_2.. ") )"), |
| 1022 | + | { { text=tr('Yes'), callback=yesChoose }, |
| 1023 | + | { text=tr('No'), callback=noChoose }, |
| 1024 | + | anchor=AnchorHorizontalCenter }, yesChoose, noChoose) |
| 1025 | + | end |
| 1026 | + | ITEM_SEARCH.onHoverChange = function(widget, hoverState) |
| 1027 | + | if hoverState then |
| 1028 | + | if MON_TYPE == 1 or MON_TYPE == 7 then |
| 1029 | + | local starr = MONITORAMENTO_SEARCH[X].UID_3 |
| 1030 | + | local rare = MONITORAMENTO_SEARCH[X].UID_2 |
| 1031 | + | local level = MONITORAMENTO_SEARCH[X].UID_5 |
| 1032 | + | local lock = MONITORAMENTO_SEARCH[X].UID_9 |
| 1033 | + | g_tooltip.display("@JOIAS " ..MONITORAMENTO_SEARCH[X].UID_1.. " " ..rare.. " " ..starr.. " 0 " ..level.. " 0 0 0 " ..lock.. " 0") |
| 1034 | + | elseif MON_TYPE == 4 then |
| 1035 | + | local skill_01 = MONITORAMENTO_SEARCH[X].UID_4 |
| 1036 | + | local skill_02 = MONITORAMENTO_SEARCH[X].UID_5 |
| 1037 | + | local skill_03 = MONITORAMENTO_SEARCH[X].UID_6 |
| 1038 | + | local level = MONITORAMENTO_SEARCH[X].UID_7 |
| 1039 | + | local star = MONITORAMENTO_SEARCH[X].UID_3 |
| 1040 | + | local rare = MONITORAMENTO_SEARCH[X].UID_2 |
| 1041 | + | local ammo = MONITORAMENTO_SEARCH[X].UID_10 |
| 1042 | + | local lock = MONITORAMENTO_SEARCH[X].UID_9 |
| 1043 | + | local bonus = MONITORAMENTO_SEARCH[X].UID_8 |
| 1044 | + | g_tooltip.display("@GUN " ..MONITORAMENTO_SEARCH[X].UID_1.. " " ..rare.. " " ..star.. " " ..skill_01.. " " ..skill_02.. " " ..skill_03.. " " ..level.. " " ..bonus.. " " ..lock.. " " ..ammo) |
| 1045 | + | elseif MON_TYPE == 03 then |
| 1046 | + | local qnt = MONITORAMENTO_SEARCH[X].UID_4 |
| 1047 | + | local starr = MONITORAMENTO_SEARCH[X].UID_3 |
| 1048 | + | local rare = MONITORAMENTO_SEARCH[X].UID_2 |
| 1049 | + | local lock = MONITORAMENTO_SEARCH[X].UID_9 |
| 1050 | + | g_tooltip.display("@BAG " ..MONITORAMENTO_SEARCH[X].UID_1.. " " ..rare.. " " ..starr.. " " ..qnt.. " 0 0 0 0 " ..lock.. " 0") |
| 1051 | + | else |
| 1052 | + | local starr = MONITORAMENTO_SEARCH[X].UID_3 |
| 1053 | + | local levell = MONITORAMENTO_SEARCH[X].UID_5 |
| 1054 | + | local atr1 = MONITORAMENTO_SEARCH[X].UID_6 |
| 1055 | + | local atr2 = MONITORAMENTO_SEARCH[X].UID_7 |
| 1056 | + | local rare = MONITORAMENTO_SEARCH[X].UID_2 |
| 1057 | + | local lock = MONITORAMENTO_SEARCH[X].UID_9 |
| 1058 | + | local bonus = MONITORAMENTO_SEARCH[X].UID_8 |
| 1059 | + | g_tooltip.display("@EQUIP " ..MONITORAMENTO_SEARCH[X].UID_1.. " " ..rare.. " " ..starr.. " 0 " ..levell.. " " ..atr1.. " " ..atr2.. " " ..bonus.. " " ..lock.. " 0") |
| 1060 | + | end |
| 1061 | + | else |
| 1062 | + | g_tooltip.hide() |
| 1063 | + | end |
| 1064 | + | end |
| 1065 | + | |
| 1066 | + | end |
| 1067 | + | end |
| 1068 | + | |
| 1069 | + | if MONITORA_COUNT > 10 then |
| 1070 | + | MonRareComboBox:enable() |
| 1071 | + | MonStarComboBox:enable() |
| 1072 | + | else |
| 1073 | + | MON_FILTER_2 = -1 |
| 1074 | + | MON_FILTER_3 = -1 |
| 1075 | + | MonRareComboBox:setOption("All", "-1") |
| 1076 | + | MonRareComboBox:disable() |
| 1077 | + | MonStarComboBox:setOption("All", "-1") |
| 1078 | + | MonStarComboBox:disable() |
| 1079 | + | end |
| 1080 | + | |
| 1081 | + | QntMonItem:setText('Total: ' ..QntItemCount) |
| 1082 | + | LoadImg:hide() |
| 1083 | + | end |
| 1084 | + | if tonumber(t[02]) == 02 then |
| 1085 | + | onMonitoramento(03) |
| 1086 | + | end |
| 1087 | + | end |
| 1088 | + | if string.find(text, "@MonShop") then |
| 1089 | + | local t = string.explode(text, "-") |
| 1090 | + | if tonumber(t[02]) == 01 then |
| 1091 | + | |
| 1092 | + | MONITORAMENTO_SEARCH[MONITORA_COUNT].UID_1 = tonumber(t[03]) -- ID |
| 1093 | + | MONITORAMENTO_SEARCH[MONITORA_COUNT].UID_2 = tonumber(t[04]) -- PLAYER_GUID |
| 1094 | + | MONITORAMENTO_SEARCH[MONITORA_COUNT].UID_3 = tonumber(t[05]) -- CATEGORY |
| 1095 | + | MONITORAMENTO_SEARCH[MONITORA_COUNT].UID_4 = tonumber(t[06]) -- INDEX |
| 1096 | + | MONITORAMENTO_SEARCH[MONITORA_COUNT].NAME = t[07] -- PRODUCT NAME |
| 1097 | + | MONITORA_COUNT = MONITORA_COUNT + 01 |
| 1098 | + | |
| 1099 | + | SHOP_CAT[tonumber(t[05])].UID = SHOP_CAT[tonumber(t[05])].UID + 01 |
| 1100 | + | end |
| 1101 | + | if tonumber(t[02]) == 02 then |
| 1102 | + | for Y = 01, #SHOP_CAT do |
| 1103 | + | CATEGORY = admPanel:recursiveGetChildById('Cat_' ..Y.. '_txt') |
| 1104 | + | CATEGORY:setText(SHOP_CAT[Y].UID) |
| 1105 | + | end |
| 1106 | + | |
| 1107 | + | loadGlobalPanel:hide() |
| 1108 | + | onMonitoramento(09) |
| 1109 | + | end |
| 1110 | + | end |
| 1111 | + | if string.find(text, "@EstimativaCrypt") then |
| 1112 | + | local t = string.explode(text, " ") |
| 1113 | + | estimativaText:setText('Estimativa:\nR$ ' ..mask_number(t[03]).. ' | ' ..mask_number(t[02])) |
| 1114 | + | end |
| 1115 | + | if string.find(text, "@MonitBot") then |
| 1116 | + | local t = string.explode(text, "#") |
| 1117 | + | if tonumber(t[02]) == 01 then |
| 1118 | + | botTextPlayerFollow:setText('???') |
| 1119 | + | botTextPlayerFollow:setColor('white') |
| 1120 | + | AFKText:setColor('white') |
| 1121 | + | AFKText:setText('???') |
| 1122 | + | botTextPlayerClient:setText('???') |
| 1123 | + | botTextPlayerClient:setColor('white') |
| 1124 | + | botTextPlayerBotV8:setText('???') |
| 1125 | + | botTextPlayerBotV8:setColor('white') |
| 1126 | + | botTextPlayerAutoCura:setText('???') |
| 1127 | + | botTextPlayerAutoCura:setColor('white') |
| 1128 | + | if tonumber(t[03]) == 01 then |
| 1129 | + | botTextPlayerBotV8:setText('true') |
| 1130 | + | botTextPlayerBotV8:setColor('green') |
| 1131 | + | else |
| 1132 | + | botTextPlayerBotV8:setText('false') |
| 1133 | + | botTextPlayerBotV8:setColor('red') |
| 1134 | + | end |
| 1135 | + | if tonumber(t[04]) == 01 then |
| 1136 | + | botTextPlayerClient:setText('Android') |
| 1137 | + | else |
| 1138 | + | botTextPlayerClient:setText('PC') |
| 1139 | + | end |
| 1140 | + | if tonumber(t[05]) == 01 then |
| 1141 | + | botTextPlayerFollow:setText('true') |
| 1142 | + | botTextPlayerFollow:setColor('green') |
| 1143 | + | else |
| 1144 | + | botTextPlayerFollow:setText('false') |
| 1145 | + | botTextPlayerFollow:setColor('red') |
| 1146 | + | end |
| 1147 | + | if AFK_COUNT > 00 then |
| 1148 | + | AFK_COUNT = AFK_COUNT + 01 |
| 1149 | + | AFKText:setColor('green') |
| 1150 | + | AFKText:setText('Time: ' ..AFK_COUNT) |
| 1151 | + | else |
| 1152 | + | AFKText:setColor('white') |
| 1153 | + | AFKText:setText('???') |
| 1154 | + | end |
| 1155 | + | elseif tonumber(t[02]) == 02 then |
| 1156 | + | if tonumber(t[05]) == 01 then |
| 1157 | + | botTextPlayerBotV8:setText('true') |
| 1158 | + | botTextPlayerBotV8:setColor('green') |
| 1159 | + | else |
| 1160 | + | botTextPlayerBotV8:setText('false') |
| 1161 | + | botTextPlayerBotV8:setColor('red') |
| 1162 | + | end |
| 1163 | + | if tonumber(t[06]) == 01 then |
| 1164 | + | botTextPlayerFollow:setText('false') |
| 1165 | + | botTextPlayerFollow:setColor('red') |
| 1166 | + | elseif tonumber(t[06]) == 00 then |
| 1167 | + | botTextPlayerFollow:setText('true') |
| 1168 | + | botTextPlayerFollow:setColor('green') |
| 1169 | + | else |
| 1170 | + | botTextPlayerFollow:setText('???') |
| 1171 | + | botTextPlayerFollow:setColor('white') |
| 1172 | + | end |
| 1173 | + | if AFK_COUNT > 00 then |
| 1174 | + | AFK_COUNT = AFK_COUNT + 01 |
| 1175 | + | AFKText:setColor('green') |
| 1176 | + | AFKText:setText('Time: ' ..AFK_COUNT) |
| 1177 | + | elseif AFK_COUNT == -1 then |
| 1178 | + | AFKText:setColor('green') |
| 1179 | + | AFKText:setText('true') |
| 1180 | + | else |
| 1181 | + | AFKText:setColor('white') |
| 1182 | + | AFKText:setText('???') |
| 1183 | + | end |
| 1184 | + | if tonumber(t[07]) == 01 then |
| 1185 | + | botTextPlayerAutoCura:setText('false') |
| 1186 | + | botTextPlayerAutoCura:setColor('red') |
| 1187 | + | elseif tonumber(t[07]) == 00 then |
| 1188 | + | botTextPlayerAutoCura:setText('true') |
| 1189 | + | botTextPlayerAutoCura:setColor('green') |
| 1190 | + | else |
| 1191 | + | botTextPlayerAutoCura:setText('???') |
| 1192 | + | botTextPlayerAutoCura:setColor('white') |
| 1193 | + | end |
| 1194 | + | |
| 1195 | + | botBanDesc:focus() |
| 1196 | + | onMonitoramento(11, tonumber(t[03]), tonumber(t[04])) |
| 1197 | + | elseif tonumber(t[02]) == 04 then |
| 1198 | + | onMonitoramento(10, 01) |
| 1199 | + | elseif tonumber(t[02]) == 05 then |
| 1200 | + | AFK_COUNT = -1 |
| 1201 | + | sendMessageAFK:enable() |
| 1202 | + | return |
| 1203 | + | elseif tonumber(t[02]) == 06 then |
| 1204 | + | onMonitoramento(12) |
| 1205 | + | return |
| 1206 | + | else |
| 1207 | + | botTextPlayerFollow:setText('???') |
| 1208 | + | botTextPlayerFollow:setColor('red') |
| 1209 | + | AFKText:setColor('red') |
| 1210 | + | AFKText:setText('???') |
| 1211 | + | botTextPlayerClient:setText(tr('Desconhecido')) |
| 1212 | + | botTextPlayerClient:setColor('red') |
| 1213 | + | botTextPlayerBotV8:setText('???') |
| 1214 | + | botTextPlayerBotV8:setColor('red') |
| 1215 | + | botTextPlayerAutoCura:setText('???') |
| 1216 | + | botTextPlayerAutoCura:setColor('red') |
| 1217 | + | sendMessageAFK:disable() |
| 1218 | + | banPanel:hide() |
| 1219 | + | end |
| 1220 | + | end |
| 1221 | + | if string.find(text, "@MonitMsg") then |
| 1222 | + | local t = string.explode(text, "|") |
| 1223 | + | if tonumber(t[02]) == 00 then |
| 1224 | + | local ID = tonumber(t[03]) |
| 1225 | + | if tonumber(t[03]) == 01 then |
| 1226 | + | for X = 01, #CAIXA_MENSAGEM do |
| 1227 | + | CAIXA_MENSAGEM[X].ID = 00 |
| 1228 | + | CAIXA_MENSAGEM[X].TYPE = 00 |
| 1229 | + | CAIXA_MENSAGEM[X].PLAYER_ID = 00 |
| 1230 | + | CAIXA_MENSAGEM[X].NAME = "" |
| 1231 | + | CAIXA_MENSAGEM[X].TARGET_ID = 00 |
| 1232 | + | CAIXA_MENSAGEM[X].TARGET_NAME = "" |
| 1233 | + | CAIXA_MENSAGEM[X].TITLE = "" |
| 1234 | + | CAIXA_MENSAGEM[X].MESSAGEM = "" |
| 1235 | + | CAIXA_MENSAGEM[X].RESPOSTA = "" |
| 1236 | + | CAIXA_MENSAGEM[X].BOX_1 = "" |
| 1237 | + | CAIXA_MENSAGEM[X].BOX_2 = "" |
| 1238 | + | CAIXA_MENSAGEM[X].BOX_3 = "" |
| 1239 | + | CAIXA_MENSAGEM[X].BOX_4 = "" |
| 1240 | + | CAIXA_MENSAGEM[X].GOLD = 00 |
| 1241 | + | CAIXA_MENSAGEM[X].VIP = 00 |
| 1242 | + | CAIXA_MENSAGEM[X].LIDA = 00 |
| 1243 | + | CAIXA_MENSAGEM[X].BOX_CHECK = 00 |
| 1244 | + | CAIXA_MENSAGEM[X].DEL_MSG = 00 |
| 1245 | + | CAIXA_MENSAGEM[X].DEL_RESP = 00 |
| 1246 | + | end |
| 1247 | + | |
| 1248 | + | CAIXA_MSG_ID = 01 |
| 1249 | + | end |
| 1250 | + | |
| 1251 | + | CAIXA_MENSAGEM[CAIXA_MSG_ID].ID = tonumber(t[04]) |
| 1252 | + | CAIXA_MENSAGEM[CAIXA_MSG_ID].TYPE = tonumber(t[05]) |
| 1253 | + | CAIXA_MENSAGEM[CAIXA_MSG_ID].PLAYER_ID = tonumber(t[06]) |
| 1254 | + | CAIXA_MENSAGEM[CAIXA_MSG_ID].NAME = t[07] |
| 1255 | + | CAIXA_MENSAGEM[CAIXA_MSG_ID].TARGET_ID = tonumber(t[08]) |
| 1256 | + | CAIXA_MENSAGEM[CAIXA_MSG_ID].TARGET_NAME = t[09] |
| 1257 | + | CAIXA_MENSAGEM[CAIXA_MSG_ID].TITLE = t[10] |
| 1258 | + | CAIXA_MENSAGEM[CAIXA_MSG_ID].MESSAGEM = t[11] |
| 1259 | + | CAIXA_MENSAGEM[CAIXA_MSG_ID].RESPOSTA = t[12] |
| 1260 | + | CAIXA_MENSAGEM[CAIXA_MSG_ID].BOX_1 = t[13] |
| 1261 | + | CAIXA_MENSAGEM[CAIXA_MSG_ID].BOX_2 = t[14] |
| 1262 | + | CAIXA_MENSAGEM[CAIXA_MSG_ID].BOX_3 = t[15] |
| 1263 | + | CAIXA_MENSAGEM[CAIXA_MSG_ID].BOX_4 = t[16] |
| 1264 | + | CAIXA_MENSAGEM[CAIXA_MSG_ID].GOLD = tonumber(t[17]) |
| 1265 | + | CAIXA_MENSAGEM[CAIXA_MSG_ID].VIP = tonumber(t[18]) |
| 1266 | + | CAIXA_MENSAGEM[CAIXA_MSG_ID].LIDA = tonumber(t[19]) |
| 1267 | + | CAIXA_MENSAGEM[CAIXA_MSG_ID].BOX_CHECK = tonumber(t[20]) |
| 1268 | + | CAIXA_MENSAGEM[CAIXA_MSG_ID].DEL_MSG = tonumber(t[21]) |
| 1269 | + | CAIXA_MENSAGEM[CAIXA_MSG_ID].DEL_RESP = tonumber(t[22]) |
| 1270 | + | |
| 1271 | + | CAIXA_MSG_ID = CAIXA_MSG_ID + 01 |
| 1272 | + | end |
| 1273 | + | if tonumber(t[02]) == 01 then |
| 1274 | + | for _MSG = 01, #CAIXA_MENSAGEM do |
| 1275 | + | MSG_TYPE = admPanel:recursiveGetChildById('MSG_TYPE_' .._MSG) |
| 1276 | + | if MSG_TYPE then |
| 1277 | + | MSG_TYPE:destroy() |
| 1278 | + | end |
| 1279 | + | end |
| 1280 | + | |
| 1281 | + | sendResposta:disable() |
| 1282 | + | for X = 01, #CAIXA_MENSAGEM do |
| 1283 | + | local MSG_ID = X |
| 1284 | + | if CAIXA_MENSAGEM[MSG_ID].ID > 00 then |
| 1285 | + | MSG_TYPE = g_ui.createWidget('UIButton', MessageScrollPanel) |
| 1286 | + | MSG_TYPE:setId("MSG_TYPE_" ..MSG_ID) |
| 1287 | + | MSG_TYPE:setImageSource('/images/custom/Task/Monster_1') |
| 1288 | + | MSG_TYPE:setMarginTop(05) |
| 1289 | + | MSG_TYPE:setOpacity(0.8) |
| 1290 | + | MSG_TYPE.onHoverChange = function(widget, hoverState) |
| 1291 | + | if hoverState then |
| 1292 | + | widget:setOpacity('1.0') |
| 1293 | + | else |
| 1294 | + | widget:setOpacity('0.8') |
| 1295 | + | end |
| 1296 | + | end |
| 1297 | + | |
| 1298 | + | MSG_TITLE = g_ui.createWidget('UILabel', MSG_TYPE) |
| 1299 | + | MSG_TITLE:setSize({width = 10, height = 22}) |
| 1300 | + | MSG_TITLE:setText(CAIXA_MENSAGEM[MSG_ID].TITLE) |
| 1301 | + | MSG_TITLE:addAnchor(AnchorLeft, 'parent', AnchorLeft) |
| 1302 | + | MSG_TITLE:addAnchor(AnchorRight, 'parent', AnchorRight) |
| 1303 | + | MSG_TITLE:addAnchor(AnchorTop, 'parent', AnchorTop) |
| 1304 | + | MSG_TITLE:setColor('green') |
| 1305 | + | MSG_TITLE:setMarginTop(05) |
| 1306 | + | MSG_TITLE:setMarginLeft(10) |
| 1307 | + | |
| 1308 | + | MSG_TIPO = g_ui.createWidget('UILabel', MSG_TYPE) |
| 1309 | + | MSG_TIPO:setSize({width = 10, height = 22}) |
| 1310 | + | MSG_TIPO:addAnchor(AnchorLeft, 'parent', AnchorLeft) |
| 1311 | + | MSG_TIPO:addAnchor(AnchorRight, 'parent', AnchorRight) |
| 1312 | + | MSG_TIPO:addAnchor(AnchorTop, 'parent', AnchorTop) |
| 1313 | + | MSG_TIPO:setMarginTop(17) |
| 1314 | + | MSG_TIPO:setMarginLeft(10) |
| 1315 | + | MSG_TIPO:setColor('orange') |
| 1316 | + | if CAIXA_MENSAGEM[MSG_ID].TYPE == 01 then |
| 1317 | + | MSG_TIPO:setText('Bug') |
| 1318 | + | elseif CAIXA_MENSAGEM[MSG_ID].TYPE == 02 then |
| 1319 | + | MSG_TIPO:setText(tr('Sugestao')) |
| 1320 | + | elseif CAIXA_MENSAGEM[MSG_ID].TYPE == 03 then |
| 1321 | + | MSG_TIPO:setText(tr('Duvida')) |
| 1322 | + | else |
| 1323 | + | MSG_TIPO:setText(tr('Desconhecido')) |
| 1324 | + | end |
| 1325 | + | |
| 1326 | + | MSG_PLAYER = g_ui.createWidget('UILabel', MSG_TYPE) |
| 1327 | + | MSG_PLAYER:setSize({width = 10, height = 22}) |
| 1328 | + | MSG_PLAYER:addAnchor(AnchorLeft, 'parent', AnchorLeft) |
| 1329 | + | MSG_PLAYER:addAnchor(AnchorRight, 'parent', AnchorRight) |
| 1330 | + | MSG_PLAYER:addAnchor(AnchorTop, 'parent', AnchorTop) |
| 1331 | + | MSG_PLAYER:setMarginTop(30) |
| 1332 | + | MSG_PLAYER:setMarginLeft(10) |
| 1333 | + | MSG_PLAYER:setText(tr('Enviado: ') ..CAIXA_MENSAGEM[MSG_ID].NAME) |
| 1334 | + | |
| 1335 | + | MSG_TYPE.onClick = function() |
| 1336 | + | if #CAIXA_MENSAGEM[MSG_ID].RESPOSTA > 02 then |
| 1337 | + | sendResposta:disable() |
| 1338 | + | MessageLabel:setTextOffset('10 10') |
| 1339 | + | MessageLabel:setText(CAIXA_MENSAGEM[MSG_ID].TITLE.. "\n______________________________\n\n" ..CAIXA_MENSAGEM[MSG_ID].MESSAGEM) |
| 1340 | + | RespostaLabel:setText(CAIXA_MENSAGEM[MSG_ID].RESPOSTA) |
| 1341 | + | else |
| 1342 | + | MessageLabel:setTextOffset('10 10') |
| 1343 | + | MessageLabel:setText(CAIXA_MENSAGEM[MSG_ID].TITLE.. "\n______________________________\n\n" ..CAIXA_MENSAGEM[MSG_ID].MESSAGEM) |
| 1344 | + | RespostaLabel:enable() |
| 1345 | + | RespostaLabel:focus() |
| 1346 | + | local maxMsg = 250 |
| 1347 | + | local RespostaChance = function(self, value) |
| 1348 | + | local Quant = RespostaLabel:getText() |
| 1349 | + | if #Quant > maxMsg then |
| 1350 | + | local LastStr = string.sub(Quant, 1, maxMsg) |
| 1351 | + | RespostaLabel:setText(LastStr) |
| 1352 | + | return |
| 1353 | + | end |
| 1354 | + | end |
| 1355 | + | RespostaLabel.onTextChange = RespostaChance |
| 1356 | + | |
| 1357 | + | sendResposta:enable() |
| 1358 | + | sendResposta.onClick = function() |
| 1359 | + | if #RespostaLabel:getText() > 05 then |
| 1360 | + | local A = CAIXA_MENSAGEM[MSG_ID].ID |
| 1361 | + | g_game.getProtocolGame():sendExtendedOpcode(MENSAGEM_RESPOSTA, "-1," ..A.. "," ..RespostaLabel:getText().. "," ..CAIXA_MENSAGEM[MSG_ID].NAME.. "," ..CAIXA_MENSAGEM[MSG_ID].PLAYER_ID) |
| 1362 | + | |
| 1363 | + | MessageLabel:focus() |
| 1364 | + | MessageLabel:setText('') |
| 1365 | + | RespostaLabel:setText('') |
| 1366 | + | sendResposta:disable() |
| 1367 | + | else |
| 1368 | + | modules.game_interface.onLoginAdvice(tr("Resposta muito curta.")) |
| 1369 | + | return |
| 1370 | + | end |
| 1371 | + | end |
| 1372 | + | end |
| 1373 | + | end |
| 1374 | + | end |
| 1375 | + | end |
| 1376 | + | end |
| 1377 | + | if tonumber(t[02]) == 02 then |
| 1378 | + | onMensagemResponde(01) |
| 1379 | + | g_game.getProtocolGame():sendExtendedOpcode(MENSAGEM_RESPOSTA, MSG_MONITE_TYPE.. "," ..RESP_MONITE_TYPE) |
| 1380 | + | end |
| 1381 | + | end |
| 1382 | + | end |
| 1383 | + | end |
| 1384 | + | function onGetAdmWindow() |
| 1385 | + | if admPanel:isVisible() then |
| 1386 | + | return true |
| 1387 | + | else |
| 1388 | + | return false |
| 1389 | + | end |
| 1390 | + | end |
| 1391 | + | function onOpenBackpack(slot, ext) |
| 1392 | + | g_game.talk(g_game.talk("/adm " ..TARGET_NAME.. "-03-" ..slot.. "-" ..ext)) |
| 1393 | + | end |
| 1394 | + | function onChangerGoldAdm(act) |
| 1395 | + | local GoldEdt = admPanel:recursiveGetChildById('GoldEdit') |
| 1396 | + | local value = tonumber(GoldEdt:getText()) |
| 1397 | + | if value > 0 then |
| 1398 | + | g_game.talk(g_game.talk("/adm " ..TARGET_NAME.. "-05-" ..value.. "-" ..act)) |
| 1399 | + | GoldEdt:setText('') |
| 1400 | + | else |
| 1401 | + | admPanel:recursiveGetChildById('GoldEdit'):focus() |
| 1402 | + | end |
| 1403 | + | end |
| 1404 | + | function onAdmMenuItem(type, slot, pos, act) |
| 1405 | + | local menu = g_ui.createWidget('PopupMenu') |
| 1406 | + | menu:addOption("Destruir", function() |
| 1407 | + | local yesChoose = function() |
| 1408 | + | if type == 01 then -- INVENTARIO |
| 1409 | + | g_game.talk(g_game.talk("/adm " ..TARGET_NAME.. "-01-" ..slot)) |
| 1410 | + | end |
| 1411 | + | if type == 02 then -- SKILL DA ARMA NO INVENTARIO |
| 1412 | + | g_game.talk(g_game.talk("/adm " ..TARGET_NAME.. "-02-" ..slot)) |
| 1413 | + | end |
| 1414 | + | if type == 04 then -- DESTRUINDO ITEMS DA BACKPACK |
| 1415 | + | g_game.talk(g_game.talk("/adm " ..TARGET_NAME.. "-04-" ..slot.. "-" ..BACKPACK_EXT.. "-" ..pos)) |
| 1416 | + | end |
| 1417 | + | if type == 06 then -- DESTRUINDO SKILL ARMAS DENTRO DA BACKPACK |
| 1418 | + | g_game.talk(g_game.talk("/adm " ..TARGET_NAME.. "-06-" ..slot.. "-" ..BACKPACK_EXT.. "-" ..pos.. "-" ..act)) |
| 1419 | + | end |
| 1420 | + | exitWindow:destroy() |
| 1421 | + | exitWindow = nil |
| 1422 | + | end |
| 1423 | + | local noChoose = function() |
| 1424 | + | exitWindow:destroy() |
| 1425 | + | exitWindow = nil |
| 1426 | + | end |
| 1427 | + | if exitWindow ~= nil then |
| 1428 | + | exitWindow:destroy() |
| 1429 | + | exitWindow = nil |
| 1430 | + | end |
| 1431 | + | exitWindow = displayGeneralBox(tr('Destruindo'), tr("Deseja realmente destruir este item?"), |
| 1432 | + | { { text=tr('Yes'), callback=yesChoose }, |
| 1433 | + | { text=tr('No'), callback=noChoose }, |
| 1434 | + | anchor=AnchorHorizontalCenter }, yesChoose, noChoose) |
| 1435 | + | end) |
| 1436 | + | menu:display() |
| 1437 | + | end |
| 1438 | + | function onMenuTools(type) |
| 1439 | + | local menu = g_ui.createWidget('PopupMenu') |
| 1440 | + | if type == 01 then |
| 1441 | + | menu:addOption("Reiniciar Cliente", function() g_game.talk(g_game.talk("/adm " ..TARGET_NAME.. "-07")) end) |
| 1442 | + | menu:addOption("Fechar Cliente", function() g_game.talk(g_game.talk("/adm " ..TARGET_NAME.. "-08")) end) |
| 1443 | + | end |
| 1444 | + | if type == 02 then |
| 1445 | + | menu:addOption("Regen", function() g_game.talk(g_game.talk("/adm " ..TARGET_NAME.. "-09-01")) end) |
| 1446 | + | menu:addOption("Tanker", function() g_game.talk(g_game.talk("/adm " ..TARGET_NAME.. "-09-02")) end) |
| 1447 | + | menu:addOption("Shooter", function() g_game.talk(g_game.talk("/adm " ..TARGET_NAME.. "-09-03")) end) |
| 1448 | + | menu:addOption("Vital", function() g_game.talk(g_game.talk("/adm " ..TARGET_NAME.. "-09-04")) end) |
| 1449 | + | menu:addOption("Lucky", function() g_game.talk(g_game.talk("/adm " ..TARGET_NAME.. "-09-05")) end) |
| 1450 | + | menu:addOption("Remover", function() g_game.talk(g_game.talk("/adm " ..TARGET_NAME.. "-09-06")) end) |
| 1451 | + | end |
| 1452 | + | if type == 03 then |
| 1453 | + | menu:addOption("Pistola", function() g_game.talk(g_game.talk("/adm " ..TARGET_NAME.. "-10-01")) end) |
| 1454 | + | menu:addOption("Metralhadora", function() g_game.talk(g_game.talk("/adm " ..TARGET_NAME.. "-10-02")) end) |
| 1455 | + | menu:addOption("Espingarda", function() g_game.talk(g_game.talk("/adm " ..TARGET_NAME.. "-10-03")) end) |
| 1456 | + | menu:addOption("Rifle", function() g_game.talk(g_game.talk("/adm " ..TARGET_NAME.. "-10-04")) end) |
| 1457 | + | menu:addOption("Remover", function() g_game.talk(g_game.talk("/adm " ..TARGET_NAME.. "-10-05")) end) |
| 1458 | + | end |
| 1459 | + | menu:display() |
| 1460 | + | end |
| 1461 | + | function onHideWindows() |
| 1462 | + | loadGlobalPanel:hide() |
| 1463 | + | mensagemPanel:hide() |
| 1464 | + | statusPanel:hide() |
| 1465 | + | loadPanel:hide() |
| 1466 | + | playerPanel:hide() |
| 1467 | + | blackPanel:hide() |
| 1468 | + | criptomoedaPanel:hide() |
| 1469 | + | MonitoramentoPanel:hide() |
| 1470 | + | monItemPanel:hide() |
| 1471 | + | monShopPanel:hide() |
| 1472 | + | monBotPanel:hide() |
| 1473 | + | |
| 1474 | + | for X = 01, 9999 do |
| 1475 | + | CRIPT_DEL = admPanel:recursiveGetChildById('CRIPTCOIN_' ..X) |
| 1476 | + | if CRIPT_DEL then |
| 1477 | + | CRIPT_DEL:destroy() |
| 1478 | + | else |
| 1479 | + | break |
| 1480 | + | end |
| 1481 | + | end |
| 1482 | + | end |
| 1483 | + | |
| 1484 | + | function onMonitoramento(step, value, type) |
| 1485 | + | if not g_game.isOnline() then |
| 1486 | + | return |
| 1487 | + | end |
| 1488 | + | if step > 00 and step < 10 then |
| 1489 | + | if ONLY_FRENESY then |
| 1490 | + | local localPlayer = g_game.getLocalPlayer() |
| 1491 | + | if localPlayer:getName() ~= GOD_NAME then |
| 1492 | + | modules.game_interface.onLoginAdvice("Acesso negado.") |
| 1493 | + | return |
| 1494 | + | end |
| 1495 | + | end |
| 1496 | + | end |
| 1497 | + | |
| 1498 | + | if step == 00 then |
| 1499 | + | onHideWindows() |
| 1500 | + | monShopPanel:hide() |
| 1501 | + | MonitoramentoPanel:show() |
| 1502 | + | end |
| 1503 | + | if step == 01 then |
| 1504 | + | for X = 01, #MONITORAMENTO_SEARCH do |
| 1505 | + | BUSCA_ID = admPanel:recursiveGetChildById('BUSCA_ID' ..X) |
| 1506 | + | if BUSCA_ID then |
| 1507 | + | BUSCA_ID:destroy() |
| 1508 | + | else |
| 1509 | + | break |
| 1510 | + | end |
| 1511 | + | end |
| 1512 | + | |
| 1513 | + | MON_TYPE = 01 |
| 1514 | + | LoadImg:hide() |
| 1515 | + | monShopPanel:hide() |
| 1516 | + | monBotPanel:hide() |
| 1517 | + | monItemPanel:show() |
| 1518 | + | |
| 1519 | + | MON_FILTER_1 = 01 |
| 1520 | + | MonTypeComboBox:enable() |
| 1521 | + | MonTypeComboBox:setOption("Amuletos", "01") |
| 1522 | + | |
| 1523 | + | MON_FILTER_2 = -1 |
| 1524 | + | MonRareComboBox:disable() |
| 1525 | + | MonRareComboBox:setOption("All", "-1") |
| 1526 | + | |
| 1527 | + | MON_FILTER_3 = -1 |
| 1528 | + | MonStarComboBox:disable() |
| 1529 | + | MonStarComboBox:setOption("All", "-1") |
| 1530 | + | |
| 1531 | + | MON_FILTER_4 = 00 |
| 1532 | + | MonGunComboBox:setOption("Espingarda", "00") |
| 1533 | + | MonGunComboBox:disable() |
| 1534 | + | |
| 1535 | + | MonDayText:setText('') |
| 1536 | + | |
| 1537 | + | BUSCAR_MES = 00 |
| 1538 | + | MonMonthComboBox:setOption("All", "00") |
| 1539 | + | |
| 1540 | + | BUSCAR_ANO = 00 |
| 1541 | + | MonYearComboBox:setOption("All", "00") |
| 1542 | + | |
| 1543 | + | QntMonItem:setText('Total: 0') |
| 1544 | + | MonItemPesquisar:disable() |
| 1545 | + | onMonitoramento(04) |
| 1546 | + | end |
| 1547 | + | if step == 02 then |
| 1548 | + | for D = 01, 12 do |
| 1549 | + | shopMonButton = admPanel:recursiveGetChildById('Cat_' ..D) |
| 1550 | + | shopMonButton:disable() |
| 1551 | + | end |
| 1552 | + | end |
| 1553 | + | if step == 03 then |
| 1554 | + | LoadImg:show() |
| 1555 | + | if MonDayText:getText() ~= "" then |
| 1556 | + | if tonumber(MonDayText:getText()) > 00 and tonumber(MonDayText:getText()) <= 31 then |
| 1557 | + | if tonumber(BUSCAR_MES) > 00 and tonumber(BUSCAR_ANO) > 00 then |
| 1558 | + | if tonumber(BUSCAR_MES) < 10 then |
| 1559 | + | BUSCAR_MES = '0' ..tonumber(BUSCAR_MES) |
| 1560 | + | end |
| 1561 | + | BUSCAR_TEXT_COMPLET = MonDayText:getText().. "" ..BUSCAR_MES.. ""..BUSCAR_ANO |
| 1562 | + | for X = 01, #MONITORAMENTO_SEARCH do |
| 1563 | + | BUSCA_ID = admPanel:recursiveGetChildById('BUSCA_ID' ..X) |
| 1564 | + | if BUSCA_ID then |
| 1565 | + | BUSCA_ID:destroy() |
| 1566 | + | end |
| 1567 | + | |
| 1568 | + | MONITORAMENTO_SEARCH[X].NAME = '' |
| 1569 | + | MONITORAMENTO_SEARCH[X].SLOT = '' |
| 1570 | + | MONITORAMENTO_SEARCH[X].TARGET_1 = 0 |
| 1571 | + | MONITORAMENTO_SEARCH[X].TARGET_2 = 0 |
| 1572 | + | MONITORAMENTO_SEARCH[X].UID_1 = 0 |
| 1573 | + | MONITORAMENTO_SEARCH[X].UID_2 = 0 |
| 1574 | + | MONITORAMENTO_SEARCH[X].UID_3 = 0 |
| 1575 | + | MONITORAMENTO_SEARCH[X].UID_4 = 0 |
| 1576 | + | MONITORAMENTO_SEARCH[X].UID_5 = 0 |
| 1577 | + | MONITORAMENTO_SEARCH[X].UID_6 = 0 |
| 1578 | + | MONITORAMENTO_SEARCH[X].UID_7 = 0 |
| 1579 | + | MONITORAMENTO_SEARCH[X].UID_8 = 0 |
| 1580 | + | MONITORAMENTO_SEARCH[X].UID_9 = 0 |
| 1581 | + | MONITORAMENTO_SEARCH[X].UID_10 = 0 |
| 1582 | + | end |
| 1583 | + | |
| 1584 | + | MONITORA_COUNT = 01 |
| 1585 | + | g_game.getProtocolGame():sendExtendedOpcode(MONITORANDO_ITEMS, ",05," ..SAVE_ID.. "," ..MON_TYPE.. "," ..BUSCAR_TEXT_COMPLET) |
| 1586 | + | return |
| 1587 | + | else |
| 1588 | + | MonDayText:setText('') |
| 1589 | + | |
| 1590 | + | BUSCAR_MES = 00 |
| 1591 | + | MonMonthComboBox:setOption("All", "00") |
| 1592 | + | |
| 1593 | + | BUSCAR_ANO = 00 |
| 1594 | + | MonYearComboBox:setOption("All", "00") |
| 1595 | + | end |
| 1596 | + | else |
| 1597 | + | MonDayText:setText('') |
| 1598 | + | |
| 1599 | + | BUSCAR_MES = 00 |
| 1600 | + | MonMonthComboBox:setOption("All", "00") |
| 1601 | + | |
| 1602 | + | BUSCAR_ANO = 00 |
| 1603 | + | MonYearComboBox:setOption("All", "00") |
| 1604 | + | end |
| 1605 | + | else |
| 1606 | + | MonDayText:setText('') |
| 1607 | + | |
| 1608 | + | BUSCAR_MES = 00 |
| 1609 | + | MonMonthComboBox:setOption("All", "00") |
| 1610 | + | |
| 1611 | + | BUSCAR_ANO = 00 |
| 1612 | + | MonYearComboBox:setOption("All", "00") |
| 1613 | + | end |
| 1614 | + | if MON_FILTER_2 > -1 or MON_FILTER_3 > -1 then |
| 1615 | + | onMonitoramento(06) |
| 1616 | + | return |
| 1617 | + | end |
| 1618 | + | for X = 01, #MONITORAMENTO_SEARCH do |
| 1619 | + | BUSCA_ID = admPanel:recursiveGetChildById('BUSCA_ID' ..X) |
| 1620 | + | if BUSCA_ID then |
| 1621 | + | BUSCA_ID:destroy() |
| 1622 | + | end |
| 1623 | + | |
| 1624 | + | MONITORAMENTO_SEARCH[X].NAME = '' |
| 1625 | + | MONITORAMENTO_SEARCH[X].SLOT = '' |
| 1626 | + | MONITORAMENTO_SEARCH[X].TARGET_1 = 0 |
| 1627 | + | MONITORAMENTO_SEARCH[X].TARGET_2 = 0 |
| 1628 | + | MONITORAMENTO_SEARCH[X].UID_1 = 0 |
| 1629 | + | MONITORAMENTO_SEARCH[X].UID_2 = 0 |
| 1630 | + | MONITORAMENTO_SEARCH[X].UID_3 = 0 |
| 1631 | + | MONITORAMENTO_SEARCH[X].UID_4 = 0 |
| 1632 | + | MONITORAMENTO_SEARCH[X].UID_5 = 0 |
| 1633 | + | MONITORAMENTO_SEARCH[X].UID_6 = 0 |
| 1634 | + | MONITORAMENTO_SEARCH[X].UID_7 = 0 |
| 1635 | + | MONITORAMENTO_SEARCH[X].UID_8 = 0 |
| 1636 | + | MONITORAMENTO_SEARCH[X].UID_9 = 0 |
| 1637 | + | MONITORAMENTO_SEARCH[X].UID_10 = 0 |
| 1638 | + | end |
| 1639 | + | |
| 1640 | + | MONITORA_COUNT = 01 |
| 1641 | + | g_game.getProtocolGame():sendExtendedOpcode(MONITORANDO_ITEMS, ",01," ..SAVE_ID.. "," ..MON_TYPE.. "," ..MON_FILTER_1.. "," ..MON_FILTER_2.. "," ..MON_FILTER_3.. "," ..MON_FILTER_4) |
| 1642 | + | return |
| 1643 | + | end |
| 1644 | + | if step == 04 then |
| 1645 | + | local ITEM_INFO = { |
| 1646 | + | [01] = {1000, 1022}, |
| 1647 | + | [02] = {2000, 2024}, |
| 1648 | + | [03] = {3000, 3298}, |
| 1649 | + | [04] = { |
| 1650 | + | [00] = {4000, 4004}, -- ESPINGARDA |
| 1651 | + | [01] = {4031, 4049}, -- METRALHADORA |
| 1652 | + | [02] = {4005, 4014}, -- RIFLE |
| 1653 | + | [03] = {4015, 4030}, -- PISTOLA |
| 1654 | + | }, |
| 1655 | + | [05] = {5000, 5048}, |
| 1656 | + | [06] = {6000, 6023}, |
| 1657 | + | [07] = {7000, 7014}, |
| 1658 | + | [08] = {8000, 8024}, |
| 1659 | + | [09] = {9000, 9020}, |
| 1660 | + | } |
| 1661 | + | |
| 1662 | + | RASTREAR_ID = 00 |
| 1663 | + | for X = 01, 999 do |
| 1664 | + | ITEM_SPR = admPanel:recursiveGetChildById('ITEM_SPR_' ..X) |
| 1665 | + | if ITEM_SPR then |
| 1666 | + | ITEM_SPR:destroy() |
| 1667 | + | else |
| 1668 | + | break |
| 1669 | + | end |
| 1670 | + | end |
| 1671 | + | if MON_TYPE == 04 then |
| 1672 | + | for ITEM_ID = ITEM_INFO[MON_TYPE][MON_FILTER_4][01], ITEM_INFO[MON_TYPE][MON_FILTER_4][02] do |
| 1673 | + | RASTREAR_ID = RASTREAR_ID + 01 |
| 1674 | + | ITEM_BG = g_ui.createWidget('UIButton', ListItensScrollPanel) |
| 1675 | + | ITEM_BG:setId("ITEM_SPR_" ..RASTREAR_ID) |
| 1676 | + | ITEM_BG:setImageSource("/images/custom/UI/item_slot") |
| 1677 | + | ITEM_BG:setSize({width = 42, height = 43}) |
| 1678 | + | ITEM_BG:setImageRect('00 00 42 43') |
| 1679 | + | ITEM_BG:setMarginTop(05) |
| 1680 | + | ITEM_BG:setBorderWidth(0) |
| 1681 | + | ITEM_BG:setBorderColor("white") |
| 1682 | + | |
| 1683 | + | ITEM_SPR = g_ui.createWidget('UIButton', ITEM_BG) |
| 1684 | + | ITEM_SPR:setIcon("/images/custom/Items/" ..ITEM_ID) |
| 1685 | + | ITEM_SPR:setSize({width = 32, height = 32}) |
| 1686 | + | ITEM_SPR:setIconRect('05 05 32 32') |
| 1687 | + | ITEM_SPR:addAnchor(AnchorLeft, 'parent', AnchorLeft) |
| 1688 | + | ITEM_SPR:addAnchor(AnchorTop, 'parent', AnchorTop) |
| 1689 | + | ITEM_SPR:setPhantom(true) |
| 1690 | + | |
| 1691 | + | ITEM_BG:setTooltip("@INVGUN " ..ITEM_ID.. " 0 0 0 0 0 0 0 0 0") |
| 1692 | + | ITEM_BG.onClick = function(widget) |
| 1693 | + | if widget:getBorderTopWidth() == 0 then |
| 1694 | + | SAVE_ID = ITEM_ID |
| 1695 | + | onMonitoramento(05) |
| 1696 | + | widget:setBorderWidth(2) |
| 1697 | + | widget:setBorderColor("yellow") |
| 1698 | + | MonItemPesquisar:enable() |
| 1699 | + | else |
| 1700 | + | SAVE_ID = 00 |
| 1701 | + | widget:setBorderWidth(0) |
| 1702 | + | widget:setBorderColor("white") |
| 1703 | + | MonItemPesquisar:disable() |
| 1704 | + | end |
| 1705 | + | end |
| 1706 | + | end |
| 1707 | + | else |
| 1708 | + | for ITEM_ID = ITEM_INFO[MON_TYPE][01], ITEM_INFO[MON_TYPE][02] do |
| 1709 | + | RASTREAR_ID = RASTREAR_ID + 01 |
| 1710 | + | ITEM_BG = g_ui.createWidget('UIButton', ListItensScrollPanel) |
| 1711 | + | ITEM_BG:setId("ITEM_SPR_" ..RASTREAR_ID) |
| 1712 | + | ITEM_BG:setImageSource("/images/custom/UI/item_slot") |
| 1713 | + | ITEM_BG:setSize({width = 42, height = 43}) |
| 1714 | + | ITEM_BG:setImageRect('00 00 42 43') |
| 1715 | + | ITEM_BG:setMarginTop(05) |
| 1716 | + | ITEM_BG:setBorderWidth(0) |
| 1717 | + | ITEM_BG:setBorderColor("white") |
| 1718 | + | |
| 1719 | + | ITEM_SPR = g_ui.createWidget('UIButton', ITEM_BG) |
| 1720 | + | ITEM_SPR:setIcon("/images/custom/Items/" ..ITEM_ID) |
| 1721 | + | ITEM_SPR:setSize({width = 32, height = 32}) |
| 1722 | + | ITEM_SPR:setIconRect('05 05 32 32') |
| 1723 | + | ITEM_SPR:addAnchor(AnchorLeft, 'parent', AnchorLeft) |
| 1724 | + | ITEM_SPR:addAnchor(AnchorTop, 'parent', AnchorTop) |
| 1725 | + | ITEM_SPR:setPhantom(true) |
| 1726 | + | |
| 1727 | + | if MON_TYPE == 01 then |
| 1728 | + | ITEM_BG:setTooltip("@JOIAS " ..ITEM_ID.. " 0 0 0 0 0 0 0 0 0") |
| 1729 | + | elseif MON_TYPE == 02 then |
| 1730 | + | ITEM_BG:setTooltip("@EQUIP " ..ITEM_ID.. " 0 0 0 0 0 0 0 0 0") |
| 1731 | + | elseif MON_TYPE == 03 then |
| 1732 | + | ITEM_BG:setTooltip("@JOIAS " ..ITEM_ID.. " 0 0 0 0 0 0 0 0 0") |
| 1733 | + | elseif MON_TYPE == 05 then |
| 1734 | + | ITEM_BG:setTooltip("@EQUIP " ..ITEM_ID.. " 0 0 0 0 0 0 0 0 0") |
| 1735 | + | elseif MON_TYPE == 06 then |
| 1736 | + | ITEM_BG:setTooltip("@EQUIP " ..ITEM_ID.. " 0 0 0 0 0 0 0 0 0") |
| 1737 | + | elseif MON_TYPE == 07 then |
| 1738 | + | ITEM_BG:setTooltip("@JOIAS " ..ITEM_ID.. " 0 0 0 0 0 0 0 0 0") |
| 1739 | + | elseif MON_TYPE == 08 then |
| 1740 | + | ITEM_BG:setTooltip("@EQUIP " ..ITEM_ID.. " 0 0 0 0 0 0 0 0 0") |
| 1741 | + | elseif MON_TYPE == 09 then |
| 1742 | + | ITEM_BG:setTooltip("@EQUIP " ..ITEM_ID.. " 0 0 0 0 0 0 0 0 0") |
| 1743 | + | end |
| 1744 | + | |
| 1745 | + | ITEM_BG.onClick = function(widget) |
| 1746 | + | if widget:getBorderTopWidth() == 0 then |
| 1747 | + | SAVE_ID = ITEM_ID |
| 1748 | + | onMonitoramento(05) |
| 1749 | + | widget:setBorderWidth(2) |
| 1750 | + | widget:setBorderColor("yellow") |
| 1751 | + | MonItemPesquisar:enable() |
| 1752 | + | else |
| 1753 | + | SAVE_ID = 00 |
| 1754 | + | widget:setBorderWidth(0) |
| 1755 | + | widget:setBorderColor("white") |
| 1756 | + | MonItemPesquisar:disable() |
| 1757 | + | end |
| 1758 | + | end |
| 1759 | + | end |
| 1760 | + | end |
| 1761 | + | end |
| 1762 | + | if step == 05 then |
| 1763 | + | for X = 01, RASTREAR_ID do |
| 1764 | + | ITEM_SPR = admPanel:recursiveGetChildById('ITEM_SPR_' ..X) |
| 1765 | + | if ITEM_SPR:getBorderTopWidth() > 00 then |
| 1766 | + | ITEM_SPR:setBorderWidth(0) |
| 1767 | + | ITEM_SPR:setBorderColor("white") |
| 1768 | + | end |
| 1769 | + | end |
| 1770 | + | |
| 1771 | + | MON_FILTER_2 = -1 |
| 1772 | + | MonRareComboBox:disable() |
| 1773 | + | MonRareComboBox:setOption("All", "-1") |
| 1774 | + | |
| 1775 | + | MON_FILTER_3 = -1 |
| 1776 | + | MonStarComboBox:disable() |
| 1777 | + | MonStarComboBox:setOption("All", "-1") |
| 1778 | + | end |
| 1779 | + | if step == 06 then |
| 1780 | + | local QntItemCount = 00 |
| 1781 | + | if MON_FILTER_2 > -1 then |
| 1782 | + | for X = 01, #MONITORAMENTO_SEARCH do |
| 1783 | + | if MONITORAMENTO_SEARCH[X].UID_1 > 00 then |
| 1784 | + | BUSCA_ID = admPanel:recursiveGetChildById('BUSCA_ID' ..X) |
| 1785 | + | if MON_FILTER_2 ~= MONITORAMENTO_SEARCH[X].UID_2 then |
| 1786 | + | BUSCA_ID:setVisible(false) |
| 1787 | + | else |
| 1788 | + | QntItemCount = QntItemCount + 01 |
| 1789 | + | BUSCA_ID:setVisible(true) |
| 1790 | + | end |
| 1791 | + | end |
| 1792 | + | end |
| 1793 | + | end |
| 1794 | + | if MON_FILTER_3 > -1 then |
| 1795 | + | for X = 01, #MONITORAMENTO_SEARCH do |
| 1796 | + | if MONITORAMENTO_SEARCH[X].UID_1 > 00 then |
| 1797 | + | BUSCA_ID = admPanel:recursiveGetChildById('BUSCA_ID' ..X) |
| 1798 | + | if MON_FILTER_3 ~= MONITORAMENTO_SEARCH[X].UID_3 then |
| 1799 | + | BUSCA_ID:setVisible(false) |
| 1800 | + | else |
| 1801 | + | QntItemCount = QntItemCount + 01 |
| 1802 | + | BUSCA_ID:setVisible(true) |
| 1803 | + | end |
| 1804 | + | end |
| 1805 | + | end |
| 1806 | + | end |
| 1807 | + | |
| 1808 | + | QntMonItem:setText('Total: ' ..QntItemCount) |
| 1809 | + | LoadImg:hide() |
| 1810 | + | end |
| 1811 | + | if step == 07 then |
| 1812 | + | loadGlobalPanel:show() |
| 1813 | + | monItemPanel:hide() |
| 1814 | + | monBotPanel:hide() |
| 1815 | + | monShopPanel:show() |
| 1816 | + | onMonitoramento(02) |
| 1817 | + | for X = 01, #MONITORAMENTO_SEARCH do |
| 1818 | + | INDEX_SHOP = admPanel:recursiveGetChildById('INDEX_SHOP_' ..X) |
| 1819 | + | if INDEX_SHOP then |
| 1820 | + | INDEX_SHOP:destroy() |
| 1821 | + | end |
| 1822 | + | |
| 1823 | + | MONITORAMENTO_SEARCH[X].NAME = '' |
| 1824 | + | MONITORAMENTO_SEARCH[X].SLOT = '' |
| 1825 | + | MONITORAMENTO_SEARCH[X].TARGET_1 = 0 |
| 1826 | + | MONITORAMENTO_SEARCH[X].TARGET_2 = 0 |
| 1827 | + | MONITORAMENTO_SEARCH[X].UID_1 = 0 |
| 1828 | + | MONITORAMENTO_SEARCH[X].UID_2 = 0 |
| 1829 | + | MONITORAMENTO_SEARCH[X].UID_3 = 0 |
| 1830 | + | MONITORAMENTO_SEARCH[X].UID_4 = 0 |
| 1831 | + | MONITORAMENTO_SEARCH[X].UID_5 = 0 |
| 1832 | + | MONITORAMENTO_SEARCH[X].UID_6 = 0 |
| 1833 | + | MONITORAMENTO_SEARCH[X].UID_7 = 0 |
| 1834 | + | MONITORAMENTO_SEARCH[X].UID_8 = 0 |
| 1835 | + | MONITORAMENTO_SEARCH[X].UID_9 = 0 |
| 1836 | + | MONITORAMENTO_SEARCH[X].UID_10 = 0 |
| 1837 | + | end |
| 1838 | + | |
| 1839 | + | for Y = 01, #SHOP_CAT do |
| 1840 | + | SHOP_CAT[Y].UID = 00 |
| 1841 | + | end |
| 1842 | + | MONITORA_COUNT = 01 |
| 1843 | + | g_game.getProtocolGame():sendExtendedOpcode(MONITORANDO_ITEMS, ",03") |
| 1844 | + | return |
| 1845 | + | end |
| 1846 | + | if step == 08 then |
| 1847 | + | onMonitoramento(02) |
| 1848 | + | local INDEX_COUNT = 00 |
| 1849 | + | local COUNT_NUMBER = 00 |
| 1850 | + | local PRODUCT_INDEX = {} |
| 1851 | + | for X = 01, #MONITORAMENTO_SEARCH do |
| 1852 | + | INDEX_SHOP = admPanel:recursiveGetChildById('INDEX_SHOP_' ..X) |
| 1853 | + | if INDEX_SHOP then |
| 1854 | + | INDEX_SHOP:destroy() |
| 1855 | + | else |
| 1856 | + | break |
| 1857 | + | end |
| 1858 | + | end |
| 1859 | + | for X = 01, #MONITORAMENTO_SEARCH do |
| 1860 | + | local onRepet = true |
| 1861 | + | local NAMES = modules.game_menu.onTableShop(01, MONITORAMENTO_SEARCH[X].UID_3, MONITORAMENTO_SEARCH[X].UID_4) |
| 1862 | + | if MONITORAMENTO_SEARCH[X].UID_3 == value then |
| 1863 | + | if #PRODUCT_INDEX > 00 then |
| 1864 | + | for CHECK = 01, #PRODUCT_INDEX do |
| 1865 | + | local TRIM = string.explode(PRODUCT_INDEX[CHECK], "@") |
| 1866 | + | if TRIM[01] == modules.game_menu.onTableShop(01, MONITORAMENTO_SEARCH[X].UID_3, MONITORAMENTO_SEARCH[X].UID_4) then |
| 1867 | + | local SOMA = tonumber(TRIM[02]) + 01 |
| 1868 | + | PRODUCT_INDEX[CHECK] = NAMES.. "@" ..SOMA |
| 1869 | + | onRepet = false |
| 1870 | + | break |
| 1871 | + | end |
| 1872 | + | end |
| 1873 | + | if onRepet then |
| 1874 | + | table.insert(PRODUCT_INDEX, NAMES.. "@1") |
| 1875 | + | end |
| 1876 | + | else |
| 1877 | + | table.insert(PRODUCT_INDEX, NAMES.. "@1") |
| 1878 | + | end |
| 1879 | + | end |
| 1880 | + | end |
| 1881 | + | for X = 01, #PRODUCT_INDEX do |
| 1882 | + | local TRIM = string.explode(PRODUCT_INDEX[X], "@") |
| 1883 | + | INDEX_COUNT = INDEX_COUNT + 01 |
| 1884 | + | ITEM_SEARCH = g_ui.createWidget('UIButton', MonShopScrollPanel) |
| 1885 | + | ITEM_SEARCH:setId("INDEX_SHOP_" ..INDEX_COUNT) |
| 1886 | + | ITEM_SEARCH:setMarginTop(03) |
| 1887 | + | ITEM_SEARCH:setImageSource("/images/custom/UI/loot_0") |
| 1888 | + | |
| 1889 | + | ITEM_SEARCH:setText(TRIM[01].. " (" ..TRIM[02].. ")") |
| 1890 | + | end |
| 1891 | + | onMonitoramento(09) |
| 1892 | + | end |
| 1893 | + | if step == 09 then |
| 1894 | + | for D = 01, 12 do |
| 1895 | + | shopMonButton = admPanel:recursiveGetChildById('Cat_' ..D) |
| 1896 | + | shopMonButton:enable() |
| 1897 | + | end |
| 1898 | + | end |
| 1899 | + | |
| 1900 | + | -- BOT |
| 1901 | + | if step == 10 then |
| 1902 | + | botTextPlayerFollow:setText('???') |
| 1903 | + | botTextPlayerFollow:setColor('white') |
| 1904 | + | botTextPlayerClient:setText('???') |
| 1905 | + | botTextPlayerClient:setColor('white') |
| 1906 | + | botTextPlayerBotV8:setText('???') |
| 1907 | + | AFKText:setColor('white') |
| 1908 | + | AFKText:setText('???') |
| 1909 | + | botTextPlayerBotV8:setColor('white') |
| 1910 | + | botTextPlayerAutoCura:setText('???') |
| 1911 | + | botTextPlayerAutoCura:setColor('white') |
| 1912 | + | botBanDesc:setText('') |
| 1913 | + | monBotPlayerName:setText('') |
| 1914 | + | BOT_NAME = '' |
| 1915 | + | monItemPanel:hide() |
| 1916 | + | monShopPanel:hide() |
| 1917 | + | banPanel:hide() |
| 1918 | + | sendMessageAFK:disable() |
| 1919 | + | botPlayerMonitoraStart:show() |
| 1920 | + | botPlayerMonitoraCancel:hide() |
| 1921 | + | monBotPanel:show() |
| 1922 | + | AFK_COUNT = 00 |
| 1923 | + | CAVEBOT_COUNT = 00 |
| 1924 | + | if value then |
| 1925 | + | return |
| 1926 | + | else |
| 1927 | + | onMonitoramento(12) |
| 1928 | + | end |
| 1929 | + | end |
| 1930 | + | if step == 11 then |
| 1931 | + | KEYPRESS = admPanel:recursiveGetChildById('CAVEBOT_ID1') |
| 1932 | + | if type == 01 then |
| 1933 | + | if value == 01 then |
| 1934 | + | CAVEBOT_COUNT = 00 |
| 1935 | + | KEYPRESS:setText(tr('Movimento Teclado Detectado')) |
| 1936 | + | KEYPRESS:setColor('red') |
| 1937 | + | elseif value == 02 then |
| 1938 | + | CAVEBOT_COUNT = 00 |
| 1939 | + | KEYPRESS:setText(tr('Movimento com Clique')) |
| 1940 | + | KEYPRESS:setColor('red') |
| 1941 | + | elseif value == 03 then |
| 1942 | + | if CAVEBOT_COUNT > 05 then |
| 1943 | + | CAVEBOT_COUNT = CAVEBOT_COUNT + 01 |
| 1944 | + | KEYPRESS:setColor('green') |
| 1945 | + | if CAVEBOT_COUNT < 100 then |
| 1946 | + | KEYPRESS:setText(tr('CaveBot Detectado').. ' (' ..CAVEBOT_COUNT.. '%)') |
| 1947 | + | else |
| 1948 | + | KEYPRESS:setText(tr('CaveBot Detectado (100%)')) |
| 1949 | + | end |
| 1950 | + | else |
| 1951 | + | CAVEBOT_COUNT = CAVEBOT_COUNT + 01 |
| 1952 | + | KEYPRESS:setText(tr('Aguardando...')) |
| 1953 | + | KEYPRESS:setColor('gray') |
| 1954 | + | end |
| 1955 | + | elseif value == 04 then |
| 1956 | + | CAVEBOT_COUNT = 00 |
| 1957 | + | KEYPRESS:setText(tr('Movimento com Clique no Mapa')) |
| 1958 | + | KEYPRESS:setColor('red') |
| 1959 | + | return |
| 1960 | + | elseif value == 05 then |
| 1961 | + | KEYPRESS:setText(tr('Atacando Alvo Manualmente')) |
| 1962 | + | KEYPRESS:setColor('red') |
| 1963 | + | return |
| 1964 | + | elseif value == 06 then |
| 1965 | + | KEYPRESS:setText(tr('Cura Manual')) |
| 1966 | + | KEYPRESS:setColor('red') |
| 1967 | + | return |
| 1968 | + | end |
| 1969 | + | else |
| 1970 | + | KEYPRESS:setText(tr('Sem Movimento')) |
| 1971 | + | KEYPRESS:setColor('gray') |
| 1972 | + | end |
| 1973 | + | end |
| 1974 | + | if step == 12 then |
| 1975 | + | KEYPRESS = admPanel:recursiveGetChildById('CAVEBOT_ID1') |
| 1976 | + | KEYPRESS:setText('???') |
| 1977 | + | monBotPlayerName:enable() |
| 1978 | + | KEYPRESS:setColor('white') |
| 1979 | + | botTextPlayerFollow:setText('???') |
| 1980 | + | botTextPlayerFollow:setColor('white') |
| 1981 | + | AFKText:setColor('white') |
| 1982 | + | AFKText:setText('???') |
| 1983 | + | botTextPlayerClient:setText('???') |
| 1984 | + | botTextPlayerClient:setColor('white') |
| 1985 | + | botTextPlayerBotV8:setText('???') |
| 1986 | + | botTextPlayerBotV8:setColor('white') |
| 1987 | + | botTextPlayerAutoCura:setText('???') |
| 1988 | + | botTextPlayerAutoCura:setColor('white') |
| 1989 | + | botBanDesc:setText('') |
| 1990 | + | sendMessageAFK:disable() |
| 1991 | + | botPlayerMonitoraStart:show() |
| 1992 | + | botPlayerMonitoraCancel:hide() |
| 1993 | + | banPanel:hide() |
| 1994 | + | botBanDays:setOption("03") |
| 1995 | + | |
| 1996 | + | AFK_COUNT = 00 |
| 1997 | + | CAVEBOT_COUNT = 00 |
| 1998 | + | if BOT_NAME ~= "" then |
| 1999 | + | local localPlayer = g_game.getLocalPlayer() |
| 2000 | + | g_game.getProtocolGame():sendExtendedOpcode(BOT_PLAYER_MONIT, BOT_NAME.. "," ..localPlayer:getName().. ",2") |
| 2001 | + | end |
| 2002 | + | return |
| 2003 | + | end |
| 2004 | + | if step == 13 then |
| 2005 | + | local localPlayer = g_game.getLocalPlayer() |
| 2006 | + | local MonPlayerName = monBotPlayerName:getText() |
| 2007 | + | if #MonPlayerName > 03 then |
| 2008 | + | if MonPlayerName ~= localPlayer:getName() then |
| 2009 | + | g_game.getProtocolGame():sendExtendedOpcode(BOT_PLAYER_MONIT, MonPlayerName.. "," ..localPlayer:getName().. ",1") |
| 2010 | + | BOT_NAME = MonPlayerName |
| 2011 | + | botPlayerMonitoraCancel:show() |
| 2012 | + | botPlayerMonitoraStart:hide() |
| 2013 | + | banPanel:show() |
| 2014 | + | banPanel:focus() |
| 2015 | + | banPanel:raise() |
| 2016 | + | AFK_COUNT = 0 |
| 2017 | + | sendMessageAFK:enable() |
| 2018 | + | botBanDesc:setText('') |
| 2019 | + | botBanDays:setOption("03") |
| 2020 | + | monBotPlayerName:disable() |
| 2021 | + | return |
| 2022 | + | else |
| 2023 | + | BOT_NAME = '' |
| 2024 | + | monBotPlayerName:setText('') |
| 2025 | + | monBotPlayerName:focus() |
| 2026 | + | modules.game_interface.onLoginAdvice(tr("Voce nao pode monitorar voce mesmo.")) |
| 2027 | + | end |
| 2028 | + | else |
| 2029 | + | BOT_NAME = '' |
| 2030 | + | monBotPlayerName:setText('') |
| 2031 | + | monBotPlayerName:focus() |
| 2032 | + | end |
| 2033 | + | end |
| 2034 | + | if step == 14 then |
| 2035 | + | local MonPlayerName = monBotPlayerName:getText() |
| 2036 | + | if #MonPlayerName > 03 then |
| 2037 | + | g_game.talk(g_game.talk("/adm " ..MonPlayerName.. "-" ..value)) |
| 2038 | + | return |
| 2039 | + | else |
| 2040 | + | BOT_NAME = '' |
| 2041 | + | monBotPlayerName:setText('') |
| 2042 | + | monBotPlayerName:focus() |
| 2043 | + | end |
| 2044 | + | end |
| 2045 | + | if step == 15 then |
| 2046 | + | AFK_COUNT = 1 |
| 2047 | + | local localPlayer = g_game.getLocalPlayer() |
| 2048 | + | local MonPlayerName = monBotPlayerName:getText() |
| 2049 | + | g_game.getProtocolGame():sendExtendedOpcode(BOT_PLAYER_MONIT, MonPlayerName.. "," ..localPlayer:getName().. ",3") |
| 2050 | + | sendMessageAFK:disable() |
| 2051 | + | end |
| 2052 | + | if step == 16 then |
| 2053 | + | local localPlayer = g_game.getLocalPlayer() |
| 2054 | + | local MonPlayerName = monBotPlayerName:getText() |
| 2055 | + | g_game.getProtocolGame():sendExtendedOpcode(BOT_PLAYER_MONIT, value.. "," ..localPlayer:getName().. ",4") |
| 2056 | + | sendMessageAFK:disable() |
| 2057 | + | end |
| 2058 | + | if step == 17 then |
| 2059 | + | banDays = botBanDays:getText() |
| 2060 | + | banDesc = botBanDesc:getText() |
| 2061 | + | local MonPlayerName = monBotPlayerName:getText() |
| 2062 | + | |
| 2063 | + | if #banDesc < 01 then |
| 2064 | + | banDesc = "0" |
| 2065 | + | end |
| 2066 | + | g_game.talk(g_game.talk("/adm " ..MonPlayerName.. "-13-" ..banDays.. "-" ..banDesc.. "-" ..value)) |
| 2067 | + | return |
| 2068 | + | end |
| 2069 | + | end |
| 2070 | + | function onMensagemResponde(step) |
| 2071 | + | if step == 00 then |
| 2072 | + | onHideWindows() |
| 2073 | + | MSG_MONITE_TYPE = 00 |
| 2074 | + | RESP_MONITE_TYPE = 00 |
| 2075 | + | CAIXA_MSG_ID = 01 |
| 2076 | + | |
| 2077 | + | MessageLabel:setText('') |
| 2078 | + | RespostaLabel:setText('') |
| 2079 | + | MessageTypeComboBox:setOption(tr('Tudo'), '00') |
| 2080 | + | MessageRespComboBox:setOption(tr('Nao respondidas'), '00') |
| 2081 | + | g_game.getProtocolGame():sendExtendedOpcode(MENSAGEM_RESPOSTA, MSG_MONITE_TYPE.. "," ..RESP_MONITE_TYPE) |
| 2082 | + | mensagemPanel:show() |
| 2083 | + | end |
| 2084 | + | if step == 01 then |
| 2085 | + | for X = 01, #CAIXA_MENSAGEM do |
| 2086 | + | CAIXA_MENSAGEM[X].ID = 00 |
| 2087 | + | CAIXA_MENSAGEM[X].TYPE = 00 |
| 2088 | + | CAIXA_MENSAGEM[X].PLAYER_ID = 00 |
| 2089 | + | CAIXA_MENSAGEM[X].NAME = "" |
| 2090 | + | CAIXA_MENSAGEM[X].TARGET_ID = 00 |
| 2091 | + | CAIXA_MENSAGEM[X].TARGET_NAME = "" |
| 2092 | + | CAIXA_MENSAGEM[X].TITLE = "" |
| 2093 | + | CAIXA_MENSAGEM[X].MESSAGEM = "" |
| 2094 | + | CAIXA_MENSAGEM[X].RESPOSTA = "" |
| 2095 | + | CAIXA_MENSAGEM[X].BOX_1 = "" |
| 2096 | + | CAIXA_MENSAGEM[X].BOX_2 = "" |
| 2097 | + | CAIXA_MENSAGEM[X].BOX_3 = "" |
| 2098 | + | CAIXA_MENSAGEM[X].BOX_4 = "" |
| 2099 | + | CAIXA_MENSAGEM[X].GOLD = 00 |
| 2100 | + | CAIXA_MENSAGEM[X].VIP = 00 |
| 2101 | + | CAIXA_MENSAGEM[X].LIDA = 00 |
| 2102 | + | CAIXA_MENSAGEM[X].BOX_CHECK = 00 |
| 2103 | + | CAIXA_MENSAGEM[X].DEL_MSG = 00 |
| 2104 | + | CAIXA_MENSAGEM[X].DEL_RESP = 00 |
| 2105 | + | end |
| 2106 | + | for _MSG = 01, #CAIXA_MENSAGEM do |
| 2107 | + | MSG_TYPE = admPanel:recursiveGetChildById('MSG_TYPE_' .._MSG) |
| 2108 | + | if MSG_TYPE then |
| 2109 | + | MSG_TYPE:destroy() |
| 2110 | + | end |
| 2111 | + | end |
| 2112 | + | CAIXA_MSG_ID = 01 |
| 2113 | + | end |
| 2114 | + | end |
| 2115 | + | |
| 2116 | + | function setMonitRespType(value) |
| 2117 | + | RESP_MONITE_TYPE = tonumber(value) |
| 2118 | + | onMensagemResponde(01) |
| 2119 | + | g_game.getProtocolGame():sendExtendedOpcode(MENSAGEM_RESPOSTA, MSG_MONITE_TYPE.. "," ..RESP_MONITE_TYPE) |
| 2120 | + | end |
| 2121 | + | function onChangeMonitRespType(comboBox, option, value) |
| 2122 | + | setMonitRespType(value:lower()) |
| 2123 | + | end |
| 2124 | + | function setMonitMsgType(value) |
| 2125 | + | MSG_MONITE_TYPE = tonumber(value) |
| 2126 | + | onMensagemResponde(01) |
| 2127 | + | g_game.getProtocolGame():sendExtendedOpcode(MENSAGEM_RESPOSTA, MSG_MONITE_TYPE.. "," ..RESP_MONITE_TYPE) |
| 2128 | + | end |
| 2129 | + | function onChangeMonitMsgType(comboBox, option, value) |
| 2130 | + | setMonitMsgType(value:lower()) |
| 2131 | + | end |
| 2132 | + | |
| 2133 | + | function setYearType(value) |
| 2134 | + | BUSCAR_ANO = tonumber(value) |
| 2135 | + | end |
| 2136 | + | function onChangeYearType(comboBox, option, value) |
| 2137 | + | setYearType(value:lower()) |
| 2138 | + | end |
| 2139 | + | function setMonthType(value) |
| 2140 | + | BUSCAR_MES = tonumber(value) |
| 2141 | + | end |
| 2142 | + | function onChangeMonthType(comboBox, option, value) |
| 2143 | + | setMonthType(value:lower()) |
| 2144 | + | end |
| 2145 | + | function setMonType(value) |
| 2146 | + | if not g_game.isOnline() then |
| 2147 | + | return |
| 2148 | + | end |
| 2149 | + | MON_TYPE = tonumber(value) |
| 2150 | + | if MON_TYPE == 04 then |
| 2151 | + | MonGunComboBox:enable() |
| 2152 | + | MonGunComboBox:setOption("Espingarda", "00") |
| 2153 | + | else |
| 2154 | + | MonGunComboBox:disable() |
| 2155 | + | end |
| 2156 | + | |
| 2157 | + | MON_FILTER_4 = 00 |
| 2158 | + | onMonitoramento(04) |
| 2159 | + | end |
| 2160 | + | function onChangeMonType(comboBox, option, value) |
| 2161 | + | setMonType(value:lower()) |
| 2162 | + | end |
| 2163 | + | function setMonRare(value) |
| 2164 | + | MON_FILTER_2 = tonumber(value) |
| 2165 | + | end |
| 2166 | + | function onChangeMonRare(comboBox, option, value) |
| 2167 | + | setMonRare(value:lower()) |
| 2168 | + | end |
| 2169 | + | function setMonStar(value) |
| 2170 | + | MON_FILTER_3 = tonumber(value) |
| 2171 | + | end |
| 2172 | + | function onChangeMonStar(comboBox, option, value) |
| 2173 | + | setMonStar(value:lower()) |
| 2174 | + | end |
| 2175 | + | function setMonGun(value) |
| 2176 | + | MON_FILTER_4 = tonumber(value) |
| 2177 | + | onMonitoramento(04) |
| 2178 | + | end |
| 2179 | + | function onChangeMonGun(comboBox, option, value) |
| 2180 | + | setMonGun(value:lower()) |
| 2181 | + | end |
| 2182 | + | |
| 2183 | + | function setRankStatusType(value) |
| 2184 | + | ButtonAct = value |
| 2185 | + | end |
| 2186 | + | function onChangeStatusSortType(comboBox, option, value) |
| 2187 | + | setRankStatusType(value:lower()) |
| 2188 | + | end |
| 2189 | + | function onSaveStatusChange() |
| 2190 | + | Section = obsTextEdit:getText() |
| 2191 | + | if #Section < 01 then |
| 2192 | + | Section = "" |
| 2193 | + | end |
| 2194 | + | g_game.getProtocolGame():sendExtendedOpcode(CRIPTOMOEDA_OPCODE, "5," ..ButtonAct.. "," ..StatusIDEdit.. "," ..SaveFilter.. "," ..Section) |
| 2195 | + | statusPanel:hide() |
| 2196 | + | end |
| 2197 | + | function onCriptomoedas(step) |
| 2198 | + | local localPlayer = g_game.getLocalPlayer() |
| 2199 | + | if ONLY_FRENESY then |
| 2200 | + | if localPlayer:getName() ~= GOD_NAME then |
| 2201 | + | modules.game_interface.onLoginAdvice("Acesso negado.") |
| 2202 | + | return |
| 2203 | + | end |
| 2204 | + | end |
| 2205 | + | if step == 00 then |
| 2206 | + | onHideWindows() |
| 2207 | + | criptomoedaPanel:setVisible(true) |
| 2208 | + | loadPanel:setVisible(false) |
| 2209 | + | |
| 2210 | + | SaveFilter = 01 |
| 2211 | + | g_game.getProtocolGame():sendExtendedOpcode(CRIPTOMOEDA_OPCODE, "1") |
| 2212 | + | else |
| 2213 | + | ButtonAct = step |
| 2214 | + | SaveFilter = step |
| 2215 | + | g_game.getProtocolGame():sendExtendedOpcode(CRIPTOMOEDA_OPCODE, step) |
| 2216 | + | end |
| 2217 | + | end |
| 2218 | + | function onBlackMarket(step) |
| 2219 | + | if step == 00 then |
| 2220 | + | blackPanel:setText('Black Market') |
| 2221 | + | blackValue:setText('') |
| 2222 | + | g_game.getProtocolGame():sendExtendedOpcode(MONITORANDO_ITEMS, ",04") |
| 2223 | + | |
| 2224 | + | blackPanel:raise() |
| 2225 | + | blackPanel:focus() |
| 2226 | + | blackPanel:show() |
| 2227 | + | return |
| 2228 | + | else |
| 2229 | + | SaveFilter = blackValue:getText() |
| 2230 | + | g_game.getProtocolGame():sendExtendedOpcode(BLACKMARKET_OPCODE, SaveFilter) |
| 2231 | + | blackPanel:hide() |
| 2232 | + | end |
| 2233 | + | end |
| 2234 | + | function onPlayerInfo(step) |
| 2235 | + | local localPlayer = g_game.getLocalPlayer() |
| 2236 | + | if ONLY_FRENESY then |
| 2237 | + | if localPlayer:getName() ~= GOD_NAME then |
| 2238 | + | modules.game_interface.onLoginAdvice("Acesso negado.") |
| 2239 | + | return |
| 2240 | + | end |
| 2241 | + | end |
| 2242 | + | if step == 00 then |
| 2243 | + | onHideWindows() |
| 2244 | + | Section = "Player" |
| 2245 | + | playerName:enable() |
| 2246 | + | searchButton:enable() |
| 2247 | + | loadPanel:setVisible(false) |
| 2248 | + | playerInfo:setVisible(false) |
| 2249 | + | playerPanel:setVisible(true) |
| 2250 | + | end |
| 2251 | + | |
| 2252 | + | onButtonAct(ButtonAct) |
| 2253 | + | end |
| 2254 | + | function onButtonAct(act) |
| 2255 | + | end |
| 2256 | + | function onSearchPlayer(id) |
| 2257 | + | local player = playerPanel:getChildById('playerName'):getText() |
| 2258 | + | if #player >= 03 then |
| 2259 | + | TARGET_NAME = player |
| 2260 | + | g_game.talk(g_game.talk("/adm " ..player.. "-00")) |
| 2261 | + | playerName:disable() |
| 2262 | + | searchButton:disable() |
| 2263 | + | playerInfo:setVisible(false) |
| 2264 | + | loadPanel:setVisible(true) |
| 2265 | + | end |
| 2266 | + | end |
| 2267 | + | function onSetAdmName(name) |
| 2268 | + | TARGET_NAME = name |
| 2269 | + | playerPanel:getChildById('playerName'):setText(TARGET_NAME) |
| 2270 | + | g_game.talk(g_game.talk("/adm " ..TARGET_NAME.. "-00")) |
| 2271 | + | playerName:disable() |
| 2272 | + | searchButton:disable() |
| 2273 | + | playerInfo:setVisible(false) |
| 2274 | + | loadPanel:setVisible(true) |
| 2275 | + | end |
| 2276 | + | function closer() |
| 2277 | + | onMonitoramento(12) |
| 2278 | + | admPanel:hide() |
| 2279 | + | blackPanel:hide() |
| 2280 | + | statusPanel:hide() |
| 2281 | + | end |
| 2282 | + | function offline() |
| 2283 | + | onMonitoramento(12) |
| 2284 | + | admPanel:hide() |
| 2285 | + | end |
| 2286 | + | function terminate() |
| 2287 | + | onMonitoramento(12) |
| 2288 | + | disconnect(g_game, { |
| 2289 | + | disconnect(g_game, 'onTextMessage', onAdmPanel), |
| 2290 | + | }) |
| 2291 | + | disconnect(g_game, { onGameEnd = offline }) |
| 2292 | + | ProtocolGame.unregisterExtendedOpcode(PLAYER_INFO_OPCODE) |
| 2293 | + | ProtocolGame.unregisterExtendedOpcode(CRIPTOMOEDA_OPCODE) |
| 2294 | + | ProtocolGame.unregisterExtendedOpcode(MONITORANDO_ITEMS) |
| 2295 | + | ProtocolGame.unregisterExtendedOpcode(BOT_PLAYER_MONIT) |
| 2296 | + | ProtocolGame.unregisterExtendedOpcode(MENSAGEM_RESPOSTA) |
| 2297 | + | admPanel:destroy() |
| 2298 | + | end |