menu.lua

main 16444 lines · 632.6 KB Raw
Alex Alex Commit Client Upload Part 2 19/10/2026 00:06
1mapPanel = modules.game_interface.getMapPanel()
2gameLeftPanel = modules.game_interface.getLeftPanel()
3gameTopMenu = modules.client_topmenu.getTopMenu()
4gameRootPanel = modules.game_interface.getRootPanel()
5
6Icons = {}
7Icons[PlayerStates.Poison] = { tooltip = tr('You are poisoned'), path = '/images/game/states/poisoned', id = 'condition_poisoned' }
8Icons[PlayerStates.Burn] = { tooltip = tr('You are burning'), path = '/images/game/states/burning', id = 'condition_burning' }
9Icons[PlayerStates.Energy] = { tooltip = tr('You are electrified'), path = '/images/game/states/electrified', id = 'condition_electrified' }
10Icons[PlayerStates.Drunk] = { tooltip = tr('You are drunk'), path = '/images/game/states/drunk', id = 'condition_drunk' }
11Icons[PlayerStates.ManaShield] = { tooltip = tr('You are protected by a magic shield'), path = '/images/game/states/magic_shield', id = 'condition_magic_shield' }
12Icons[PlayerStates.Paralyze] = { tooltip = tr('You are paralysed'), path = '/images/game/states/slowed', id = 'condition_slowed' }
13Icons[PlayerStates.Haste] = { tooltip = tr('You are hasted'), path = '/images/game/states/haste', id = 'condition_haste' }
14Icons[PlayerStates.Swords] = { tooltip = tr('You may not logout during a fight'), path = '/images/game/states/logout_block', id = 'condition_logout_block' }
15Icons[PlayerStates.Drowning] = { tooltip = tr('You are drowning'), path = '/images/game/states/drowning', id = 'condition_drowning' }
16Icons[PlayerStates.Freezing] = { tooltip = tr('You are freezing'), path = '/images/game/states/freezing', id = 'condition_freezing' }
17Icons[PlayerStates.Dazzled] = { tooltip = tr('You are dazzled'), path = '/images/game/states/dazzled', id = 'condition_dazzled' }
18Icons[PlayerStates.Cursed] = { tooltip = tr('You are cursed'), path = '/images/game/states/cursed', id = 'condition_cursed' }
19Icons[PlayerStates.PartyBuff] = { tooltip = tr('You are strengthened'), path = '/images/game/states/strengthened', id = 'condition_strengthened' }
20Icons[PlayerStates.PzBlock] = { tooltip = tr('You may not logout or enter a protection zone'), path = '/images/game/states/protection_zone_block', id = 'condition_protection_zone_block' }
21Icons[PlayerStates.Pz] = { tooltip = tr('You are within a protection zone'), path = '/images/game/states/protection_zone', id = 'condition_protection_zone' }
22Icons[PlayerStates.Bleeding] = { tooltip = tr('You are bleeding'), path = '/images/game/states/bleeding', id = 'condition_bleeding' }
23Icons[PlayerStates.Hungry] = { tooltip = tr('You are hungry'), path = '/images/game/states/hungry', id = 'condition_hungry' }
24
25AutoCuraBotFalsePositivo = false
26SetHotkeySlot = 0
27HotKey_01 = 0
28HotKey_02 = 0
29HotKey_03 = 0
30HotKey_04 = 0
31HotKey_05 = 0
32HotKey_06 = 0
33Opcode_Hotkey = 106
34Opcode_Pix = 114
35Opcode_cripto = 115
36healthBar = nil
37manaBar = nil
38experienceBar = nil
39healthTooltip = 'Your character health is %d out of %d.'
40manaTooltip = 'Your character mana is %d out of %d.'
41experienceTooltip = 'You have %d%% to advance to level %d.'
42
43overlay = nil
44healthCircleFront = nil
45manaCircleFront = nil
46healthCircle = nil
47manaCircle = nil
48topHealthBar = nil
49topManaBar = nil
50
51local HOT_K_1, HOT_K_2, HOT_K_3, HOT_K_4, HOT_K_5, HOT_K_6 = '', '', '', '', '', ''
52function isInArray(t, v, c)
53 v = (c ~= nil and string.lower(v)) or v
54 if type(t) == "table" and v ~= nil then
55 for key, value in pairs(t) do
56 value = (c ~= nil and string.lower(value)) or value
57 if v == value then
58 return 1
59 end
60 end
61 end
62 return -1
63end
64function init()
65 connect(g_game, {
66 connect(g_game, 'onTextMessage', onUserInterface),
67 })
68 connect(g_game, { onGameEnd = offline })
69
70 ProtocolGame.registerExtendedOpcode(Opcode_Hotkey, function(protocol, opcode, buffer) end)
71 ProtocolGame.registerExtendedOpcode(Opcode_Pix, function(protocol, opcode, buffer) end)
72 ProtocolGame.registerExtendedOpcode(Opcode_cripto, function(protocol, opcode, buffer) end)
73 menuBackground = g_ui.displayUI('menu')
74 FECHAR_MENU = menuBackground:recursiveGetChildById('fecharMenu')
75 FIXAR_MENU = menuBackground:recursiveGetChildById('fixarBtMenu')
76 menuBackground:hide()
77
78 betaWindow = g_ui.displayUI('beta')
79 LoadingPanel = betaWindow:recursiveGetChildById('LoadingPanel')
80 descText = betaWindow:recursiveGetChildById('descText')
81 buttonText = betaWindow:recursiveGetChildById('buttonText')
82 valorText = betaWindow:recursiveGetChildById('valorText')
83 valorLabel = betaWindow:recursiveGetChildById('valorLabel')
84 VipText = betaWindow:recursiveGetChildById('VipText')
85 VipTextLabel = betaWindow:recursiveGetChildById('VipTextLabel')
86 PersonagemText = betaWindow:recursiveGetChildById('PersonagemText')
87 PersonagemLabel = betaWindow:recursiveGetChildById('PersonagemLabel')
88 LevelText = betaWindow:recursiveGetChildById('LevelText')
89 LevelLabel = betaWindow:recursiveGetChildById('LevelLabel')
90 TotalText = betaWindow:recursiveGetChildById('TotalText')
91 TotalLabel = betaWindow:recursiveGetChildById('TotalLabel')
92
93 PVP_ROOM_BUTTON = menuBackground:recursiveGetChildById('PVPActive')
94 PVP_ROOM_PANEL = menuBackground:recursiveGetChildById('PVPRoomPanel')
95 PVP_VERSUS = menuBackground:recursiveGetChildById('PVPVersus')
96 PVP_VERSUS_BAR = menuBackground:recursiveGetChildById('versusBar')
97 PVP_VERSUS_TXT = menuBackground:recursiveGetChildById('versustxt')
98 PVP_VERSUS_BT = menuBackground:recursiveGetChildById('btVersus')
99 PVP_ARENA = menuBackground:recursiveGetChildById('PVPArena')
100 PVP_ARENA_BAR = menuBackground:recursiveGetChildById('arenaBar')
101 PVP_ARENA_TXT = menuBackground:recursiveGetChildById('arenatxt')
102 PVP_ARENA_BT = menuBackground:recursiveGetChildById('btArena')
103 PVP_CASTLE = menuBackground:recursiveGetChildById('PVPCastle')
104 PVP_CASTLE_BAR = menuBackground:recursiveGetChildById('castleBar')
105 PVP_CASTLE_TXT = menuBackground:recursiveGetChildById('castletxt')
106 PVP_CASTLE_BT = menuBackground:recursiveGetChildById('btCastle')
107 PVP_BATTLEROYAL = menuBackground:recursiveGetChildById('PVPBattleRoyal')
108 PVP_BATTLE_BAR = menuBackground:recursiveGetChildById('battleBar')
109 PVP_BATTLE_TXT = menuBackground:recursiveGetChildById('battletxt')
110 PVP_BATTLE_BT = menuBackground:recursiveGetChildById('btBattle')
111 PVP_WARZONE = menuBackground:recursiveGetChildById('PVPWarzone')
112 PVP_WARZONE_BAR = menuBackground:recursiveGetChildById('warzoneBar')
113 PVP_WARZONE_TXT = menuBackground:recursiveGetChildById('warzonetxt')
114 PVP_WARZONE_BT = menuBackground:recursiveGetChildById('btWarzone')
115 PVP_MODO_LIVRE = menuBackground:recursiveGetChildById('PVPModoLivre')
116 PVP_LIVRE_BAR = menuBackground:recursiveGetChildById('livreBar')
117 PVP_LIVRE_TXT = menuBackground:recursiveGetChildById('livretxt')
118 PVP_LIVRE_BT = menuBackground:recursiveGetChildById('btLivre')
119
120 betaWindow:hide()
121 AnalyserBox = g_ui.displayUI('analyser')
122 AnalyserBox:hide()
123 pixBox = g_ui.displayUI('pix')
124 pixBox:hide()
125 descBox = g_ui.displayUI('desc')
126 DESC_START_BUTTON = descBox:recursiveGetChildById('startDesc')
127 descBox:hide()
128 premiumWindowBox = g_ui.displayUI('premiumBox')
129 premiumWindowBox:hide()
130 itemViewMobile = g_ui.displayUI('itemView')
131 itemViewMobile:hide()
132 summonWindowBox = g_ui.displayUI('summonBox')
133 summonWindowBox:hide()
134 spyWindowBox = g_ui.displayUI('spy')
135 spyWindowBox:hide()
136 hotkeyWindowBox = g_ui.displayUI('hotkey')
137 hotkeyWindowBox:hide()
138 BAG_01 = menuBackground:recursiveGetChildById('Bag01') BAG_02 = menuBackground:recursiveGetChildById('Bag02') BAG_03 = menuBackground:recursiveGetChildById('Bag03')
139 BAG_04 = menuBackground:recursiveGetChildById('Bag04') BAG_05 = menuBackground:recursiveGetChildById('Bag05') BAG_06 = menuBackground:recursiveGetChildById('Bag06')
140 BAG_07 = menuBackground:recursiveGetChildById('Bag07') BAG_08 = menuBackground:recursiveGetChildById('Bag08') BAG_09 = menuBackground:recursiveGetChildById('Bag09')
141 BAG_10 = menuBackground:recursiveGetChildById('Bag10') BAG_11 = menuBackground:recursiveGetChildById('Bag11') BAG_12 = menuBackground:recursiveGetChildById('Bag12')
142 BAG_13 = menuBackground:recursiveGetChildById('Bag13') BAG_14 = menuBackground:recursiveGetChildById('Bag14') BAG_15 = menuBackground:recursiveGetChildById('Bag15')
143 BAG_16 = menuBackground:recursiveGetChildById('Bag16') BAG_17 = menuBackground:recursiveGetChildById('Bag17') BAG_18 = menuBackground:recursiveGetChildById('Bag18')
144 BAG_19 = menuBackground:recursiveGetChildById('Bag19') BAG_20 = menuBackground:recursiveGetChildById('Bag20') LOAD = menuBackground:recursiveGetChildById('Loading')
145 BACKPACK_01 = menuBackground:recursiveGetChildById('Backpack_01') BACKPACK_02 = menuBackground:recursiveGetChildById('Backpack_02') BACKPACK_03 = menuBackground:recursiveGetChildById('Backpack_03')
146 BACKPACK_04 = menuBackground:recursiveGetChildById('Backpack_04') BACKPACK_05 = menuBackground:recursiveGetChildById('Backpack_05') ORDER_BAG = menuBackground:recursiveGetChildById('OrderBackpack')
147
148 BAG_01:hide() BAG_02:hide() BAG_03:hide()
149 BAG_04:hide() BAG_05:hide() BAG_06:hide()
150 BAG_07:hide() BAG_08:hide() BAG_09:hide()
151 BAG_10:hide() BAG_11:hide() BAG_12:hide()
152 BAG_13:hide() BAG_14:hide() BAG_15:hide()
153 BAG_16:hide() BAG_17:hide() BAG_18:hide()
154 BAG_19:hide() BAG_20:hide() LOAD:hide()
155
156 BACKPACK_01:hide() BACKPACK_02:hide() BACKPACK_03:hide()
157 BACKPACK_04:hide() ORDER_BAG:hide()
158
159 COLD_KARD = menuBackground:recursiveGetChildById('CooldownSummon') COLD_KARD:hide()
160 AMULET = menuBackground:recursiveGetChildById('SlotAmulet') HELMET = menuBackground:recursiveGetChildById('SlotHelmet') BACKPACK = menuBackground:recursiveGetChildById('SlotBackpack')
161 GUN = menuBackground:recursiveGetChildById('SlotGun01') ARMOR = menuBackground:recursiveGetChildById('SlotArmor') GLOVE = menuBackground:recursiveGetChildById('SlotGlove')
162 RING = menuBackground:recursiveGetChildById('SlotRing01') LEGS = menuBackground:recursiveGetChildById('SlotLegs') BOOTS = menuBackground:recursiveGetChildById('SlotBoots')
163 SUMMON = menuBackground:recursiveGetChildById('SlotSummon') SUMMON_IMAGE = menuBackground:recursiveGetChildById('ImgSummonEquip') SUMMON_STAR = menuBackground:recursiveGetChildById('StarSummonEquip')
164 GOLDC = menuBackground:recursiveGetChildById('GoldCoin') ONLINEC = menuBackground:recursiveGetChildById('OnlineCoin')
165
166 VOLTAR = menuBackground:recursiveGetChildById('backButton') INFO = menuBackground:recursiveGetChildById('InfoSummon')
167 INFOBOX = menuBackground:recursiveGetChildById('infoBox') TXTSTAR = menuBackground:recursiveGetChildById('txtSummonStar')
168 NEWSUMMON = menuBackground:recursiveGetChildById('NewSummon') NEWSUMMONIMG = menuBackground:recursiveGetChildById('ImgSummonNew')
169 EQUIPSUM = menuBackground:recursiveGetChildById('EquipSummon') NEWSUMPRO = menuBackground:recursiveGetChildById('NewSumProgress')
170 COMBOBOXSTAR = menuBackground:recursiveGetChildById('filtroStar') NEWSUMINFO = menuBackground:recursiveGetChildById('NewSummonInfo')
171 LASTSUM = menuBackground:recursiveGetChildById('lastSum') SUMCOUNT = menuBackground:recursiveGetChildById('countSum')
172 EQUIPSUMPRO = menuBackground:recursiveGetChildById('EquipSumProgress')
173 NEXTSUM = menuBackground:recursiveGetChildById('nextSum')
174 COMBOBOXSTAR:addOption(tr("Dragon"), "zero")
175 COMBOBOXSTAR:addOption(tr("Magica"), "um")
176 COMBOBOXSTAR:addOption(tr("Repteis"), "dois")
177 COMBOBOXSTAR:addOption(tr("Aquatico"), "tres")
178 COMBOBOXSTAR:addOption(tr("Morto-Vivo"), "quatro")
179 COMBOBOXSTAR:addOption(tr("Vermes"), "cinco")
180 COMBOBOXSTAR:addOption(tr("Mamiferos"), "seis")
181 COMBOBOXSTAR:addOption(tr("Demon"), "sete")
182 COMBOBOXSTAR:addOption(tr("Gigantes"), "oito")
183 COMBOBOXSTAR:addOption(tr("Constructos"), "nove")
184 COMBOBOXSTAR:addOption(tr("Humanoides"), "dez")
185 COMBOBOXSTAR:addOption(tr("Dimensionais"), "onze")
186
187 if g_app.isMobile() then
188 MOBILE_SUMMOM_FILT = modules.game_interface.onMobileWindow(90)
189
190 MOBILE_SUMMOM_FILT:addOption(tr("Dragon"), "zero")
191 MOBILE_SUMMOM_FILT:addOption(tr("Magica"), "um")
192 MOBILE_SUMMOM_FILT:addOption(tr("Repteis"), "dois")
193 MOBILE_SUMMOM_FILT:addOption(tr("Aquatico"), "tres")
194 MOBILE_SUMMOM_FILT:addOption(tr("Morto-Vivo"), "quatro")
195 MOBILE_SUMMOM_FILT:addOption(tr("Vermes"), "cinco")
196 MOBILE_SUMMOM_FILT:addOption(tr("Mamiferos"), "seis")
197 MOBILE_SUMMOM_FILT:addOption(tr("Demon"), "sete")
198 MOBILE_SUMMOM_FILT:addOption(tr("Gigantes"), "oito")
199 MOBILE_SUMMOM_FILT:addOption(tr("Constructos"), "nove")
200 MOBILE_SUMMOM_FILT:addOption(tr("Humanoides"), "dez")
201 MOBILE_SUMMOM_FILT:addOption(tr("Dimensionais"), "onze")
202 end
203
204 VOLTAR:hide() TXTSTAR:hide() INFO:hide() COMBOBOXSTAR:hide() INFOBOX:hide() NEWSUMMON:hide()
205 NEWSUMINFO:hide() EQUIPSUM:hide() LASTSUM:hide() SUMCOUNT:hide() NEXTSUM:hide() INFOBOX:hide()
206
207 -- Janelas do Menu (Por padrao, a primeira janela que se abre e a do inventario)
208 INVENTARIO_WINDOW = menuBackground:recursiveGetChildById('showInventario')
209 LOJA_REM_BT = menuBackground:recursiveGetChildById('lojaRemota')
210 LOJA_REM_BT:hide()
211 STATUS_BUTTON = menuBackground:recursiveGetChildById('menuStatus')
212 STATUS_WINDOW = menuBackground:recursiveGetChildById('showStatus')
213 LOADING_STATUS = menuBackground:recursiveGetChildById('LoadingStatus')
214 MAESTRIA_STATUS = menuBackground:recursiveGetChildById('panelMaestria')
215 ESPECIALISTA_STATUS = menuBackground:recursiveGetChildById('panelEspecialista')
216 TXT_ATK = menuBackground:recursiveGetChildById('statusAtk')
217 TXT_DEF = menuBackground:recursiveGetChildById('statusDef')
218 TXT_ESQ = menuBackground:recursiveGetChildById('statusEsq')
219 PRO_FIRE = menuBackground:recursiveGetChildById('fireProgress')
220 TXT_FIRE = menuBackground:recursiveGetChildById('statusFire')
221 PRO_ICE = menuBackground:recursiveGetChildById('iceProgress')
222 TXT_ICE = menuBackground:recursiveGetChildById('statusIce')
223 PRO_ENERGY = menuBackground:recursiveGetChildById('energyProgress')
224 TXT_ENERGY = menuBackground:recursiveGetChildById('statusEnergy')
225 PRO_EARTH = menuBackground:recursiveGetChildById('earthProgress')
226 TXT_EARTH = menuBackground:recursiveGetChildById('statusEarth')
227 PRO_DEATH = menuBackground:recursiveGetChildById('deathProgress')
228 TXT_DEATH = menuBackground:recursiveGetChildById('statusDeath')
229 TXT_TAX = menuBackground:recursiveGetChildById('statusTaxa')
230 TXT_CRI = menuBackground:recursiveGetChildById('statusCritico')
231 TXT_PEN = menuBackground:recursiveGetChildById('statusPenalidade')
232 TXT_PVP = menuBackground:recursiveGetChildById('statusPvp')
233
234
235 PASSIVE_BOX = g_ui.displayUI('passiveBox')
236 PASSIVE_BOX:hide()
237
238 PASSIVE_PANEL = PASSIVE_BOX:recursiveGetChildById('passivePanel')
239 TXT_PANEL_POINTS = menuBackground:recursiveGetChildById('LabelAtrPoints')
240 TXT_PANEL_PASSIVE_1 = menuBackground:recursiveGetChildById('TextPanelPassive_1')
241 TXT_PANEL_PASSIVE_2 = menuBackground:recursiveGetChildById('TextPanelPassive_2')
242 TXT_PANEL_PASSIVE_3 = menuBackground:recursiveGetChildById('TextPanelPassive_3')
243 TXT_PANEL_PASSIVE_4 = menuBackground:recursiveGetChildById('TextPanelPassive_4')
244 TXT_PANEL_PASSIVE_5 = menuBackground:recursiveGetChildById('TextPanelPassive_5')
245 TXT_PANEL_PASSIVE_6 = menuBackground:recursiveGetChildById('TextPanelPassive_6')
246 TXT_PANEL_MAES = menuBackground:recursiveGetChildById('TextPanelMaestria')
247 TXT_PANEL_ESP = menuBackground:recursiveGetChildById('TextPanelEspecialista')
248 TXT_PANEL_PAT = menuBackground:recursiveGetChildById('TextPanelPatent')
249
250 BT_PANEL_PASSIVE_1 = menuBackground:recursiveGetChildById('passive_1')
251 BT_PANEL_PASSIVE_2 = menuBackground:recursiveGetChildById('passive_2')
252 BT_PANEL_PASSIVE_3 = menuBackground:recursiveGetChildById('passive_3')
253 BT_PANEL_PASSIVE_4 = menuBackground:recursiveGetChildById('passive_4')
254 BT_PANEL_PASSIVE_5 = menuBackground:recursiveGetChildById('passive_5')
255 BT_PANEL_PASSIVE_6 = menuBackground:recursiveGetChildById('passive_6')
256 LOADING_STATUS:hide()
257
258 QUEST_WINDOW = menuBackground:recursiveGetChildById('showQuest')
259 QUEST_PANEL = menuBackground:recursiveGetChildById('questPanelQuest')
260 TASK_WINDOW = menuBackground:recursiveGetChildById('showTask')
261 ACTIVE_WINDOW = menuBackground:recursiveGetChildById('showActive')
262
263 RANK_BUTTON = menuBackground:recursiveGetChildById('HallOfFame')
264 RANK_LIST = menuBackground:recursiveGetChildById('RankPlayerPanel')
265 RANK_PANEL = menuBackground:recursiveGetChildById('showRank')
266 RANK_FILTRO = menuBackground:recursiveGetChildById('rankFiltro')
267 RANK_FILTRO:addOption("Level", "00")
268 RANK_FILTRO:addOption(tr("Metralhadora"), "01")
269 RANK_FILTRO:addOption(tr("Rifle"), "02")
270 RANK_FILTRO:addOption(tr("Pistola"), "03")
271 RANK_FILTRO:addOption(tr("Espingarda"), "04")
272 COLISEU_BUTTON = menuBackground:recursiveGetChildById('Coliseu')
273 COLISEU_PANEL_OFF = menuBackground:recursiveGetChildById('ColiseuOff')
274 COLISEU_PANEL = menuBackground:recursiveGetChildById('showColiseu')
275 COLISEU_SCROLL = menuBackground:recursiveGetChildById('ColiseuPanel')
276 KARDS_BUTTON = menuBackground:recursiveGetChildById('Kards')
277 KARDS_PANEL_OFF = menuBackground:recursiveGetChildById('KardsOff')
278 KARDS_PANEL = menuBackground:recursiveGetChildById('showKards')
279 KARDS_BANNER = menuBackground:recursiveGetChildById('kardsBanner')
280 KARDS_RANK_NAME = menuBackground:recursiveGetChildById('rankKardName')
281 KARDS_RANK_PROG = menuBackground:recursiveGetChildById('krank')
282 KARDS_RANK_IMG = menuBackground:recursiveGetChildById('kardsImg')
283 KARDS_RANK_LABEL = menuBackground:recursiveGetChildById('kardlabel')
284 KARDS_NPC_PANEL = menuBackground:recursiveGetChildById('KardsPanel')
285 KARDS_TIER = menuBackground:recursiveGetChildById('tierKardName')
286 FENDAS_BUTTON = menuBackground:recursiveGetChildById('FendasDimensionais')
287 FENDAS_LIST = menuBackground:recursiveGetChildById('FendasPanel')
288 FENDAS_PANEL = menuBackground:recursiveGetChildById('showFendas')
289 FENDAS_PROGRESS_1 = menuBackground:recursiveGetChildById('FendasProgress1')
290 FENDAS_PROGRESS_2 = menuBackground:recursiveGetChildById('FendasProgress2')
291 FENDAS_PROGRESS_3 = menuBackground:recursiveGetChildById('FendasProgress3')
292 FENDAS_PROGRESS_4 = menuBackground:recursiveGetChildById('FendasProgress4')
293 FENDAS_LABEL_1 = menuBackground:recursiveGetChildById('RewardCount1')
294 FENDAS_LABEL_2 = menuBackground:recursiveGetChildById('RewardCount2')
295 FENDAS_LABEL_3 = menuBackground:recursiveGetChildById('RewardCount3')
296 FENDAS_LABEL_4 = menuBackground:recursiveGetChildById('RewardCount4')
297 FENDAS_REWARD_1 = menuBackground:recursiveGetChildById('FendaReward1')
298 FENDAS_REWARD_2 = menuBackground:recursiveGetChildById('FendaReward2')
299 FENDAS_REWARD_3 = menuBackground:recursiveGetChildById('FendaReward3')
300 FENDAS_REWARD_4 = menuBackground:recursiveGetChildById('FendaReward4')
301 ONLINE_BUTTON = menuBackground:recursiveGetChildById('JogadoresOnline')
302 ONLINE_PANEL = menuBackground:recursiveGetChildById('showOnline')
303 ONLINE_LIST = menuBackground:recursiveGetChildById('OnlinePanel')
304 ONLINE_LABEL = menuBackground:recursiveGetChildById('onlineLabel')
305 HUNT_BUTTON = menuBackground:recursiveGetChildById('HuntAnalyser')
306 HUNT_START = menuBackground:recursiveGetChildById('startAnalyser')
307 HUNT_PAUSE = menuBackground:recursiveGetChildById('pauseAnalyser')
308 HUNT_CLOSER = menuBackground:recursiveGetChildById('closeAnalyser')
309 HUNT_PANEL = menuBackground:recursiveGetChildById('showAnalyser')
310 HUNT_LIST = menuBackground:recursiveGetChildById('AnalyserPanel')
311 HUNT_TIME_LABEL = menuBackground:recursiveGetChildById('analyserTimerTxt')
312 HUNT_EXP_LABEL = menuBackground:recursiveGetChildById('analyserEXPTxt')
313 HUNT_LOOT_LABEL = menuBackground:recursiveGetChildById('analyserLootTxt')
314 HUNT_SUPPLIES_LABEL = menuBackground:recursiveGetChildById('analyserSuppliesTxt')
315 HUNT_BALANCE_LABEL = menuBackground:recursiveGetChildById('analyserBalanceTxt')
316 HUNT_KILLED_LABEL = menuBackground:recursiveGetChildById('analyserKilledTxt')
317
318 HUNT_COMPACT_START = AnalyserBox:recursiveGetChildById('startAnalyser')
319 HUNT_COMPACT_PAUSE = AnalyserBox:recursiveGetChildById('pauserAnalyser')
320 HUNT_COMPACT_CLOSE = AnalyserBox:recursiveGetChildById('closeAnalyser')
321 HUNT_COMPACT_LIST = AnalyserBox:recursiveGetChildById('AnalyserPanel')
322 HUNT_COMPACT_TIME_LABEL = AnalyserBox:recursiveGetChildById('analyserTimerTxt')
323 HUNT_COMPACT_EXP_LABEL = AnalyserBox:recursiveGetChildById('analyserEXPTxt')
324 HUNT_COMPACT_LOOT_LABEL = AnalyserBox:recursiveGetChildById('analyserLootTxt')
325 HUNT_COMPACT_SUPPLIES_LABEL = AnalyserBox:recursiveGetChildById('analyserSuppliesTxt')
326 HUNT_COMPACT_BALANCE_LABEL = AnalyserBox:recursiveGetChildById('analyserBalanceTxt')
327 HUNT_COMPACT_KILLED_LABEL = AnalyserBox:recursiveGetChildById('analyserKilledTxt')
328 EVENTS_BUTTON = menuBackground:recursiveGetChildById('Eventos')
329 EVENT_PANEL_0 = menuBackground:recursiveGetChildById('showEvents_0')
330 EVENT_PANEL_1 = menuBackground:recursiveGetChildById('showEvents_1')
331 EVENT_PANEL_2 = menuBackground:recursiveGetChildById('showEvents_2')
332 EVENT_PANEL_3 = menuBackground:recursiveGetChildById('showEvents_3')
333 EVENT_PANEL_4 = menuBackground:recursiveGetChildById('showEvents_4')
334 EVENT_PANEL_5 = menuBackground:recursiveGetChildById('showEvents_5')
335 EVENT_PANEL_6 = menuBackground:recursiveGetChildById('showEvents_6')
336 EVENT_PANEL_7 = menuBackground:recursiveGetChildById('showEvents_7')
337 EVENT_PANEL_8 = menuBackground:recursiveGetChildById('showEvents_8')
338 EVENT_PANEL_9 = menuBackground:recursiveGetChildById('showEvents_9')
339 EVENT_PANEL_10 = menuBackground:recursiveGetChildById('showEvents_10')
340 EVENT_PANEL_11 = menuBackground:recursiveGetChildById('showEvents_11')
341 EVENT_PANEL_12 = menuBackground:recursiveGetChildById('showEvents_12')
342
343 SALDO_BONUS_EXP = menuBackground:recursiveGetChildById('saldoBonusEXP')
344 SALDO_LEVEL_TOKEN = menuBackground:recursiveGetChildById('saldoLevelTokens')
345 SALDO_GOLD_TOKEN = menuBackground:recursiveGetChildById('saldoGoldToken')
346 EVENT_SCROLL = menuBackground:recursiveGetChildById('Event_7Panel')
347 CRIPT_BUTTON = menuBackground:recursiveGetChildById('Criptomoedas')
348 CRIPT_PANEL = menuBackground:recursiveGetChildById('showCriptomoeda')
349 CRIPT_SALDO = menuBackground:recursiveGetChildById('infoCriptValue')
350 SALDO_BLACKMARKET = menuBackground:recursiveGetChildById('saldoBlackMarket')
351 SALDO_BMARKET = menuBackground:recursiveGetChildById('saldoBMarket')
352 CRIPT_VALOR = menuBackground:recursiveGetChildById('infoPriceValue')
353 CRIPT_TXT = menuBackground:recursiveGetChildById('criptTxT')
354 CRIPT_PAY = menuBackground:recursiveGetChildById('criptPagamento')
355 STEP_REQUEST = menuBackground:recursiveGetChildById('stepRequest')
356 PAYMENT_METH_PANEL = menuBackground:recursiveGetChildById('showPayMeth')
357 PAYMENT_METH_REAL = menuBackground:recursiveGetChildById('btPauMethReal')
358 PAYMENT_METH_VIP = menuBackground:recursiveGetChildById('btPauMethVip')
359 REQUEST_PAY_PANEL = menuBackground:recursiveGetChildById('showRequestPay')
360 REQUEST_PANEL = menuBackground:recursiveGetChildById('CriptPanel')
361 REQUEST_STEP_1 = menuBackground:recursiveGetChildById('configPanel_1')
362 PAYMENT_METH_DESC = menuBackground:recursiveGetChildById('paymenthMethDesc')
363 PIX_LABEL_NAME = menuBackground:recursiveGetChildById('realName')
364 PIX_LABEL_EMAIL = menuBackground:recursiveGetChildById('realEmail')
365 PIX_LABEL_BANK = menuBackground:recursiveGetChildById('realBank')
366 PIX_EDIT = menuBackground:recursiveGetChildById('PixEdit')
367 EDIT_REAL_NAME = pixBox:recursiveGetChildById('nomeTextEdit')
368 EDIT_EMAIL = pixBox:recursiveGetChildById('pixTextEdit')
369 EDIT_BANK = pixBox:recursiveGetChildById('bankTextEdit')
370 NEXT_STEP_1 = menuBackground:recursiveGetChildById('NextStep_1')
371 LAST_STEP_1 = menuBackground:recursiveGetChildById('LastStep_1')
372 REQUEST_STEP_2 = menuBackground:recursiveGetChildById('configPanel_2')
373 CRIPT_COUNT = menuBackground:recursiveGetChildById('CoinCount')
374 CRIPT_SCROLL = menuBackground:recursiveGetChildById('criptScrollBar')
375 CRIPT_FINAL_PRICE = menuBackground:recursiveGetChildById('criptFinalPrice')
376 NEXT_STEP_2 = menuBackground:recursiveGetChildById('NextStep_2')
377 LAST_STEP_2 = menuBackground:recursiveGetChildById('LastStep_2')
378 REQUEST_STEP_3 = menuBackground:recursiveGetChildById('configPanel_3')
379 FINAL_VALOR = menuBackground:recursiveGetChildById('txtValor')
380 FINAL_NOME = menuBackground:recursiveGetChildById('txtNome')
381 FINAL_EMAIL = menuBackground:recursiveGetChildById('txtEmail')
382 FINAL_BANK = menuBackground:recursiveGetChildById('txtBank')
383 FINAL_COIN = menuBackground:recursiveGetChildById('txtCoin')
384 NEXT_STEP_3 = menuBackground:recursiveGetChildById('NextStep_3')
385 LAST_STEP_3 = menuBackground:recursiveGetChildById('LastStep_3')
386 FINAL_INFO = menuBackground:recursiveGetChildById('alertInfo')
387
388 REQUEST_PAY_PANEL:hide()
389 REQUEST_STEP_1:hide()
390 REQUEST_STEP_2:hide()
391 LOAD_REQUEST = menuBackground:recursiveGetChildById('showRequestLoad')
392 LOAD_REQUEST:hide()
393 --ONLINE_LIST = menuBackground:recursiveGetChildById('OnlinePanel')
394
395 BLACKLIST_BUTTON = menuBackground:recursiveGetChildById('BlacklistActive')
396 TASK_RANK = menuBackground:recursiveGetChildById('rankImg')
397 TASK_RANK_NAME = menuBackground:recursiveGetChildById('rankName')
398 TASK_RANK_PROGRESS = menuBackground:recursiveGetChildById('TaskProgress')
399 TASK_RANK_NEXT = menuBackground:recursiveGetChildById('nextRank')
400 TASK_RANK_LAST = menuBackground:recursiveGetChildById('backRank')
401 TASK_ATIVA = menuBackground:recursiveGetChildById('taskAtiva')
402 TASK_ATIVA_NAME = menuBackground:recursiveGetChildById('taskNameAtiva')
403 TASK_ATIVA_QNT = menuBackground:recursiveGetChildById('taskQntAtiva')
404 TASK_ATIVA_PROGRESS = menuBackground:recursiveGetChildById('taskProgressAtiva')
405 TASK_COINS_1 = menuBackground:recursiveGetChildById('taskPoints1')
406 TASK_COINS_2 = menuBackground:recursiveGetChildById('taskPoints2')
407 TASK_COINS_3 = menuBackground:recursiveGetChildById('taskPoints3')
408
409 SHOP_WINDOW = menuBackground:recursiveGetChildById('showShop')
410 VipLabel = menuBackground:recursiveGetChildById('VipLabel')
411 OnlineLabel = menuBackground:recursiveGetChildById('OnlineLabel')
412 PVPLabel = menuBackground:recursiveGetChildById('PVPLabel')
413 VipLabelSelect = menuBackground:recursiveGetChildById('VipLabelSelect')
414 OnlineLabelSelect = menuBackground:recursiveGetChildById('OnlineLabelSelect')
415 PVPLabelSelect = menuBackground:recursiveGetChildById('PVPLabelSelect')
416
417 PremiumLabel = menuBackground:recursiveGetChildById('PremiumLabel')
418 ConsumiveisLabel = menuBackground:recursiveGetChildById('ConsumiveisLabel')
419 BuffLabel = menuBackground:recursiveGetChildById('BuffLabel')
420 ServicosLabel = menuBackground:recursiveGetChildById('ServicosLabel')
421 EspecialLabel = menuBackground:recursiveGetChildById('EspecialLabel')
422 FerramentasLabel = menuBackground:recursiveGetChildById('FerramentasLabel')
423 OutfitLabel = menuBackground:recursiveGetChildById('OutfitLabel')
424 MontariaLabel = menuBackground:recursiveGetChildById('MontariaLabel')
425 BackpackLabel = menuBackground:recursiveGetChildById('BackpackLabel')
426 KardLabel = menuBackground:recursiveGetChildById('KardLabel')
427 ExtensoesLabel = menuBackground:recursiveGetChildById('ExtensoesLabel')
428 WarzoneLabel = menuBackground:recursiveGetChildById('WarzoneLabel')
429 SHOP_SELECT = menuBackground:recursiveGetChildById('shopSelectPanel')
430 SHOP_SCROLL = menuBackground:recursiveGetChildById('selectPanelScrollBar')
431 SHOP_SELECT_PANEL = menuBackground:recursiveGetChildById('selectPanel')
432 SHOP_SELECT_DESC = menuBackground:recursiveGetChildById('SelectDesc')
433
434
435 -- Buttons do Menu
436 INVENTARIO_BUTTON = menuBackground:recursiveGetChildById('menuInv')
437 ISTATUS_BUTTON = menuBackground:recursiveGetChildById('menuInv')
438 QUEST_BUTTON = menuBackground:recursiveGetChildById('menuQuest')
439 TASK_BUTTON = menuBackground:recursiveGetChildById('menuAtiv')
440 SHOP_BUTTON = menuBackground:recursiveGetChildById('menuShop')
441
442 -- Clicks do Menu
443 LoadingQuest = menuBackground:recursiveGetChildById('LoadingQuest')
444 LoadingQuest:hide()
445 ReloadButtonMenu()
446 -- Escondendo uma Quest
447
448 ListaQuest = menuBackground:recursiveGetChildById('questPanelQuest')
449 ScrollBarQuest = menuBackground:recursiveGetChildById('questPanelListScrollBar')
450 TituloQuest = menuBackground:recursiveGetChildById('Q_Title')
451 DetalhesQuest = menuBackground:recursiveGetChildById('Q_Detalhes')
452 RecompensaQuest = menuBackground:recursiveGetChildById('Q_Recompensa')
453 Texto_Recompensa = menuBackground:recursiveGetChildById('txt_Recompensa')
454 BackQuest = menuBackground:recursiveGetChildById('Q_Back')
455 RastrearQuest = menuBackground:recursiveGetChildById('Q_Rastrear')
456 RastrearQuest:setTooltip(tr("Um icone sera mostrado em\nseu mapa indicando onde deve ir."))
457 AbertasQuest = menuBackground:recursiveGetChildById('Q_Abertas')
458 ConcluidasQuest = menuBackground:recursiveGetChildById('Q_Concluidas')
459 ProgressQuest = menuBackground:recursiveGetChildById('Q_Progress')
460 NoQuest = menuBackground:recursiveGetChildById('Quest_0')
461
462 AbertasQuest.onClick = function() FilterButtonQuest(01) end
463 ConcluidasQuest.onClick = function() FilterButtonQuest(02) end
464 AbertasQuest:hide()
465 ConcluidasQuest:hide()
466 RecompensaQuest:hide()
467 DetalhesQuest:hide()
468 BackQuest:hide()
469 TituloQuest:hide()
470 RastrearQuest:hide()
471 ProgressQuest:hide()
472 NoQuest:hide()
473 --Quest3 = menuBackground:recursiveGetChildById('Q_3') Quest3:hide()
474
475 -- PAGINA DEFAULT AO ABRIR O MENU --
476 INVENTARIO_BUTTON:setImageSource("/images/custom/UI/menu_select")
477 STATUS_BUTTON:setImageSource("/images/custom/UI/menu_option")
478 QUEST_BUTTON:setImageSource("/images/custom/UI/menu_option")
479 TASK_BUTTON:setImageSource("/images/custom/UI/menu_option")
480 SHOP_BUTTON:setImageSource("/images/custom/UI/menu_option")
481
482 onHiderWindows()
483 INVENTARIO_WINDOW:show()
484 QuestFilter = 1
485 -------------------------------------
486
487 hubBackground = g_ui.displayUI('hub')
488 hubBackground:hide()
489 itemView = hubBackground:recursiveGetChildById('itemView')
490 PvpMode = hubBackground:recursiveGetChildById('pvpButton') NexusRemote = hubBackground:recursiveGetChildById('summonButton')
491 MenuView = hubBackground:recursiveGetChildById('menu')
492 Spell01 = hubBackground:recursiveGetChildById('spell01') Suport01 = hubBackground:recursiveGetChildById('sup01')
493 Spell02 = hubBackground:recursiveGetChildById('spell02') Suport02 = hubBackground:recursiveGetChildById('sup02')
494 Spell03 = hubBackground:recursiveGetChildById('spell03') Suport03 = hubBackground:recursiveGetChildById('sup03')
495
496 Sup01 = hubBackground:recursiveGetChildById('sup01')
497 Sup02 = hubBackground:recursiveGetChildById('sup02')
498 Sup03 = hubBackground:recursiveGetChildById('sup03')
499 SupQnt = hubBackground:recursiveGetChildById('qntSkill')
500 ammohub = hubBackground:recursiveGetChildById('hubammo')
501 on_time = hubBackground:recursiveGetChildById('online_time')
502
503 healthBar = hubBackground:recursiveGetChildById('healthBar')
504 connect(hubBackground, { onGeometryChange = layoutHudActionBar })
505 healthStatus = hubBackground:recursiveGetChildById('heartStatus')
506 LevelInfo = hubBackground:recursiveGetChildById('levelInfo')
507 expStatus = hubBackground:recursiveGetChildById('expStatus')
508 experienceBar = hubBackground:recursiveGetChildById('manaBar')
509
510 overlay = g_ui.createWidget('HealthOverlay', modules.game_interface.getMapPanel())
511 overlay:setVisible(false)
512 healthCircleFront = overlay:getChildById('healthCircleFront')
513 manaCircleFront = overlay:getChildById('manaCircleFront')
514 healthCircle = overlay:getChildById('healthCircle')
515 manaCircle = overlay:getChildById('manaCircle')
516 topHealthBar = overlay:getChildById('topHealthBar')
517 topManaBar = overlay:getChildById('topManaBar')
518
519 -- load condition icons
520 for k,v in pairs(Icons) do
521 g_textures.preload(v.path)
522 end
523
524 local localPlayer = g_game.getLocalPlayer()
525 connect(LocalPlayer, { onHealthChange = onHealthChange,
526 onStatesChange = onStatesChange,
527 onLevelChange = onLevelChange,
528 onSkillChange = onSkillChange,
529 onExperienceChange = onExperienceChange,
530 onBaseSkillChange = onBaseSkillChange
531 --[[onManaChange = onManaChange]] })
532
533 if g_game.isOnline() then
534 local localPlayer = g_game.getLocalPlayer()
535 onHealthChange(localPlayer, localPlayer:getHealth(), localPlayer:getMaxHealth())
536 onStatesChange(localPlayer, localPlayer:getStates(), 0)
537 onLevelChange(localPlayer, localPlayer:getLevel(), localPlayer:getLevelPercent())
538 --onManaChange(localPlayer, localPlayer:getMana(), localPlayer:getMaxMana())
539 end
540end
541
542-- VARIAVEIS LOCAIS -------------
543local EMPTY_SLOT = {
544 [01] = "/images/game/slots/amulet";
545 [02] = "/images/game/slots/helmet";
546 [03] = "/images/game/slots/backpack";
547 [04] = "/images/game/slots/gun";
548 [05] = "/images/game/slots/armor";
549 [06] = "/images/game/slots/glove";
550 [07] = "/images/game/slots/ring";
551 [08] = "/images/game/slots/leg";
552 [09] = "/images/game/slots/boot";
553 [10] = "/images/custom/UI/item_slot";
554}
555local A = 5
556local inv_pos = AMULET
557local menuBackgroundShow = 0
558local BAG = BAG
559local INV_MOBILE = INV_MOBILE
560local BAG_MOBILE = BAG_MOBILE
561local BACKPACK_SLOT = BACKPACK_SLOT
562local IS = 1
563local delayPro = 1000
564local LastClickSlot = 0
565local onBackpackSelect = 0
566local SummonShow = 0
567local atual = 0
568local starSummon = 0
569local OverLogin = 0
570local QuestFilter = 1
571local Novato = 0
572local RankPage = 1
573local color_cooldown = "#737370"
574local penalidade = 0
575local RareMax = 0
576local AtualStorage = 0
577local ViewMenuID = 0
578local gunChannel = nil
579local QuestSelect = 0
580local WaitBackpack = 0
581local menuBarView = 0
582local lastHealth = 0
583local PIX_REAL_NAME, PIX_EMAIL, PIX_BANK, HIGH_PLAYER_ACCOUNT = "", "", "", ""
584local CriptoMoeda, CriptoPrice, SaldoBlacklist, RequestFinalCoin, RequestFinalValor, EditOldCript, PixBoxView = 0, 0, 0, 0, 0, 0, false
585local DinRealCalculo = 0
586local ModoPVP = false
587local buyVipWindow = nil
588local ViewItems = false
589local BackpackEffect, OnlyRefreshBag = true, true
590local timer1, timer2, timer3, timer4 = 0, 0, 0, 0
591local LOJA_REMOTA, NEXUS_REMOTO, DESCONTRUIR_EVENT = 0, 0, 0
592local AnalyserOn, AnalyserPause = false, false
593local atrBuy = nil
594local PassiveCategoria, PassiveSlot, LastPassiveCat = 0, 0, 0
595local AnalyserEXP, AnalyserLoot, AnalyserSupplies, AnalyserKill = 0, 0, 0, 0
596local PA_1, PA_2, PA_3, PA_4, PA_5, PA_6, DAILY_EVENT, PASS_EVENT = 0, 0, 0, 0, 0, 0, 0, 0
597local DELAY_CLICK, SECONDS_DELAY = false, 02
598local CLICK_DELAY = false
599local ORDER_BACKPACK_TYPE = 01
600local MACRO_EVENT, MACRO_LIMIT, MACRO_COUNT = nil, 500, 00
601local ColorPanel = {
602 [00] = '/images/custom/Task/Monster_1',
603 [01] = '/images/custom/Task/Monster_5',
604 [02] = '/images/custom/Task/Monster_3',
605 [03] = '/images/custom/Task/Monster_4',
606 [04] = '/images/custom/Task/Monster_2',
607}
608local HISTORY_CRIPTO = {
609 [01] = {ID = 0000, ACCOUNT_ID = 0000, NAME = "", EMAIL = "", BANK = "", CRIPTOMOEDA = 0000, PRICE = "", VALOR = "", STATUS = 00, OBS = ""},
610 [02] = {ID = 0000, ACCOUNT_ID = 0000, NAME = "", EMAIL = "", BANK = "", CRIPTOMOEDA = 0000, PRICE = "", VALOR = "", STATUS = 00, OBS = ""},
611 [03] = {ID = 0000, ACCOUNT_ID = 0000, NAME = "", EMAIL = "", BANK = "", CRIPTOMOEDA = 0000, PRICE = "", VALOR = "", STATUS = 00, OBS = ""},
612 [04] = {ID = 0000, ACCOUNT_ID = 0000, NAME = "", EMAIL = "", BANK = "", CRIPTOMOEDA = 0000, PRICE = "", VALOR = "", STATUS = 00, OBS = ""},
613 [05] = {ID = 0000, ACCOUNT_ID = 0000, NAME = "", EMAIL = "", BANK = "", CRIPTOMOEDA = 0000, PRICE = "", VALOR = "", STATUS = 00, OBS = ""},
614 [06] = {ID = 0000, ACCOUNT_ID = 0000, NAME = "", EMAIL = "", BANK = "", CRIPTOMOEDA = 0000, PRICE = "", VALOR = "", STATUS = 00, OBS = ""},
615 [07] = {ID = 0000, ACCOUNT_ID = 0000, NAME = "", EMAIL = "", BANK = "", CRIPTOMOEDA = 0000, PRICE = "", VALOR = "", STATUS = 00, OBS = ""},
616 [08] = {ID = 0000, ACCOUNT_ID = 0000, NAME = "", EMAIL = "", BANK = "", CRIPTOMOEDA = 0000, PRICE = "", VALOR = "", STATUS = 00, OBS = ""},
617 [09] = {ID = 0000, ACCOUNT_ID = 0000, NAME = "", EMAIL = "", BANK = "", CRIPTOMOEDA = 0000, PRICE = "", VALOR = "", STATUS = 00, OBS = ""},
618 [10] = {ID = 0000, ACCOUNT_ID = 0000, NAME = "", EMAIL = "", BANK = "", CRIPTOMOEDA = 0000, PRICE = "", VALOR = "", STATUS = 00, OBS = ""},
619}
620local _FAVORITE_SHOP = {
621 [00] = {TOTAL = 0},
622 [01] = {FAVORITE = ""},
623 [02] = {FAVORITE = ""},
624 [03] = {FAVORITE = ""},
625}
626local ANALYSER_ITEMS = {
627 [000] = {TOTAL = 0000},
628 [001] = {UID = 0000, QNT = 0000, RARE = 0000}, [002] = {UID = 0000, QNT = 0000, RARE = 0000}, [003] = {UID = 0000, QNT = 0000, RARE = 0000}, [004] = {UID = 0000, QNT = 0000, RARE = 0000}, [005] = {UID = 0000, QNT = 0000, RARE = 0000},
629 [006] = {UID = 0000, QNT = 0000, RARE = 0000}, [007] = {UID = 0000, QNT = 0000, RARE = 0000}, [008] = {UID = 0000, QNT = 0000, RARE = 0000}, [009] = {UID = 0000, QNT = 0000, RARE = 0000}, [010] = {UID = 0000, QNT = 0000, RARE = 0000},
630 [011] = {UID = 0000, QNT = 0000, RARE = 0000}, [012] = {UID = 0000, QNT = 0000, RARE = 0000}, [013] = {UID = 0000, QNT = 0000, RARE = 0000}, [014] = {UID = 0000, QNT = 0000, RARE = 0000}, [015] = {UID = 0000, QNT = 0000, RARE = 0000},
631 [016] = {UID = 0000, QNT = 0000, RARE = 0000}, [017] = {UID = 0000, QNT = 0000, RARE = 0000}, [018] = {UID = 0000, QNT = 0000, RARE = 0000}, [019] = {UID = 0000, QNT = 0000, RARE = 0000}, [020] = {UID = 0000, QNT = 0000, RARE = 0000},
632 [021] = {UID = 0000, QNT = 0000, RARE = 0000}, [022] = {UID = 0000, QNT = 0000, RARE = 0000}, [023] = {UID = 0000, QNT = 0000, RARE = 0000}, [024] = {UID = 0000, QNT = 0000, RARE = 0000}, [025] = {UID = 0000, QNT = 0000, RARE = 0000},
633 [026] = {UID = 0000, QNT = 0000, RARE = 0000}, [027] = {UID = 0000, QNT = 0000, RARE = 0000}, [028] = {UID = 0000, QNT = 0000, RARE = 0000}, [029] = {UID = 0000, QNT = 0000, RARE = 0000}, [030] = {UID = 0000, QNT = 0000, RARE = 0000},
634 [031] = {UID = 0000, QNT = 0000, RARE = 0000}, [032] = {UID = 0000, QNT = 0000, RARE = 0000}, [033] = {UID = 0000, QNT = 0000, RARE = 0000}, [034] = {UID = 0000, QNT = 0000, RARE = 0000}, [035] = {UID = 0000, QNT = 0000, RARE = 0000},
635 [036] = {UID = 0000, QNT = 0000, RARE = 0000}, [037] = {UID = 0000, QNT = 0000, RARE = 0000}, [038] = {UID = 0000, QNT = 0000, RARE = 0000}, [039] = {UID = 0000, QNT = 0000, RARE = 0000}, [040] = {UID = 0000, QNT = 0000, RARE = 0000},
636 [041] = {UID = 0000, QNT = 0000, RARE = 0000}, [042] = {UID = 0000, QNT = 0000, RARE = 0000}, [043] = {UID = 0000, QNT = 0000, RARE = 0000}, [044] = {UID = 0000, QNT = 0000, RARE = 0000}, [045] = {UID = 0000, QNT = 0000, RARE = 0000},
637 [046] = {UID = 0000, QNT = 0000, RARE = 0000}, [047] = {UID = 0000, QNT = 0000, RARE = 0000}, [048] = {UID = 0000, QNT = 0000, RARE = 0000}, [049] = {UID = 0000, QNT = 0000, RARE = 0000}, [050] = {UID = 0000, QNT = 0000, RARE = 0000},
638 [051] = {UID = 0000, QNT = 0000, RARE = 0000}, [052] = {UID = 0000, QNT = 0000, RARE = 0000}, [053] = {UID = 0000, QNT = 0000, RARE = 0000}, [054] = {UID = 0000, QNT = 0000, RARE = 0000}, [055] = {UID = 0000, QNT = 0000, RARE = 0000},
639 [056] = {UID = 0000, QNT = 0000, RARE = 0000}, [057] = {UID = 0000, QNT = 0000, RARE = 0000}, [058] = {UID = 0000, QNT = 0000, RARE = 0000}, [059] = {UID = 0000, QNT = 0000, RARE = 0000}, [060] = {UID = 0000, QNT = 0000, RARE = 0000},
640 [061] = {UID = 0000, QNT = 0000, RARE = 0000}, [062] = {UID = 0000, QNT = 0000, RARE = 0000}, [063] = {UID = 0000, QNT = 0000, RARE = 0000}, [064] = {UID = 0000, QNT = 0000, RARE = 0000}, [065] = {UID = 0000, QNT = 0000, RARE = 0000},
641 [066] = {UID = 0000, QNT = 0000, RARE = 0000}, [067] = {UID = 0000, QNT = 0000, RARE = 0000}, [068] = {UID = 0000, QNT = 0000, RARE = 0000}, [069] = {UID = 0000, QNT = 0000, RARE = 0000}, [070] = {UID = 0000, QNT = 0000, RARE = 0000},
642 [071] = {UID = 0000, QNT = 0000, RARE = 0000}, [072] = {UID = 0000, QNT = 0000, RARE = 0000}, [073] = {UID = 0000, QNT = 0000, RARE = 0000}, [074] = {UID = 0000, QNT = 0000, RARE = 0000}, [075] = {UID = 0000, QNT = 0000, RARE = 0000},
643 [076] = {UID = 0000, QNT = 0000, RARE = 0000}, [077] = {UID = 0000, QNT = 0000, RARE = 0000}, [078] = {UID = 0000, QNT = 0000, RARE = 0000}, [079] = {UID = 0000, QNT = 0000, RARE = 0000}, [080] = {UID = 0000, QNT = 0000, RARE = 0000},
644 [081] = {UID = 0000, QNT = 0000, RARE = 0000}, [082] = {UID = 0000, QNT = 0000, RARE = 0000}, [083] = {UID = 0000, QNT = 0000, RARE = 0000}, [084] = {UID = 0000, QNT = 0000, RARE = 0000}, [085] = {UID = 0000, QNT = 0000, RARE = 0000},
645 [086] = {UID = 0000, QNT = 0000, RARE = 0000}, [087] = {UID = 0000, QNT = 0000, RARE = 0000}, [088] = {UID = 0000, QNT = 0000, RARE = 0000}, [089] = {UID = 0000, QNT = 0000, RARE = 0000}, [090] = {UID = 0000, QNT = 0000, RARE = 0000},
646 [091] = {UID = 0000, QNT = 0000, RARE = 0000}, [092] = {UID = 0000, QNT = 0000, RARE = 0000}, [093] = {UID = 0000, QNT = 0000, RARE = 0000}, [094] = {UID = 0000, QNT = 0000, RARE = 0000}, [095] = {UID = 0000, QNT = 0000, RARE = 0000},
647 [096] = {UID = 0000, QNT = 0000, RARE = 0000}, [097] = {UID = 0000, QNT = 0000, RARE = 0000}, [098] = {UID = 0000, QNT = 0000, RARE = 0000}, [099] = {UID = 0000, QNT = 0000, RARE = 0000}, [100] = {UID = 0000, QNT = 0000, RARE = 0000},
648}
649local SHOP_SUMMON_PROMO = {
650 [01] = {PRICE_VIP = 25, PRICE_ONL = 00, PREMIUM = true, NAME = "Pack Subnautica", SUMMON = {
651 [01] = {04, 05};
652 [02] = {04, 06};
653 [03] = {04, 07};
654 [04] = {04, 08};
655 [05] = {04, 09};
656 [06] = {04, 10};
657 [07] = {04, 11};
658 [08] = {04, 12};
659 [09] = {04, 13};
660 [10] = {04, 14};
661 }
662 },
663 [02] = {PRICE_VIP = 25, PRICE_ONL = 00, PREMIUM = true, NAME = "Pack dos Inanimados", SUMMON = {
664 [01] = {10, 01};
665 [02] = {10, 02};
666 [03] = {10, 03};
667 [04] = {10, 04};
668 [05] = {10, 05};
669 [06] = {10, 06};
670 [07] = {10, 07};
671 }
672 },
673 [03] = {PRICE_VIP = 25, PRICE_ONL = 00, PREMIUM = true, NAME = "Pack Infernal", SUMMON = {
674 [01] = {08, 01};
675 [02] = {08, 02};
676 [03] = {08, 03};
677 [04] = {08, 04};
678 [05] = {08, 05};
679 [06] = {08, 06};
680 [07] = {08, 07};
681 [08] = {08, 08};
682 [09] = {08, 09};
683 }
684 },
685 [04] = {PRICE_VIP = 25, PRICE_ONL = 00, PREMIUM = true, NAME = "Pack Dimensional", SUMMON = {
686 [01] = {12, 01};
687 [02] = {12, 02};
688 [03] = {12, 03};
689 [04] = {12, 04};
690 [05] = {12, 05};
691 }
692 },
693 [05] = {PRICE_VIP = 25, PRICE_ONL = 00, PREMIUM = true, NAME = "Pack do Fogo Alado", SUMMON = {
694 [01] = {01, 01};
695 [02] = {01, 03};
696 [03] = {01, 04};
697 [04] = {01, 05};
698 [05] = {01, 06};
699 [06] = {01, 07};
700 [07] = {01, 08};
701 [08] = {01, 10};
702 [09] = {01, 11};
703 [10] = {01, 12};
704 }
705 },
706 [06] = {PRICE_VIP = 25, PRICE_ONL = 00, PREMIUM = true, NAME = "Pack dos Brutamontes", SUMMON = {
707 [01] = {09, 01};
708 [02] = {09, 02};
709 [03] = {09, 03};
710 [04] = {09, 04};
711 [05] = {09, 05};
712 [06] = {09, 06};
713 [07] = {09, 07};
714 [08] = {09, 08};
715 }
716 },
717 [07] = {PRICE_VIP = 25, PRICE_ONL = 00, PREMIUM = true, NAME = "Pack dos Semelhantes", SUMMON = {
718 [01] = {11, 01};
719 [02] = {11, 02};
720 [03] = {11, 03};
721 [04] = {11, 04};
722 [05] = {11, 05};
723 [06] = {11, 06};
724 [07] = {11, 07};
725 [08] = {11, 08};
726 [09] = {11, 09};
727 }
728 },
729 [08] = {PRICE_VIP = 25, PRICE_ONL = 00, PREMIUM = true, NAME = "Pack Magico", SUMMON = {
730 [01] = {02, 03};
731 [02] = {02, 04};
732 [03] = {02, 05};
733 [04] = {02, 06};
734 [05] = {02, 07};
735 [06] = {02, 08};
736 [07] = {02, 09};
737 [08] = {02, 10};
738 [09] = {02, 11};
739 [10] = {02, 12};
740 }
741 },
742 [09] = {PRICE_VIP = 25, PRICE_ONL = 00, PREMIUM = true, NAME = "Pack dos Mamiferos", SUMMON = {
743 [01] = {07, 01};
744 [02] = {07, 02};
745 [03] = {07, 03};
746 [04] = {07, 04};
747 }
748 },
749 [10] = {PRICE_VIP = 25, PRICE_ONL = 00, PREMIUM = true, NAME = "Pack dos Sombrios", SUMMON = {
750 [01] = {05, 02};
751 [02] = {05, 03};
752 [03] = {05, 04};
753 [04] = {05, 05};
754 [05] = {05, 06};
755 [06] = {05, 07};
756 [07] = {05, 08};
757 [08] = {05, 09};
758 [09] = {05, 10};
759 [10] = {05, 11};
760 }
761 },
762 [11] = {PRICE_VIP = 25, PRICE_ONL = 00, PREMIUM = true, NAME = "Pack dos Escamosos", SUMMON = {
763 [01] = {03, 03};
764 [02] = {03, 04};
765 [03] = {03, 05};
766 [04] = {03, 06};
767 [05] = {03, 07};
768 [06] = {03, 08};
769 [07] = {03, 09};
770 [08] = {03, 10};
771 [09] = {03, 11};
772 [10] = {03, 12};
773 }
774 },
775 [12] = {PRICE_VIP = 25, PRICE_ONL = 00, PREMIUM = true, NAME = "Pack dos Parasitas", SUMMON = {
776 [01] = {06, 07};
777 [02] = {06, 08};
778 [03] = {06, 09};
779 [04] = {06, 10};
780 [05] = {06, 11};
781 [06] = {06, 12};
782 [07] = {06, 13};
783 [08] = {06, 14};
784 [09] = {06, 15};
785 [10] = {06, 16};
786 }
787 },
788}
789local SET_SPY = {
790 [00] = {UID_01 = 00, UID_02 = 00, UID_03 = 00, UID_04 = 00, UID_05 = 00, UID_06 = 00, UID_07 = 00, UID_08 = 00, UID_09 = 00, UID_10 = ""}, -- GOLD | ONLINE | NAME
791 [01] = {UID_01 = 00, UID_02 = 00, UID_03 = 00, UID_04 = 00, UID_05 = 00, UID_06 = 00, UID_07 = 00, UID_08 = 00, UID_09 = 00, UID_10 = 00}, -- AMULET
792 [02] = {UID_01 = 00, UID_02 = 00, UID_03 = 00, UID_04 = 00, UID_05 = 00, UID_06 = 00, UID_07 = 00, UID_08 = 00, UID_09 = 00, UID_10 = 00}, -- HELMET
793 [03] = {UID_01 = 00, UID_02 = 00, UID_03 = 00, UID_04 = 00, UID_05 = 00, UID_06 = 00, UID_07 = 00, UID_08 = 00, UID_09 = 00, UID_10 = 00}, -- BACKPACK
794 [04] = {UID_01 = 00, UID_02 = 00, UID_03 = 00, UID_04 = 00, UID_05 = 00, UID_06 = 00, UID_07 = 00, UID_08 = 00, UID_09 = 00, UID_10 = 00}, -- GUN
795 [05] = {UID_01 = 00, UID_02 = 00, UID_03 = 00, UID_04 = 00, UID_05 = 00, UID_06 = 00, UID_07 = 00, UID_08 = 00, UID_09 = 00, UID_10 = 00}, -- ARMOR
796 [06] = {UID_01 = 00, UID_02 = 00, UID_03 = 00, UID_04 = 00, UID_05 = 00, UID_06 = 00, UID_07 = 00, UID_08 = 00, UID_09 = 00, UID_10 = 00}, -- GLOVE
797 [07] = {UID_01 = 00, UID_02 = 00, UID_03 = 00, UID_04 = 00, UID_05 = 00, UID_06 = 00, UID_07 = 00, UID_08 = 00, UID_09 = 00, UID_10 = 00}, -- RING
798 [08] = {UID_01 = 00, UID_02 = 00, UID_03 = 00, UID_04 = 00, UID_05 = 00, UID_06 = 00, UID_07 = 00, UID_08 = 00, UID_09 = 00, UID_10 = 00}, -- LEGS
799 [09] = {UID_01 = 00, UID_02 = 00, UID_03 = 00, UID_04 = 00, UID_05 = 00, UID_06 = 00, UID_07 = 00, UID_08 = 00, UID_09 = 00, UID_10 = 00}, -- BOOTS
800 [10] = {UID_01 = 00, UID_02 = 00, UID_03 = 00, UID_04 = 00, UID_05 = 00, UID_06 = 00, UID_07 = 00, UID_08 = 00, UID_09 = 00, UID_10 = 00}, -- KARD
801 }
802local GET_MAESTRIA = {
803 [01] = {
804 [00] = "Skill que ativa rapida regeneracao de HP por 1 min.";
805 [01] = "Diminui o cooldown para 6 min.";
806 [02] = "Diminui o cooldown para 5 min.";
807 [03] = "Diminui o cooldown para 4 min.";
808 [04] = "Diminui o cooldown para 3 min.";
809 [05] = "Diminui o cooldown para 2 min.";
810 [06] = "Nivel maximo de maestria.";
811 };
812 [02] = {
813 [00] = "Skill que te torna invencivel por 10 seg.";
814 [01] = "Diminui o cooldown para 6 min.";
815 [02] = "Diminui o cooldown para 5 min.";
816 [03] = "Diminui o cooldown para 4 min.";
817 [04] = "Diminui o cooldown para 3 min.";
818 [05] = "Diminui o cooldown para 2 min.";
819 [06] = "Nivel maximo de maestria.";
820 };
821 [03] = {
822 [00] = "Skill que dobra seu dano por 10 seg.";
823 [01] = "Diminui o cooldown para 6 min.";
824 [02] = "Diminui o cooldown para 5 min.";
825 [03] = "Diminui o cooldown para 4 min.";
826 [04] = "Diminui o cooldown para 3 min.";
827 [05] = "Diminui o cooldown para 2 min.";
828 [06] = "Nivel maximo de maestria.";
829 };
830 [04] = {
831 [00] = "Skill que cura e dobra seu HP por 10 seg.";
832 [01] = "Diminui o cooldown para 6 min.";
833 [02] = "Diminui o cooldown para 5 min.";
834 [03] = "Diminui o cooldown para 4 min.";
835 [04] = "Diminui o cooldown para 3 min.";
836 [05] = "Diminui o cooldown para 2 min.";
837 [06] = "Nivel maximo de maestria.";
838 };
839 [05] = {
840 [00] = "Skill que garante ativacao imediata de amuletos e aneis.";
841 [01] = "Diminui o cooldown para 6 min.";
842 [02] = "Diminui o cooldown para 5 min.";
843 [03] = "Diminui o cooldown para 4 min.";
844 [04] = "Diminui o cooldown para 3 min.";
845 [05] = "Diminui o cooldown para 2 min.";
846 [06] = "Nivel maximo de maestria.";
847 };
848}
849local GET_ESPECIALISTA = {
850 [01] = {
851 [00] = "Melhora o dano com armas do tipo Pistola.";
852 [01] = "Melhora o dano com armas do tipo Pistola em 15%.";
853 [02] = "Melhora o dano com armas do tipo Pistola em 20%.";
854 [03] = "Melhora o dano com armas do tipo Pistola em 25%.";
855 [04] = "Melhora o dano com armas do tipo Pistola em 30%.";
856 [05] = "Melhora o dano com armas do tipo Pistola em 35%.";
857 };
858 [02] = {
859 [00] = "Melhora o dano com armas do tipo Metralhadora.";
860 [01] = "Melhora o dano com armas do tipo Metralhadora em 15%.";
861 [02] = "Melhora o dano com armas do tipo Metralhadora em 20%.";
862 [03] = "Melhora o dano com armas do tipo Metralhadora em 25%.";
863 [04] = "Melhora o dano com armas do tipo Metralhadora em 30%.";
864 [05] = "Melhora o dano com armas do tipo Metralhadora em 35%.";
865 };
866 [03] = {
867 [00] = "Melhora o dano com armas do tipo Espingarda.";
868 [01] = "Melhora o dano com armas do tipo Espingarda em 15%.";
869 [02] = "Melhora o dano com armas do tipo Espingarda em 20%.";
870 [03] = "Melhora o dano com armas do tipo Espingarda em 25%.";
871 [04] = "Melhora o dano com armas do tipo Espingarda em 30%.";
872 [05] = "Melhora o dano com armas do tipo Espingarda em 35%.";
873 };
874 [04] = {
875 [00] = "Melhora o dano com armas do tipo Rifle.";
876 [01] = "Melhora o dano com armas do tipo Rifle em 15%.";
877 [02] = "Melhora o dano com armas do tipo Rifle em 20%.";
878 [03] = "Melhora o dano com armas do tipo Rifle em 25%.";
879 [04] = "Melhora o dano com armas do tipo Rifle em 30%.";
880 [05] = "Melhora o dano com armas do tipo Rifle em 35%.";
881 };
882}
883local LOAD_HOTKEY = {
884 [01] = {'F1', false},
885 [02] = {'F2', false},
886 [03] = {'F3', false},
887 [04] = {'F4', false},
888 [05] = {'F5', false},
889 [06] = {'F6', false},
890 [07] = {'F7', false},
891 [08] = {'F8', false},
892 [09] = {'F9', false},
893 [10] = {'F10', false},
894 [11] = {'F11', false},
895 [12] = {'F12', false},
896 [13] = {'1', false},
897 [14] = {'2', false},
898 [15] = {'3', false},
899 [16] = {'4', false},
900 [17] = {'5', false},
901 [18] = {'6', false},
902 [19] = {'7', false},
903 [20] = {'8', false},
904 [21] = {'9', false},
905 [22] = {'0', false},
906 [23] = {'Insert', false},
907 [24] = {'Home', false},
908 [25] = {'PageUp', false},
909 [26] = {'Delete', false},
910 [27] = {'End', false},
911 [28] = {'PageDown', false}
912 --[29] = 'Numpad0',
913}
914local KARDS_RANK_EXP = {
915 [01] = {NAME = 'BRONZE', TIER = 01, EXP = 0050, BONUS = 00};
916 [02] = {NAME = 'BRONZE', TIER = 02, EXP = 0150, BONUS = 02};
917 [03] = {NAME = 'BRONZE', TIER = 03, EXP = 0300, BONUS = 04};
918 [04] = {NAME = 'BRONZE', TIER = 04, EXP = 0450, BONUS = 06};
919 [05] = {NAME = 'SILVER', TIER = 01, EXP = 0650, BONUS = 08};
920 [06] = {NAME = 'SILVER', TIER = 02, EXP = 0850, BONUS = 10};
921 [07] = {NAME = 'SILVER', TIER = 03, EXP = 1050, BONUS = 12};
922 [08] = {NAME = 'SILVER', TIER = 04, EXP = 1250, BONUS = 14};
923 [09] = {NAME = 'GOLD', TIER = 01, EXP = 1500, BONUS = 16};
924 [10] = {NAME = 'GOLD', TIER = 02, EXP = 1750, BONUS = 18};
925 [11] = {NAME = 'GOLD', TIER = 03, EXP = 2000, BONUS = 20};
926 [12] = {NAME = 'GOLD', TIER = 04, EXP = 2250, BONUS = 22};
927 [13] = {NAME = 'PLATINUM', TIER = 01, EXP = 2550, BONUS = 24};
928 [14] = {NAME = 'PLATINUM', TIER = 02, EXP = 2850, BONUS = 26};
929 [15] = {NAME = 'PLATINUM', TIER = 03, EXP = 3150, BONUS = 28};
930 [16] = {NAME = 'PLATINUM', TIER = 04, EXP = 3450, BONUS = 30};
931 [17] = {NAME = 'DIAMOND', TIER = 01, EXP = 3800, BONUS = 32};
932 [18] = {NAME = 'DIAMOND', TIER = 02, EXP = 4150, BONUS = 34};
933 [19] = {NAME = 'DIAMOND', TIER = 03, EXP = 4500, BONUS = 36};
934 [20] = {NAME = 'DIAMOND', TIER = 04, EXP = 5000, BONUS = 38};
935 [21] = {NAME = 'MYSTIC', TIER = 04, EXP = 5000, BONUS = 40};
936}
937local EVENTOS_TABLE = {
938 [00] = {
939 EVENT_ID = 3085;
940 EVENT_UID_1 = 3086;
941 EVENT_UID_2 = 3087;
942 EVENT_UID_3 = 3088;
943 EVENT_UID_4 = 3089;
944 EVENT_UID_5 = 3090;
945 EVENT_UID_6 = 3091;
946 EVENT_UID_7 = 3092;
947 EVENT_UID_8 = 3093;
948 EVENT_UID_9 = 3094;
949 EVENT_UID_10 = 3095;
950 EVENT_UID_11 = 3096;
951 EVENT_UID_12 = 3097;
952 };
953 [01] = {
954 DATA_INICIO = 01;
955 DATA_FIM = 20;
956 EVENT_NAME = 'BENCAO DOS DEUSES';
957 DATA_DESC = '01 a 20';
958 MES_NAME = 'Janeiro';
959 EVENT_INF = 'No ServerSave, 03 monstros serao escolhidos aleatoriamente. Ate o proximo SS, esses monstros droparam Gold Token. Use-os para comprar o buff.';
960 GOLD_TOKEN = 1280;
961 };
962 [02] = {
963 DATA_INICIO = 12;
964 DATA_FIM = 20;
965 EVENT_NAME = 'MODO ONLINE';
966 DATA_DESC = '02 a 20';
967 MES_NAME = 'Fevereiro';
968 EVENT_INF = 'Todo o servidor deve eliminar 5000 monstros (qualquer monstro). Ao concluir, ate o SS das 00:00h todos os jogadores Online receberao 1x Online Points adicional.';
969 };
970 [03] = {
971 DATA_INICIO = 15;
972 DATA_FIM = 25;
973 EVENT_NAME = 'CRYPTOBLOOD';
974 DATA_DESC = '15 a 25';
975 MES_NAME = 'Marco';
976 EVENT_INF = 'O valor fixo e 50.000. Para todo o servidor, a cada monstro morto (qualquer monstro) o preco e diminuido em 1. O valor fixo e resetado a cada ServerSave.';
977 };
978 [04] = {
979 DATA_INICIO = 01;
980 DATA_FIM = 15;
981 EVENT_NAME = 'ESSENCIAS ELEMENTAIS';
982 DATA_DESC = '01 a 15';
983 MES_NAME = 'Abril';
984 EVENT_INF = 'Durante o evento, todos os monstros terao chance de dropar um dos 04 cristais. Use-as para ativar um dos buffs abaixo por 01 hora.';
985 BUFF_ELE = 1281;
986 };
987 [05] = {
988 DATA_INICIO = 01;
989 DATA_FIM = 15;
990 EVENT_NAME = 'ESTOQUE DE SUPRIMENTO';
991 DATA_DESC = '01 a 15';
992 MES_NAME = 'Maio';
993 EVENT_INF = 'Apos o ServerSave das 00:00h uma nova lista de itens surgira. Entregue os itens solicitados para receber sua recompensa em Task Points.';
994 ITEMS_TASK = {
995 [01] = {3005, 3006, 3007, 3011, 3013, 3014, 3042, 3044, 3056, 3060, 3108, 3109, 3140, 3169, 3175, 3178, 3187, 3193, 3244, 3253};
996 [02] = {3016, 3020, 3037, 3038, 3039, 3062, 3064, 3067, 3068, 3074, 3075, 3093, 3081, 3110, 3115, 3131, 3206, 3212, 3240, 3279};
997 [03] = {3022, 3023, 3029, 3030, 3032, 3231, 3035, 3065, 3087, 3089, 3079, 3097, 3100, 3116, 3119, 3136, 3138, 3148, 3234, 3271};
998 };
999 };
1000 [06] = {
1001 DATA_INICIO = 12;
1002 DATA_FIM = 25;
1003 EVENT_NAME = 'LEVEL E GANHE';
1004 DATA_DESC = '12 a 25';
1005 MES_NAME = 'Junho';
1006 EVENT_INF = 'A cada nivel obtido por qualquer jogador Nv. 100 ou maior no servidor, todos online ganham pontos. Use os pontos para abrir a caixa de presentes.';
1007 POINTS = 1282;
1008 };
1009 [07] = {
1010 DATA_INICIO = 10;
1011 DATA_FIM = 20;
1012 EVENT_NAME = 'CAMPEONATO DE KARD';
1013 DATA_DESC = '10 a 20';
1014 MES_NAME = 'Julho';
1015 EVENT_INF = 'Durante o evento, a cada duelo de Kard vencido contra NPCs voce recebera um bonus de EXP. Esse bonus se acumula a cada vitoria ate o limite de 300%. O bonus de EXP reseta apos o ServerSave das 00:00h.';
1016 EXP_BONUS = 1283;
1017 NPC = {
1018 [01] = {NAME = "Charos", EXP = 01, SIZE = {41, 48, 07, 13}, RASTREAR = {{x=3529, y=1544, z=07}}};
1019 [02] = {NAME = "Partos", EXP = 02, SIZE = {40, 48, 07, 13}, RASTREAR = {{x=3546, y=1744, z=07}}};
1020 [03] = {NAME = "Bozo", EXP = 03, SIZE = {57, 48, 07, 05}, RASTREAR = {{x=3483, y=1696, z=07}}};
1021 [04] = {NAME = "Galuna", EXP = 04, SIZE = {40, 48, 07, 13}, RASTREAR = {{x=3374, y=1728, z=07}}};
1022 [05] = {NAME = "Gareth", EXP = 05, SIZE = {64, 64, 02, 05}, RASTREAR = {{x=3312, y=1733, z=07}}};
1023 [06] = {NAME = "Hanna", EXP = 06, SIZE = {40, 48, 07, 13}, RASTREAR = {{x=3291, y=1766, z=07}}};
1024 [07] = {NAME = "Harsky", EXP = 07, SIZE = {42, 48, 07, 13}, RASTREAR = {{x=3213, y=1727, z=07}}};
1025 [08] = {NAME = "Henricus", EXP = 08, SIZE = {51, 48, 07, 11}, RASTREAR = {{x=3311, y=1701, z=07}}};
1026 [09] = {NAME = "Marvik", EXP = 09, SIZE = {40, 45, 07, 13}, RASTREAR = {{x=3765, y=1820, z=07}}};
1027 [10] = {NAME = "Kevin", EXP = 10, SIZE = {33, 48, 10, 15}, RASTREAR = {{x=3360, y=1918, z=07}}};
1028 [11] = {NAME = "Lungelen", EXP = 11, SIZE = {53, 48, 05, 09}, RASTREAR = {{x=3369, y=2061, z=07}}};
1029 [12] = {NAME = "Palomino", EXP = 12, SIZE = {51, 48, 05, 10}, RASTREAR = {{x=3815, y=1487, z=07}}};
1030 [13] = {NAME = "Hoggle", EXP = 13, SIZE = {40, 48, 07, 13}, RASTREAR = {{x=3375, y=1860, z=07}}};
1031 [14] = {NAME = "Naji", EXP = 14, SIZE = {35, 48, 07, 13}, RASTREAR = {{x=3825, y=1746, z=07}}};
1032 [15] = {NAME = "Loria", EXP = 15, SIZE = {33, 48, 10, 15}, RASTREAR = {{x=3378, y=1939, z=07}}};
1033 [16] = {NAME = "Muriel", EXP = 16, SIZE = {38, 45, 07, 13}, RASTREAR = {{x=3809, y=1787, z=07}}};
1034 [17] = {NAME = "Lynda", EXP = 17, SIZE = {36, 48, 07, 13}, RASTREAR = {{x=3490, y=1905, z=07}}};
1035 [18] = {NAME = "Norf", EXP = 18, SIZE = {64, 48, 05, 01}, RASTREAR = {{x=3881, y=1538, z=07}}};
1036 --[12] = {NAME = "Lubo", EXP = 26, SIZE = {38, 48, 07, 13}, RASTREAR = {{x=3999, y=991, z=07}}};
1037 };
1038 };
1039 [08] = {
1040 DATA_INICIO = 14;
1041 DATA_FIM = 25;
1042 EVENT_NAME = 'DESCONTRUTOR';
1043 DATA_DESC = '14 a 25';
1044 MES_NAME = 'Agosto';
1045 EVENT_INF = 'Durante o evento, a opcao de destruir o item sera substituida por Descontruir. Ao fazer isso, voce obtem parte dos materiais de upgrade daquele item.';
1046 };
1047 [09] = {
1048 DATA_INICIO = 07;
1049 DATA_FIM = 20;
1050 EVENT_NAME = 'MESTRES DA GUERRA';
1051 DATA_DESC = '07 a 20';
1052 MES_NAME = 'Setembro';
1053 EVENT_INF = 'Durante o evento, todas as recompensas de PVP Points da Warzone serao dobradas.';
1054 };
1055 [10] = {
1056 DATA_INICIO = 10;
1057 DATA_FIM = 20;
1058 EVENT_NAME = 'BAU DO DRAGAO';
1059 DATA_DESC = '10 a 20';
1060 MES_NAME = 'Outubro';
1061 EVENT_INF = 'Durante o evento, todos os bosses da blacklist droparam um item chamado Chave do Evento. Quanto mais forte o boss, mais facil de dropar a chave. Use a chave para abrir o bau do dragao.';
1062 KEYS_EVENT = 1286;
1063 };
1064 [11] = {
1065 DATA_INICIO = 20;
1066 DATA_FIM = 28;
1067 EVENT_NAME = 'PILARES DA FORTUNA';
1068 DATA_DESC = '20 a 28';
1069 MES_NAME = 'Novembro';
1070 EVENT_INF = '05 Pilares serao invocados no mapa. Ao destruir o primeiro, o servidor tera 05 minutos para destruir os outros. Se conseguirem, o bonus abaixo ficara ativo ate o proximo ServerSave.';
1071 PILLAR_STEP = 3098;
1072 PILLAR_POS = {
1073 [01] = {POS = {{x=3771, y=1059, z=07}}, TILE = {3771, 1059, 07}};
1074 [02] = {POS = {{x=3271, y=1373, z=07}}, TILE = {3271, 1373, 07}};
1075 [03] = {POS = {{x=3400, y=1991, z=07}}, TILE = {3400, 1991, 07}};
1076 [04] = {POS = {{x=3871, y=1650, z=07}}, TILE = {3871, 1650, 07}};
1077 [05] = {POS = {{x=3661, y=1812, z=07}}, TILE = {3661, 1812, 07}};
1078 };
1079 };
1080 [12] = {
1081 DATA_INICIO = 15;
1082 DATA_FIM = 25;
1083 EVENT_NAME = 'OS ESCOLHIDOS';
1084 DATA_DESC = '15 a 25';
1085 MES_NAME = 'Dezembro';
1086 EVENT_INF = '03 classes serao selecionados. Eliminando monstros da classe, o servidor ganha Pontos de Meta. Matar monstros de outras classes, perdem Pontos de Meta. Alcance a meta para ativar o bonus.';
1087 };
1088 }
1089local PASSIVES = {
1090 [01] = {
1091 NAME = "",
1092 STORAGE = 0,
1093 BOOST = 05,
1094 DESC = "Maior dano estando a 1 SQM de distancia.",
1095 POWER_BASE = 02,
1096 POWER_FOR_LEVEL = 02,
1097 POWER_SINAL = "%",
1098 POWER_INFO = "Dano Aumentado:",
1099 CATEGORY = 01,
1100 };
1101 [02] = {
1102 NAME = "",
1103 STORAGE = 0,
1104 BOOST = 05,
1105 DESC = "Maior dano em monstros de classe Constructos.",
1106 POWER_BASE = 02,
1107 POWER_FOR_LEVEL = 02,
1108 POWER_SINAL = "%",
1109 POWER_INFO = "Dano Aumentado:",
1110 CATEGORY = 01,
1111 };
1112 [03] = {
1113 NAME = "",
1114 STORAGE = 0,
1115 BOOST = 05,
1116 DESC = "Reflete dano do tipo PHYSICAL de volta ao alvo (PvE).",
1117 POWER_BASE = 05,
1118 POWER_FOR_LEVEL = 03,
1119 POWER_SINAL = "%",
1120 POWER_INFO = "Refletir:",
1121 CATEGORY = 03,
1122 };
1123 [04] = {
1124 NAME = "",
1125 STORAGE = 0,
1126 BOOST = 02,
1127 DESC = "Concede Skill de Espingarda.",
1128 POWER_BASE = 01,
1129 POWER_FOR_LEVEL = 01,
1130 POWER_SINAL = "",
1131 POWER_INFO = "Aumento de Skill: +",
1132 CATEGORY = 03,
1133 };
1134 [05] = {
1135 NAME = "",
1136 STORAGE = 0,
1137 BOOST = 05,
1138 DESC = "Aumenta seu dano com PISTOLA quando seu HP estiver acima de 70%%.",
1139 POWER_BASE = 02,
1140 POWER_FOR_LEVEL = 02,
1141 POWER_SINAL = "%",
1142 POWER_INFO = "Dano Aumentado:",
1143 CATEGORY = 01,
1144 };
1145 [06] = {
1146 NAME = "",
1147 STORAGE = 0,
1148 BOOST = 05,
1149 DESC = "Recebe menos dano PHYSICAL de monstros de classe Humanoides.",
1150 POWER_BASE = 02,
1151 POWER_FOR_LEVEL = 02,
1152 POWER_SINAL = "%",
1153 POWER_INFO = "Protecao:",
1154 CATEGORY = 02,
1155 };
1156 [07] = {
1157 NAME = "",
1158 STORAGE = 0,
1159 BOOST = 05,
1160 DESC = "Maior dano estando a 4 SQM ou mais do alvo.",
1161 POWER_BASE = 02,
1162 POWER_FOR_LEVEL = 02,
1163 POWER_SINAL = "%",
1164 POWER_INFO = "Dano Aumentado:",
1165 CATEGORY = 01,
1166 };
1167 [08] = {
1168 NAME = "",
1169 STORAGE = 0,
1170 BOOST = 25,
1171 DESC = "Causa status POISON no alvo ao dar Dano Critico.",
1172 POWER_BASE = 20,
1173 POWER_FOR_LEVEL = 20,
1174 POWER_SINAL = "",
1175 POWER_INFO = "Dano por Turno:",
1176 CATEGORY = 04,
1177 };
1178 [09] = {
1179 NAME = "",
1180 STORAGE = 0,
1181 BOOST = 05,
1182 DESC = "Ao eliminar alvo, ganha ESQUIVA + por 05 segundos.",
1183 POWER_BASE = 01,
1184 POWER_FOR_LEVEL = 01,
1185 POWER_SINAL = "",
1186 POWER_INFO = "Esquiva ganha:",
1187 CATEGORY = 03,
1188 };
1189 [10] = {
1190 NAME = "",
1191 STORAGE = 0,
1192 BOOST = 10,
1193 DESC = "Chance de disparo do tipo ICE.",
1194 POWER_BASE = 05,
1195 POWER_FOR_LEVEL = 03,
1196 POWER_SINAL = "%",
1197 POWER_INFO = "Chance de disparo:",
1198 CATEGORY = 04,
1199 };
1200 [11] = {
1201 NAME = "",
1202 STORAGE = 0,
1203 BOOST = 02,
1204 DESC = "Concede Skill de Rifle.",
1205 POWER_BASE = 01,
1206 POWER_FOR_LEVEL = 01,
1207 POWER_SINAL = "",
1208 POWER_INFO = "Aumento de Skill: +",
1209 CATEGORY = 03,
1210 };
1211 [12] = {
1212 NAME = "",
1213 STORAGE = 0,
1214 BOOST = 10,
1215 DESC = "Chance de disparo do tipo EARTH.",
1216 POWER_BASE = 05,
1217 POWER_FOR_LEVEL = 03,
1218 POWER_SINAL = "%",
1219 POWER_INFO = "Chance de disparo:",
1220 CATEGORY = 04,
1221 };
1222 [13] = {
1223 NAME = "",
1224 STORAGE = 0,
1225 BOOST = 05,
1226 DESC = "Maior dano em monstros de classe Dimensionais.",
1227 POWER_BASE = 02,
1228 POWER_FOR_LEVEL = 02,
1229 POWER_SINAL = "%",
1230 POWER_INFO = "Dano Aumentado:",
1231 CATEGORY = 01,
1232 };
1233 [14] = {
1234 NAME = "",
1235 STORAGE = 0,
1236 BOOST = 05,
1237 DESC = "Recebe menos dano PHYSICAL de monstros de classe Aquaticos.",
1238 POWER_BASE = 02,
1239 POWER_FOR_LEVEL = 02,
1240 POWER_SINAL = "%",
1241 POWER_INFO = "Protecao:",
1242 CATEGORY = 02,
1243 };
1244 [15] = {
1245 NAME = "",
1246 STORAGE = 0,
1247 BOOST = 05,
1248 DESC = "Recebe menos dano PHYSICAL de monstros de classe Demon.",
1249 POWER_BASE = 02,
1250 POWER_FOR_LEVEL = 02,
1251 POWER_SINAL = "%",
1252 POWER_INFO = "Protecao:",
1253 CATEGORY = 02,
1254 };
1255 [16] = {
1256 NAME = "",
1257 STORAGE = 0,
1258 BOOST = 05,
1259 DESC = "Maior dano em monstros de classe Mamiferos.",
1260 POWER_BASE = 02,
1261 POWER_FOR_LEVEL = 02,
1262 POWER_SINAL = "%",
1263 POWER_INFO = "Dano Aumentado:",
1264 CATEGORY = 01,
1265 };
1266 [17] = {
1267 NAME = "",
1268 STORAGE = 0,
1269 BOOST = 05,
1270 DESC = "Maior dano em monstros de classe Gigantes.",
1271 POWER_BASE = 02,
1272 POWER_FOR_LEVEL = 02,
1273 POWER_SINAL = "%",
1274 POWER_INFO = "Dano Aumentado:",
1275 CATEGORY = 01,
1276 };
1277 [18] = {
1278 NAME = "",
1279 STORAGE = 0,
1280 BOOST = 05,
1281 DESC = "Recebe menos dano PHYSICAL de monstros de classe Contructos.",
1282 POWER_BASE = 02,
1283 POWER_FOR_LEVEL = 02,
1284 POWER_SINAL = "%",
1285 POWER_INFO = "Protecao:",
1286 CATEGORY = 02,
1287 };
1288 [19] = {
1289 NAME = "",
1290 STORAGE = 0,
1291 BOOST = 05,
1292 DESC = "Ao eliminar alvo, ganha DEF + por 5 segundos.",
1293 POWER_BASE = 01,
1294 POWER_FOR_LEVEL = 01,
1295 POWER_SINAL = "",
1296 POWER_INFO = "Defesa ganha:",
1297 CATEGORY = 03,
1298 };
1299 [20] = {
1300 NAME = "",
1301 STORAGE = 0,
1302 BOOST = 05,
1303 DESC = "Maior dano em monstros de classe Dragon.",
1304 POWER_BASE = 02,
1305 POWER_FOR_LEVEL = 02,
1306 POWER_SINAL = "%",
1307 POWER_INFO = "Dano Aumentado:",
1308 CATEGORY = 01,
1309 };
1310 [21] = {
1311 NAME = "",
1312 STORAGE = 0,
1313 BOOST = 05,
1314 DESC = "Recebe menos dano PHYSICAL de monstros de classe Vermes.",
1315 POWER_BASE = 02,
1316 POWER_FOR_LEVEL = 02,
1317 POWER_SINAL = "%",
1318 POWER_INFO = "Protecao:",
1319 CATEGORY = 02,
1320 };
1321 [22] = {
1322 NAME = "",
1323 STORAGE = 0,
1324 BOOST = 25,
1325 DESC = "Causa status ENERGY no alvo ao dar Dano Critico.",
1326 POWER_BASE = 20,
1327 POWER_FOR_LEVEL = 20,
1328 POWER_SINAL = "",
1329 POWER_INFO = "Dano por Turno:",
1330 CATEGORY = 04,
1331 };
1332 [23] = {
1333 NAME = "",
1334 STORAGE = 0,
1335 BOOST = 10,
1336 DESC = "Chance de disparo do tipo ENERGY.",
1337 POWER_BASE = 05,
1338 POWER_FOR_LEVEL = 03,
1339 POWER_SINAL = "%",
1340 POWER_INFO = "Chance de disparo:",
1341 CATEGORY = 04,
1342 };
1343 [24] = {
1344 NAME = "",
1345 STORAGE = 0,
1346 BOOST = 10,
1347 DESC = "Cura um pouco de HP ao dar Dano Critico.",
1348 POWER_BASE = 05,
1349 POWER_FOR_LEVEL = 05,
1350 POWER_SINAL = "",
1351 POWER_INFO = "Cura: +",
1352 CATEGORY = 03,
1353 };
1354 [25] = {
1355 NAME = "",
1356 STORAGE = 0,
1357 BOOST = 02,
1358 DESC = "Concede Skill de Pistola.",
1359 POWER_BASE = 01,
1360 POWER_FOR_LEVEL = 01,
1361 POWER_SINAL = "",
1362 POWER_INFO = "Aumento de Skill: +",
1363 CATEGORY = 03,
1364 };
1365 [26] = {
1366 NAME = "",
1367 STORAGE = 0,
1368 BOOST = 10,
1369 DESC = "Aumenta o seu Dano Critico.",
1370 POWER_BASE = 05,
1371 POWER_FOR_LEVEL = 05,
1372 POWER_SINAL = "%",
1373 POWER_INFO = "Dano Critico:",
1374 CATEGORY = 03,
1375 };
1376 [27] = {
1377 NAME = "",
1378 STORAGE = 0,
1379 BOOST = 05,
1380 DESC = "Recebe menos dano PHYSICAL de monstros de classe Magica.",
1381 POWER_BASE = 02,
1382 POWER_FOR_LEVEL = 02,
1383 POWER_SINAL = "%",
1384 POWER_INFO = "Protecao:",
1385 CATEGORY = 02,
1386 };
1387 [28] = {
1388 NAME = "",
1389 STORAGE = 0,
1390 BOOST = 05,
1391 DESC = "Recebe menos dano PHYSICAL de monstros de classe Morto-Vivo.",
1392 POWER_BASE = 02,
1393 POWER_FOR_LEVEL = 02,
1394 POWER_SINAL = "%",
1395 POWER_INFO = "Protecao:",
1396 CATEGORY = 02,
1397 };
1398 [29] = {
1399 NAME = "",
1400 STORAGE = 0,
1401 BOOST = 10,
1402 DESC = "Chance de disparo do tipo HOLY.",
1403 POWER_BASE = 05,
1404 POWER_FOR_LEVEL = 03,
1405 POWER_SINAL = "%",
1406 POWER_INFO = "Chance de disparo:",
1407 CATEGORY = 04,
1408 };
1409 [30] = {
1410 NAME = "",
1411 STORAGE = 0,
1412 BOOST = 05,
1413 DESC = "Maior dano em monstros de classe Demon.",
1414 POWER_BASE = 02,
1415 POWER_FOR_LEVEL = 02,
1416 POWER_SINAL = "%",
1417 POWER_INFO = "Dano Aumentado:",
1418 CATEGORY = 01,
1419 };
1420 [31] = {
1421 NAME = "",
1422 STORAGE = 0,
1423 BOOST = 10,
1424 DESC = "Chance de nao consumir municao.",
1425 POWER_BASE = 05,
1426 POWER_FOR_LEVEL = 03,
1427 POWER_SINAL = "%",
1428 POWER_INFO = "Chance:",
1429 CATEGORY = 03,
1430 };
1431 [32] = {
1432 NAME = "",
1433 STORAGE = 0,
1434 BOOST = 05,
1435 DESC = "Maior dano em monstros de classe Humanoides.",
1436 POWER_BASE = 02,
1437 POWER_FOR_LEVEL = 02,
1438 POWER_SINAL = "%",
1439 POWER_INFO = "Dano Aumentado:",
1440 CATEGORY = 01,
1441 };
1442 [33] = {
1443 NAME = "",
1444 STORAGE = 0,
1445 BOOST = 05,
1446 DESC = "Recebe menos dano PHYSICAL de monstros de classe Gigantes.",
1447 POWER_BASE = 02,
1448 POWER_FOR_LEVEL = 02,
1449 POWER_SINAL = "%",
1450 POWER_INFO = "Protecao:",
1451 CATEGORY = 02,
1452 };
1453 [34] = {
1454 NAME = "",
1455 STORAGE = 0,
1456 BOOST = 05,
1457 DESC = "Recebe menos dano PHYSICAL de monstros de classe Dragons.",
1458 POWER_BASE = 02,
1459 POWER_FOR_LEVEL = 02,
1460 POWER_SINAL = "%",
1461 POWER_INFO = "Protecao:",
1462 CATEGORY = 02,
1463 };
1464 [35] = {
1465 NAME = "",
1466 STORAGE = 0,
1467 BOOST = 25,
1468 DESC = "Causa status FIRE no alvo ao dar Dano Critico.",
1469 POWER_BASE = 20,
1470 POWER_FOR_LEVEL = 20,
1471 POWER_SINAL = "",
1472 POWER_INFO = "Dano por Turno:",
1473 CATEGORY = 04,
1474 };
1475 [36] = {
1476 NAME = "",
1477 STORAGE = 0,
1478 BOOST = 05,
1479 DESC = "Recebe menos dano PHYSICAL de monstros de classe Repteis.",
1480 POWER_BASE = 02,
1481 POWER_FOR_LEVEL = 02,
1482 POWER_SINAL = "%",
1483 POWER_INFO = "Protecao:",
1484 CATEGORY = 02,
1485 };
1486 [37] = {
1487 NAME = "",
1488 STORAGE = 0,
1489 BOOST = 05,
1490 DESC = "Maior dano em monstros de classe Magica.",
1491 POWER_BASE = 02,
1492 POWER_FOR_LEVEL = 02,
1493 POWER_SINAL = "%",
1494 POWER_INFO = "Dano Aumentado:",
1495 CATEGORY = 01,
1496 };
1497 [38] = {
1498 NAME = "",
1499 STORAGE = 0,
1500 BOOST = 10,
1501 DESC = "Chance de disparo do tipo FIRE.",
1502 POWER_BASE = 05,
1503 POWER_FOR_LEVEL = 03,
1504 POWER_SINAL = "%",
1505 POWER_INFO = "Chance de disparo:",
1506 CATEGORY = 04,
1507 };
1508 [39] = {
1509 NAME = "",
1510 STORAGE = 0,
1511 BOOST = 05,
1512 DESC = "Maior dano em monstros de classe Repteis.",
1513 POWER_BASE = 02,
1514 POWER_FOR_LEVEL = 02,
1515 POWER_SINAL = "%",
1516 POWER_INFO = "Dano Aumentado:",
1517 CATEGORY = 01,
1518 };
1519 [40] = {
1520 NAME = "",
1521 STORAGE = 0,
1522 BOOST = 02,
1523 DESC = "Concede Skill de Metralhadora.",
1524 POWER_BASE = 01,
1525 POWER_FOR_LEVEL = 01,
1526 POWER_SINAL = "",
1527 POWER_INFO = "Aumento de Skill: +",
1528 CATEGORY = 03,
1529 };
1530 [41] = {
1531 NAME = "",
1532 STORAGE = 0,
1533 BOOST = 05,
1534 DESC = "Maior dano em monstros de classe Vermes.",
1535 POWER_BASE = 02,
1536 POWER_FOR_LEVEL = 02,
1537 POWER_SINAL = "%",
1538 POWER_INFO = "Dano Aumentado:",
1539 CATEGORY = 01,
1540 };
1541 [42] = {
1542 NAME = "",
1543 STORAGE = 0,
1544 BOOST = 25,
1545 DESC = "Causa status DEATH no alvo ao dar Dano Critico.",
1546 POWER_BASE = 20,
1547 POWER_FOR_LEVEL = 20,
1548 POWER_SINAL = "",
1549 POWER_INFO = "Dano por Turno:",
1550 CATEGORY = 04,
1551 };
1552 [43] = {
1553 NAME = "",
1554 STORAGE = 0,
1555 BOOST = 05,
1556 DESC = "Recebe menos dano PHYSICAL de monstros de classe Boss.",
1557 POWER_BASE = 02,
1558 POWER_FOR_LEVEL = 02,
1559 POWER_SINAL = "%",
1560 POWER_INFO = "Protecao:",
1561 CATEGORY = 02,
1562 };
1563 [44] = {
1564 NAME = "",
1565 STORAGE = 0,
1566 BOOST = 05,
1567 DESC = "Maior dano em monstros de classe Boss.",
1568 POWER_BASE = 02,
1569 POWER_FOR_LEVEL = 02,
1570 POWER_SINAL = "%",
1571 POWER_INFO = "Dano Aumentado:",
1572 CATEGORY = 01,
1573 };
1574 [45] = {
1575 NAME = "",
1576 STORAGE = 0,
1577 BOOST = 10,
1578 DESC = "Aumenta sua taxa critica quando com vida abaixo de 30%%.",
1579 POWER_BASE = 02,
1580 POWER_FOR_LEVEL = 03,
1581 POWER_SINAL = "%",
1582 POWER_INFO = "Taxa critica:",
1583 CATEGORY = 03,
1584 };
1585 [46] = {
1586 NAME = "",
1587 STORAGE = 0,
1588 BOOST = 05,
1589 DESC = "Maior dano em monstros de classe Aquaticos.",
1590 POWER_BASE = 02,
1591 POWER_FOR_LEVEL = 02,
1592 POWER_SINAL = "%",
1593 POWER_INFO = "Dano Aumentado:",
1594 CATEGORY = 01,
1595 };
1596 [47] = {
1597 NAME = "",
1598 STORAGE = 0,
1599 BOOST = 05,
1600 DESC = "Recebe menos dano PHYSICAL de monstros de classe Dimensionais.",
1601 POWER_BASE = 02,
1602 POWER_FOR_LEVEL = 02,
1603 POWER_SINAL = "%",
1604 POWER_INFO = "Protecao:",
1605 CATEGORY = 02,
1606 };
1607 [48] = {
1608 NAME = "",
1609 STORAGE = 0,
1610 BOOST = 10,
1611 DESC = "Chance de disparo do tipo DEATH.",
1612 POWER_BASE = 05,
1613 POWER_FOR_LEVEL = 03,
1614 POWER_SINAL = "%",
1615 POWER_INFO = "Chance de disparo:",
1616 CATEGORY = 04,
1617 };
1618 [49] = {
1619 NAME = "",
1620 STORAGE = 0,
1621 BOOST = 05,
1622 DESC = "Maior dano em monstros de classe Morto-Vivo.",
1623 POWER_BASE = 02,
1624 POWER_FOR_LEVEL = 02,
1625 POWER_SINAL = "%",
1626 POWER_INFO = "Dano Aumentado:",
1627 CATEGORY = 01,
1628 };
1629 [50] = {
1630 NAME = "",
1631 STORAGE = 0,
1632 BOOST = 05,
1633 DESC = "Aumenta sua esquiva quando seu HP estiver acima de 70%%.",
1634 POWER_BASE = 02,
1635 POWER_FOR_LEVEL = 01,
1636 POWER_SINAL = "",
1637 POWER_INFO = "Aumento de Esquiva:",
1638 CATEGORY = 03,
1639 };
1640 [51] = {
1641 NAME = "",
1642 STORAGE = 0,
1643 BOOST = 10,
1644 DESC = "Maior dano com habilidades do tipo FIRE.",
1645 POWER_BASE = 02,
1646 POWER_FOR_LEVEL = 02,
1647 POWER_SINAL = "%",
1648 POWER_INFO = "Dano Aumentado:",
1649 CATEGORY = 01,
1650 };
1651 [52] = {
1652 NAME = "",
1653 STORAGE = 0,
1654 BOOST = 10,
1655 DESC = "Maior dano com habilidades do tipo ICE.",
1656 POWER_BASE = 02,
1657 POWER_FOR_LEVEL = 02,
1658 POWER_SINAL = "%",
1659 POWER_INFO = "Dano Aumentado:",
1660 CATEGORY = 01,
1661 };
1662 [53] = {
1663 NAME = "",
1664 STORAGE = 0,
1665 BOOST = 10,
1666 DESC = "Maior dano com habilidades do tipo ENERGY.",
1667 POWER_BASE = 02,
1668 POWER_FOR_LEVEL = 02,
1669 POWER_SINAL = "%",
1670 POWER_INFO = "Dano Aumentado:",
1671 CATEGORY = 01,
1672 };
1673 [54] = {
1674 NAME = "",
1675 STORAGE = 0,
1676 BOOST = 10,
1677 DESC = "Maior dano com habilidades do tipo EARTH.",
1678 POWER_BASE = 02,
1679 POWER_FOR_LEVEL = 02,
1680 POWER_SINAL = "%",
1681 POWER_INFO = "Dano Aumentado:",
1682 CATEGORY = 01,
1683 };
1684 [55] = {
1685 NAME = "",
1686 STORAGE = 0,
1687 BOOST = 10,
1688 DESC = "Maior dano com habilidades do tipo DEATH.",
1689 POWER_BASE = 02,
1690 POWER_FOR_LEVEL = 02,
1691 POWER_SINAL = "%",
1692 POWER_INFO = "Dano Aumentado:",
1693 CATEGORY = 01,
1694 };
1695 [56] = {
1696 NAME = "",
1697 STORAGE = 0,
1698 BOOST = 10,
1699 DESC = "Maior dano com habilidades do tipo HOLY.",
1700 POWER_BASE = 02,
1701 POWER_FOR_LEVEL = 02,
1702 POWER_SINAL = "%",
1703 POWER_INFO = "Dano Aumentado:",
1704 CATEGORY = 01,
1705 };
1706 [57] = {
1707 NAME = "",
1708 STORAGE = 0,
1709 BOOST = 10,
1710 DESC = "Maior dano com habilidades do tipo PHYSICAL.",
1711 POWER_BASE = 02,
1712 POWER_FOR_LEVEL = 02,
1713 POWER_SINAL = "%",
1714 POWER_INFO = "Dano Aumentado:",
1715 CATEGORY = 01,
1716 };
1717 [58] = {
1718 NAME = "",
1719 STORAGE = 0,
1720 BOOST = 05,
1721 DESC = "Aumenta seu dano com METRALHADORA quando seu HP estiver acima de 70%%.",
1722 POWER_BASE = 02,
1723 POWER_FOR_LEVEL = 02,
1724 POWER_SINAL = "%",
1725 POWER_INFO = "Dano Aumentado:",
1726 CATEGORY = 01,
1727 };
1728 [59] = {
1729 NAME = "",
1730 STORAGE = 0,
1731 BOOST = 05,
1732 DESC = "Aumenta seu dano com RIFLE quando seu HP estiver acima de 70%%.",
1733 POWER_BASE = 02,
1734 POWER_FOR_LEVEL = 02,
1735 POWER_SINAL = "%",
1736 POWER_INFO = "Dano Aumentado:",
1737 CATEGORY = 01,
1738 };
1739 [60] = {
1740 NAME = "",
1741 STORAGE = 0,
1742 BOOST = 05,
1743 DESC = "Aumenta seu dano com ESPINGARDA quando seu HP estiver acima de 70%%.",
1744 POWER_BASE = 02,
1745 POWER_FOR_LEVEL = 02,
1746 POWER_SINAL = "%",
1747 POWER_INFO = "Dano Aumentado:",
1748 CATEGORY = 01,
1749 };
1750 [61] = {
1751 NAME = "",
1752 STORAGE = 0,
1753 BOOST = 05,
1754 DESC = "Aumenta sua taxa critica quando seu HP estiver acima de 70%%.",
1755 POWER_BASE = 01,
1756 POWER_FOR_LEVEL = 01,
1757 POWER_SINAL = "%",
1758 POWER_INFO = "Taxa Critica:",
1759 CATEGORY = 03,
1760 };
1761 [62] = {
1762 NAME = "",
1763 STORAGE = 0,
1764 BOOST = 05,
1765 DESC = "Aumenta sua defesa quando seu HP estiver acima de 70%%.",
1766 POWER_BASE = 02,
1767 POWER_FOR_LEVEL = 01,
1768 POWER_SINAL = "",
1769 POWER_INFO = "Defesa:",
1770 CATEGORY = 02,
1771 };
1772}
1773local SHOP_PRODUCTS = {
1774 [01] = { -- PREMIUM TIME
1775 [00] = {DESC = "Compre sua Premium Time e tenha acesso a novos mapas, teleporte para Nexus, Duelos de Kards e muito mais."},
1776 [01] = {
1777 NAME = "PREMIUM TIME: 07 DIAS",
1778 DESC = "Beneficios:\n\n� Novas Dangerous.\n� Novos Nexus\n� Outfits Exclusivos� Novos locais de hunt\n� Novos mapas para explorar\n� Quest Exclusivas\n� Teleporte gratuito\n� Duelo de Kards",
1779 PREMIUM = false,
1780 RESIZE = false,
1781 OUTFIT = false,
1782 CLOSED = true,
1783 VISIBLE = true,
1784 ACT_ID = {00007, 00000, 00000, 00000, 00000},
1785 VIP = { ORIGIN_PRICE = 025, PROMO_PRICE = 000},
1786 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
1787 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
1788 };
1789 [02] = {
1790 NAME = "PREMIUM TIME: 15 DIAS",
1791 DESC = "Beneficios:\n\n� Novas Dangerous.\n� Novos Nexus\n� Outfits Exclusivos� Novos locais de hunt\n� Novos mapas para explorar\n� Quest Exclusivas\n� Teleporte gratuito\n� Duelo de Kards",
1792 PREMIUM = false,
1793 RESIZE = false,
1794 OUTFIT = false,
1795 CLOSED = true,
1796 VISIBLE = true,
1797 ACT_ID = {00015, 00000, 00000, 00000, 00000},
1798 VIP = { ORIGIN_PRICE = 050, PROMO_PRICE = 000},
1799 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
1800 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
1801 };
1802 [03] = {
1803 NAME = "PREMIUM TIME: 30 DIAS",
1804 DESC = "Beneficios:\n\n� Novas Dangerous.\n� Novos Nexus\n� Outfits Exclusivos� Novos locais de hunt\n� Novos mapas para explorar\n� Quest Exclusivas\n� Teleporte gratuito\n� Duelo de Kards",
1805 PREMIUM = false,
1806 RESIZE = false,
1807 OUTFIT = false,
1808 CLOSED = true,
1809 VISIBLE = true,
1810 ACT_ID = {00030, 00000, 00000, 00000, 00000},
1811 VIP = { ORIGIN_PRICE = 100, PROMO_PRICE = 000},
1812 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
1813 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
1814 };
1815 [04] = {
1816 NAME = "PREMIUM TIME: 60 DIAS",
1817 DESC = "Beneficios:\n\n� Novas Dangerous.\n� Novos Nexus\n� Outfits Exclusivos� Novos locais de hunt\n� Novos mapas para explorar\n� Quest Exclusivas\n� Teleporte gratuito\n� Duelo de Kards",
1818 PREMIUM = false,
1819 RESIZE = false,
1820 OUTFIT = false,
1821 CLOSED = true,
1822 VISIBLE = true,
1823 ACT_ID = {00060, 00000, 00000, 00000, 00000},
1824 VIP = { ORIGIN_PRICE = 200, PROMO_PRICE = 000},
1825 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
1826 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
1827 };
1828 };
1829 [02] = { -- CONSUM�VEIS
1830 [00] = {DESC = "Compre municao e novas pocoes sem precisar ir a uma Central Box."},
1831 [01] = {
1832 NAME = "MUNICAO PADRAO",
1833 DESC = "Usado apenas em armas com requisito de lv. 30 ou menor.\n\n� Unidades: x500",
1834 PREMIUM = false,
1835 RESIZE = true,
1836 OUTFIT = false,
1837 CLOSED = true,
1838 VISIBLE = true,
1839 ACT_ID = {10450, 00000, 00000, 00000, 00000},
1840 VIP = { ORIGIN_PRICE = 001, PROMO_PRICE = 000},
1841 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 002, PROMO_PRICE = 000},
1842 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
1843 };
1844 [02] = {
1845 NAME = "MUNICAO MELHORADA",
1846 DESC = "Usado apenas em armas com requisito de lv. 60 ou menor.\n\n� Unidades: x500",
1847 PREMIUM = false,
1848 RESIZE = true,
1849 OUTFIT = false,
1850 CLOSED = true,
1851 VISIBLE = true,
1852 ACT_ID = {10451, 00000, 00000, 00000, 00000},
1853 VIP = { ORIGIN_PRICE = 002, PROMO_PRICE = 000},
1854 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 003, PROMO_PRICE = 000},
1855 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
1856 };
1857 [03] = {
1858 NAME = "MUNICAO REFORCADA",
1859 DESC = "Usado apenas em armas com requisito de lv. 99 ou menor.\n\n� Unidades: x500",
1860 PREMIUM = false,
1861 RESIZE = true,
1862 OUTFIT = false,
1863 CLOSED = true,
1864 VISIBLE = true,
1865 ACT_ID = {10452, 00000, 00000, 00000, 00000},
1866 VIP = { ORIGIN_PRICE = 003, PROMO_PRICE = 000},
1867 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 004, PROMO_PRICE = 000},
1868 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
1869 };
1870 [04] = {
1871 NAME = "MUNICAO ESPECIAL",
1872 DESC = "Usado apenas em armas com requisito de lv. 150 ou menor.\n\n� Unidades: x500",
1873 PREMIUM = false,
1874 RESIZE = true,
1875 OUTFIT = false,
1876 CLOSED = true,
1877 VISIBLE = true,
1878 ACT_ID = {10453, 00000, 00000, 00000, 00000},
1879 VIP = { ORIGIN_PRICE = 004, PROMO_PRICE = 000},
1880 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 005, PROMO_PRICE = 000},
1881 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
1882 };
1883 [05] = {
1884 NAME = "MUNICAO DE ELITE",
1885 DESC = "Usado apenas em armas com requisito de lv. 150 ou maior.\n\n� Unidades: x500",
1886 PREMIUM = false,
1887 RESIZE = true,
1888 OUTFIT = false,
1889 CLOSED = true,
1890 VISIBLE = true,
1891 ACT_ID = {10454, 00000, 00000, 00000, 00000},
1892 VIP = { ORIGIN_PRICE = 005, PROMO_PRICE = 000},
1893 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 006, PROMO_PRICE = 000},
1894 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
1895 };
1896 [06] = {
1897 NAME = "CURA NV. 01",
1898 DESC = "Cura 15%% a 20%% de vida ao usar.\n\n� Unidades: x100",
1899 PREMIUM = false,
1900 RESIZE = true,
1901 OUTFIT = false,
1902 CLOSED = true,
1903 VISIBLE = true,
1904 ACT_ID = {10455, 00000, 00000, 00000, 00000},
1905 VIP = { ORIGIN_PRICE = 002, PROMO_PRICE = 000},
1906 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 005, PROMO_PRICE = 000},
1907 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
1908 };
1909 [07] = {
1910 NAME = "CURA NV. 02",
1911 DESC = "Cura 17%% a 22%% de vida ao usar.\n\n� Unidades: x100",
1912 PREMIUM = false,
1913 RESIZE = true,
1914 OUTFIT = false,
1915 CLOSED = true,
1916 VISIBLE = true,
1917 ACT_ID = {10456, 00000, 00000, 00000, 00000},
1918 VIP = { ORIGIN_PRICE = 003, PROMO_PRICE = 000},
1919 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 007, PROMO_PRICE = 000},
1920 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
1921 };
1922 [08] = {
1923 NAME = "CURA NV. 03",
1924 DESC = "Cura 19%% a 24%% de vida ao usar.\n\n� Unidades: x100",
1925 PREMIUM = false,
1926 RESIZE = true,
1927 OUTFIT = false,
1928 CLOSED = true,
1929 VISIBLE = true,
1930 ACT_ID = {10457, 00000, 00000, 00000, 00000},
1931 VIP = { ORIGIN_PRICE = 004, PROMO_PRICE = 000},
1932 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 009, PROMO_PRICE = 000},
1933 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
1934 };
1935 [09] = {
1936 NAME = "CURA NV. 04",
1937 DESC = "Cura 21%% a 26%% de vida ao usar.\n\n� Unidades: x100",
1938 PREMIUM = false,
1939 RESIZE = true,
1940 OUTFIT = false,
1941 CLOSED = true,
1942 VISIBLE = true,
1943 ACT_ID = {10458, 00000, 00000, 00000, 00000},
1944 VIP = { ORIGIN_PRICE = 005, PROMO_PRICE = 000},
1945 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 011, PROMO_PRICE = 000},
1946 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
1947 };
1948 [10] = {
1949 NAME = "CURA NV. 05",
1950 DESC = "Cura 23%% a 28%% de vida ao usar.\n\n� Unidades: x100",
1951 PREMIUM = false,
1952 RESIZE = true,
1953 OUTFIT = false,
1954 CLOSED = true,
1955 VISIBLE = true,
1956 ACT_ID = {10459, 00000, 00000, 00000, 00000},
1957 VIP = { ORIGIN_PRICE = 006, PROMO_PRICE = 000},
1958 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 014, PROMO_PRICE = 000},
1959 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
1960 };
1961 [11] = {
1962 NAME = "WHITE PISTOL RUNE",
1963 DESC = "Runa especial usada para aumentar o nv. de estrelas de determinado equipamento ou arma.",
1964 PREMIUM = false,
1965 RESIZE = true,
1966 OUTFIT = false,
1967 CLOSED = true,
1968 VISIBLE = false,
1969 ACT_ID = {11100, 00000, 00000, 00000, 00000},
1970 VIP = { ORIGIN_PRICE = 005, PROMO_PRICE = 000},
1971 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 010, PROMO_PRICE = 000},
1972 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
1973 };
1974 [12] = {
1975 NAME = "WHITE MACHINE GUN RUNE",
1976 DESC = "Runa especial usada para aumentar o nv. de estrelas de determinado equipamento ou arma.",
1977 PREMIUM = false,
1978 RESIZE = true,
1979 OUTFIT = false,
1980 CLOSED = true,
1981 VISIBLE = false,
1982 ACT_ID = {11101, 00000, 00000, 00000, 00000},
1983 VIP = { ORIGIN_PRICE = 005, PROMO_PRICE = 000},
1984 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 010, PROMO_PRICE = 000},
1985 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
1986 };
1987 [13] = {
1988 NAME = "WHITE SHOTGUN RUNE",
1989 DESC = "Runa especial usada para aumentar o nv. de estrelas de determinado equipamento ou arma.",
1990 PREMIUM = false,
1991 RESIZE = true,
1992 OUTFIT = false,
1993 CLOSED = true,
1994 VISIBLE = false,
1995 ACT_ID = {11102, 00000, 00000, 00000, 00000},
1996 VIP = { ORIGIN_PRICE = 005, PROMO_PRICE = 000},
1997 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 010, PROMO_PRICE = 000},
1998 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
1999 };
2000 [14] = {
2001 NAME = "WHITE RIFLE RUNE",
2002 DESC = "Runa especial usada para aumentar o nv. de estrelas de determinado equipamento ou arma.",
2003 PREMIUM = false,
2004 RESIZE = true,
2005 OUTFIT = false,
2006 CLOSED = true,
2007 VISIBLE = false,
2008 ACT_ID = {11103, 00000, 00000, 00000, 00000},
2009 VIP = { ORIGIN_PRICE = 005, PROMO_PRICE = 000},
2010 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 010, PROMO_PRICE = 000},
2011 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2012 };
2013 [15] = {
2014 NAME = "WHITE AMULET RUNE",
2015 DESC = "Runa especial usada para aumentar o nv. de estrelas de determinado equipamento ou arma.",
2016 PREMIUM = false,
2017 RESIZE = true,
2018 OUTFIT = false,
2019 CLOSED = true,
2020 VISIBLE = false,
2021 ACT_ID = {11104, 00000, 00000, 00000, 00000},
2022 VIP = { ORIGIN_PRICE = 005, PROMO_PRICE = 000},
2023 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 010, PROMO_PRICE = 000},
2024 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2025 };
2026 [16] = {
2027 NAME = "WHITE HELMET RUNE",
2028 DESC = "Runa especial usada para aumentar o nv. de estrelas de determinado equipamento ou arma.",
2029 PREMIUM = false,
2030 RESIZE = true,
2031 OUTFIT = false,
2032 CLOSED = true,
2033 VISIBLE = false,
2034 ACT_ID = {11105, 00000, 00000, 00000, 00000},
2035 VIP = { ORIGIN_PRICE = 005, PROMO_PRICE = 000},
2036 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 010, PROMO_PRICE = 000},
2037 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2038 };
2039 [17] = {
2040 NAME = "WHITE ARMOR RUNE",
2041 DESC = "Runa especial usada para aumentar o nv. de estrelas de determinado equipamento ou arma.",
2042 PREMIUM = false,
2043 RESIZE = true,
2044 OUTFIT = false,
2045 CLOSED = true,
2046 VISIBLE = false,
2047 ACT_ID = {11106, 00000, 00000, 00000, 00000},
2048 VIP = { ORIGIN_PRICE = 005, PROMO_PRICE = 000},
2049 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 010, PROMO_PRICE = 000},
2050 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2051 };
2052 [18] = {
2053 NAME = "WHITE GLOVE RUNE",
2054 DESC = "Runa especial usada para aumentar o nv. de estrelas de determinado equipamento ou arma.",
2055 PREMIUM = false,
2056 RESIZE = true,
2057 OUTFIT = false,
2058 CLOSED = true,
2059 VISIBLE = false,
2060 ACT_ID = {11107, 00000, 00000, 00000, 00000},
2061 VIP = { ORIGIN_PRICE = 005, PROMO_PRICE = 000},
2062 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 010, PROMO_PRICE = 000},
2063 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2064 };
2065 [19] = {
2066 NAME = "WHITE RING RUNE",
2067 DESC = "Runa especial usada para aumentar o nv. de estrelas de determinado equipamento ou arma.",
2068 PREMIUM = false,
2069 RESIZE = true,
2070 OUTFIT = false,
2071 CLOSED = true,
2072 VISIBLE = false,
2073 ACT_ID = {11108, 00000, 00000, 00000, 00000},
2074 VIP = { ORIGIN_PRICE = 005, PROMO_PRICE = 000},
2075 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 010, PROMO_PRICE = 000},
2076 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2077 };
2078 [20] = {
2079 NAME = "WHITE LEGS RUNE",
2080 DESC = "Runa especial usada para aumentar o nv. de estrelas de determinado equipamento ou arma.",
2081 PREMIUM = false,
2082 RESIZE = true,
2083 OUTFIT = false,
2084 CLOSED = true,
2085 VISIBLE = false,
2086 ACT_ID = {11109, 00000, 00000, 00000, 00000},
2087 VIP = { ORIGIN_PRICE = 005, PROMO_PRICE = 000},
2088 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 010, PROMO_PRICE = 000},
2089 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2090 };
2091 [21] = {
2092 NAME = "WHITE BOOTS RUNE",
2093 DESC = "Runa especial usada para aumentar o nv. de estrelas de determinado equipamento ou arma.",
2094 PREMIUM = false,
2095 RESIZE = true,
2096 OUTFIT = false,
2097 CLOSED = true,
2098 VISIBLE = false,
2099 ACT_ID = {11110, 00000, 00000, 00000, 00000},
2100 VIP = { ORIGIN_PRICE = 005, PROMO_PRICE = 000},
2101 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 010, PROMO_PRICE = 000},
2102 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2103 };
2104 };
2105 [03] = { -- BUFFS
2106 [00] = {DESC = "Proteja seu personagem por um dia com buffs que melhoram a defesa."},
2107 [01] = {
2108 NAME = "BUFF DE REGENERACAO",
2109 DESC = "Regenera seu HP em 02%% por segundo.\n\nO buff tem duracao de 01 hora e comecara a ser contado no momento que finalizar a compra.\n\nO tempo so sera contado quando voce estiver online.",
2110 PREMIUM = false,
2111 RESIZE = false,
2112 OUTFIT = false,
2113 CLOSED = true,
2114 VISIBLE = true,
2115 ACT_ID = {00000, 00000, 00000, 00000, 00000},
2116 VIP = { ORIGIN_PRICE = 025, PROMO_PRICE = 000},
2117 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 020, PROMO_PRICE = 000},
2118 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2119 };
2120 [02] = {
2121 NAME = "BUFF DE DEFESA",
2122 DESC = "Aumenta sua DEF em +25.\n\nO buff tem duracao de 01 hora e comecara a ser contado no momento que finalizar a compra.\n\nO tempo so sera contado quando voce estiver online.",
2123 PREMIUM = false,
2124 RESIZE = false,
2125 OUTFIT = false,
2126 CLOSED = true,
2127 VISIBLE = true,
2128 ACT_ID = {00000, 00000, 00000, 00000, 00000},
2129 VIP = { ORIGIN_PRICE = 025, PROMO_PRICE = 000},
2130 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 020, PROMO_PRICE = 000},
2131 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2132 };
2133 [03] = {
2134 NAME = "BUFF DE ESQUIVA",
2135 DESC = "Aumenta sua ESQ em +25.\n\nO buff tem duracao de 01 hora e comecara a ser contado no momento que finalizar a compra.\n\nO tempo so sera contado quando voce estiver online.",
2136 PREMIUM = false,
2137 RESIZE = false,
2138 OUTFIT = false,
2139 CLOSED = true,
2140 VISIBLE = true,
2141 ACT_ID = {00000, 00000, 00000, 00000, 00000},
2142 VIP = { ORIGIN_PRICE = 025, PROMO_PRICE = 000},
2143 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 020, PROMO_PRICE = 000},
2144 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2145 };
2146 [04] = {
2147 NAME = "BUFF DE FIRE",
2148 DESC = "Aumenta sua protecao contra FIRE em 10%%.\n\nO buff tem duracao de 01 hora e comecara a ser contado no momento que finalizar a compra.\n\nO tempo so sera contado quando voce estiver online.",
2149 PREMIUM = false,
2150 RESIZE = false,
2151 OUTFIT = false,
2152 CLOSED = true,
2153 VISIBLE = true,
2154 ACT_ID = {00000, 00000, 00000, 00000, 00000},
2155 VIP = { ORIGIN_PRICE = 025, PROMO_PRICE = 000},
2156 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 020, PROMO_PRICE = 000},
2157 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2158 };
2159 [05] = {
2160 NAME = "BUFF DE ICE",
2161 DESC = "Aumenta sua protecao contra ICE em 10%%.\n\nO buff tem duracao de 01 hora e comecara a ser contado no momento que finalizar a compra.\n\nO tempo so sera contado quando voce estiver online.",
2162 PREMIUM = false,
2163 RESIZE = false,
2164 OUTFIT = false,
2165 CLOSED = true,
2166 VISIBLE = true,
2167 ACT_ID = {00000, 00000, 00000, 00000, 00000},
2168 VIP = { ORIGIN_PRICE = 025, PROMO_PRICE = 000},
2169 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 020, PROMO_PRICE = 000},
2170 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2171 };
2172 [06] = {
2173 NAME = "BUFF DE ENERGY",
2174 DESC = "Aumenta sua protecao contra ENERGY em 10%%.\n\nO buff tem duracao de 01 hora e comecara a ser contado no momento que finalizar a compra.\n\nO tempo so sera contado quando voce estiver online.",
2175 PREMIUM = false,
2176 RESIZE = false,
2177 OUTFIT = false,
2178 CLOSED = true,
2179 VISIBLE = true,
2180 ACT_ID = {00000, 00000, 00000, 00000, 00000},
2181 VIP = { ORIGIN_PRICE = 025, PROMO_PRICE = 000},
2182 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 020, PROMO_PRICE = 000},
2183 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2184 };
2185 [07] = {
2186 NAME = "BUFF DE EARTH",
2187 DESC = "Aumenta sua protecao contra EARTH em 10%%.\n\nO buff tem duracao de 01 hora e comecara a ser contado no momento que finalizar a compra.\n\nO tempo so sera contado quando voce estiver online.",
2188 PREMIUM = false,
2189 RESIZE = false,
2190 OUTFIT = false,
2191 CLOSED = true,
2192 VISIBLE = true,
2193 ACT_ID = {00000, 00000, 00000, 00000, 00000},
2194 VIP = { ORIGIN_PRICE = 025, PROMO_PRICE = 000},
2195 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 020, PROMO_PRICE = 000},
2196 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2197 };
2198 [08] = {
2199 NAME = "BUFF DE DEATH",
2200 DESC = "Aumenta sua protecao contra DEATH em 10%%.\n\nO buff tem duracao de 01 hora e comecara a ser contado no momento que finalizar a compra.\n\nO tempo so sera contado quando voce estiver online.",
2201 PREMIUM = false,
2202 RESIZE = false,
2203 OUTFIT = false,
2204 CLOSED = true,
2205 VISIBLE = true,
2206 ACT_ID = {00000, 00000, 00000, 00000, 00000},
2207 VIP = { ORIGIN_PRICE = 025, PROMO_PRICE = 000},
2208 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 020, PROMO_PRICE = 000},
2209 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2210 };
2211 [09] = {
2212 NAME = "BUFF DE SPEED",
2213 DESC = "Aumenta sua velocidade ao usar a Skill de speed.\n\nO buff tem duracao de 01 hora e comecara a ser contado no momento que finalizar a compra.\n\nO tempo so sera contado quando voce estiver online.",
2214 PREMIUM = false,
2215 RESIZE = false,
2216 OUTFIT = false,
2217 CLOSED = true,
2218 VISIBLE = true,
2219 ACT_ID = {00000, 00000, 00000, 00000, 00000},
2220 VIP = { ORIGIN_PRICE = 025, PROMO_PRICE = 000},
2221 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 020, PROMO_PRICE = 000},
2222 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2223 };
2224 };
2225 [04] = { -- SERVICOS
2226 [00] = {DESC = "Esses sao servicos que disponibilizamos para seu personagem."},
2227 [01] = {
2228 NAME = "ALTERAR SEXO",
2229 DESC = "Troque o Sexo de seu Personagem.\n\nApenas jogadores Premium Account podem obter este item.\n\nDeslogue logo apos para aplicar o efeito.",
2230 PREMIUM = true,
2231 RESIZE = false,
2232 OUTFIT = false,
2233 CLOSED = true,
2234 VISIBLE = true,
2235 ACT_ID = {00000, 00000, 00000, 00000, 00000},
2236 VIP = { ORIGIN_PRICE = 010, PROMO_PRICE = 000},
2237 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2238 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2239 };
2240 [02] = {
2241 NAME = "ALTERAR NOME",
2242 DESC = "Troque o Nome de seu Personagem.\n\nApenas jogadores Premium Account podem obter este item.\n\nAo decidir o nome, seu personagem sera deslogado automaticamente.",
2243 PREMIUM = true,
2244 RESIZE = false,
2245 OUTFIT = false,
2246 CLOSED = true,
2247 VISIBLE = true,
2248 ACT_ID = {00000, 00000, 00000, 00000, 00000},
2249 VIP = { ORIGIN_PRICE = 250, PROMO_PRICE = 000},
2250 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2251 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2252 };
2253 [03] = {
2254 NAME = "BLESSING",
2255 DESC = "Morrer congela 30%% de sua EXP como penalidade.\n\nComprar esta Bless zera completamente sua penalidade ao morrer.",
2256 PREMIUM = false,
2257 RESIZE = false,
2258 OUTFIT = false,
2259 CLOSED = true,
2260 VISIBLE = true,
2261 ACT_ID = {00000, 00000, 00000, 00000, 00000},
2262 VIP = { ORIGIN_PRICE = 003, PROMO_PRICE = 000},
2263 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 005, PROMO_PRICE = 000},
2264 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2265 };
2266 [04] = {
2267 NAME = "MAESTRIA: REGEN",
2268 DESC = "Altere sua Maestria atual para Maestria: Regen. Seu nivel atual de maestria permanece.\n\nSomente Premium Account podem comprar este item.\n\nEsta maestria lhe concede uma skill que ativa uma rapida regeneracao de HP por 1 min.",
2269 PREMIUM = true,
2270 RESIZE = false,
2271 OUTFIT = false,
2272 CLOSED = true,
2273 VISIBLE = true,
2274 ACT_ID = {00000, 00000, 00000, 00000, 00000},
2275 VIP = { ORIGIN_PRICE = 1500, PROMO_PRICE = 000},
2276 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2277 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2278 };
2279 [05] = {
2280 NAME = "MAESTRIA: TANKER",
2281 DESC = "Altere sua Maestria atual para Maestria: Tanker. Seu nivel atual de maestria permanece.\n\nSomente Premium Account podem comprar este item.\n\nEsta maestria lhe concede uma skill que te torna invencivel por 10 seg.",
2282 PREMIUM = true,
2283 RESIZE = false,
2284 OUTFIT = false,
2285 CLOSED = true,
2286 VISIBLE = true,
2287 ACT_ID = {00000, 00000, 00000, 00000, 00000},
2288 VIP = { ORIGIN_PRICE = 1500, PROMO_PRICE = 000},
2289 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2290 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2291 };
2292 [06] = {
2293 NAME = "MAESTRIA: SHOOTER",
2294 DESC = "Altere sua Maestria atual para Maestria: Shooter. Seu nivel atual de maestria permanece.\n\nSomente Premium Account podem comprar este item.\n\nEsta maestria lhe concede uma skill que dobra seu dano por 10 seg.",
2295 PREMIUM = true,
2296 RESIZE = false,
2297 OUTFIT = false,
2298 CLOSED = true,
2299 VISIBLE = true,
2300 ACT_ID = {00000, 00000, 00000, 00000, 00000},
2301 VIP = { ORIGIN_PRICE = 1500, PROMO_PRICE = 000},
2302 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2303 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2304 };
2305 [07] = {
2306 NAME = "MAESTRIA: VITAL",
2307 DESC = "Altere sua Maestria atual para Maestria: Vital. Seu nivel atual de maestria permanece.\n\nSomente Premium Account podem comprar este item.\n\nEsta maestria lhe concede uma skill que cura e dobra seu HP por 10 seg.",
2308 PREMIUM = true,
2309 RESIZE = false,
2310 OUTFIT = false,
2311 CLOSED = true,
2312 VISIBLE = true,
2313 ACT_ID = {00000, 00000, 00000, 00000, 00000},
2314 VIP = { ORIGIN_PRICE = 1500, PROMO_PRICE = 000},
2315 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2316 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2317 };
2318 [08] = {
2319 NAME = "MAESTRIA: LUCKY",
2320 DESC = "Altere sua Maestria atual para Maestria: Lucky. Seu nivel atual de maestria permanece.\n\nSomente Premium Account podem comprar este item.\n\nEsta maestria lhe concede uma skill que garante ativacao imediata de amuletos e aneis.",
2321 PREMIUM = true,
2322 RESIZE = false,
2323 OUTFIT = false,
2324 CLOSED = true,
2325 VISIBLE = true,
2326 ACT_ID = {00000, 00000, 00000, 00000, 00000},
2327 VIP = { ORIGIN_PRICE = 1500, PROMO_PRICE = 000},
2328 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2329 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2330 };
2331 };
2332 [05] = { -- ESPECIAIS
2333 [00] = {DESC = "Servicos especiais focado em modificacao de armas."},
2334 [01] = {
2335 NAME = "REMOVER GUN #01",
2336 DESC = "Remove o PRIMEIRO SLOT de sua arma.\n\nATENCAO: A arma que deseja remover o slot precisa estar equipado em seu inventario no momento da compra.",
2337 PREMIUM = false,
2338 RESIZE = false,
2339 OUTFIT = false,
2340 CLOSED = true,
2341 VISIBLE = true,
2342 ACT_ID = {00000, 00000, 00000, 00000, 00000},
2343 VIP = { ORIGIN_PRICE = 025, PROMO_PRICE = 000},
2344 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 030, PROMO_PRICE = 000},
2345 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2346 };
2347 [02] = {
2348 NAME = "REMOVER GUN #02",
2349 DESC = "Remove o SEGUNDO SLOT de sua arma.\n\nATENCAO: A arma que deseja remover o slot precisa estar equipado em seu inventario no momento da compra.",
2350 PREMIUM = false,
2351 RESIZE = false,
2352 OUTFIT = false,
2353 CLOSED = true,
2354 VISIBLE = true,
2355 ACT_ID = {00000, 00000, 00000, 00000, 00000},
2356 VIP = { ORIGIN_PRICE = 025, PROMO_PRICE = 000},
2357 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 030, PROMO_PRICE = 000},
2358 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2359 };
2360 [03] = {
2361 NAME = "REMOVER GUN #03",
2362 DESC = "Remove o TERCEIRO SLOT de sua arma.\n\nATENCAO: A arma que deseja remover o slot precisa estar equipado em seu inventario no momento da compra.",
2363 PREMIUM = false,
2364 RESIZE = false,
2365 OUTFIT = false,
2366 CLOSED = true,
2367 VISIBLE = true,
2368 ACT_ID = {00000, 00000, 00000, 00000, 00000},
2369 VIP = { ORIGIN_PRICE = 025, PROMO_PRICE = 000},
2370 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 030, PROMO_PRICE = 000},
2371 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2372 };
2373 [04] = {
2374 NAME = "REMOVER HELMET #01",
2375 DESC = "Remove o PRIMEIRO SLOT de seu helmet.\n\nATENCAO: O equipamento que deseja remover o slot precisa estar equipado em seu inventario no momento da compra.",
2376 PREMIUM = false,
2377 RESIZE = false,
2378 OUTFIT = false,
2379 CLOSED = true,
2380 VISIBLE = true,
2381 ACT_ID = {00000, 00000, 00000, 00000, 00000},
2382 VIP = { ORIGIN_PRICE = 025, PROMO_PRICE = 000},
2383 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 030, PROMO_PRICE = 000},
2384 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2385 };
2386 [05] = {
2387 NAME = "REMOVER HELMET #02",
2388 DESC = "Remove o SEGUNDO SLOT de seu helmet.\n\nATENCAO: O equipamento que deseja remover o slot precisa estar equipado em seu inventario no momento da compra.",
2389 PREMIUM = false,
2390 RESIZE = false,
2391 OUTFIT = false,
2392 CLOSED = true,
2393 VISIBLE = true,
2394 ACT_ID = {00000, 00000, 00000, 00000, 00000},
2395 VIP = { ORIGIN_PRICE = 025, PROMO_PRICE = 000},
2396 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 030, PROMO_PRICE = 000},
2397 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2398 };
2399 [06] = {
2400 NAME = "REMOVER ARMOR #01",
2401 DESC = "Remove o PRIMEIRO SLOT de seu armor.\n\nATENCAO: O equipamento que deseja remover o slot precisa estar equipado em seu inventario no momento da compra.",
2402 PREMIUM = false,
2403 RESIZE = false,
2404 OUTFIT = false,
2405 CLOSED = true,
2406 VISIBLE = true,
2407 ACT_ID = {00000, 00000, 00000, 00000, 00000},
2408 VIP = { ORIGIN_PRICE = 025, PROMO_PRICE = 000},
2409 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 030, PROMO_PRICE = 000},
2410 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2411 };
2412 [07] = {
2413 NAME = "REMOVER ARMOR #02",
2414 DESC = "Remove o SEGUNDO SLOT de seu armor.\n\nATENCAO: O equipamento que deseja remover o slot precisa estar equipado em seu inventario no momento da compra.",
2415 PREMIUM = false,
2416 RESIZE = false,
2417 OUTFIT = false,
2418 CLOSED = true,
2419 VISIBLE = true,
2420 ACT_ID = {00000, 00000, 00000, 00000, 00000},
2421 VIP = { ORIGIN_PRICE = 025, PROMO_PRICE = 000},
2422 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 030, PROMO_PRICE = 000},
2423 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2424 };
2425 [08] = {
2426 NAME = "REMOVER GLOVE #01",
2427 DESC = "Remove o PRIMEIRO SLOT de sua glove.\n\nATENCAO: O equipamento que deseja remover o slot precisa estar equipado em seu inventario no momento da compra.",
2428 PREMIUM = false,
2429 RESIZE = false,
2430 OUTFIT = false,
2431 CLOSED = true,
2432 VISIBLE = true,
2433 ACT_ID = {00000, 00000, 00000, 00000, 00000},
2434 VIP = { ORIGIN_PRICE = 025, PROMO_PRICE = 000},
2435 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 030, PROMO_PRICE = 000},
2436 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2437 };
2438 [09] = {
2439 NAME = "REMOVER GLOVE #02",
2440 DESC = "Remove o SEGUNDO SLOT de sua glove.\n\nATENCAO: O equipamento que deseja remover o slot precisa estar equipado em seu inventario no momento da compra.",
2441 PREMIUM = false,
2442 RESIZE = false,
2443 OUTFIT = false,
2444 CLOSED = true,
2445 VISIBLE = true,
2446 ACT_ID = {00000, 00000, 00000, 00000, 00000},
2447 VIP = { ORIGIN_PRICE = 025, PROMO_PRICE = 000},
2448 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 030, PROMO_PRICE = 000},
2449 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2450 };
2451 [10] = {
2452 NAME = "REMOVER LEGS #01",
2453 DESC = "Remove o PRIMEIRO SLOT de sua legs.\n\nATENCAO: O equipamento que deseja remover o slot precisa estar equipado em seu inventario no momento da compra.",
2454 PREMIUM = false,
2455 RESIZE = false,
2456 OUTFIT = false,
2457 CLOSED = true,
2458 VISIBLE = true,
2459 ACT_ID = {00000, 00000, 00000, 00000, 00000},
2460 VIP = { ORIGIN_PRICE = 025, PROMO_PRICE = 000},
2461 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 030, PROMO_PRICE = 000},
2462 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2463 };
2464 [11] = {
2465 NAME = "REMOVER LEGS #02",
2466 DESC = "Remove o SEGUNDO SLOT de sua legs.\n\nATENCAO: O equipamento que deseja remover o slot precisa estar equipado em seu inventario no momento da compra.",
2467 PREMIUM = false,
2468 RESIZE = false,
2469 OUTFIT = false,
2470 CLOSED = true,
2471 VISIBLE = true,
2472 ACT_ID = {00000, 00000, 00000, 00000, 00000},
2473 VIP = { ORIGIN_PRICE = 025, PROMO_PRICE = 000},
2474 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 030, PROMO_PRICE = 000},
2475 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2476 };
2477 [12] = {
2478 NAME = "REMOVER BOOTS #01",
2479 DESC = "Remove o PRIMEIRO SLOT de sua boots.\n\nATENCAO: O equipamento que deseja remover o slot precisa estar equipado em seu inventario no momento da compra.",
2480 PREMIUM = false,
2481 RESIZE = false,
2482 OUTFIT = false,
2483 CLOSED = true,
2484 VISIBLE = true,
2485 ACT_ID = {00000, 00000, 00000, 00000, 00000},
2486 VIP = { ORIGIN_PRICE = 025, PROMO_PRICE = 000},
2487 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 030, PROMO_PRICE = 000},
2488 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2489 };
2490 [13] = {
2491 NAME = "REMOVER BOOTS #02",
2492 DESC = "Remove o SEGUNDO SLOT de sua boots.\n\nATENCAO: O equipamento que deseja remover o slot precisa estar equipado em seu inventario no momento da compra.",
2493 PREMIUM = false,
2494 RESIZE = false,
2495 OUTFIT = false,
2496 CLOSED = true,
2497 VISIBLE = true,
2498 ACT_ID = {00000, 00000, 00000, 00000, 00000},
2499 VIP = { ORIGIN_PRICE = 025, PROMO_PRICE = 000},
2500 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 030, PROMO_PRICE = 000},
2501 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2502 };
2503 [14] = {
2504 NAME = "RESET STATUS (COMPLETO)",
2505 DESC = "Reseta completamente todos os status de seu personagem.\n\nVoce precisa estar em Protection Zone (PZ) para comprar este produto.",
2506 PREMIUM = false,
2507 RESIZE = false,
2508 OUTFIT = false,
2509 CLOSED = true,
2510 VISIBLE = true,
2511 ACT_ID = {00000, 00000, 00000, 00000, 00000},
2512 VIP = { ORIGIN_PRICE = 050, PROMO_PRICE = 000},
2513 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 060, PROMO_PRICE = 000},
2514 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2515 };
2516 };
2517 [06] = { -- FERRAMENTAS
2518 [00] = {DESC = "Ferramentas para seu cliente que pode facilitar sua vida."},
2519 [01] = {
2520 NAME = "LOJA REMOTA (TEMPORARIA)",
2521 DESC = "Permite voce vender seus items em qualquer lugar, diretamente de sua backpack.\n\nEste produto permanece ativo em seu personagem por 02 hora. O tempo somente passara quando voce estiver online.",
2522 PREMIUM = false,
2523 RESIZE = false,
2524 OUTFIT = false,
2525 CLOSED = true,
2526 VISIBLE = true,
2527 ACT_ID = {07200, 00001, 00042, 00000, 00000},
2528 VIP = { ORIGIN_PRICE = 050, PROMO_PRICE = 000},
2529 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 060, PROMO_PRICE = 000},
2530 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2531 };
2532 [02] = {
2533 NAME = "LOJA REMOTA (PERMANENTE)",
2534 DESC = "Permite voce vender seus items em qualquer lugar, diretamente de sua backpack.\n\nSomente jogadores Premium Account podem comprar este item.\n\nEste produto permanece ativo em seu PERSONAGEM para sempre.",
2535 PREMIUM = true,
2536 RESIZE = false,
2537 OUTFIT = false,
2538 CLOSED = true,
2539 VISIBLE = true,
2540 ACT_ID = {07201, 00001, 00042, 00000, 00000},
2541 VIP = { ORIGIN_PRICE = 1000, PROMO_PRICE = 000},
2542 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2543 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2544 };
2545 [03] = {
2546 NAME = "NEXUS REMOTO (TEMPORARIO)",
2547 DESC = "Permite voce acessar qualquer Nexus em qualquer lugar.\n\nEste produto permanece ativo em seu personagem por 02 hora. O tempo somente passara quando voce estiver online.",
2548 PREMIUM = false,
2549 RESIZE = false,
2550 OUTFIT = false,
2551 CLOSED = true,
2552 VISIBLE = true,
2553 ACT_ID = {07200, 00002, 00043, 00000, 00000},
2554 VIP = { ORIGIN_PRICE = 100, PROMO_PRICE = 000},
2555 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 120, PROMO_PRICE = 000},
2556 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2557 };
2558 [04] = {
2559 NAME = "NEXUS REMOTO (PERMANENTE)",
2560 DESC = "Permite voce acessar qualquer Nexus em qualquer lugar.\n\nSomente jogadores Premium Account podem comprar este item.\n\nEste produto permanece ativo em seu PERSONAGEM para sempre.",
2561 PREMIUM = true,
2562 RESIZE = false,
2563 OUTFIT = false,
2564 CLOSED = true,
2565 VISIBLE = true,
2566 ACT_ID = {07201, 00002, 00043, 00000, 00000},
2567 VIP = { ORIGIN_PRICE = 1750, PROMO_PRICE = 000},
2568 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2569 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2570 };
2571 };
2572 [07] = { -- OUTFITS
2573 [00] = {DESC = "Personalize seu personagem com belas outfits e seus addons."},
2574 [01] = {
2575 NAME = "CITIZEN ADDONS",
2576 DESC = "Addons completo para quem possui o Outfit.",
2577 PREMIUM = false,
2578 RESIZE = false,
2579 OUTFIT = false,
2580 CLOSED = true,
2581 VISIBLE = true,
2582 ACT_ID = {00136, 00128, 00000, 00000, 00000},
2583 VIP = { ORIGIN_PRICE = 050, PROMO_PRICE = 000},
2584 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2585 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2586 };
2587 [02] = {
2588 NAME = "HUNTER ADDONS",
2589 DESC = "Addons completo para quem possui o Outfit.",
2590 PREMIUM = false,
2591 RESIZE = false,
2592 OUTFIT = false,
2593 CLOSED = true,
2594 VISIBLE = true,
2595 ACT_ID = {00137, 00129, 00000, 00000, 00000},
2596 VIP = { ORIGIN_PRICE = 050, PROMO_PRICE = 000},
2597 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2598 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2599 };
2600 [03] = {
2601 NAME = "MAGE ADDONS",
2602 DESC = "Addons completo para quem possui o Outfit.",
2603 PREMIUM = false,
2604 RESIZE = false,
2605 OUTFIT = false,
2606 CLOSED = true,
2607 VISIBLE = true,
2608 ACT_ID = {00138, 00130, 00000, 00000, 00000},
2609 VIP = { ORIGIN_PRICE = 050, PROMO_PRICE = 000},
2610 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2611 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2612 };
2613 [04] = {
2614 NAME = "KNIGHT ADDONS",
2615 DESC = "Addons completo para quem possui o Outfit.",
2616 PREMIUM = false,
2617 RESIZE = false,
2618 OUTFIT = false,
2619 CLOSED = true,
2620 VISIBLE = true,
2621 ACT_ID = {00139, 00131, 00000, 00000, 00000},
2622 VIP = { ORIGIN_PRICE = 050, PROMO_PRICE = 000},
2623 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2624 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2625 };
2626 [05] = {
2627 NAME = "NOBLEMAN ADDONS",
2628 DESC = "Addons completo para quem possui o Outfit.\n\nSomente jogadores Premium Account podem comprar este item.",
2629 PREMIUM = true,
2630 RESIZE = false,
2631 OUTFIT = false,
2632 CLOSED = true,
2633 VISIBLE = true,
2634 ACT_ID = {00140, 00132, 00000, 00000, 00000},
2635 VIP = { ORIGIN_PRICE = 050, PROMO_PRICE = 000},
2636 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2637 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2638 };
2639 [06] = {
2640 NAME = "SUMMONER ADDONS",
2641 DESC = "Addons completo para quem possui o Outfit.\n\nSomente jogadores Premium Account podem comprar este item.",
2642 PREMIUM = true,
2643 RESIZE = false,
2644 OUTFIT = false,
2645 CLOSED = true,
2646 VISIBLE = true,
2647 ACT_ID = {00141, 00133, 00000, 00000, 00000},
2648 VIP = { ORIGIN_PRICE = 050, PROMO_PRICE = 000},
2649 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2650 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2651 };
2652 [07] = {
2653 NAME = "WARRIOR ADDONS",
2654 DESC = "Addons completo para quem possui o Outfit.\n\nSomente jogadores Premium Account podem comprar este item.",
2655 PREMIUM = true,
2656 RESIZE = false,
2657 OUTFIT = false,
2658 CLOSED = true,
2659 VISIBLE = true,
2660 ACT_ID = {00142, 00134, 00000, 00000, 00000},
2661 VIP = { ORIGIN_PRICE = 050, PROMO_PRICE = 000},
2662 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2663 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2664 };
2665 [08] = {
2666 NAME = "BARBARIAN ADDONS",
2667 DESC = "Addons completo para quem possui o Outfit.\n\nSomente jogadores Premium Account podem comprar este item.",
2668 PREMIUM = true,
2669 RESIZE = false,
2670 OUTFIT = false,
2671 CLOSED = true,
2672 VISIBLE = true,
2673 ACT_ID = {00147, 00143, 00000, 00000, 00000},
2674 VIP = { ORIGIN_PRICE = 050, PROMO_PRICE = 000},
2675 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2676 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2677 };
2678 [09] = {
2679 NAME = "DRUID ADDONS",
2680 DESC = "Addons completo para quem possui o Outfit.\n\nSomente jogadores Premium Account podem comprar este item.",
2681 PREMIUM = true,
2682 RESIZE = false,
2683 OUTFIT = false,
2684 CLOSED = true,
2685 VISIBLE = true,
2686 ACT_ID = {00148, 00144, 00000, 00000, 00000},
2687 VIP = { ORIGIN_PRICE = 050, PROMO_PRICE = 000},
2688 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2689 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2690 };
2691 [10] = {
2692 NAME = "WIZARD ADDONS",
2693 DESC = "Addons completo para quem possui o Outfit.\n\nSomente jogadores Premium Account podem comprar este item.",
2694 PREMIUM = true,
2695 RESIZE = false,
2696 OUTFIT = false,
2697 CLOSED = true,
2698 VISIBLE = true,
2699 ACT_ID = {00149, 00145, 00000, 00000, 00000},
2700 VIP = { ORIGIN_PRICE = 050, PROMO_PRICE = 000},
2701 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2702 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2703 };
2704 [11] = {
2705 NAME = "ORIENTAL ADDONS",
2706 DESC = "Addons completo para quem possui o Outfit.\n\nSomente jogadores Premium Account podem comprar este item.",
2707 PREMIUM = true,
2708 RESIZE = false,
2709 OUTFIT = false,
2710 CLOSED = true,
2711 VISIBLE = true,
2712 ACT_ID = {00150, 00146, 00000, 00000, 00000},
2713 VIP = { ORIGIN_PRICE = 050, PROMO_PRICE = 000},
2714 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2715 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2716 };
2717 [12] = {
2718 NAME = "PIRATE ADDONS",
2719 DESC = "Addons completo para quem possui a outfit.\n\nSomente jogadores Premium Account podem comprar este item.",
2720 PREMIUM = true,
2721 RESIZE = false,
2722 OUTFIT = false,
2723 CLOSED = true,
2724 VISIBLE = true,
2725 ACT_ID = {00155, 00151, 00000, 00000, 00000},
2726 VIP = { ORIGIN_PRICE = 100, PROMO_PRICE = 000},
2727 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2728 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2729 };
2730 [13] = {
2731 NAME = "ASSASSIN ADDONS",
2732 DESC = "Addons completo para quem possui a outfit.\n\nSomente jogadores Premium Account podem comprar este item.",
2733 PREMIUM = true,
2734 RESIZE = false,
2735 OUTFIT = false,
2736 CLOSED = true,
2737 VISIBLE = true,
2738 ACT_ID = {00156, 00152, 00000, 00000, 00000},
2739 VIP = { ORIGIN_PRICE = 100, PROMO_PRICE = 000},
2740 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2741 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2742 };
2743 [14] = {
2744 NAME = "BEGGAR ADDONS",
2745 DESC = "Addons completo para quem possui a outfit.\n\nSomente jogadores Premium Account podem comprar este item.",
2746 PREMIUM = true,
2747 RESIZE = false,
2748 OUTFIT = false,
2749 CLOSED = true,
2750 VISIBLE = true,
2751 ACT_ID = {00157, 00153, 00000, 00000, 00000},
2752 VIP = { ORIGIN_PRICE = 100, PROMO_PRICE = 000},
2753 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2754 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2755 };
2756 [15] = {
2757 NAME = "SHAMAN ADDONS",
2758 DESC = "Addons completo para quem possui a outfit.\n\nSomente jogadores Premium Account podem comprar este item.",
2759 PREMIUM = true,
2760 RESIZE = false,
2761 OUTFIT = false,
2762 CLOSED = true,
2763 VISIBLE = true,
2764 ACT_ID = {00158, 00154, 00000, 00000, 00000},
2765 VIP = { ORIGIN_PRICE = 100, PROMO_PRICE = 000},
2766 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2767 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2768 };
2769 [16] = {
2770 NAME = "NORSEMAN ADDONS",
2771 DESC = "Addons completo para quem possui a outfit.\n\nSomente jogadores Premium Account podem comprar este item.",
2772 PREMIUM = true,
2773 RESIZE = false,
2774 OUTFIT = false,
2775 CLOSED = true,
2776 VISIBLE = true,
2777 ACT_ID = {00252, 00251, 00000, 00000, 00000},
2778 VIP = { ORIGIN_PRICE = 100, PROMO_PRICE = 000},
2779 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2780 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2781 };
2782 [17] = {
2783 NAME = "KNIGHTMARE OUTFIT",
2784 DESC = "Outfit completo com seus addons.\n\nSomente jogadores Premium Account podem comprar este item.",
2785 PREMIUM = true,
2786 RESIZE = false,
2787 OUTFIT = true,
2788 CLOSED = true,
2789 VISIBLE = true,
2790 ACT_ID = {00269, 00268, 00000, 00000, 00000},
2791 VIP = { ORIGIN_PRICE = 100, PROMO_PRICE = 000},
2792 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2793 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2794 };
2795 [18] = {
2796 NAME = "JESTER ADDONS",
2797 DESC = "Addons completo para quem possui a outfit.\n\nSomente jogadores Premium Account podem comprar este item.",
2798 PREMIUM = true,
2799 RESIZE = false,
2800 OUTFIT = false,
2801 CLOSED = true,
2802 VISIBLE = true,
2803 ACT_ID = {00270, 00273, 00000, 00000, 00000},
2804 VIP = { ORIGIN_PRICE = 100, PROMO_PRICE = 000},
2805 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2806 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2807 };
2808 [19] = {
2809 NAME = "BROTHERHOOD OUTFIT",
2810 DESC = "Outfit completo com seus addons.\n\nSomente jogadores Premium Account podem comprar este item.",
2811 PREMIUM = true,
2812 RESIZE = false,
2813 OUTFIT = true,
2814 CLOSED = true,
2815 VISIBLE = true,
2816 ACT_ID = {00279, 00278, 00000, 00000, 00000},
2817 VIP = { ORIGIN_PRICE = 100, PROMO_PRICE = 000},
2818 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2819 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2820 };
2821 [20] = {
2822 NAME = "DEMON HUNTER OUTFIT",
2823 DESC = "Outfit completo com seus addons.\n\nSomente jogadores Premium Account podem comprar este item.",
2824 PREMIUM = true,
2825 RESIZE = false,
2826 OUTFIT = true,
2827 CLOSED = true,
2828 VISIBLE = true,
2829 ACT_ID = {00288, 00289, 00000, 00000, 00000},
2830 VIP = { ORIGIN_PRICE = 100, PROMO_PRICE = 000},
2831 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2832 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2833 };
2834 [21] = {
2835 NAME = "YALAHARIAN OUTFIT",
2836 DESC = "Outfit completo com seus addons.\n\nSomente jogadores Premium Account podem comprar este item.",
2837 PREMIUM = true,
2838 RESIZE = false,
2839 OUTFIT = true,
2840 CLOSED = true,
2841 VISIBLE = true,
2842 ACT_ID = {00324, 00325, 00000, 00000, 00000},
2843 VIP = { ORIGIN_PRICE = 100, PROMO_PRICE = 000},
2844 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2845 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2846 };
2847 [22] = {
2848 NAME = "WEDDING OUTFIT",
2849 DESC = "Outfit completo com seus addons.\n\nSomente jogadores Premium Account podem comprar este item.",
2850 PREMIUM = true,
2851 RESIZE = false,
2852 OUTFIT = true,
2853 CLOSED = true,
2854 VISIBLE = false,
2855 ACT_ID = {00329, 00328, 00000, 00000, 00000},
2856 VIP = { ORIGIN_PRICE = 100, PROMO_PRICE = 000},
2857 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2858 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2859 };
2860 [23] = {
2861 NAME = "WARMASTER ADDONS",
2862 DESC = "Addons completo para quem possui a outfit.\n\nSomente jogadores Premium Account podem comprar este item.",
2863 PREMIUM = true,
2864 RESIZE = false,
2865 OUTFIT = false,
2866 CLOSED = true,
2867 VISIBLE = true,
2868 ACT_ID = {00336, 00335, 00000, 00000, 00000},
2869 VIP = { ORIGIN_PRICE = 100, PROMO_PRICE = 000},
2870 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2871 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2872 };
2873 [24] = {
2874 NAME = "WAYFARER ADDONS",
2875 DESC = "Addons completo para quem possui a outfit.\n\nSomente jogadores Premium Account podem comprar este item.",
2876 PREMIUM = true,
2877 RESIZE = false,
2878 OUTFIT = false,
2879 CLOSED = true,
2880 VISIBLE = true,
2881 ACT_ID = {00366, 00367, 00000, 00000, 00000},
2882 VIP = { ORIGIN_PRICE = 100, PROMO_PRICE = 000},
2883 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2884 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2885 };
2886 [25] = {
2887 NAME = "AFFLICTED ADDONS",
2888 DESC = "Addons completo para quem possui a outfit.\n\nSomente jogadores Premium Account podem comprar este item.",
2889 PREMIUM = true,
2890 RESIZE = false,
2891 OUTFIT = false,
2892 CLOSED = true,
2893 VISIBLE = true,
2894 ACT_ID = {00431, 00430, 00000, 00000, 00000},
2895 VIP = { ORIGIN_PRICE = 100, PROMO_PRICE = 000},
2896 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2897 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2898 };
2899 [26] = {
2900 NAME = "ELEMENTALIST OUTFIT",
2901 DESC = "Outfit completo com seus addons.\n\nSomente jogadores Premium Account podem comprar este item.",
2902 PREMIUM = true,
2903 RESIZE = false,
2904 OUTFIT = true,
2905 CLOSED = true,
2906 VISIBLE = true,
2907 ACT_ID = {00433, 00432, 00000, 00000, 00000},
2908 VIP = { ORIGIN_PRICE = 100, PROMO_PRICE = 000},
2909 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2910 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2911 };
2912 [27] = {
2913 NAME = "DEEPLING OUTFIT",
2914 DESC = "Outfit completo com seus addons.\n\nSomente jogadores Premium Account podem comprar este item.",
2915 PREMIUM = true,
2916 RESIZE = false,
2917 OUTFIT = true,
2918 CLOSED = true,
2919 VISIBLE = true,
2920 ACT_ID = {00464, 00463, 00000, 00000, 00000},
2921 VIP = { ORIGIN_PRICE = 100, PROMO_PRICE = 000},
2922 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2923 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2924 };
2925 [28] = {
2926 NAME = "INSECTOID OUTFIT",
2927 DESC = "Outfit completo com seus addons.\n\nSomente jogadores Premium Account podem comprar este item.",
2928 PREMIUM = true,
2929 RESIZE = false,
2930 OUTFIT = true,
2931 CLOSED = true,
2932 VISIBLE = true,
2933 ACT_ID = {00466, 00465, 00000, 00000, 00000},
2934 VIP = { ORIGIN_PRICE = 100, PROMO_PRICE = 000},
2935 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2936 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2937 };
2938 [29] = {
2939 NAME = "ENTREPENEUR OUTFIT",
2940 DESC = "Outfit completo com seus addons.\n\nSomente jogadores Premium Account podem comprar este item.",
2941 PREMIUM = true,
2942 RESIZE = false,
2943 OUTFIT = true,
2944 CLOSED = true,
2945 VISIBLE = true,
2946 ACT_ID = {00471, 00472, 00000, 00000, 00000},
2947 VIP = { ORIGIN_PRICE = 100, PROMO_PRICE = 000},
2948 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2949 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2950 };
2951 [30] = {
2952 NAME = "CRYSTAL WARLORD OUTFIT",
2953 DESC = "Outfit completo com seus addons.\n\nSomente jogadores Premium Account podem comprar este item.",
2954 PREMIUM = true,
2955 RESIZE = false,
2956 OUTFIT = true,
2957 CLOSED = true,
2958 VISIBLE = true,
2959 ACT_ID = {00513, 00512, 00000, 00000, 00000},
2960 VIP = { ORIGIN_PRICE = 100, PROMO_PRICE = 000},
2961 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2962 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2963 };
2964 [31] = {
2965 NAME = "SOIL GUARDIAN OUTFIT",
2966 DESC = "Outfit completo com seus addons.\n\nSomente jogadores Premium Account podem comprar este item.",
2967 PREMIUM = true,
2968 RESIZE = false,
2969 OUTFIT = true,
2970 CLOSED = true,
2971 VISIBLE = true,
2972 ACT_ID = {00514, 00516, 00000, 00000, 00000},
2973 VIP = { ORIGIN_PRICE = 100, PROMO_PRICE = 000},
2974 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2975 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2976 };
2977 [32] = {
2978 NAME = "DEMON OUTFIT",
2979 DESC = "Outfit completo com seus addons.\n\nSomente jogadores Premium Account podem comprar este item.",
2980 PREMIUM = true,
2981 RESIZE = false,
2982 OUTFIT = true,
2983 CLOSED = true,
2984 VISIBLE = true,
2985 ACT_ID = {00542, 00541, 00000, 00000, 00000},
2986 VIP = { ORIGIN_PRICE = 100, PROMO_PRICE = 000},
2987 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2988 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
2989 };
2990 [33] = {
2991 NAME = "CAVE EXPLORER OUTFIT",
2992 DESC = "Outfit completo com seus addons.\n\nSomente jogadores Premium Account podem comprar este item.",
2993 PREMIUM = true,
2994 RESIZE = false,
2995 OUTFIT = true,
2996 CLOSED = true,
2997 VISIBLE = true,
2998 ACT_ID = {00575, 00574, 00000, 00000, 00000},
2999 VIP = { ORIGIN_PRICE = 100, PROMO_PRICE = 000},
3000 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3001 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3002 };
3003 [34] = {
3004 NAME = "DREAM WARDEN OUTFIT",
3005 DESC = "Outfit completo com seus addons.\n\nSomente jogadores Premium Account podem comprar este item.",
3006 PREMIUM = true,
3007 RESIZE = false,
3008 OUTFIT = true,
3009 CLOSED = true,
3010 VISIBLE = true,
3011 ACT_ID = {00578, 00577, 00000, 00000, 00000},
3012 VIP = { ORIGIN_PRICE = 100, PROMO_PRICE = 000},
3013 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3014 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3015 };
3016 [35] = {
3017 NAME = "GLOOTH ENGINEER OUTFIT",
3018 DESC = "Outfit completo com seus addons.\n\nSomente jogadores Premium Account podem comprar este item.",
3019 PREMIUM = true,
3020 RESIZE = false,
3021 OUTFIT = true,
3022 CLOSED = true,
3023 VISIBLE = true,
3024 ACT_ID = {00618, 00610, 00000, 00000, 00000},
3025 VIP = { ORIGIN_PRICE = 100, PROMO_PRICE = 000},
3026 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3027 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3028 };
3029 [36] = {
3030 NAME = "JERSEY OUTFIT",
3031 DESC = "Outfit completo com seus addons.\n\nSomente jogadores Premium Account podem comprar este item.",
3032 PREMIUM = true,
3033 RESIZE = false,
3034 OUTFIT = true,
3035 CLOSED = true,
3036 VISIBLE = true,
3037 ACT_ID = {00620, 00619, 00000, 00000, 00000},
3038 VIP = { ORIGIN_PRICE = 100, PROMO_PRICE = 000},
3039 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3040 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3041 };
3042 [37] = {
3043 NAME = "CHAMPION OUTFIT",
3044 DESC = "Outfit completo com seus addons.\n\nSomente jogadores Premium Account podem comprar este item.",
3045 PREMIUM = true,
3046 RESIZE = false,
3047 OUTFIT = true,
3048 CLOSED = true,
3049 VISIBLE = true,
3050 ACT_ID = {00632, 00633, 00000, 00000, 00000},
3051 VIP = { ORIGIN_PRICE = 100, PROMO_PRICE = 000},
3052 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3053 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3054 };
3055 [38] = {
3056 NAME = "CONJURER OUTFIT",
3057 DESC = "Outfit completo com seus addons.\n\nSomente jogadores Premium Account podem comprar este item.",
3058 PREMIUM = true,
3059 RESIZE = false,
3060 OUTFIT = true,
3061 CLOSED = true,
3062 VISIBLE = true,
3063 ACT_ID = {00635, 00634, 00000, 00000, 00000},
3064 VIP = { ORIGIN_PRICE = 100, PROMO_PRICE = 000},
3065 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3066 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3067 };
3068 [39] = {
3069 NAME = "BEASTMASTER OUTFIT",
3070 DESC = "Outfit completo com seus addons.\n\nSomente jogadores Premium Account podem comprar este item.",
3071 PREMIUM = true,
3072 RESIZE = false,
3073 OUTFIT = true,
3074 CLOSED = true,
3075 VISIBLE = true,
3076 ACT_ID = {00636, 00637, 00000, 00000, 00000},
3077 VIP = { ORIGIN_PRICE = 100, PROMO_PRICE = 000},
3078 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3079 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3080 };
3081 [40] = {
3082 NAME = "CHAOS ACOLYTE OUTFIT",
3083 DESC = "Outfit completo com seus addons.\n\nSomente jogadores Premium Account podem comprar este item.",
3084 PREMIUM = true,
3085 RESIZE = false,
3086 OUTFIT = true,
3087 CLOSED = true,
3088 VISIBLE = true,
3089 ACT_ID = {00664, 00665, 00000, 00000, 00000},
3090 VIP = { ORIGIN_PRICE = 100, PROMO_PRICE = 000},
3091 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3092 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3093 };
3094 [41] = {
3095 NAME = "DEATH HERALD ADDONS",
3096 DESC = "Addons completo para quem possui o outfit.\n\nSomente jogadores Premium Account podem comprar este item.",
3097 PREMIUM = true,
3098 RESIZE = false,
3099 OUTFIT = false,
3100 CLOSED = true,
3101 VISIBLE = true,
3102 ACT_ID = {00666, 00667, 00000, 00000, 00000},
3103 VIP = { ORIGIN_PRICE = 100, PROMO_PRICE = 000},
3104 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3105 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3106 };
3107 [42] = {
3108 NAME = "RANGER OUTFIT",
3109 DESC = "Outfit completo com seus addons.\n\nSomente jogadores Premium Account podem comprar este item.",
3110 PREMIUM = true,
3111 RESIZE = false,
3112 OUTFIT = true,
3113 CLOSED = true,
3114 VISIBLE = true,
3115 ACT_ID = {00683, 00684, 00000, 00000, 00000},
3116 VIP = { ORIGIN_PRICE = 100, PROMO_PRICE = 000},
3117 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3118 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3119 };
3120 [43] = {
3121 NAME = "CERIMONIAL GARD OUTFIT",
3122 DESC = "Outfit completo com seus addons.\n\nSomente jogadores Premium Account podem comprar este item.",
3123 PREMIUM = true,
3124 RESIZE = false,
3125 OUTFIT = true,
3126 CLOSED = true,
3127 VISIBLE = true,
3128 ACT_ID = {00694, 00695, 00000, 00000, 00000},
3129 VIP = { ORIGIN_PRICE = 100, PROMO_PRICE = 000},
3130 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3131 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3132 };
3133 [44] = {
3134 NAME = "PUPPETEER ADDONS",
3135 DESC = "Addons completo para quem possui o outfit.\n\nSomente jogadores Premium Account podem comprar este item.",
3136 PREMIUM = true,
3137 RESIZE = false,
3138 OUTFIT = false,
3139 VISIBLE = false,
3140 ACT_ID = {00696, 00697, 00000, 00000, 00000},
3141 VIP = { ORIGIN_PRICE = 100, PROMO_PRICE = 000},
3142 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3143 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3144 };
3145 [45] = {
3146 NAME = "SPIRIT CALLER OUTFIT",
3147 DESC = "Outfit completo com seus addons.\n\nSomente jogadores Premium Account podem comprar este item.",
3148 PREMIUM = true,
3149 RESIZE = false,
3150 OUTFIT = true,
3151 CLOSED = true,
3152 VISIBLE = true,
3153 ACT_ID = {00698, 00699, 00000, 00000, 00000},
3154 VIP = { ORIGIN_PRICE = 100, PROMO_PRICE = 000},
3155 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3156 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3157 };
3158 [46] = {
3159 NAME = "EVOKER OUTFIT",
3160 DESC = "Outfit completo com seus addons.\n\nSomente jogadores Premium Account podem comprar este item.",
3161 PREMIUM = true,
3162 RESIZE = false,
3163 OUTFIT = true,
3164 CLOSED = true,
3165 VISIBLE = true,
3166 ACT_ID = {00724, 00725, 00000, 00000, 00000},
3167 VIP = { ORIGIN_PRICE = 100, PROMO_PRICE = 000},
3168 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3169 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3170 };
3171 [47] = {
3172 NAME = "SEAWEAVER OUTFIT",
3173 DESC = "Outfit completo com seus addons.\n\nSomente jogadores Premium Account podem comprar este item.",
3174 PREMIUM = true,
3175 RESIZE = false,
3176 OUTFIT = true,
3177 CLOSED = true,
3178 VISIBLE = true,
3179 ACT_ID = {00732, 00733, 00000, 00000, 00000},
3180 VIP = { ORIGIN_PRICE = 100, PROMO_PRICE = 000},
3181 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3182 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3183 };
3184 [48] = {
3185 NAME = "RECRUITER OUTFIT",
3186 DESC = "Outfit completo com seus addons.\n\nSomente jogadores Premium Account podem comprar este item.",
3187 PREMIUM = true,
3188 RESIZE = false,
3189 OUTFIT = true,
3190 CLOSED = true,
3191 VISIBLE = true,
3192 ACT_ID = {00745, 00746, 00000, 00000, 00000},
3193 VIP = { ORIGIN_PRICE = 100, PROMO_PRICE = 000},
3194 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3195 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3196 };
3197 [49] = {
3198 NAME = "SEA DOG OUTFIT",
3199 DESC = "Outfit completo com seus addons.\n\nSomente jogadores Premium Account podem comprar este item.",
3200 PREMIUM = true,
3201 RESIZE = false,
3202 OUTFIT = true,
3203 CLOSED = true,
3204 VISIBLE = true,
3205 ACT_ID = {00749, 00750, 00000, 00000, 00000},
3206 VIP = { ORIGIN_PRICE = 100, PROMO_PRICE = 000},
3207 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3208 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3209 };
3210 [50] = {
3211 NAME = "ROYAL PUMPKIN OUTFIT",
3212 DESC = "Outfit completo com seus addons.\n\nSomente jogadores Premium Account podem comprar este item.",
3213 PREMIUM = true,
3214 RESIZE = false,
3215 OUTFIT = true,
3216 CLOSED = true,
3217 VISIBLE = true,
3218 ACT_ID = {00759, 00760, 00000, 00000, 00000},
3219 VIP = { ORIGIN_PRICE = 100, PROMO_PRICE = 000},
3220 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3221 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3222 };
3223 [51] = {
3224 NAME = "RIFT WARRIOR OUTFIT",
3225 DESC = "Outfit completo com seus addons.\n\nSomente jogadores Premium Account podem comprar este item.",
3226 PREMIUM = true,
3227 RESIZE = false,
3228 OUTFIT = true,
3229 CLOSED = true,
3230 VISIBLE = true,
3231 ACT_ID = {00845, 00846, 00000, 00000, 00000},
3232 VIP = { ORIGIN_PRICE = 100, PROMO_PRICE = 000},
3233 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3234 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3235 };
3236 [52] = {
3237 NAME = "WINTER WARDEN OUTFIT",
3238 DESC = "Outfit completo com seus addons.\n\nSomente jogadores Premium Account podem comprar este item.",
3239 PREMIUM = true,
3240 RESIZE = false,
3241 OUTFIT = true,
3242 CLOSED = true,
3243 VISIBLE = true,
3244 ACT_ID = {00852, 00853, 00000, 00000, 00000},
3245 VIP = { ORIGIN_PRICE = 100, PROMO_PRICE = 000},
3246 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3247 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3248 };
3249 [53] = {
3250 NAME = "PHILOSOPHER OUTFIT",
3251 DESC = "Outfit completo com seus addons.\n\nSomente jogadores Premium Account podem comprar este item.",
3252 PREMIUM = true,
3253 RESIZE = false,
3254 OUTFIT = true,
3255 CLOSED = true,
3256 VISIBLE = true,
3257 ACT_ID = {00874, 00873, 00000, 00000, 00000},
3258 VIP = { ORIGIN_PRICE = 100, PROMO_PRICE = 000},
3259 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3260 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3261 };
3262 [54] = {
3263 NAME = "ARENA CHAMPION OUTFIT",
3264 DESC = "Outfit completo com seus addons.\n\nSomente jogadores Premium Account podem comprar este item.",
3265 PREMIUM = true,
3266 RESIZE = false,
3267 OUTFIT = true,
3268 CLOSED = true,
3269 VISIBLE = true,
3270 ACT_ID = {00885, 00884, 00000, 00000, 00000},
3271 VIP = { ORIGIN_PRICE = 100, PROMO_PRICE = 000},
3272 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3273 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3274 };
3275 [55] = {
3276 NAME = "LUPINE WARDEN OUTFIT",
3277 DESC = "Outfit completo com seus addons.\n\nSomente jogadores Premium Account podem comprar este item.",
3278 PREMIUM = true,
3279 RESIZE = false,
3280 OUTFIT = true,
3281 CLOSED = true,
3282 VISIBLE = true,
3283 ACT_ID = {00900, 00899, 00000, 00000, 00000},
3284 VIP = { ORIGIN_PRICE = 100, PROMO_PRICE = 000},
3285 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3286 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3287 };
3288 };
3289 [08] = { -- MONTARIAS
3290 [00] = {DESC = "Escolha a melhor montaria para viajar pelo continente."},
3291 [01] = {
3292 NAME = "WIDOW QUEEN",
3293 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
3294 PREMIUM = true,
3295 RESIZE = false,
3296 OUTFIT = false,
3297 CLOSED = true,
3298 VISIBLE = true,
3299 ACT_ID = {00001, 00000, 00000, 00000, 00000},
3300 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
3301 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3302 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3303 };
3304 [02] = {
3305 NAME = "RACING BIRD",
3306 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
3307 PREMIUM = true,
3308 RESIZE = false,
3309 OUTFIT = false,
3310 CLOSED = true,
3311 VISIBLE = true,
3312 ACT_ID = {00002, 00000, 00000, 00000, 00000},
3313 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
3314 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3315 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3316 };
3317 [03] = {
3318 NAME = "WAR BEAR",
3319 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
3320 PREMIUM = true,
3321 RESIZE = false,
3322 OUTFIT = false,
3323 CLOSED = true,
3324 VISIBLE = true,
3325 ACT_ID = {00003, 00000, 00000, 00000, 00000},
3326 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
3327 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3328 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3329 };
3330 [04] = {
3331 NAME = "BLACK SHEEP",
3332 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
3333 PREMIUM = true,
3334 RESIZE = false,
3335 OUTFIT = false,
3336 CLOSED = true,
3337 VISIBLE = false,
3338 ACT_ID = {00004, 00000, 00000, 00000, 00000},
3339 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
3340 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3341 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3342 };
3343 [05] = {
3344 NAME = "MIDNIGHT PANTHER",
3345 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
3346 PREMIUM = true,
3347 RESIZE = false,
3348 OUTFIT = false,
3349 CLOSED = true,
3350 VISIBLE = true,
3351 ACT_ID = {00005, 00000, 00000, 00000, 00000},
3352 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
3353 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3354 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3355 };
3356 [06] = {
3357 NAME = "DRAPTOR",
3358 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
3359 PREMIUM = true,
3360 RESIZE = false,
3361 OUTFIT = false,
3362 CLOSED = true,
3363 VISIBLE = true,
3364 ACT_ID = {00006, 00000, 00000, 00000, 00000},
3365 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
3366 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3367 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3368 };
3369 [07] = {
3370 NAME = "TITANICA",
3371 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
3372 PREMIUM = true,
3373 RESIZE = false,
3374 OUTFIT = false,
3375 CLOSED = true,
3376 VISIBLE = true,
3377 ACT_ID = {00007, 00000, 00000, 00000, 00000},
3378 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
3379 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3380 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3381 };
3382 [08] = {
3383 NAME = "TIN LIZZARD",
3384 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
3385 PREMIUM = true,
3386 RESIZE = false,
3387 OUTFIT = false,
3388 CLOSED = true,
3389 VISIBLE = true,
3390 ACT_ID = {00008, 00000, 00000, 00000, 00000},
3391 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
3392 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3393 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3394 };
3395 [09] = {
3396 NAME = "BLAZEBRINGER",
3397 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
3398 PREMIUM = true,
3399 RESIZE = false,
3400 OUTFIT = false,
3401 CLOSED = true,
3402 VISIBLE = true,
3403 ACT_ID = {00009, 00000, 00000, 00000, 00000},
3404 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
3405 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3406 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3407 };
3408 [10] = {
3409 NAME = "RAPID BOAR",
3410 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
3411 PREMIUM = true,
3412 RESIZE = false,
3413 OUTFIT = false,
3414 CLOSED = true,
3415 VISIBLE = false,
3416 ACT_ID = {00010, 00000, 00000, 00000, 00000},
3417 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
3418 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3419 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3420 };
3421 [11] = {
3422 NAME = "STAMPOR",
3423 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
3424 PREMIUM = true,
3425 RESIZE = false,
3426 OUTFIT = false,
3427 CLOSED = true,
3428 VISIBLE = false,
3429 ACT_ID = {00011, 00000, 00000, 00000, 00000},
3430 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
3431 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3432 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3433 };
3434 [12] = {
3435 NAME = "UNDEAD CAVEBEAR",
3436 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
3437 PREMIUM = true,
3438 RESIZE = false,
3439 OUTFIT = false,
3440 CLOSED = true,
3441 VISIBLE = true,
3442 ACT_ID = {00012, 00000, 00000, 00000, 00000},
3443 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
3444 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3445 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3446 };
3447 [13] = {
3448 NAME = "DONKEY",
3449 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
3450 PREMIUM = true,
3451 RESIZE = false,
3452 OUTFIT = false,
3453 CLOSED = true,
3454 VISIBLE = false,
3455 ACT_ID = {00013, 00000, 00000, 00000, 00000},
3456 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
3457 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3458 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3459 };
3460 [14] = {
3461 NAME = "TIGER SLUG",
3462 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
3463 PREMIUM = true,
3464 RESIZE = false,
3465 OUTFIT = false,
3466 CLOSED = true,
3467 VISIBLE = false,
3468 ACT_ID = {00014, 00000, 00000, 00000, 00000},
3469 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
3470 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3471 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3472 };
3473 [15] = {
3474 NAME = "UNIWHEEL",
3475 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
3476 PREMIUM = true,
3477 RESIZE = false,
3478 OUTFIT = false,
3479 CLOSED = true,
3480 VISIBLE = true,
3481 ACT_ID = {00015, 00000, 00000, 00000, 00000},
3482 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
3483 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3484 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3485 };
3486 [16] = {
3487 NAME = "CRYSTAL WOLF",
3488 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
3489 PREMIUM = true,
3490 RESIZE = false,
3491 OUTFIT = false,
3492 CLOSED = true,
3493 VISIBLE = true,
3494 ACT_ID = {00016, 00000, 00000, 00000, 00000},
3495 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
3496 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3497 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3498 };
3499 [17] = {
3500 NAME = "WAR HORSE",
3501 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
3502 PREMIUM = true,
3503 RESIZE = false,
3504 OUTFIT = false,
3505 CLOSED = true,
3506 VISIBLE = true,
3507 ACT_ID = {00017, 00000, 00000, 00000, 00000},
3508 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
3509 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3510 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3511 };
3512 [18] = {
3513 NAME = "KINGLY DEER",
3514 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
3515 PREMIUM = true,
3516 RESIZE = false,
3517 OUTFIT = false,
3518 CLOSED = true,
3519 VISIBLE = true,
3520 ACT_ID = {00018, 00000, 00000, 00000, 00000},
3521 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
3522 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3523 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3524 };
3525 [19] = {
3526 NAME = "TAMED PANDA",
3527 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
3528 PREMIUM = true,
3529 RESIZE = false,
3530 OUTFIT = false,
3531 CLOSED = true,
3532 VISIBLE = false,
3533 ACT_ID = {00019, 00000, 00000, 00000, 00000},
3534 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
3535 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3536 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3537 };
3538 [20] = {
3539 NAME = "DROMEDARY",
3540 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
3541 PREMIUM = true,
3542 RESIZE = false,
3543 OUTFIT = false,
3544 CLOSED = true,
3545 VISIBLE = false,
3546 ACT_ID = {00020, 00000, 00000, 00000, 00000},
3547 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
3548 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3549 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3550 };
3551 [21] = {
3552 NAME = "SCORPION KING",
3553 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
3554 PREMIUM = true,
3555 RESIZE = false,
3556 OUTFIT = false,
3557 CLOSED = true,
3558 VISIBLE = true,
3559 ACT_ID = {00021, 00000, 00000, 00000, 00000},
3560 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
3561 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3562 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3563 };
3564 [22] = {
3565 NAME = "ARMOURED WAR HORSE",
3566 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
3567 PREMIUM = true,
3568 RESIZE = false,
3569 OUTFIT = false,
3570 CLOSED = true,
3571 VISIBLE = true,
3572 ACT_ID = {00023, 00000, 00000, 00000, 00000},
3573 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
3574 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3575 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3576 };
3577 [23] = {
3578 NAME = "SHADOW DRAPTOR",
3579 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
3580 PREMIUM = true,
3581 RESIZE = false,
3582 OUTFIT = false,
3583 CLOSED = true,
3584 VISIBLE = true,
3585 ACT_ID = {00024, 00000, 00000, 00000, 00000},
3586 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
3587 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3588 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3589 };
3590 [24] = {
3591 NAME = "LADY BUG",
3592 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
3593 PREMIUM = true,
3594 RESIZE = false,
3595 OUTFIT = false,
3596 CLOSED = true,
3597 VISIBLE = true,
3598 ACT_ID = {00027, 00000, 00000, 00000, 00000},
3599 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
3600 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3601 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3602 };
3603 [25] = {
3604 NAME = "MANTA RAY",
3605 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
3606 PREMIUM = true,
3607 RESIZE = false,
3608 OUTFIT = false,
3609 CLOSED = true,
3610 VISIBLE = true,
3611 ACT_ID = {00028, 00000, 00000, 00000, 00000},
3612 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
3613 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3614 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3615 };
3616 [26] = {
3617 NAME = "IRONBLIGHT",
3618 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
3619 PREMIUM = true,
3620 RESIZE = false,
3621 OUTFIT = false,
3622 CLOSED = true,
3623 VISIBLE = true,
3624 ACT_ID = {00029, 00000, 00000, 00000, 00000},
3625 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
3626 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3627 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3628 };
3629 [27] = {
3630 NAME = "MAGMA CRAWLER",
3631 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
3632 PREMIUM = true,
3633 RESIZE = false,
3634 OUTFIT = false,
3635 CLOSED = true,
3636 VISIBLE = true,
3637 ACT_ID = {00030, 00000, 00000, 00000, 00000},
3638 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
3639 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3640 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3641 };
3642 [28] = {
3643 NAME = "DRAGONLING",
3644 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
3645 PREMIUM = true,
3646 RESIZE = false,
3647 OUTFIT = false,
3648 CLOSED = true,
3649 VISIBLE = true,
3650 ACT_ID = {00031, 00000, 00000, 00000, 00000},
3651 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
3652 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3653 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3654 };
3655 [29] = {
3656 NAME = "GNARLHOUND",
3657 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
3658 PREMIUM = true,
3659 RESIZE = false,
3660 OUTFIT = false,
3661 CLOSED = true,
3662 VISIBLE = true,
3663 ACT_ID = {00032, 00000, 00000, 00000, 00000},
3664 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
3665 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3666 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3667 };
3668 [30] = {
3669 NAME = "CRIMSON RAY",
3670 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
3671 PREMIUM = true,
3672 RESIZE = false,
3673 OUTFIT = false,
3674 CLOSED = true,
3675 VISIBLE = true,
3676 ACT_ID = {00033, 00000, 00000, 00000, 00000},
3677 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
3678 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3679 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3680 };
3681 [31] = {
3682 NAME = "STEELBEAK",
3683 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
3684 PREMIUM = true,
3685 RESIZE = false,
3686 OUTFIT = false,
3687 CLOSED = true,
3688 VISIBLE = true,
3689 ACT_ID = {00034, 00000, 00000, 00000, 00000},
3690 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
3691 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3692 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3693 };
3694 [32] = {
3695 NAME = "WATER BUFFALO",
3696 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
3697 PREMIUM = true,
3698 RESIZE = false,
3699 OUTFIT = false,
3700 CLOSED = true,
3701 VISIBLE = false,
3702 ACT_ID = {00035, 00000, 00000, 00000, 00000},
3703 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
3704 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3705 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3706 };
3707 [33] = {
3708 NAME = "TOMBSTINGER",
3709 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
3710 PREMIUM = true,
3711 RESIZE = false,
3712 OUTFIT = false,
3713 CLOSED = true,
3714 VISIBLE = true,
3715 ACT_ID = {00036, 00000, 00000, 00000, 00000},
3716 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
3717 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3718 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3719 };
3720 [34] = {
3721 NAME = "PLATESAURIAN",
3722 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
3723 PREMIUM = true,
3724 RESIZE = false,
3725 OUTFIT = false,
3726 CLOSED = true,
3727 VISIBLE = true,
3728 ACT_ID = {00037, 00000, 00000, 00000, 00000},
3729 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
3730 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3731 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3732 };
3733 [35] = {
3734 NAME = "URSAGRODON",
3735 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
3736 PREMIUM = true,
3737 RESIZE = false,
3738 OUTFIT = false,
3739 CLOSED = true,
3740 VISIBLE = true,
3741 ACT_ID = {00038, 00000, 00000, 00000, 00000},
3742 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
3743 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3744 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3745 };
3746 [36] = {
3747 NAME = "HELLGRIP",
3748 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
3749 PREMIUM = true,
3750 RESIZE = false,
3751 OUTFIT = false,
3752 CLOSED = true,
3753 VISIBLE = true,
3754 ACT_ID = {00039, 00000, 00000, 00000, 00000},
3755 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
3756 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3757 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3758 };
3759 [37] = {
3760 NAME = "NOBLE LION",
3761 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
3762 PREMIUM = true,
3763 RESIZE = false,
3764 OUTFIT = false,
3765 CLOSED = true,
3766 VISIBLE = true,
3767 ACT_ID = {00040, 00000, 00000, 00000, 00000},
3768 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
3769 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3770 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3771 };
3772 [38] = {
3773 NAME = "DESERT KING",
3774 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
3775 PREMIUM = true,
3776 RESIZE = false,
3777 OUTFIT = false,
3778 CLOSED = true,
3779 VISIBLE = true,
3780 ACT_ID = {00041, 00000, 00000, 00000, 00000},
3781 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
3782 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3783 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3784 };
3785 [39] = {
3786 NAME = "SHOCK HEAD",
3787 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
3788 PREMIUM = true,
3789 RESIZE = false,
3790 OUTFIT = false,
3791 CLOSED = true,
3792 VISIBLE = true,
3793 ACT_ID = {00042, 00000, 00000, 00000, 00000},
3794 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
3795 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3796 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3797 };
3798 [40] = {
3799 NAME = "WALKER",
3800 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
3801 PREMIUM = true,
3802 RESIZE = false,
3803 OUTFIT = false,
3804 CLOSED = true,
3805 VISIBLE = true,
3806 ACT_ID = {00043, 00000, 00000, 00000, 00000},
3807 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
3808 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3809 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3810 };
3811 [41] = {
3812 NAME = "AZUDOCUS",
3813 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
3814 PREMIUM = true,
3815 RESIZE = false,
3816 OUTFIT = false,
3817 CLOSED = true,
3818 VISIBLE = true,
3819 ACT_ID = {00044, 00000, 00000, 00000, 00000},
3820 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
3821 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3822 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3823 };
3824 [42] = {
3825 NAME = "CARPACOSAURUS",
3826 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
3827 PREMIUM = true,
3828 RESIZE = false,
3829 OUTFIT = false,
3830 CLOSED = true,
3831 VISIBLE = true,
3832 ACT_ID = {00045, 00000, 00000, 00000, 00000},
3833 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
3834 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3835 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3836 };
3837 [43] = {
3838 NAME = "DEATH CRAWLER",
3839 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
3840 PREMIUM = true,
3841 RESIZE = false,
3842 OUTFIT = false,
3843 CLOSED = true,
3844 VISIBLE = true,
3845 ACT_ID = {00046, 00000, 00000, 00000, 00000},
3846 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
3847 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3848 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3849 };
3850 [44] = {
3851 NAME = "FLAMESTEED",
3852 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
3853 PREMIUM = true,
3854 RESIZE = false,
3855 OUTFIT = false,
3856 CLOSED = true,
3857 VISIBLE = true,
3858 ACT_ID = {00047, 00000, 00000, 00000, 00000},
3859 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
3860 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3861 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3862 };
3863 [45] = {
3864 NAME = "JADE LION",
3865 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
3866 PREMIUM = true,
3867 RESIZE = false,
3868 OUTFIT = false,
3869 CLOSED = true,
3870 VISIBLE = true,
3871 ACT_ID = {00048, 00000, 00000, 00000, 00000},
3872 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
3873 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3874 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3875 };
3876 [46] = {
3877 NAME = "JADE PINCER",
3878 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
3879 PREMIUM = true,
3880 RESIZE = false,
3881 OUTFIT = false,
3882 CLOSED = true,
3883 VISIBLE = true,
3884 ACT_ID = {00049, 00000, 00000, 00000, 00000},
3885 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
3886 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3887 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3888 };
3889 [47] = {
3890 NAME = "NETHERSTEED",
3891 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
3892 PREMIUM = true,
3893 RESIZE = false,
3894 OUTFIT = false,
3895 CLOSED = true,
3896 VISIBLE = true,
3897 ACT_ID = {00050, 00000, 00000, 00000, 00000},
3898 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
3899 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3900 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3901 };
3902 [48] = {
3903 NAME = "TEMPEST",
3904 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
3905 PREMIUM = true,
3906 RESIZE = false,
3907 OUTFIT = false,
3908 CLOSED = true,
3909 VISIBLE = true,
3910 ACT_ID = {00051, 00000, 00000, 00000, 00000},
3911 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
3912 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3913 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3914 };
3915 [49] = {
3916 NAME = "WINTER KING",
3917 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
3918 PREMIUM = true,
3919 RESIZE = false,
3920 OUTFIT = false,
3921 CLOSED = true,
3922 VISIBLE = true,
3923 ACT_ID = {00052, 00000, 00000, 00000, 00000},
3924 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
3925 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3926 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3927 };
3928 [50] = {
3929 NAME = "DOOMBRINGER",
3930 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
3931 PREMIUM = true,
3932 RESIZE = false,
3933 OUTFIT = false,
3934 CLOSED = true,
3935 VISIBLE = true,
3936 ACT_ID = {00053, 00000, 00000, 00000, 00000},
3937 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
3938 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3939 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3940 };
3941 [51] = {
3942 NAME = "WOODLAND PRINCE",
3943 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
3944 PREMIUM = true,
3945 RESIZE = false,
3946 OUTFIT = false,
3947 CLOSED = true,
3948 VISIBLE = true,
3949 ACT_ID = {00054, 00000, 00000, 00000, 00000},
3950 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
3951 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3952 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3953 };
3954 [52] = {
3955 NAME = "HAILSTORM FURY",
3956 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
3957 PREMIUM = true,
3958 RESIZE = false,
3959 OUTFIT = false,
3960 CLOSED = true,
3961 VISIBLE = true,
3962 ACT_ID = {00055, 00000, 00000, 00000, 00000},
3963 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
3964 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3965 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3966 };
3967 [53] = {
3968 NAME = "SIEGEBREAKER",
3969 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
3970 PREMIUM = true,
3971 RESIZE = false,
3972 OUTFIT = false,
3973 CLOSED = true,
3974 VISIBLE = true,
3975 ACT_ID = {00056, 00000, 00000, 00000, 00000},
3976 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
3977 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3978 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3979 };
3980 [54] = {
3981 NAME = "POISONBANE",
3982 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
3983 PREMIUM = true,
3984 RESIZE = false,
3985 OUTFIT = false,
3986 CLOSED = true,
3987 VISIBLE = true,
3988 ACT_ID = {00057, 00000, 00000, 00000, 00000},
3989 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
3990 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3991 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
3992 };
3993 [55] = {
3994 NAME = "BLACKPELT",
3995 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
3996 PREMIUM = true,
3997 RESIZE = false,
3998 OUTFIT = false,
3999 CLOSED = true,
4000 VISIBLE = true,
4001 ACT_ID = {00058, 00000, 00000, 00000, 00000},
4002 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
4003 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4004 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4005 };
4006 [56] = {
4007 NAME = "GOLDEN DRAGONFLY",
4008 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
4009 PREMIUM = true,
4010 RESIZE = false,
4011 OUTFIT = false,
4012 CLOSED = true,
4013 VISIBLE = true,
4014 ACT_ID = {00059, 00000, 00000, 00000, 00000},
4015 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
4016 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4017 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4018 };
4019 [57] = {
4020 NAME = "STEEL BEE",
4021 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
4022 PREMIUM = true,
4023 RESIZE = false,
4024 OUTFIT = false,
4025 CLOSED = true,
4026 VISIBLE = true,
4027 ACT_ID = {00060, 00000, 00000, 00000, 00000},
4028 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
4029 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4030 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4031 };
4032 [58] = {
4033 NAME = "COPPER FLY",
4034 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
4035 PREMIUM = true,
4036 RESIZE = false,
4037 OUTFIT = false,
4038 CLOSED = true,
4039 VISIBLE = true,
4040 ACT_ID = {00061, 00000, 00000, 00000, 00000},
4041 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
4042 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4043 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4044 };
4045 [59] = {
4046 NAME = "TUNDRA RAMBLER",
4047 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
4048 PREMIUM = true,
4049 RESIZE = false,
4050 OUTFIT = false,
4051 CLOSED = true,
4052 VISIBLE = true,
4053 ACT_ID = {00062, 00000, 00000, 00000, 00000},
4054 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
4055 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4056 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4057 };
4058 [60] = {
4059 NAME = "HIGHLAND YAK",
4060 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
4061 PREMIUM = true,
4062 RESIZE = false,
4063 OUTFIT = false,
4064 CLOSED = true,
4065 VISIBLE = true,
4066 ACT_ID = {00063, 00000, 00000, 00000, 00000},
4067 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
4068 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4069 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4070 };
4071 [61] = {
4072 NAME = "GLACIER VAGABOND",
4073 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
4074 PREMIUM = true,
4075 RESIZE = false,
4076 OUTFIT = false,
4077 CLOSED = true,
4078 VISIBLE = true,
4079 ACT_ID = {00064, 00000, 00000, 00000, 00000},
4080 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
4081 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4082 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4083 };
4084 [62] = {
4085 NAME = "FLYING DIVAN",
4086 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
4087 PREMIUM = true,
4088 RESIZE = false,
4089 OUTFIT = false,
4090 CLOSED = true,
4091 VISIBLE = true,
4092 ACT_ID = {00065, 00000, 00000, 00000, 00000},
4093 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
4094 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4095 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4096 };
4097 [63] = {
4098 NAME = "MAGIC CARPET",
4099 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
4100 PREMIUM = true,
4101 RESIZE = false,
4102 OUTFIT = false,
4103 CLOSED = true,
4104 VISIBLE = true,
4105 ACT_ID = {00066, 00000, 00000, 00000, 00000},
4106 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
4107 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4108 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4109 };
4110 [64] = {
4111 NAME = "FLOATING KASHMIR",
4112 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
4113 PREMIUM = true,
4114 RESIZE = false,
4115 OUTFIT = false,
4116 CLOSED = true,
4117 VISIBLE = true,
4118 ACT_ID = {00067, 00000, 00000, 00000, 00000},
4119 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
4120 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4121 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4122 };
4123 [65] = {
4124 NAME = "RINGTAIL WACCOON",
4125 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
4126 PREMIUM = true,
4127 RESIZE = false,
4128 OUTFIT = false,
4129 CLOSED = true,
4130 VISIBLE = true,
4131 ACT_ID = {00068, 00000, 00000, 00000, 00000},
4132 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
4133 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4134 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4135 };
4136 [66] = {
4137 NAME = "NIGHT WACCOON",
4138 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
4139 PREMIUM = true,
4140 RESIZE = false,
4141 OUTFIT = false,
4142 CLOSED = true,
4143 VISIBLE = true,
4144 ACT_ID = {00069, 00000, 00000, 00000, 00000},
4145 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
4146 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4147 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4148 };
4149 [67] = {
4150 NAME = "EMERALD WACCOON",
4151 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
4152 PREMIUM = true,
4153 RESIZE = false,
4154 OUTFIT = false,
4155 CLOSED = true,
4156 VISIBLE = true,
4157 ACT_ID = {00070, 00000, 00000, 00000, 00000},
4158 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
4159 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4160 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4161 };
4162 [68] = {
4163 NAME = "GLOOTH GLIDER",
4164 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
4165 PREMIUM = true,
4166 RESIZE = false,
4167 OUTFIT = false,
4168 CLOSED = true,
4169 VISIBLE = true,
4170 ACT_ID = {00071, 00000, 00000, 00000, 00000},
4171 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
4172 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4173 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4174 };
4175 [69] = {
4176 NAME = "SHADOW HART",
4177 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
4178 PREMIUM = true,
4179 RESIZE = false,
4180 OUTFIT = false,
4181 CLOSED = true,
4182 VISIBLE = true,
4183 ACT_ID = {00072, 00000, 00000, 00000, 00000},
4184 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
4185 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4186 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4187 };
4188 [70] = {
4189 NAME = "BLACK STAG",
4190 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
4191 PREMIUM = true,
4192 RESIZE = false,
4193 OUTFIT = false,
4194 CLOSED = true,
4195 VISIBLE = true,
4196 ACT_ID = {00073, 00000, 00000, 00000, 00000},
4197 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
4198 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4199 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4200 };
4201 [71] = {
4202 NAME = "EMPEROR DEER",
4203 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
4204 PREMIUM = true,
4205 RESIZE = false,
4206 OUTFIT = false,
4207 CLOSED = true,
4208 VISIBLE = true,
4209 ACT_ID = {00074, 00000, 00000, 00000, 00000},
4210 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
4211 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4212 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4213 };
4214 [72] = {
4215 NAME = "FLITTERKATZEN",
4216 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
4217 PREMIUM = true,
4218 RESIZE = false,
4219 OUTFIT = false,
4220 CLOSED = true,
4221 VISIBLE = true,
4222 ACT_ID = {00075, 00000, 00000, 00000, 00000},
4223 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
4224 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4225 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4226 };
4227 [73] = {
4228 NAME = "VENOMPAW",
4229 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
4230 PREMIUM = true,
4231 RESIZE = false,
4232 OUTFIT = false,
4233 CLOSED = true,
4234 VISIBLE = true,
4235 ACT_ID = {00076, 00000, 00000, 00000, 00000},
4236 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
4237 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4238 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4239 };
4240 [74] = {
4241 NAME = "BATCAT",
4242 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
4243 PREMIUM = true,
4244 RESIZE = false,
4245 OUTFIT = false,
4246 CLOSED = true,
4247 VISIBLE = true,
4248 ACT_ID = {00077, 00000, 00000, 00000, 00000},
4249 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
4250 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4251 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4252 };
4253 [75] = {
4254 NAME = "SEA DEVIL",
4255 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
4256 PREMIUM = true,
4257 RESIZE = false,
4258 OUTFIT = false,
4259 CLOSED = true,
4260 VISIBLE = true,
4261 ACT_ID = {00078, 00000, 00000, 00000, 00000},
4262 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
4263 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4264 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4265 };
4266 [76] = {
4267 NAME = "CORALRIPPER",
4268 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
4269 PREMIUM = true,
4270 RESIZE = false,
4271 OUTFIT = false,
4272 CLOSED = true,
4273 VISIBLE = true,
4274 ACT_ID = {00079, 00000, 00000, 00000, 00000},
4275 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
4276 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4277 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4278 };
4279 [77] = {
4280 NAME = "PLUMFISH",
4281 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
4282 PREMIUM = true,
4283 RESIZE = false,
4284 OUTFIT = false,
4285 CLOSED = true,
4286 VISIBLE = true,
4287 ACT_ID = {00080, 00000, 00000, 00000, 00000},
4288 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
4289 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4290 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4291 };
4292 [78] = {
4293 NAME = "GORONGRA",
4294 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
4295 PREMIUM = true,
4296 RESIZE = false,
4297 OUTFIT = false,
4298 CLOSED = true,
4299 VISIBLE = true,
4300 ACT_ID = {00081, 00000, 00000, 00000, 00000},
4301 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
4302 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4303 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4304 };
4305 [79] = {
4306 NAME = "NOCTUNGRA",
4307 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
4308 PREMIUM = true,
4309 RESIZE = false,
4310 OUTFIT = false,
4311 CLOSED = true,
4312 VISIBLE = true,
4313 ACT_ID = {00082, 00000, 00000, 00000, 00000},
4314 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
4315 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4316 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4317 };
4318 [80] = {
4319 NAME = "SILVERNECK",
4320 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
4321 PREMIUM = true,
4322 RESIZE = false,
4323 OUTFIT = false,
4324 CLOSED = true,
4325 VISIBLE = true,
4326 ACT_ID = {00083, 00000, 00000, 00000, 00000},
4327 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
4328 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4329 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4330 };
4331 [81] = {
4332 NAME = "SLAGSNARE",
4333 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
4334 PREMIUM = true,
4335 RESIZE = false,
4336 OUTFIT = false,
4337 CLOSED = true,
4338 VISIBLE = true,
4339 ACT_ID = {00084, 00000, 00000, 00000, 00000},
4340 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
4341 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4342 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4343 };
4344 [82] = {
4345 NAME = "NIGHTSTINGER",
4346 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
4347 PREMIUM = true,
4348 RESIZE = false,
4349 OUTFIT = false,
4350 CLOSED = true,
4351 VISIBLE = true,
4352 ACT_ID = {00085, 00000, 00000, 00000, 00000},
4353 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
4354 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4355 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4356 };
4357 [83] = {
4358 NAME = "RAZORCREEP",
4359 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
4360 PREMIUM = true,
4361 RESIZE = false,
4362 OUTFIT = false,
4363 CLOSED = true,
4364 VISIBLE = true,
4365 ACT_ID = {00086, 00000, 00000, 00000, 00000},
4366 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
4367 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4368 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4369 };
4370 [84] = {
4371 NAME = "RIFT RUNNER",
4372 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
4373 PREMIUM = true,
4374 RESIZE = false,
4375 OUTFIT = false,
4376 CLOSED = true,
4377 VISIBLE = true,
4378 ACT_ID = {00087, 00000, 00000, 00000, 00000},
4379 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
4380 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4381 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4382 };
4383 [85] = {
4384 NAME = "NIGHTWELLER",
4385 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
4386 PREMIUM = true,
4387 RESIZE = false,
4388 OUTFIT = false,
4389 CLOSED = true,
4390 VISIBLE = true,
4391 ACT_ID = {00088, 00000, 00000, 00000, 00000},
4392 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
4393 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4394 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4395 };
4396 [86] = {
4397 NAME = "FROSTFLARE",
4398 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
4399 PREMIUM = true,
4400 RESIZE = false,
4401 OUTFIT = false,
4402 CLOSED = true,
4403 VISIBLE = true,
4404 ACT_ID = {00089, 00000, 00000, 00000, 00000},
4405 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
4406 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4407 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4408 };
4409 [87] = {
4410 NAME = "CINDERHOOF",
4411 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
4412 PREMIUM = true,
4413 RESIZE = false,
4414 OUTFIT = false,
4415 CLOSED = true,
4416 VISIBLE = true,
4417 ACT_ID = {00090, 00000, 00000, 00000, 00000},
4418 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
4419 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4420 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4421 };
4422 [88] = {
4423 NAME = "MOULDPINCER",
4424 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
4425 PREMIUM = true,
4426 RESIZE = false,
4427 OUTFIT = false,
4428 CLOSED = true,
4429 VISIBLE = true,
4430 ACT_ID = {00091, 00000, 00000, 00000, 00000},
4431 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
4432 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4433 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4434 };
4435 [89] = {
4436 NAME = "BLOODCURL",
4437 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
4438 PREMIUM = true,
4439 RESIZE = false,
4440 OUTFIT = false,
4441 CLOSED = true,
4442 VISIBLE = true,
4443 ACT_ID = {00092, 00000, 00000, 00000, 00000},
4444 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
4445 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4446 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4447 };
4448 [90] = {
4449 NAME = "LEAFCUTTLER",
4450 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
4451 PREMIUM = true,
4452 RESIZE = false,
4453 OUTFIT = false,
4454 CLOSED = true,
4455 VISIBLE = true,
4456 ACT_ID = {00093, 00000, 00000, 00000, 00000},
4457 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
4458 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4459 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4460 };
4461 [91] = {
4462 NAME = "SPARKION",
4463 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
4464 PREMIUM = true,
4465 RESIZE = false,
4466 OUTFIT = false,
4467 CLOSED = true,
4468 VISIBLE = true,
4469 ACT_ID = {00094, 00000, 00000, 00000, 00000},
4470 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
4471 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4472 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4473 };
4474 [92] = {
4475 NAME = "SWAMP SNAPPER",
4476 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
4477 PREMIUM = true,
4478 RESIZE = false,
4479 OUTFIT = false,
4480 CLOSED = true,
4481 VISIBLE = true,
4482 ACT_ID = {00095, 00000, 00000, 00000, 00000},
4483 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
4484 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4485 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4486 };
4487 [93] = {
4488 NAME = "MOULD SHELL",
4489 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
4490 PREMIUM = true,
4491 RESIZE = false,
4492 OUTFIT = false,
4493 CLOSED = true,
4494 VISIBLE = true,
4495 ACT_ID = {00096, 00000, 00000, 00000, 00000},
4496 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
4497 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4498 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4499 };
4500 [94] = {
4501 NAME = "REED LURKER",
4502 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
4503 PREMIUM = true,
4504 RESIZE = false,
4505 OUTFIT = false,
4506 CLOSED = true,
4507 VISIBLE = true,
4508 ACT_ID = {00097, 00000, 00000, 00000, 00000},
4509 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
4510 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4511 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4512 };
4513 [95] = {
4514 NAME = "NEON SPARKID",
4515 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
4516 PREMIUM = true,
4517 RESIZE = false,
4518 OUTFIT = false,
4519 CLOSED = true,
4520 VISIBLE = true,
4521 ACT_ID = {00098, 00000, 00000, 00000, 00000},
4522 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
4523 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4524 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4525 };
4526 [96] = {
4527 NAME = "VORTEXION",
4528 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
4529 PREMIUM = true,
4530 RESIZE = false,
4531 OUTFIT = false,
4532 CLOSED = true,
4533 VISIBLE = true,
4534 ACT_ID = {00099, 00000, 00000, 00000, 00000},
4535 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
4536 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4537 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4538 };
4539 [97] = {
4540 NAME = "IVORY FANG",
4541 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
4542 PREMIUM = true,
4543 RESIZE = false,
4544 OUTFIT = false,
4545 CLOSED = true,
4546 VISIBLE = true,
4547 ACT_ID = {00100, 00000, 00000, 00000, 00000},
4548 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
4549 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4550 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4551 };
4552 [98] = {
4553 NAME = "SHADOW CLAW",
4554 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
4555 PREMIUM = true,
4556 RESIZE = false,
4557 OUTFIT = false,
4558 CLOSED = true,
4559 VISIBLE = true,
4560 ACT_ID = {00101, 00000, 00000, 00000, 00000},
4561 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
4562 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4563 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4564 };
4565 [99] = {
4566 NAME = "SNOW PELT",
4567 DESC = "Montaria para seu personagem.\n\nSomente jogadores Premium Account podem comprar este item.",
4568 PREMIUM = true,
4569 RESIZE = false,
4570 OUTFIT = false,
4571 CLOSED = true,
4572 VISIBLE = true,
4573 ACT_ID = {00102, 00000, 00000, 00000, 00000},
4574 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
4575 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4576 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4577 };
4578 };
4579 [09] = { -- BACKPACK
4580 [00] = {DESC = "De um charme amais em seu inventario alterando a aparencia de sua backpack."},
4581 [01] = {
4582 NAME = "BACKPACK OF HOLDING",
4583 DESC = "Altera a aparencia de sua backpack.\n\nEm seu inventario, clique com o botao direito do mouse sobre sua backpack. Selecione a opcao 'Aparencia'.",
4584 PREMIUM = false,
4585 RESIZE = true,
4586 OUTFIT = false,
4587 CLOSED = true,
4588 VISIBLE = true,
4589 ACT_ID = {10001, 00000, 00000, 00000, 00000},
4590 VIP = { ORIGIN_PRICE = 025, PROMO_PRICE = 000},
4591 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 030, PROMO_PRICE = 000},
4592 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4593 };
4594 [02] = {
4595 NAME = "BEACH BACKPACK",
4596 DESC = "Altera a aparencia de sua backpack.\n\nEm seu inventario, clique com o botao direito do mouse sobre sua backpack. Selecione a opcao 'Aparencia'.",
4597 PREMIUM = false,
4598 RESIZE = true,
4599 OUTFIT = false,
4600 CLOSED = true,
4601 VISIBLE = true,
4602 ACT_ID = {10002, 00000, 00000, 00000, 00000},
4603 VIP = { ORIGIN_PRICE = 025, PROMO_PRICE = 000},
4604 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 030, PROMO_PRICE = 000},
4605 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4606 };
4607 [03] = {
4608 NAME = "BLOSSOM BAG",
4609 DESC = "Altera a aparencia de sua backpack.\n\nEm seu inventario, clique com o botao direito do mouse sobre sua backpack. Selecione a opcao 'Aparencia'.",
4610 PREMIUM = false,
4611 RESIZE = true,
4612 OUTFIT = false,
4613 CLOSED = true,
4614 VISIBLE = true,
4615 ACT_ID = {10003, 00000, 00000, 00000, 00000},
4616 VIP = { ORIGIN_PRICE = 025, PROMO_PRICE = 000},
4617 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 030, PROMO_PRICE = 000},
4618 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4619 };
4620 [04] = {
4621 NAME = "BOOK BACKPACK",
4622 DESC = "Altera a aparencia de sua backpack.\n\nEm seu inventario, clique com o botao direito do mouse sobre sua backpack. Selecione a opcao 'Aparencia'.",
4623 PREMIUM = false,
4624 RESIZE = true,
4625 OUTFIT = false,
4626 CLOSED = true,
4627 VISIBLE = true,
4628 ACT_ID = {10004, 00000, 00000, 00000, 00000},
4629 VIP = { ORIGIN_PRICE = 025, PROMO_PRICE = 000},
4630 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 030, PROMO_PRICE = 000},
4631 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4632 };
4633 [05] = {
4634 NAME = "BUGGY BACKPACK",
4635 DESC = "Altera a aparencia de sua backpack.\n\nEm seu inventario, clique com o botao direito do mouse sobre sua backpack. Selecione a opcao 'Aparencia'.",
4636 PREMIUM = false,
4637 RESIZE = true,
4638 OUTFIT = false,
4639 CLOSED = true,
4640 VISIBLE = true,
4641 ACT_ID = {10005, 00000, 00000, 00000, 00000},
4642 VIP = { ORIGIN_PRICE = 025, PROMO_PRICE = 000},
4643 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 030, PROMO_PRICE = 000},
4644 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4645 };
4646 [06] = {
4647 NAME = "CAKE BACKPACK",
4648 DESC = "Altera a aparencia de sua backpack.\n\nEm seu inventario, clique com o botao direito do mouse sobre sua backpack. Selecione a opcao 'Aparencia'.",
4649 PREMIUM = false,
4650 RESIZE = true,
4651 OUTFIT = false,
4652 CLOSED = true,
4653 VISIBLE = true,
4654 ACT_ID = {10006, 00000, 00000, 00000, 00000},
4655 VIP = { ORIGIN_PRICE = 025, PROMO_PRICE = 000},
4656 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 030, PROMO_PRICE = 000},
4657 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4658 };
4659 [07] = {
4660 NAME = "CAMOUFLAGE BACKPACK",
4661 DESC = "Altera a aparencia de sua backpack.\n\nEm seu inventario, clique com o botao direito do mouse sobre sua backpack. Selecione a opcao 'Aparencia'.",
4662 PREMIUM = false,
4663 RESIZE = true,
4664 OUTFIT = false,
4665 CLOSED = true,
4666 VISIBLE = true,
4667 ACT_ID = {10007, 00000, 00000, 00000, 00000},
4668 VIP = { ORIGIN_PRICE = 025, PROMO_PRICE = 000},
4669 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 030, PROMO_PRICE = 000},
4670 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4671 };
4672 [08] = {
4673 NAME = "CROWN BACKPACK",
4674 DESC = "Altera a aparencia de sua backpack.\n\nEm seu inventario, clique com o botao direito do mouse sobre sua backpack. Selecione a opcao 'Aparencia'.",
4675 PREMIUM = false,
4676 RESIZE = true,
4677 OUTFIT = false,
4678 CLOSED = true,
4679 VISIBLE = true,
4680 ACT_ID = {10008, 00000, 00000, 00000, 00000},
4681 VIP = { ORIGIN_PRICE = 025, PROMO_PRICE = 000},
4682 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 030, PROMO_PRICE = 000},
4683 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4684 };
4685 [09] = {
4686 NAME = "CRYSTAL BACKPACK",
4687 DESC = "Altera a aparencia de sua backpack.\n\nEm seu inventario, clique com o botao direito do mouse sobre sua backpack. Selecione a opcao 'Aparencia'.",
4688 PREMIUM = false,
4689 RESIZE = true,
4690 OUTFIT = false,
4691 CLOSED = true,
4692 VISIBLE = true,
4693 ACT_ID = {10009, 00000, 00000, 00000, 00000},
4694 VIP = { ORIGIN_PRICE = 025, PROMO_PRICE = 000},
4695 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 030, PROMO_PRICE = 000},
4696 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4697 };
4698 [10] = {
4699 NAME = "DEEPLING BACKPACK",
4700 DESC = "Altera a aparencia de sua backpack.\n\nEm seu inventario, clique com o botao direito do mouse sobre sua backpack. Selecione a opcao 'Aparencia'.",
4701 PREMIUM = false,
4702 RESIZE = true,
4703 OUTFIT = false,
4704 CLOSED = true,
4705 VISIBLE = true,
4706 ACT_ID = {10010, 00000, 00000, 00000, 00000},
4707 VIP = { ORIGIN_PRICE = 025, PROMO_PRICE = 000},
4708 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 030, PROMO_PRICE = 000},
4709 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4710 };
4711 [11] = {
4712 NAME = "DEMON BACKPACK",
4713 DESC = "Altera a aparencia de sua backpack.\n\nEm seu inventario, clique com o botao direito do mouse sobre sua backpack. Selecione a opcao 'Aparencia'.",
4714 PREMIUM = false,
4715 RESIZE = true,
4716 OUTFIT = false,
4717 CLOSED = true,
4718 VISIBLE = true,
4719 ACT_ID = {10011, 00000, 00000, 00000, 00000},
4720 VIP = { ORIGIN_PRICE = 025, PROMO_PRICE = 000},
4721 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 030, PROMO_PRICE = 000},
4722 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4723 };
4724 [12] = {
4725 NAME = "DRAGON BACKPACK",
4726 DESC = "Altera a aparencia de sua backpack.\n\nEm seu inventario, clique com o botao direito do mouse sobre sua backpack. Selecione a opcao 'Aparencia'.",
4727 PREMIUM = false,
4728 RESIZE = true,
4729 OUTFIT = false,
4730 CLOSED = true,
4731 VISIBLE = true,
4732 ACT_ID = {10012, 00000, 00000, 00000, 00000},
4733 VIP = { ORIGIN_PRICE = 025, PROMO_PRICE = 000},
4734 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 030, PROMO_PRICE = 000},
4735 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4736 };
4737 [13] = {
4738 NAME = "ENERGETIC BACKPACK",
4739 DESC = "Altera a aparencia de sua backpack.\n\nEm seu inventario, clique com o botao direito do mouse sobre sua backpack. Selecione a opcao 'Aparencia'.",
4740 PREMIUM = false,
4741 RESIZE = true,
4742 OUTFIT = false,
4743 CLOSED = true,
4744 VISIBLE = true,
4745 ACT_ID = {10013, 00000, 00000, 00000, 00000},
4746 VIP = { ORIGIN_PRICE = 025, PROMO_PRICE = 000},
4747 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 030, PROMO_PRICE = 000},
4748 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4749 };
4750 [14] = {
4751 NAME = "EXPEDITION BACKPACK",
4752 DESC = "Altera a aparencia de sua backpack.\n\nEm seu inventario, clique com o botao direito do mouse sobre sua backpack. Selecione a opcao 'Aparencia'.",
4753 PREMIUM = false,
4754 RESIZE = true,
4755 OUTFIT = false,
4756 CLOSED = true,
4757 VISIBLE = true,
4758 ACT_ID = {10014, 00000, 00000, 00000, 00000},
4759 VIP = { ORIGIN_PRICE = 025, PROMO_PRICE = 000},
4760 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 030, PROMO_PRICE = 000},
4761 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4762 };
4763 [15] = {
4764 NAME = "FEEDBAG",
4765 DESC = "Altera a aparencia de sua backpack.\n\nEm seu inventario, clique com o botao direito do mouse sobre sua backpack. Selecione a opcao 'Aparencia'.",
4766 PREMIUM = false,
4767 RESIZE = true,
4768 OUTFIT = false,
4769 CLOSED = true,
4770 VISIBLE = true,
4771 ACT_ID = {10015, 00000, 00000, 00000, 00000},
4772 VIP = { ORIGIN_PRICE = 025, PROMO_PRICE = 000},
4773 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 030, PROMO_PRICE = 000},
4774 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4775 };
4776 [16] = {
4777 NAME = "FESTIVE BACKPACK",
4778 DESC = "Altera a aparencia de sua backpack.\n\nEm seu inventario, clique com o botao direito do mouse sobre sua backpack. Selecione a opcao 'Aparencia'.",
4779 PREMIUM = false,
4780 RESIZE = true,
4781 OUTFIT = false,
4782 CLOSED = true,
4783 VISIBLE = true,
4784 ACT_ID = {10016, 00000, 00000, 00000, 00000},
4785 VIP = { ORIGIN_PRICE = 025, PROMO_PRICE = 000},
4786 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 030, PROMO_PRICE = 000},
4787 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4788 };
4789 [17] = {
4790 NAME = "FUR BACKPACK",
4791 DESC = "Altera a aparencia de sua backpack.\n\nEm seu inventario, clique com o botao direito do mouse sobre sua backpack. Selecione a opcao 'Aparencia'.",
4792 PREMIUM = false,
4793 RESIZE = true,
4794 OUTFIT = false,
4795 CLOSED = true,
4796 VISIBLE = true,
4797 ACT_ID = {10017, 00000, 00000, 00000, 00000},
4798 VIP = { ORIGIN_PRICE = 025, PROMO_PRICE = 000},
4799 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 030, PROMO_PRICE = 000},
4800 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4801 };
4802 [18] = {
4803 NAME = "GHOST BACKPACK",
4804 DESC = "Altera a aparencia de sua backpack.\n\nEm seu inventario, clique com o botao direito do mouse sobre sua backpack. Selecione a opcao 'Aparencia'.",
4805 PREMIUM = false,
4806 RESIZE = true,
4807 OUTFIT = false,
4808 CLOSED = true,
4809 VISIBLE = true,
4810 ACT_ID = {10018, 00000, 00000, 00000, 00000},
4811 VIP = { ORIGIN_PRICE = 025, PROMO_PRICE = 000},
4812 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 030, PROMO_PRICE = 000},
4813 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4814 };
4815 [19] = {
4816 NAME = "GLOOTH BACKPACK",
4817 DESC = "Altera a aparencia de sua backpack.\n\nEm seu inventario, clique com o botao direito do mouse sobre sua backpack. Selecione a opcao 'Aparencia'.",
4818 PREMIUM = false,
4819 RESIZE = true,
4820 OUTFIT = false,
4821 CLOSED = true,
4822 VISIBLE = true,
4823 ACT_ID = {10019, 00000, 00000, 00000, 00000},
4824 VIP = { ORIGIN_PRICE = 025, PROMO_PRICE = 000},
4825 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 030, PROMO_PRICE = 000},
4826 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4827 };
4828 [20] = {
4829 NAME = "GOLD POUCH",
4830 DESC = "Altera a aparencia de sua backpack.\n\nEm seu inventario, clique com o botao direito do mouse sobre sua backpack. Selecione a opcao 'Aparencia'.",
4831 PREMIUM = false,
4832 RESIZE = true,
4833 OUTFIT = false,
4834 CLOSED = true,
4835 VISIBLE = true,
4836 ACT_ID = {10020, 00000, 00000, 00000, 00000},
4837 VIP = { ORIGIN_PRICE = 025, PROMO_PRICE = 000},
4838 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 030, PROMO_PRICE = 000},
4839 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4840 };
4841 [21] = {
4842 NAME = "HEART BACKPACK",
4843 DESC = "Altera a aparencia de sua backpack.\n\nEm seu inventario, clique com o botao direito do mouse sobre sua backpack. Selecione a opcao 'Aparencia'.",
4844 PREMIUM = false,
4845 RESIZE = true,
4846 OUTFIT = false,
4847 CLOSED = true,
4848 VISIBLE = true,
4849 ACT_ID = {10021, 00000, 00000, 00000, 00000},
4850 VIP = { ORIGIN_PRICE = 025, PROMO_PRICE = 000},
4851 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 030, PROMO_PRICE = 000},
4852 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4853 };
4854 [22] = {
4855 NAME = "JEWELLED BACKPACK",
4856 DESC = "Altera a aparencia de sua backpack.\n\nEm seu inventario, clique com o botao direito do mouse sobre sua backpack. Selecione a opcao 'Aparencia'.",
4857 PREMIUM = false,
4858 RESIZE = true,
4859 OUTFIT = false,
4860 CLOSED = true,
4861 VISIBLE = true,
4862 ACT_ID = {10022, 00000, 00000, 00000, 00000},
4863 VIP = { ORIGIN_PRICE = 025, PROMO_PRICE = 000},
4864 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 030, PROMO_PRICE = 000},
4865 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4866 };
4867 [23] = {
4868 NAME = "MINOTAUR BACKPACK",
4869 DESC = "Altera a aparencia de sua backpack.\n\nEm seu inventario, clique com o botao direito do mouse sobre sua backpack. Selecione a opcao 'Aparencia'.",
4870 PREMIUM = false,
4871 RESIZE = true,
4872 OUTFIT = false,
4873 CLOSED = true,
4874 VISIBLE = true,
4875 ACT_ID = {10023, 00000, 00000, 00000, 00000},
4876 VIP = { ORIGIN_PRICE = 025, PROMO_PRICE = 000},
4877 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 030, PROMO_PRICE = 000},
4878 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4879 };
4880 [24] = {
4881 NAME = "MOON BACKPACK",
4882 DESC = "Altera a aparencia de sua backpack.\n\nEm seu inventario, clique com o botao direito do mouse sobre sua backpack. Selecione a opcao 'Aparencia'.",
4883 PREMIUM = false,
4884 RESIZE = true,
4885 OUTFIT = false,
4886 CLOSED = true,
4887 VISIBLE = true,
4888 ACT_ID = {10024, 00000, 00000, 00000, 00000},
4889 VIP = { ORIGIN_PRICE = 025, PROMO_PRICE = 000},
4890 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 030, PROMO_PRICE = 000},
4891 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4892 };
4893 [25] = {
4894 NAME = "MUSHROOM BACKPACK",
4895 DESC = "Altera a aparencia de sua backpack.\n\nEm seu inventario, clique com o botao direito do mouse sobre sua backpack. Selecione a opcao 'Aparencia'.",
4896 PREMIUM = false,
4897 RESIZE = true,
4898 OUTFIT = false,
4899 CLOSED = true,
4900 VISIBLE = true,
4901 ACT_ID = {10025, 00000, 00000, 00000, 00000},
4902 VIP = { ORIGIN_PRICE = 025, PROMO_PRICE = 000},
4903 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 030, PROMO_PRICE = 000},
4904 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4905 };
4906 [26] = {
4907 NAME = "PANNIER BACKPACK",
4908 DESC = "Altera a aparencia de sua backpack.\n\nEm seu inventario, clique com o botao direito do mouse sobre sua backpack. Selecione a opcao 'Aparencia'.",
4909 PREMIUM = false,
4910 RESIZE = true,
4911 OUTFIT = false,
4912 CLOSED = true,
4913 VISIBLE = true,
4914 ACT_ID = {10026, 00000, 00000, 00000, 00000},
4915 VIP = { ORIGIN_PRICE = 025, PROMO_PRICE = 000},
4916 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 030, PROMO_PRICE = 000},
4917 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4918 };
4919 [27] = {
4920 NAME = "PILLOW BACKPACK",
4921 DESC = "Altera a aparencia de sua backpack.\n\nEm seu inventario, clique com o botao direito do mouse sobre sua backpack. Selecione a opcao 'Aparencia'.",
4922 PREMIUM = false,
4923 RESIZE = true,
4924 OUTFIT = false,
4925 CLOSED = true,
4926 VISIBLE = true,
4927 ACT_ID = {10027, 00000, 00000, 00000, 00000},
4928 VIP = { ORIGIN_PRICE = 025, PROMO_PRICE = 000},
4929 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 030, PROMO_PRICE = 000},
4930 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4931 };
4932 [28] = {
4933 NAME = "PIRATE BACKPACK",
4934 DESC = "Altera a aparencia de sua backpack.\n\nEm seu inventario, clique com o botao direito do mouse sobre sua backpack. Selecione a opcao 'Aparencia'.",
4935 PREMIUM = false,
4936 RESIZE = true,
4937 OUTFIT = false,
4938 CLOSED = true,
4939 VISIBLE = true,
4940 ACT_ID = {10028, 00000, 00000, 00000, 00000},
4941 VIP = { ORIGIN_PRICE = 025, PROMO_PRICE = 000},
4942 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 030, PROMO_PRICE = 000},
4943 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4944 };
4945 [29] = {
4946 NAME = "RACCOON BACKPACK",
4947 DESC = "Altera a aparencia de sua backpack.\n\nEm seu inventario, clique com o botao direito do mouse sobre sua backpack. Selecione a opcao 'Aparencia'.",
4948 PREMIUM = false,
4949 RESIZE = true,
4950 OUTFIT = false,
4951 CLOSED = true,
4952 VISIBLE = true,
4953 ACT_ID = {10029, 00000, 00000, 00000, 00000},
4954 VIP = { ORIGIN_PRICE = 025, PROMO_PRICE = 000},
4955 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 030, PROMO_PRICE = 000},
4956 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4957 };
4958 [30] = {
4959 NAME = "WINGED BACKPACK",
4960 DESC = "Altera a aparencia de sua backpack.\n\nEm seu inventario, clique com o botao direito do mouse sobre sua backpack. Selecione a opcao 'Aparencia'.",
4961 PREMIUM = false,
4962 RESIZE = true,
4963 OUTFIT = false,
4964 CLOSED = true,
4965 VISIBLE = true,
4966 ACT_ID = {10030, 00000, 00000, 00000, 00000},
4967 VIP = { ORIGIN_PRICE = 025, PROMO_PRICE = 000},
4968 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 030, PROMO_PRICE = 000},
4969 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4970 };
4971 [31] = {
4972 NAME = "WOLF BACKPACK",
4973 DESC = "Altera a aparencia de sua backpack.\n\nEm seu inventario, clique com o botao direito do mouse sobre sua backpack. Selecione a opcao 'Aparencia'.",
4974 PREMIUM = false,
4975 RESIZE = true,
4976 OUTFIT = false,
4977 CLOSED = true,
4978 VISIBLE = true,
4979 ACT_ID = {10031, 00000, 00000, 00000, 00000},
4980 VIP = { ORIGIN_PRICE = 025, PROMO_PRICE = 000},
4981 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 030, PROMO_PRICE = 000},
4982 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4983 };
4984 [32] = {
4985 NAME = "BROCADE BACKPACK",
4986 DESC = "Altera a aparencia de sua backpack.\n\nEm seu inventario, clique com o botao direito do mouse sobre sua backpack. Selecione a opcao 'Aparencia'.",
4987 PREMIUM = false,
4988 RESIZE = true,
4989 OUTFIT = false,
4990 CLOSED = true,
4991 VISIBLE = true,
4992 ACT_ID = {10032, 00000, 00000, 00000, 00000},
4993 VIP = { ORIGIN_PRICE = 025, PROMO_PRICE = 000},
4994 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 030, PROMO_PRICE = 000},
4995 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
4996 };
4997 [33] = {
4998 NAME = "SANTA BACKPACK",
4999 DESC = "Altera a aparencia de sua backpack.\n\nEm seu inventario, clique com o botao direito do mouse sobre sua backpack. Selecione a opcao 'Aparencia'.",
5000 PREMIUM = false,
5001 RESIZE = true,
5002 OUTFIT = false,
5003 CLOSED = true,
5004 VISIBLE = true,
5005 ACT_ID = {10033, 00000, 00000, 00000, 00000},
5006 VIP = { ORIGIN_PRICE = 025, PROMO_PRICE = 000},
5007 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 030, PROMO_PRICE = 000},
5008 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
5009 };
5010 };
5011 [10] = { -- KARDS
5012 [00] = {DESC = "Os Kards podem ser usados para aumentar a EXP de determinada criatura, dentre outras utilidades."},
5013 [01] = {
5014 NAME = "PACOTE DO INICIANTE",
5015 DESC = "Somente jogadores Premium.\n\nPossiveis Kards nesse pacote:\n� Spider\n� Winter Wolf\n� Wasp\n� Troll\n� Bear\n� Tortoise\n� Tarantula\n� Deepling Scout\n� Mummy\n� Cyclops",
5016 PREMIUM = true,
5017 RESIZE = false,
5018 OUTFIT = false,
5019 CLOSED = true,
5020 VISIBLE = true,
5021 ACT_ID = {00000, 00000, 00000, 00000, 00000},
5022 VIP = { ORIGIN_PRICE = 005, PROMO_PRICE = 000},
5023 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 010, PROMO_PRICE = 000},
5024 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
5025 };
5026 [02] = {
5027 NAME = "PACOTE DO APRENDIZ",
5028 DESC = "Somente jogadores Premium.\n\nPossiveis Kards nesse pacote:\n� Frost Giant\n� Blood Crab\n� Thornback Tortoise\n� Scarab\n� Cyclops Drone\n� Terramite\n� Dragon Hatchling\n� Ice Golem\n� Demon Skeleton\n� Cyclops Smith",
5029 PREMIUM = true,
5030 RESIZE = false,
5031 OUTFIT = false,
5032 CLOSED = true,
5033 VISIBLE = true,
5034 ACT_ID = {00000, 00000, 00000, 00000, 00000},
5035 VIP = { ORIGIN_PRICE = 010, PROMO_PRICE = 000},
5036 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 015, PROMO_PRICE = 000},
5037 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
5038 };
5039 [03] = {
5040 NAME = "PACOTE DO EXPERIENTE",
5041 DESC = "Somente jogadores Premium.\n\nPossiveis Kards nesse pacote:\n� Undead Cavebear\n� Quara Constrictor\n� Swarmer\n� Forest Fury\n� Thornfire Wolf\n� Manta Ray\n� Crystal Wolf\n� Wyvern\n� Ogre Shaman\n� Quara Mantassin",
5042 PREMIUM = true,
5043 RESIZE = false,
5044 OUTFIT = false,
5045 CLOSED = true,
5046 VISIBLE = true,
5047 ACT_ID = {00000, 00000, 00000, 00000, 00000},
5048 VIP = { ORIGIN_PRICE = 015, PROMO_PRICE = 000},
5049 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 020, PROMO_PRICE = 000},
5050 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
5051 };
5052 [04] = {
5053 NAME = "PACOTE DO PROFISSIONAL",
5054 DESC = "Somente jogadores Premium.\n\nPossiveis Kards nesse pacote:\n� Frost Dragon Hatchling\n� Deepling Spellsinger\n� Wailing Widow\n� Lich\n� Mutated Bat\n� Sandstone Scorpion\n� Clomp\n� Insectoid Worker\n� Dragon\n� Banshee",
5055 PREMIUM = true,
5056 RESIZE = false,
5057 OUTFIT = false,
5058 CLOSED = true,
5059 VISIBLE = true,
5060 ACT_ID = {00000, 00000, 00000, 00000, 00000},
5061 VIP = { ORIGIN_PRICE = 020, PROMO_PRICE = 000},
5062 ONLINE = { VISIBLE = true, ORIGIN_PRICE = 025, PROMO_PRICE = 000},
5063 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
5064 };
5065 };
5066 [11] = { -- EXTENS�ES
5067 [00] = {DESC = "Abra mais espacos em suas backpacks."},
5068 [01] = {
5069 NAME = "EXTENSOR (AMULET)",
5070 DESC = "Aumenta a capacidade da backpack de amuletos.\n\nCompre novamente para continuar aumentando a capacidade.",
5071 PREMIUM = false,
5072 RESIZE = false,
5073 OUTFIT = false,
5074 CLOSED = true,
5075 VISIBLE = true,
5076 ACT_ID = {00000, 00000, 00000, 00000, 00000},
5077 VIP = { ORIGIN_PRICE = 200, PROMO_PRICE = 000},
5078 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
5079 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
5080 };
5081 [02] = {
5082 NAME = "EXTENSOR (HELMET)",
5083 DESC = "Aumenta a capacidade da backpack de helmet.\n\nCompre novamente para continuar aumentando a capacidade.",
5084 PREMIUM = false,
5085 RESIZE = false,
5086 OUTFIT = false,
5087 CLOSED = true,
5088 VISIBLE = true,
5089 ACT_ID = {00000, 00000, 00000, 00000, 00000},
5090 VIP = { ORIGIN_PRICE = 200, PROMO_PRICE = 000},
5091 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
5092 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
5093 };
5094 [03] = {
5095 NAME = "EXTENSOR (BACKPACK)",
5096 DESC = "Aumenta a capacidade da backpack de produtos de criaturas.\n\nCompre novamente para continuar aumentando a capacidade.",
5097 PREMIUM = false,
5098 RESIZE = false,
5099 OUTFIT = false,
5100 CLOSED = true,
5101 VISIBLE = true,
5102 ACT_ID = {00000, 00000, 00000, 00000, 00000},
5103 VIP = { ORIGIN_PRICE = 200, PROMO_PRICE = 000},
5104 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
5105 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
5106 };
5107 [04] = {
5108 NAME = "EXTENSOR (WEAPON)",
5109 DESC = "Aumenta a capacidade da backpack de armas.\n\nCompre novamente para continuar aumentando a capacidade.",
5110 PREMIUM = false,
5111 RESIZE = false,
5112 OUTFIT = false,
5113 CLOSED = true,
5114 VISIBLE = true,
5115 ACT_ID = {00000, 00000, 00000, 00000, 00000},
5116 VIP = { ORIGIN_PRICE = 200, PROMO_PRICE = 000},
5117 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
5118 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
5119 };
5120 [05] = {
5121 NAME = "EXTENSOR (ARMOR)",
5122 DESC = "Aumenta a capacidade da backpack de armor.\n\nCompre novamente para continuar aumentando a capacidade.",
5123 PREMIUM = false,
5124 RESIZE = false,
5125 OUTFIT = false,
5126 CLOSED = true,
5127 VISIBLE = true,
5128 ACT_ID = {00000, 00000, 00000, 00000, 00000},
5129 VIP = { ORIGIN_PRICE = 200, PROMO_PRICE = 000},
5130 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
5131 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
5132 };
5133 [06] = {
5134 NAME = "EXTENSOR (GLOVE)",
5135 DESC = "Aumenta a capacidade da backpack de glove.\n\nCompre novamente para continuar aumentando a capacidade.",
5136 PREMIUM = false,
5137 RESIZE = false,
5138 OUTFIT = false,
5139 CLOSED = true,
5140 VISIBLE = true,
5141 ACT_ID = {00000, 00000, 00000, 00000, 00000},
5142 VIP = { ORIGIN_PRICE = 200, PROMO_PRICE = 000},
5143 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
5144 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
5145 };
5146 [07] = {
5147 NAME = "EXTENSOR (RING)",
5148 DESC = "Aumenta a capacidade da backpack de ring.\n\nCompre novamente para continuar aumentando a capacidade.",
5149 PREMIUM = false,
5150 RESIZE = false,
5151 OUTFIT = false,
5152 CLOSED = true,
5153 VISIBLE = true,
5154 ACT_ID = {00000, 00000, 00000, 00000, 00000},
5155 VIP = { ORIGIN_PRICE = 200, PROMO_PRICE = 000},
5156 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
5157 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
5158 };
5159 [08] = {
5160 NAME = "EXTENSOR (LEGS)",
5161 DESC = "Aumenta a capacidade da backpack de legs.\n\nCompre novamente para continuar aumentando a capacidade.",
5162 PREMIUM = false,
5163 RESIZE = false,
5164 OUTFIT = false,
5165 CLOSED = true,
5166 VISIBLE = true,
5167 ACT_ID = {00000, 00000, 00000, 00000, 00000},
5168 VIP = { ORIGIN_PRICE = 200, PROMO_PRICE = 000},
5169 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
5170 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
5171 };
5172 [09] = {
5173 NAME = "EXTENSOR (BOOTS)",
5174 DESC = "Aumenta a capacidade da backpack de boots.\n\nCompre novamente para continuar aumentando a capacidade.",
5175 PREMIUM = false,
5176 RESIZE = false,
5177 OUTFIT = false,
5178 CLOSED = true,
5179 VISIBLE = true,
5180 ACT_ID = {00000, 00000, 00000, 00000, 00000},
5181 VIP = { ORIGIN_PRICE = 200, PROMO_PRICE = 000},
5182 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
5183 PVP = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
5184 };
5185 };
5186 [12] = { -- WARZONE
5187 [00] = {DESC = "Gaste seus PVP Points com produtos exclusivos."},
5188 [01] = {
5189 NAME = "MUNICAO INFINITA",
5190 DESC = "Concede municao infinita por 30 minutos.\n\nVoce so pode ter 01 beneficio da Warzone ativo por vez. O tempo comeca a contar logo apos a compra ser finalizada.",
5191 PREMIUM = false,
5192 RESIZE = false,
5193 OUTFIT = false,
5194 CLOSED = true,
5195 VISIBLE = true,
5196 ACT_ID = {00000, 00000, 00000, 00000, 00000},
5197 VIP = { ORIGIN_PRICE = 050, PROMO_PRICE = 000},
5198 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
5199 PVP = { VISIBLE = true, ORIGIN_PRICE = 500, PROMO_PRICE = 000},
5200 };
5201 [02] = {
5202 NAME = "POCAO INFINITA",
5203 DESC = "Concede pocoes infinitas por 30 minutos.\n\nVoce so pode ter 01 beneficio da Warzone ativo por vez. O tempo comeca a contar logo apos a compra ser finalizada.",
5204 PREMIUM = false,
5205 RESIZE = false,
5206 OUTFIT = false,
5207 CLOSED = true,
5208 VISIBLE = true,
5209 ACT_ID = {00000, 00000, 00000, 00000, 00000},
5210 VIP = { ORIGIN_PRICE = 075, PROMO_PRICE = 000},
5211 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
5212 PVP = { VISIBLE = true, ORIGIN_PRICE = 500, PROMO_PRICE = 000},
5213 };
5214 [03] = {
5215 NAME = "MODO PUNITIVO",
5216 DESC = "Ao matar outro jogador fora da Warzone, voce rouba 30%% da EXP dele para si. Este beneficio acaba ao ser usado.\n\nVoce so pode ter 01 beneficio da Warzone ativo por vez. O tempo comeca a contar logo apos a compra ser finalizada.",
5217 PREMIUM = false,
5218 RESIZE = false,
5219 OUTFIT = false,
5220 CLOSED = true,
5221 VISIBLE = false,
5222 ACT_ID = {00000, 00000, 00000, 00000, 00000},
5223 VIP = { ORIGIN_PRICE = 050, PROMO_PRICE = 000},
5224 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
5225 PVP = { VISIBLE = true, ORIGIN_PRICE = 600, PROMO_PRICE = 000},
5226 };
5227 [04] = {
5228 NAME = "DOUBLE EXP",
5229 DESC = "Concede o dobro de EXP por 01 hora.\n\nSo pode ser usado 2 vezes por dia.\n\nVoce so pode ter 01 beneficio da Warzone ativo por vez. O tempo comeca a contar logo apos a compra ser finalizada.",
5230 PREMIUM = false,
5231 RESIZE = false,
5232 OUTFIT = false,
5233 CLOSED = true,
5234 VISIBLE = true,
5235 ACT_ID = {00000, 00000, 00000, 00000, 00000},
5236 VIP = { ORIGIN_PRICE = 250, PROMO_PRICE = 000},
5237 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
5238 PVP = { VISIBLE = true, ORIGIN_PRICE = 600, PROMO_PRICE = 000},
5239 };
5240 [05] = {
5241 NAME = "DOUBLE GOLD",
5242 DESC = "Concede o dobro de Gold Coin dropados de criaturas por 01 hora.\n\nVoce so pode ter 01 beneficio da Warzone ativo por vez. O tempo comeca a contar logo apos a compra ser finalizada.",
5243 PREMIUM = false,
5244 RESIZE = false,
5245 OUTFIT = false,
5246 CLOSED = true,
5247 VISIBLE = true,
5248 ACT_ID = {00000, 00000, 00000, 00000, 00000},
5249 VIP = { ORIGIN_PRICE = 150, PROMO_PRICE = 000},
5250 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
5251 PVP = { VISIBLE = true, ORIGIN_PRICE = 400, PROMO_PRICE = 000},
5252 };
5253 [06] = {
5254 NAME = "DOUBLE POINTS",
5255 DESC = "Concede o dobro de pontos ao finalizar Task por 05 hora.\n\nVoce so pode ter 01 beneficio da Warzone ativo por vez. O tempo comeca a contar logo apos a compra ser finalizada.",
5256 PREMIUM = false,
5257 RESIZE = false,
5258 OUTFIT = false,
5259 CLOSED = true,
5260 VISIBLE = true,
5261 ACT_ID = {00000, 00000, 00000, 00000, 00000},
5262 VIP = { ORIGIN_PRICE = 250, PROMO_PRICE = 000},
5263 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
5264 PVP = { VISIBLE = true, ORIGIN_PRICE = 600, PROMO_PRICE = 000},
5265 };
5266 [07] = {
5267 NAME = "REMOVEDOR DE SKULL",
5268 DESC = "Remove completamente uma Skull ativa em seu personagem.\n\nVoce so pode ter 01 beneficio da Warzone ativo por vez. O tempo comeca a contar logo apos a compra ser finalizada.",
5269 PREMIUM = false,
5270 RESIZE = false,
5271 OUTFIT = false,
5272 CLOSED = true,
5273 VISIBLE = true,
5274 ACT_ID = {00000, 00000, 00000, 00000, 00000},
5275 VIP = { ORIGIN_PRICE = 050, PROMO_PRICE = 000},
5276 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
5277 PVP = { VISIBLE = true, ORIGIN_PRICE = 300, PROMO_PRICE = 000},
5278 };
5279 [08] = {
5280 NAME = "CRIPTOMOEDA",
5281 DESC = "Moeda digital que pode ser trocada por dinheiro real.",
5282 PREMIUM = false,
5283 RESIZE = false,
5284 OUTFIT = false,
5285 CLOSED = true,
5286 VISIBLE = false,
5287 ACT_ID = {00000, 00000, 00000, 00000, 00000},
5288 VIP = { ORIGIN_PRICE = 001, PROMO_PRICE = 000},
5289 ONLINE = { VISIBLE = false, ORIGIN_PRICE = 000, PROMO_PRICE = 000},
5290 PVP = { VISIBLE = true, ORIGIN_PRICE = 050, PROMO_PRICE = 000},
5291 };
5292 };
5293}
5294
5295---------------------------------
5296local function onDelayClick(timer)
5297 if timer > 00 then
5298 timer = timer - 01
5299 scheduleEvent(function()
5300 onDelayClick(timer)
5301 end, 1000)
5302 else
5303 CLICK_DELAY = false
5304 end
5305end
5306local function onMacroDelay()
5307 if MACRO_COUNT > 00 then
5308 if MACRO_COUNT < MACRO_LIMIT then
5309 if MACRO_COUNT == 350 then
5310 modules.game_textmessage.displayGameMessage(tr('[MACRO PROTECT]\nSuas hotkeys irao travar se continuar usando dessa forma.'))
5311 end
5312 MACRO_COUNT = MACRO_COUNT - 01
5313 MACRO_EVENT = scheduleEvent(function()
5314 onMacroDelay()
5315 end, 100)
5316 else
5317 HOT_K_1 = g_settings.getString('hotkey1')
5318 HOT_K_2 = g_settings.getString('hotkey2')
5319 HOT_K_3 = g_settings.getString('hotkey3')
5320 HOT_K_4 = g_settings.getString('hotkey4')
5321 HOT_K_5 = g_settings.getString('hotkey5')
5322 HOT_K_6 = g_settings.getString('hotkey6')
5323
5324 g_keyboard.unbindKeyPress(HOT_K_1)
5325 g_keyboard.unbindKeyPress(HOT_K_2)
5326 g_keyboard.unbindKeyPress(HOT_K_3)
5327 g_keyboard.unbindKeyPress(HOT_K_4)
5328 g_keyboard.unbindKeyPress(HOT_K_5)
5329 g_keyboard.unbindKeyPress(HOT_K_6)
5330 g_keyboard.unbindKeyPress('Space')
5331
5332 modules.game_textmessage.displayGameMessage(tr('[MACRO PROTECT]\nSua hotkey de cura esta congelada por 30 segundos.'))
5333 scheduleEvent(function()
5334 MACRO_EVENT = nil
5335 MACRO_COUNT = 0
5336 ConfigHotkeys()
5337 modules.game_textmessage.displayGameMessage(tr('[MACRO PROTECT]\nSuas hotkeys estao novamente liberadas.'))
5338 end, 30000)
5339 end
5340 else
5341 MACRO_EVENT = nil
5342 end
5343end
5344function mask_number(n)
5345 local left,num,right = string.match(n,'^([^%d]*%d)(%d*)(.-)$')
5346 return left..(num:reverse():gsub('(%d%d%d)','%1,'):reverse())..right
5347end
5348function onWaitOpenBackpack()
5349end
5350function onUserInterface(mode, text)
5351 if not g_game.isOnline() then
5352 return
5353 end
5354 if mode == MessageModes.Failure then
5355 if string.find(text, "@DailyEvent") then
5356 local t = string.explode(text, " ")
5357 DAILY_EVENT = tonumber(t[02])
5358 PASS_EVENT = tonumber(t[03])
5359 end
5360 if string.find(text, "@LoadOnlineCoin") then
5361 local t = string.explode(text, " ")
5362 local OnlineParam = 00
5363 if tonumber(t[02]) > 0 then
5364 OnlineParam = tonumber(t[02])
5365 end
5366
5367 if g_app.isMobile() then
5368 SALDO_ONL_INTERFACE:setText(mask_number(OnlineParam))
5369 SALDO_ONL_SHOP:setText(mask_number(OnlineParam))
5370 SALDO_ONL_SHOP_SL:setText(mask_number(OnlineParam))
5371 else
5372 ONLINEC:setText(mask_number(OnlineParam))
5373 OnlineLabel:setText(mask_number(OnlineParam))
5374 OnlineLabelSelect:setText(mask_number(OnlineParam))
5375 end
5376 end
5377 if string.find(text, "@LoadShop") then
5378 local t = string.explode(text, " ")
5379 local CATEGORIA = tonumber(t[02])
5380 local PRODUTO = tonumber(t[03])
5381 local VIP_ORIGIN = tonumber(t[04])
5382 local VIP_PROMO = tonumber(t[05])
5383 local ONLINE_ORIGIN = tonumber(t[06])
5384 local ONLINE_PROMO = tonumber(t[07])
5385 local PVP_ORIGIN = tonumber(t[08])
5386 local PVP_PROMO = tonumber(t[09])
5387 local PRODUCT_VISIBLE = tonumber(t[10])
5388
5389 if SHOP_PRODUCTS[CATEGORIA] then
5390 if SHOP_PRODUCTS[CATEGORIA][PRODUTO] then
5391 SHOP_PRODUCTS[CATEGORIA][PRODUTO].VIP.ORIGIN_PRICE = VIP_ORIGIN
5392 SHOP_PRODUCTS[CATEGORIA][PRODUTO].VIP.PROMO_PRICE = VIP_PROMO
5393 SHOP_PRODUCTS[CATEGORIA][PRODUTO].ONLINE.ORIGIN_PRICE = ONLINE_ORIGIN
5394 SHOP_PRODUCTS[CATEGORIA][PRODUTO].ONLINE.PROMO_PRICE = ONLINE_PROMO
5395 SHOP_PRODUCTS[CATEGORIA][PRODUTO].PVP.ORIGIN_PRICE = PVP_ORIGIN
5396 SHOP_PRODUCTS[CATEGORIA][PRODUTO].PVP.PROMO_PRICE = PVP_PROMO
5397
5398 if PRODUCT_VISIBLE == 01 then
5399 SHOP_PRODUCTS[CATEGORIA][PRODUTO].VISIBLE = true
5400 else
5401 SHOP_PRODUCTS[CATEGORIA][PRODUTO].VISIBLE = false
5402 end
5403 end
5404 end
5405 end
5406 if string.find(text, "@onTimers") then
5407 local t = string.explode(text, " ")
5408 on_time:setText("Online Time: " ..t[02])
5409 on_time:setTooltip(tr('Contagem regressiva ate\neste personagem receber sua\nproxima recompensa em online coins.'))
5410 end
5411 if string.find(text, "@ColiseuLoad") then
5412 local t = string.explode(text, " ")
5413 if g_app.isMobile() then
5414 return
5415 end
5416 local KEYS = tonumber(t[02])
5417 local HARD = tonumber(t[03])
5418 local QUEST = tonumber(t[04])
5419 local ACT = tonumber(t[05])
5420 if ACT == 01 then
5421 COLISEUS_LABEL = menuBackground:recursiveGetChildById('coliseuLabel')
5422 local HardTxt = 'Facil'
5423 if HARD == 02 then
5424 HardTxt = 'Medio'
5425 elseif HARD == 03 then
5426 HardTxt = 'Dificil'
5427 elseif HARD >= 04 then
5428 HardTxt = 'Expert'
5429 end
5430
5431 COLISEUS_LABEL:setText(tr("Chaves").. ": " ..KEYS.. " | ".. tr("Dificuldade").. ": " ..HardTxt)
5432 return
5433 end
5434 if QUEST == 01 then
5435 onColiseuShop(KEYS, HARD, ACT)
5436 scheduleEvent(function()
5437 LOAD_REQUEST:hide()
5438 COLISEU_PANEL:show()
5439 end, 500)
5440 else
5441 scheduleEvent(function()
5442 LOAD_REQUEST:hide()
5443 COLISEU_PANEL_OFF:show()
5444 end, 500)
5445 end
5446 end
5447 if string.find(text, "@KDLoad") then
5448 local t = string.explode(text, " ")
5449 if g_app.isMobile() then
5450 return
5451 end
5452 local EXP = tonumber(t[02])
5453 local ON = tonumber(t[03])
5454 local id = 07
5455 local INDEX = 00
5456 if ON == 01 then
5457 for X = 01, #KARDS_RANK_EXP do
5458 if X == 21 then
5459 INDEX = 21
5460 break
5461 elseif EXP < KARDS_RANK_EXP[X].EXP then
5462 INDEX = X
5463 break
5464 end
5465 end
5466
5467 if INDEX > 01 then
5468 EXP = EXP - KARDS_RANK_EXP[INDEX - 01].EXP
5469 end
5470 KARDS_RANK_IMG:setImageSource("/images/custom/UI/kardrank_" ..INDEX)
5471 KARDS_BANNER:setImageSource("/images/custom/UI/loot_" ..KARDS_RANK_EXP[INDEX].TIER)
5472 KARDS_RANK_NAME:setText(KARDS_RANK_EXP[INDEX].NAME)
5473 KARDS_TIER:setText('TIER: ' ..KARDS_RANK_EXP[INDEX].TIER)
5474 KARDS_RANK_PROG:setValue(EXP, 0, KARDS_RANK_EXP[INDEX].EXP)
5475 KARDS_RANK_LABEL:setText(EXP.. ' / ' ..KARDS_RANK_EXP[INDEX].EXP.. ' | '.. tr('BONUS DE VENDA').. ': ' ..KARDS_RANK_EXP[INDEX].BONUS.. '%')
5476 for DEL_NPC = 01, #EVENTOS_TABLE[id].NPC do
5477 NPC_ID = menuBackground:recursiveGetChildById('_NPC_ID_' ..DEL_NPC)
5478 if NPC_ID then
5479 NPC_ID:destroy()
5480 end
5481 end
5482 for _DUEL = 01, #EVENTOS_TABLE[id].NPC do
5483 local RASTREAR_ID = id
5484 NPC = g_ui.createWidget('UIButton', KARDS_NPC_PANEL)
5485 NPC:setId("_NPC_ID_" .._DUEL)
5486 NPC:setImageSource("/images/custom/Task/Monster_1")
5487 NPC:setMarginTop(05)
5488
5489 NPC_DESC = g_ui.createWidget('UIButton', NPC)
5490 NPC_DESC:setSize({width = 20, height = 35})
5491 NPC_DESC:addAnchor(AnchorLeft, 'parent', AnchorLeft)
5492 NPC_DESC:addAnchor(AnchorRight, 'parent', AnchorRight)
5493 NPC_DESC:addAnchor(AnchorTop, 'parent', AnchorTop)
5494 NPC_DESC:setMarginTop(05)
5495 NPC_DESC:setMarginLeft(70)
5496 NPC_DESC:setMarginRight(10)
5497 NPC_DESC:setTextAlign(AlignLeft)
5498 NPC_DESC:setText(EVENTOS_TABLE[id].NPC[_DUEL].NAME.. "\n".. tr("EXP por Vitoria").. ": " ..EVENTOS_TABLE[id].NPC[_DUEL].EXP)
5499
5500 NPC_IMG = g_ui.createWidget('UIButton', NPC)
5501 NPC_IMG:setSize({width = EVENTOS_TABLE[id].NPC[_DUEL].SIZE[01], height = EVENTOS_TABLE[id].NPC[_DUEL].SIZE[02]})
5502 NPC_IMG:setImageSource("/images/custom/Monster/Humanos/" ..EVENTOS_TABLE[id].NPC[_DUEL].NAME)
5503 NPC_IMG:addAnchor(AnchorLeft, 'parent', AnchorLeft)
5504 NPC_IMG:addAnchor(AnchorTop, 'parent', AnchorTop)
5505 NPC_IMG:setMarginLeft(EVENTOS_TABLE[id].NPC[_DUEL].SIZE[04])
5506 NPC_IMG:setMarginTop(EVENTOS_TABLE[id].NPC[_DUEL].SIZE[03])
5507
5508 NPC_RAST = g_ui.createWidget('UIButton', NPC)
5509 NPC_RAST:setSize({width = 20, height = 20})
5510 NPC_RAST:setImageSource("/images/custom/UI/button")
5511 NPC_RAST:addAnchor(AnchorLeft, 'parent', AnchorLeft)
5512 NPC_RAST:addAnchor(AnchorRight, 'parent', AnchorRight)
5513 NPC_RAST:addAnchor(AnchorBottom, 'parent', AnchorBottom)
5514 NPC_RAST:setMarginLeft(70)
5515 NPC_RAST:setMarginRight(10)
5516 NPC_RAST:setMarginBottom(05)
5517 NPC_RAST:setOpacity(0.8)
5518 NPC_RAST:setText(tr("RASTREAR NPC"))
5519 NPC_RAST.onClick = function()
5520 local DESC = tr("NPC de Duelo").. "\n[ " ..EVENTOS_TABLE[id].NPC[_DUEL].NAME.. " ]"
5521 local POS = EVENTOS_TABLE[id].NPC[_DUEL].RASTREAR[01]
5522 modules.game_minimap.onRastrearQuest(POS, DESC)
5523 modules.game_textmessage.displayGameMessage(tr('A localizacao de').. ' ' ..EVENTOS_TABLE[id].NPC[_DUEL].NAME.. ' '.. tr('foi agora\nmarcado em seu mapa.'))
5524 end
5525 NPC_RAST.onHoverChange = function(widget, hoverState)
5526 if hoverState then
5527 widget:setOpacity(1.0)
5528 else
5529 widget:setOpacity(0.6)
5530 end
5531 end
5532 end
5533 end
5534
5535 scheduleEvent(function()
5536 LOAD_REQUEST:hide()
5537 if ON == 01 then
5538 KARDS_PANEL:show()
5539 else
5540 KARDS_PANEL_OFF:show()
5541 end
5542 end, 500)
5543 end
5544 if string.find(text, "@EventosLoad") then
5545 local t = string.explode(text, " ")
5546 local IDD = tonumber(t[02])
5547
5548 EVENTOS_TABLE[00].EVENT_ID = tonumber(t[02])
5549
5550 if IDD == 00 then
5551 EVENTOS_TABLE[00].EVENT_UID_1 = tonumber(t[03])
5552 EVENTOS_TABLE[00].EVENT_UID_2 = tonumber(t[04])
5553 end
5554 if IDD == 01 then
5555 EVENTOS_TABLE[00].EVENT_UID_1 = tonumber(t[03])
5556 EVENTOS_TABLE[00].EVENT_UID_2 = tonumber(t[04])
5557 EVENTOS_TABLE[00].EVENT_UID_3 = tonumber(t[05])
5558 EVENTOS_TABLE[00].EVENT_UID_4 = tonumber(t[06])
5559 EVENTOS_TABLE[00].EVENT_UID_5 = tonumber(t[07])
5560 EVENTOS_TABLE[00].EVENT_UID_6 = tonumber(t[08])
5561 EVENTOS_TABLE[00].EVENT_UID_7 = tonumber(t[09])
5562 EVENTOS_TABLE[00].EVENT_UID_8 = tonumber(t[10])
5563 EVENTOS_TABLE[00].EVENT_UID_9 = tonumber(t[11])
5564
5565 EVENTOS_TABLE[IDD].GOLD_TOKEN = tonumber(t[12])
5566 end
5567 if IDD == 02 then
5568 EVENTOS_TABLE[00].EVENT_UID_1 = tonumber(t[03])
5569 end
5570 if IDD == 03 then
5571 EVENTOS_TABLE[00].EVENT_UID_1 = tonumber(t[03])
5572 end
5573 if IDD == 05 then
5574 EVENTOS_TABLE[00].EVENT_UID_1 = tonumber(t[12])
5575 EVENTOS_TABLE[00].EVENT_UID_2 = tonumber(t[13])
5576 EVENTOS_TABLE[00].EVENT_UID_3 = tonumber(t[14])
5577 EVENTOS_TABLE[00].EVENT_UID_4 = tonumber(t[03])
5578 EVENTOS_TABLE[00].EVENT_UID_5 = tonumber(t[04])
5579 EVENTOS_TABLE[00].EVENT_UID_6 = tonumber(t[05])
5580 EVENTOS_TABLE[00].EVENT_UID_7 = tonumber(t[06])
5581 EVENTOS_TABLE[00].EVENT_UID_8 = tonumber(t[07])
5582 EVENTOS_TABLE[00].EVENT_UID_9 = tonumber(t[08])
5583 EVENTOS_TABLE[00].EVENT_UID_10 = tonumber(t[09])
5584 EVENTOS_TABLE[00].EVENT_UID_11 = tonumber(t[10])
5585 EVENTOS_TABLE[00].EVENT_UID_12 = tonumber(t[11])
5586 end
5587 if IDD == 06 then
5588 EVENTOS_TABLE[06].POINTS = tonumber(t[03])
5589 end
5590 if IDD == 07 then
5591 EVENTOS_TABLE[07].EXP_BONUS = tonumber(t[03])
5592 end
5593 if IDD == 10 then
5594 EVENTOS_TABLE[10].KEYS_EVENT = tonumber(t[03])
5595 end
5596 if IDD == 11 then
5597 EVENTOS_TABLE[11].PILLAR_STEP = tonumber(t[03])
5598 end
5599 if IDD == 12 then
5600 EVENTOS_TABLE[00].EVENT_UID_1 = tonumber(t[03])
5601 EVENTOS_TABLE[00].EVENT_UID_2 = tonumber(t[04])
5602 EVENTOS_TABLE[00].EVENT_UID_3 = tonumber(t[05])
5603 EVENTOS_TABLE[00].EVENT_UID_4 = tonumber(t[06])
5604 EVENTOS_TABLE[00].EVENT_UID_5 = tonumber(t[07])
5605 end
5606
5607 onLoadEvents(IDD)
5608 end
5609 if string.find(text, "@ReloadEvents") then
5610 local t = string.explode(text, " ")
5611 local IDD = tonumber(t[02])
5612 if IDD == 01 then
5613 EVENTOS_TABLE[01].GOLD_TOKEN = tonumber(t[03])
5614 SALDO_GOLD_TOKEN:setText(tr('Saldo Gold Token').. ': ' ..EVENTOS_TABLE[01].GOLD_TOKEN)
5615 end
5616 if IDD == 02 then
5617 EVENTOS_TABLE[00].EVENT_UID_1 = tonumber(t[03])
5618 onLoadEvents(IDD)
5619 end
5620 if IDD == 03 then
5621 EVENTOS_TABLE[00].EVENT_UID_1 = tonumber(t[03])
5622 onLoadEvents(IDD)
5623 end
5624 if IDD == 06 then
5625 SALDO_LEVEL_TOKEN:setText(tr('Saldo de Pontos').. ': ' ..tonumber(t[03]))
5626 end
5627 if IDD == 07 then
5628 SALDO_BONUS_EXP:setText(tr('Bonus de EXP ativo').. ': ' ..tonumber(t[03]).. "%")
5629 end
5630 if IDD == 10 then
5631 KEYS_LABEL = menuBackground:recursiveGetChildById('saldoKeys')
5632 KEYS_LABEL:setText(tr('Chaves do Evento').. ': ' ..tonumber(t[03]))
5633 end
5634 if IDD == 11 then
5635 modules.game_minimap.onRemoveRastrear()
5636 for X = 01, 05 do
5637 local DESC = tr("Localizacao\n[ Pillar of Fortune ]")
5638 local POS = EVENTOS_TABLE[11].PILLAR_POS[X].POS[01]
5639 modules.game_minimap.onRastrearQuest(POS, DESC, 05)
5640 end
5641 end
5642 if IDD == 12 then
5643 EVENTOS_TABLE[00].EVENT_UID_4 = tonumber(t[03])
5644 onLoadEvents(IDD)
5645 end
5646 end
5647 if string.find(text, "@LoadTooltipInv") then
5648 onTooltipInv()
5649 end
5650 if string.find(text, "@OpenChangeName") then
5651 modules.game_namechange.show()
5652 end
5653 if string.find(text, "@SpellCooldown") then
5654 local t = string.explode(text, " ")
5655 MobileSkill1 = modules.client_mobile.onMobileButton(12)
5656 MobileSkill2 = modules.client_mobile.onMobileButton(11)
5657 MobileSkill3 = modules.client_mobile.onMobileButton(13)
5658 MobileSkill4 = modules.client_mobile.onMobileButton(08)
5659 MobileSkill5 = modules.client_mobile.onMobileButton(09)
5660 MobileSkill6 = modules.client_mobile.onMobileButton(10)
5661
5662 if tonumber(t[2]) == 1 then
5663 local skill_01 = modules.game_database.getInventory(4, 4)
5664 Spell01:setImageColor(color_cooldown)
5665 Spell01:setText(modules.game_database.getSpellInfo(skill_01, 05))
5666 if g_app.isMobile() then
5667 MobileSkill4:setImageColor(color_cooldown)
5668 MobileSkill4:setText(modules.game_database.getSpellInfo(skill_01, 05))
5669 end
5670 timer1 = modules.game_database.getSpellInfo(skill_01, 05)
5671 onSpell1Cooldown()
5672 elseif tonumber(t[2]) == 2 then
5673 local skill_02 = modules.game_database.getInventory(4, 5)
5674 Spell02:setImageColor(color_cooldown)
5675 Spell02:setText(modules.game_database.getSpellInfo(skill_02, 05))
5676 if g_app.isMobile() then
5677 MobileSkill5:setImageColor(color_cooldown)
5678 MobileSkill5:setText(modules.game_database.getSpellInfo(skill_02, 05))
5679 end
5680 timer2 = modules.game_database.getSpellInfo(skill_02, 05)
5681 onSpell2Cooldown()
5682 elseif tonumber(t[2]) == 3 then
5683 local skill_03 = modules.game_database.getInventory(4, 6)
5684 Spell03:setImageColor(color_cooldown)
5685 Spell03:setText(modules.game_database.getSpellInfo(skill_03, 05))
5686 if g_app.isMobile() then
5687 MobileSkill6:setImageColor(color_cooldown)
5688 MobileSkill6:setText(modules.game_database.getSpellInfo(skill_03, 05))
5689 end
5690 timer3 = modules.game_database.getSpellInfo(skill_03, 05)
5691 onSpell3Cooldown()
5692 elseif tonumber(t[2]) == 4 then
5693 -- Speed of Gods (Dash)
5694 Suport01:setImageColor(color_cooldown)
5695 Suport01:setText("15")
5696 if g_app.isMobile() then
5697 MobileSkill1:setImageColor(color_cooldown)
5698 MobileSkill1:setText("15")
5699 end
5700 onSpell4Cooldown(15)
5701 elseif tonumber(t[2]) == 5 then
5702 -- Intense Recovery (Cura)
5703 Suport02:setImageColor(color_cooldown)
5704 Suport02:setText("1")
5705 if g_app.isMobile() then
5706 MobileSkill2:setImageColor(color_cooldown)
5707 MobileSkill2:setText("1")
5708 end
5709 onSpell5Cooldown(1)
5710 elseif tonumber(t[2]) == 6 then
5711 -- Maestria
5712 Suport03:setImageColor(color_cooldown)
5713 Suport03:setText(tonumber(t[3]))
5714 if g_app.isMobile() then
5715 MobileSkill3:setImageColor(color_cooldown)
5716 MobileSkill3:setText(tonumber(t[3]))
5717 end
5718 onSpell6Cooldown(tonumber(t[3]))
5719 elseif tonumber(t[2]) == 7 then
5720 -- SummonKard
5721 if tonumber(t[3]) > 0 then
5722 timer4 = tonumber(t[3]) / 1000
5723 COLD_KARD:setText(timer4)
5724 COLD_KARD:show()
5725 onSummonCooldown()
5726 else
5727 timer4 = 0
5728 COLD_KARD:setText("")
5729 COLD_KARD:hide()
5730 end
5731 end
5732 end
5733 if string.find(text, "@NewbieStart") then
5734 local t = string.explode(text, " ")
5735
5736 Novato = tonumber(t[02])
5737 if Novato == 02 then
5738 if g_settings.getString('fixeMenu') == "false" then
5739 modules.game_alert.onShowTutor(01)
5740 else
5741 modules.game_alert.onShowTutor(02)
5742 Novato = 3
5743 end
5744 end
5745 end
5746 if string.find(text, "@StarCliente") then
5747 if g_app.isMobile() then onLoginMobile() return end
5748 OverLogin = 3
5749 ModoPVP = true
5750 PvPMode()
5751 closer_boxShop()
5752 COLD_KARD:hide()
5753 AutoCuraBotFalsePositivo = true
5754 modules.game_actionbar.hide()
5755 modules.game_battle.Meclose()
5756 modules.game_skills.Meclose()
5757 modules.game_cooldown.Meclose()
5758 modules.game_minimap.onRemoveRastrear()
5759
5760 for O = 01, 03 do
5761 _FAVORITE_SHOP[O].FAVORITE = g_settings.getString('favorite' ..O)
5762 HOME_FAVORITE = menuBackground:recursiveGetChildById('Favoritos_' ..O.. "_Img")
5763 HOME_FAVORITE:setImageSource("/images/custom/UI/0")
5764 end
5765
5766 if g_settings.getString('fixeMenu') == "true" then
5767 menuBackgroundShow = 0
5768 CloseBackpack()
5769 OptionsInventario()
5770 end
5771 onShowHub()
5772 end
5773 if string.find(text, "@EnablePVPMode") then
5774 PvPMode()
5775 end
5776 if string.find(text, "@LoadQuestWindows") then
5777 LoadQuestRealTime()
5778 end
5779 if string.find(text, "@OpenBackpack") then
5780 local t = string.explode(text, " ")
5781 OpenBackpack(01)
5782 LOAD:hide()
5783 if t[02] then
5784 LastClickSlot = tonumber(t[02])
5785 end
5786 end
5787 if string.find(text, "@ReloadBackpack") then
5788 local t = string.explode(text, " ")
5789 local slot = tonumber(t[2])
5790 if slot ~= LastClickSlot then
5791 return
5792 end
5793 if slot == 1 then
5794 BACKPACK_SLOT = AMULET
5795 elseif slot == 2 then
5796 BACKPACK_SLOT = HELMET
5797 elseif slot == 3 then
5798 BACKPACK_SLOT = BACKPACK
5799 elseif slot == 4 then
5800 BACKPACK_SLOT = GUN
5801 elseif slot == 5 then
5802 BACKPACK_SLOT = ARMOR
5803 elseif slot == 6 then
5804 BACKPACK_SLOT = GLOVE
5805 elseif slot == 7 then
5806 BACKPACK_SLOT = RING
5807 elseif slot == 8 then
5808 BACKPACK_SLOT = LEGS
5809 elseif slot == 9 then
5810 BACKPACK_SLOT = BOOTS
5811 end
5812
5813 if g_app.isMobile() then
5814 if modules.game_centralbox.onCheckBoxView() then
5815 return
5816 end
5817
5818 MOBILE_SKILL_BAR = modules.client_mobile.onMobileButton(07)
5819 if not MOBILE_SKILL_BAR:isVisible() then
5820 if t[3] then
5821 BackpackEffect = false
5822 end
5823 scheduleEvent(function()
5824 inv_pos = BACKPACK_SLOT LastClickSlot = slot LOAD:show()
5825 g_game.talk(g_game.talk("!backpack "..slot.. " " ..onBackpackSelect))
5826 end, 500)
5827 end
5828 else
5829 if t[3] then
5830 BackpackEffect = false
5831 end
5832 if t[4] then
5833 inv_pos = BACKPACK_SLOT LastClickSlot = slot LOAD:show()
5834 g_game.talk(g_game.talk("!backpack "..slot.. " " ..onBackpackSelect))
5835 else
5836 scheduleEvent(function()
5837 inv_pos = BACKPACK_SLOT LastClickSlot = slot LOAD:show()
5838 g_game.talk(g_game.talk("!backpack "..slot.. " " ..onBackpackSelect))
5839 end, 500)
5840 end
5841 end
5842 end
5843 if string.find(text, "@LoadCoinMenu") then
5844 local t = string.explode(text, " ")
5845 local GoldParam = 0 local TaskRank = 0 local TaskCoin1 = 0 local TaskQnt = 0
5846 local OnlineParam = 0 local ExpRank = 0 local TaskCoin2 = 0 local PvPQnt = 0
5847 local VipParam = 0 local TaskAtiva = 0 local TaskCoin3 = 0
5848 if tonumber(t[02]) > 0 then
5849 GoldParam = tonumber(t[02])
5850 end
5851 if tonumber(t[03]) > 0 then
5852 OnlineParam = tonumber(t[03])
5853 end
5854 if tonumber(t[04]) > 0 then
5855 VipParam = tonumber(t[04])
5856 end
5857 if tonumber(t[05]) > 0 then
5858 TaskRank = tonumber(t[05])
5859 end
5860 if tonumber(t[06]) > 0 then
5861 ExpRank = tonumber(t[06])
5862 end
5863 if tonumber(t[07]) > 0 then
5864 TaskCoin1 = tonumber(t[07])
5865 end
5866 if tonumber(t[08]) > 0 then
5867 TaskCoin2 = tonumber(t[08])
5868 end
5869 if tonumber(t[09]) > 0 then
5870 TaskCoin3 = tonumber(t[09])
5871 end
5872 if tonumber(t[10]) > 0 then
5873 TaskAtiva = tonumber(t[10])
5874 end
5875 if tonumber(t[11]) > 0 then
5876 TaskQnt = tonumber(t[11])
5877 end
5878 if tonumber(t[12]) > 0 then
5879 PvPQnt = tonumber(t[12])
5880 end
5881 if tonumber(t[13]) > 0 then
5882 CriptoMoeda = tonumber(t[13])
5883 end
5884
5885 GOLDC:setText(mask_number(GoldParam))
5886 modules.game_interface.setPlayerCoins(01, GoldParam)
5887 modules.game_interface.setPlayerCoins(02, VipParam)
5888 ONLINEC:setText(mask_number(OnlineParam))
5889 ONLINEC:setTooltip(tr("A cada 01 hora online, voce recebe\nPontos Online para ser gastos\nno Shop ou em outras atividades."))
5890
5891 VipLabel:setText(mask_number(VipParam))
5892 OnlineLabel:setText(mask_number(OnlineParam))
5893 PVPLabel:setText(mask_number(PvPQnt))
5894
5895 VipLabelSelect:setText(mask_number(VipParam))
5896 OnlineLabelSelect:setText(mask_number(OnlineParam))
5897 PVPLabelSelect:setText(mask_number(PvPQnt))
5898 modules.game_database.checkVipCoins(00, VipParam)
5899 if g_app.isMobile() then
5900 SALDO_GOL_INTERFACE = modules.client_mobile.onMobileButton(16)
5901 SALDO_ONL_INTERFACE = modules.client_mobile.onMobileButton(15)
5902 SALDO_VIP_SHOP = modules.game_interface.onMobileWindow(63)
5903 SALDO_ONL_SHOP = modules.game_interface.onMobileWindow(64)
5904 SALDO_PVP_SHOP = modules.game_interface.onMobileWindow(65)
5905 SALDO_VIP_SHOP_SL = modules.game_interface.onMobileWindow(66)
5906 SALDO_ONL_SHOP_SL = modules.game_interface.onMobileWindow(67)
5907 SALDO_PVP_SHOP_SL = modules.game_interface.onMobileWindow(68)
5908
5909 SALDO_GOL_INTERFACE:setText(mask_number(GoldParam))
5910 SALDO_ONL_INTERFACE:setText(mask_number(OnlineParam))
5911 SALDO_VIP_SHOP:setText(mask_number(VipParam))
5912 SALDO_ONL_SHOP:setText(mask_number(OnlineParam))
5913 SALDO_PVP_SHOP:setText(mask_number(PvPQnt))
5914 SALDO_VIP_SHOP_SL:setText(mask_number(VipParam))
5915 SALDO_ONL_SHOP_SL:setText(mask_number(OnlineParam))
5916 SALDO_PVP_SHOP_SL:setText(mask_number(PvPQnt))
5917 end
5918 if TaskRank == 0 then
5919 modules.game_database.setTask(00, 01)
5920 else
5921 modules.game_database.setTask(00, TaskRank)
5922 end
5923 modules.game_database.setTask(01, ExpRank)
5924 modules.game_database.setTask(02, TaskCoin1)
5925 modules.game_database.setTask(03, TaskCoin2)
5926 modules.game_database.setTask(04, TaskCoin3)
5927 modules.game_database.setTask(05, TaskAtiva)
5928 modules.game_database.setTask(06, TaskQnt)
5929 StartTask()
5930
5931 local localPlayer = g_game.getLocalPlayer()
5932 CRIPT_SALDO:setText(CriptoMoeda)
5933 if localPlayer:getLevel() < 100 then
5934 CriptoPrice = 0.05
5935 elseif localPlayer:getLevel() < 200 then
5936 CriptoPrice = 0.06
5937 elseif localPlayer:getLevel() < 300 then
5938 CriptoPrice = 0.07
5939 elseif localPlayer:getLevel() < 400 then
5940 CriptoPrice = 0.08
5941 elseif localPlayer:getLevel() < 500 then
5942 CriptoPrice = 0.09
5943 elseif localPlayer:getLevel() < 600 then
5944 CriptoPrice = 0.10
5945 elseif localPlayer:getLevel() < 700 then
5946 CriptoPrice = 0.11
5947 elseif localPlayer:getLevel() < 800 then
5948 CriptoPrice = 0.12
5949 elseif localPlayer:getLevel() < 900 then
5950 CriptoPrice = 0.13
5951 elseif localPlayer:getLevel() < 999 then
5952 CriptoPrice = 0.14
5953 elseif localPlayer:getLevel() > 999 then
5954 CriptoPrice = 0.15
5955 else
5956 CriptoPrice = 0
5957 end
5958
5959 CRIPT_TXT:setText(tr("Valor da criptomoeda baseado\nem seu nivel atual").. ": " ..tr("R$").. " " ..CriptoPrice.. ".")
5960 local Calculos = CriptoMoeda * CriptoPrice
5961 CRIPT_VALOR:setText(tr("R$").. " " ..mask_number(Calculos))
5962 end
5963 if string.find(text, "@RemoveItemInventario") then
5964 local t = string.explode(text, " ")
5965 local slot = tonumber(t[2])
5966 if slot == 1 then
5967 BAG = AMULET
5968 elseif slot == 2 then
5969 BAG = HELMET
5970 elseif slot == 3 then
5971 BAG = BACKPACK
5972 elseif slot == 4 then
5973 BAG = GUN
5974 elseif slot == 5 then
5975 BAG = ARMOR
5976 elseif slot == 6 then
5977 BAG = GLOVE
5978 elseif slot == 7 then
5979 BAG = RING
5980 elseif slot == 8 then
5981 BAG = LEGS
5982 elseif slot == 9 then
5983 BAG = BOOTS
5984 end
5985
5986 BAG:setIcon("/images/custom/UI/none")
5987 BAG:setImageSource(EMPTY_SLOT[slot])
5988
5989 onTooltipInv()
5990 inv_pos = BAG LastClickSlot = slot LOAD:show()
5991 g_game.talk(g_game.talk("!backpack "..slot.. " " ..onBackpackSelect))
5992 end
5993 if string.find(text, "@BossStart") then
5994 closedInventario()
5995 end
5996 if string.find(text, "@EquipBackpack") then
5997 local t = string.explode(text, " ")
5998 local RareType = modules.game_database.getItemInfo(tonumber(t[02]), 13)
5999 BACKPACK:setIcon("/images/custom/Items/".. tonumber(t[02]))
6000 BACKPACK:setImageSource("/images/custom/UI/rare_" ..RareType)
6001 BACKPACK:setTooltip("@BAG " ..t[02].. " " ..RareType.. " 0 0 0 0 0 0 0 0")
6002 g_effects.fadeIn(BACKPACK, 250)
6003 end
6004 if string.find(text, "@LoadHotkey") then
6005 ConfigHotkeys()
6006 end
6007 if string.find(text, "@Penalidade") then
6008 local t = string.explode(text, " ")
6009 local localPlayer = g_game.getLocalPlayer()
6010 if tonumber(t[02]) ~= nil then
6011 if tonumber(t[02]) > 0 then
6012 penalidade = tonumber(t[02])
6013 experienceBar:setBackgroundColor('red')
6014 if manaCircleFront then manaCircleFront:setImageColor("red") end
6015 experienceBar:setTooltip(tr("EXP restante para retirar a penalidade").. ":\n [ " ..mask_number(penalidade).. " ]")
6016 expStatus:setTooltip(tr("EXP restante para retirar a penalidade").. ":\n [ " ..mask_number(penalidade).. " ]")
6017
6018 if g_app.isMobile() then
6019 mobileEXPBar = modules.client_mobile.onMobileButton(02)
6020 mobileEXPBar:setBackgroundColor('red')
6021 mobileEXPBar:setTooltip(tr("EXP restante para retirar a penalidade").. ":\n [ " ..mask_number(penalidade).. " ]")
6022 end
6023 else
6024 experienceBar:setBackgroundColor('white')
6025 manaCircleFront:setImageColor("white")
6026 onLevelChange(localPlayer, localPlayer:getLevel(), localPlayer:getLevelPercent())
6027 penalidade = 0
6028
6029 if g_app.isMobile() then
6030 mobileEXPBar = modules.client_mobile.onMobileButton(02)
6031 mobileEXPBar:setBackgroundColor('white')
6032 mobileEXPBar:setTooltip("")
6033 end
6034 end
6035 else
6036 experienceBar:setBackgroundColor('white')
6037 manaCircleFront:setImageColor("white")
6038 onLevelChange(localPlayer, localPlayer:getLevel(), localPlayer:getLevelPercent())
6039 penalidade = 0
6040
6041 if g_app.isMobile() then
6042 mobileEXPBar = modules.client_mobile.onMobileButton(02)
6043 mobileEXPBar:setBackgroundColor('white')
6044 mobileEXPBar:setTooltip("")
6045 end
6046 end
6047 end
6048 if string.find(text, "@LoadSpySet") then
6049 local t = string.explode(text, "|")
6050 local SLOT = tonumber(t[02])
6051
6052 SET_SPY[SLOT].UID_01 = tonumber(t[03])
6053 SET_SPY[SLOT].UID_02 = tonumber(t[04])
6054 SET_SPY[SLOT].UID_03 = tonumber(t[05])
6055 SET_SPY[SLOT].UID_04 = tonumber(t[06])
6056 SET_SPY[SLOT].UID_05 = tonumber(t[07])
6057 SET_SPY[SLOT].UID_06 = tonumber(t[08])
6058 SET_SPY[SLOT].UID_07 = tonumber(t[09])
6059 SET_SPY[SLOT].UID_08 = tonumber(t[10])
6060 SET_SPY[SLOT].UID_09 = tonumber(t[11])
6061 SET_SPY[SLOT].UID_10 = tonumber(t[12])
6062
6063 SET_SPY[00].UID_01 = tonumber(t[13])
6064 SET_SPY[00].UID_02 = tonumber(t[14])
6065 SET_SPY[00].UID_10 = t[15]
6066 end
6067 if string.find(text, "@SpyShow") then
6068 local AMULET_SPY = spyWindowBox:recursiveGetChildById('SpyAmulet')
6069 local HELMET_SPY = spyWindowBox:recursiveGetChildById('SpyHelmet')
6070 local BACKPACK_SPY = spyWindowBox:recursiveGetChildById('SpyBackpack')
6071 local GUN_SPY = spyWindowBox:recursiveGetChildById('SpyGun01')
6072 local ARMOR_SPY = spyWindowBox:recursiveGetChildById('SpyArmor')
6073 local GLOVE_SPY = spyWindowBox:recursiveGetChildById('SpyGlove')
6074 local RING_SPY = spyWindowBox:recursiveGetChildById('SpyRing01')
6075 local LEGS_SPY = spyWindowBox:recursiveGetChildById('SpyLegs')
6076 local BOOTS_SPY = spyWindowBox:recursiveGetChildById('SpyBoots')
6077 local KARD_SPY = spyWindowBox:recursiveGetChildById('SpySummon')
6078 local KARD_SPY_MONSTER = spyWindowBox:recursiveGetChildById('SpyImgSummonEquip')
6079 local KARD_SPY_STAR = spyWindowBox:recursiveGetChildById('SpyStarSummonEquip')
6080 local GOLD_SPY = spyWindowBox:recursiveGetChildById('SpyGoldCoin')
6081 local ONLI_SPY = spyWindowBox:recursiveGetChildById('SpyOnlineCoin')
6082 local SKILL1 = spyWindowBox:recursiveGetChildById('SpySkill1')
6083 local SKILL2 = spyWindowBox:recursiveGetChildById('SpySkill2')
6084 local SKILL3 = spyWindowBox:recursiveGetChildById('SpySkill3')
6085 if SET_SPY[01].UID_01 > 0 then
6086 AMULET_SPY:setIcon("/images/custom/Items/" ..SET_SPY[01].UID_01)
6087 AMULET_SPY:setImageSource("/images/custom/UI/rare_" ..SET_SPY[01].UID_02)
6088
6089 id = SET_SPY[01].UID_01
6090 star = SET_SPY[01].UID_03
6091 rare = SET_SPY[01].UID_02
6092 level = SET_SPY[01].UID_05
6093 lock = SET_SPY[01].UID_09
6094 AMULET_SPY:setTooltip("@JOIAS " ..id.. " " ..rare.. " " ..star.. " 0 " ..level.. " 0 0 0 " ..lock.. "0")
6095 else
6096 AMULET_SPY:setTooltip('')
6097 AMULET_SPY:setIcon("/images/custom/UI/none")
6098 AMULET_SPY:setImageSource('/images/game/slots/amulet')
6099 end
6100 if SET_SPY[02].UID_01 > 0 then
6101 HELMET_SPY:setIcon("/images/custom/Items/" ..SET_SPY[02].UID_01)
6102 HELMET_SPY:setImageSource("/images/custom/UI/rare_" ..SET_SPY[02].UID_02)
6103
6104 id = SET_SPY[02].UID_01
6105 star = SET_SPY[02].UID_03
6106 level = SET_SPY[02].UID_05
6107 atr1 = SET_SPY[02].UID_06
6108 atr2 = SET_SPY[02].UID_07
6109 rare = SET_SPY[02].UID_02
6110 lock = SET_SPY[02].UID_09
6111 bonus = SET_SPY[02].UID_08
6112 HELMET_SPY:setTooltip("@EQUIP " ..id.. " " ..rare.. " " ..star.. " 0 " ..level.. " " ..atr1.. " " ..atr2.. " " ..bonus.. " " ..lock.. " 0")
6113 else
6114 HELMET_SPY:setTooltip('')
6115 HELMET_SPY:setIcon("/images/custom/UI/none")
6116 HELMET_SPY:setImageSource('/images/game/slots/helmet')
6117 end
6118 if SET_SPY[03].UID_01 > 0 then
6119 BACKPACK_SPY:setIcon("/images/custom/Items/" ..SET_SPY[03].UID_01)
6120 BACKPACK_SPY:setImageSource("/images/custom/UI/rare_" ..SET_SPY[03].UID_02)
6121
6122 id = SET_SPY[03].UID_01
6123 star = SET_SPY[03].UID_03
6124 rare = SET_SPY[03].UID_02
6125 level = SET_SPY[03].UID_05
6126 lock = SET_SPY[03].UID_09
6127 BACKPACK_SPY:setTooltip("@JOIAS " ..id.. " " ..rare.. " " ..star.. " 0 " ..level.. " 0 0 0 " ..lock.. "0")
6128 else
6129 BACKPACK_SPY:setTooltip('')
6130 BACKPACK_SPY:setIcon("/images/custom/UI/none")
6131 BACKPACK_SPY:setImageSource('/images/game/slots/backpack')
6132 end
6133 if SET_SPY[04].UID_01 > 0 then
6134 GUN_SPY:setIcon("/images/custom/Items/" ..SET_SPY[04].UID_01)
6135 GUN_SPY:setImageSource("/images/custom/UI/rare_" ..SET_SPY[04].UID_02)
6136
6137 id = SET_SPY[04].UID_01
6138 skill_01 = SET_SPY[04].UID_04
6139 skill_02 = SET_SPY[04].UID_05
6140 skill_03 = SET_SPY[04].UID_06
6141 Level = SET_SPY[04].UID_07
6142 Star = SET_SPY[04].UID_03
6143 Rare = SET_SPY[04].UID_02
6144 lock = SET_SPY[04].UID_09
6145 bonus = SET_SPY[04].UID_08
6146 Ammo = SET_SPY[04].UID_10
6147
6148 GUN_SPY:setTooltip("@INVGUN " ..id.. " " ..Rare.. " " ..Star.. " " ..skill_01.. " " ..skill_02.. " " ..skill_03.. " " ..Level.. " " ..bonus.. " " ..lock.. " " ..Ammo)
6149
6150 if skill_01 > 0 then
6151 SKILL1:setTooltip("@SKILL " ..skill_01.. " --")
6152 SKILL1:setImageSource("/images/custom/Spells/HUB/skill_" ..skill_01)
6153 else
6154 SKILL1:setTooltip("")
6155 SKILL1:setImageSource("/images/custom/UI/insert_skill")
6156 end
6157 if skill_02 > 0 then
6158 SKILL2:setTooltip("@SKILL " ..skill_02.. " --")
6159 SKILL2:setImageSource("/images/custom/Spells/HUB/skill_" ..skill_02)
6160 else
6161 SKILL2:setTooltip("")
6162 SKILL2:setImageSource("/images/custom/UI/insert_skill")
6163 end
6164 if skill_03 > 0 then
6165 SKILL3:setTooltip("@SKILL " ..skill_03.. " --")
6166 SKILL3:setImageSource("/images/custom/Spells/HUB/skill_" ..skill_03)
6167 else
6168 SKILL3:setTooltip("")
6169 SKILL3:setImageSource("/images/custom/UI/insert_skill")
6170 end
6171 else
6172 GUN_SPY:setTooltip('')
6173 GUN_SPY:setIcon("/images/custom/UI/none")
6174 GUN_SPY:setImageSource('/images/game/slots/gun')
6175 end
6176 if SET_SPY[05].UID_01 > 0 then
6177 ARMOR_SPY:setIcon("/images/custom/Items/" ..SET_SPY[05].UID_01)
6178 ARMOR_SPY:setImageSource("/images/custom/UI/rare_" ..SET_SPY[05].UID_02)
6179
6180 id = SET_SPY[05].UID_01
6181 star = SET_SPY[05].UID_03
6182 level = SET_SPY[05].UID_05
6183 atr1 = SET_SPY[05].UID_06
6184 atr2 = SET_SPY[05].UID_07
6185 rare = SET_SPY[05].UID_02
6186 lock = SET_SPY[05].UID_09
6187 bonus = SET_SPY[05].UID_08
6188 ARMOR_SPY:setTooltip("@EQUIP " ..id.. " " ..rare.. " " ..star.. " 0 " ..level.. " " ..atr1.. " " ..atr2.. " " ..bonus.. " " ..lock.. " 0")
6189 else
6190 ARMOR_SPY:setTooltip('')
6191 ARMOR_SPY:setIcon("/images/custom/UI/none")
6192 ARMOR_SPY:setImageSource('/images/game/slots/armor')
6193 end
6194 if SET_SPY[06].UID_01 > 0 then
6195 GLOVE_SPY:setIcon("/images/custom/Items/" ..SET_SPY[06].UID_01)
6196 GLOVE_SPY:setImageSource("/images/custom/UI/rare_" ..SET_SPY[06].UID_02)
6197
6198 id = SET_SPY[06].UID_01
6199 star = SET_SPY[06].UID_03
6200 level = SET_SPY[06].UID_05
6201 atr1 = SET_SPY[06].UID_06
6202 atr2 = SET_SPY[06].UID_07
6203 rare = SET_SPY[06].UID_02
6204 lock = SET_SPY[06].UID_09
6205 bonus = SET_SPY[06].UID_08
6206 GLOVE_SPY:setTooltip("@EQUIP " ..id.. " " ..rare.. " " ..star.. " 0 " ..level.. " " ..atr1.. " " ..atr2.. " " ..bonus.. " " ..lock.. " 0")
6207 else
6208 GLOVE_SPY:setTooltip("")
6209 GLOVE_SPY:setIcon("/images/custom/UI/none")
6210 GLOVE_SPY:setImageSource('/images/game/slots/glove')
6211 end
6212 if SET_SPY[07].UID_01 > 0 then
6213 RING_SPY:setIcon("/images/custom/Items/" ..SET_SPY[07].UID_01)
6214 RING_SPY:setImageSource("/images/custom/UI/rare_" ..SET_SPY[07].UID_02)
6215
6216 id = SET_SPY[07].UID_01
6217 star = SET_SPY[07].UID_03
6218 rare = SET_SPY[07].UID_02
6219 level = SET_SPY[07].UID_05
6220 lock = SET_SPY[07].UID_09
6221 RING_SPY:setTooltip("@JOIAS " ..id.. " " ..rare.. " " ..star.. " 0 " ..level.. " 0 0 0 " ..lock.. "0")
6222 else
6223 RING_SPY:setTooltip("")
6224 RING_SPY:setIcon("/images/custom/UI/none")
6225 RING_SPY:setImageSource('/images/game/slots/ring')
6226 end
6227 if SET_SPY[08].UID_01 > 0 then
6228 LEGS_SPY:setIcon("/images/custom/Items/" ..SET_SPY[08].UID_01)
6229 LEGS_SPY:setImageSource("/images/custom/UI/rare_" ..SET_SPY[08].UID_02)
6230
6231 id = SET_SPY[08].UID_01
6232 star = SET_SPY[08].UID_03
6233 level = SET_SPY[08].UID_05
6234 atr1 = SET_SPY[08].UID_06
6235 atr2 = SET_SPY[08].UID_07
6236 rare = SET_SPY[08].UID_02
6237 lock = SET_SPY[08].UID_09
6238 bonus = SET_SPY[08].UID_08
6239 LEGS_SPY:setTooltip("@EQUIP " ..id.. " " ..rare.. " " ..star.. " 0 " ..level.. " " ..atr1.. " " ..atr2.. " " ..bonus.. " " ..lock.. " 0")
6240 else
6241 LEGS_SPY:setTooltip("")
6242 LEGS_SPY:setIcon("/images/custom/UI/none")
6243 LEGS_SPY:setImageSource('/images/game/slots/leg')
6244 end
6245 if SET_SPY[09].UID_01 > 0 then
6246 BOOTS_SPY:setIcon("/images/custom/Items/" ..SET_SPY[09].UID_01)
6247 BOOTS_SPY:setImageSource("/images/custom/UI/rare_" ..SET_SPY[09].UID_02)
6248
6249 id = SET_SPY[09].UID_01
6250 star = SET_SPY[09].UID_03
6251 level = SET_SPY[09].UID_05
6252 atr1 = SET_SPY[09].UID_06
6253 atr2 = SET_SPY[09].UID_07
6254 rare = SET_SPY[09].UID_02
6255 lock = SET_SPY[09].UID_09
6256 bonus = SET_SPY[09].UID_08
6257 BOOTS_SPY:setTooltip("@EQUIP " ..id.. " " ..rare.. " " ..star.. " 0 " ..level.. " " ..atr1.. " " ..atr2.. " " ..bonus.. " " ..lock.. " 0")
6258 else
6259 BOOTS_SPY:setTooltip("")
6260 BOOTS_SPY:setIcon("/images/custom/UI/none")
6261 BOOTS_SPY:setImageSource('/images/game/slots/boot')
6262 end
6263 if SET_SPY[10].UID_01 > 0 then
6264 local id = SET_SPY[10].UID_01
6265 local rare = SET_SPY[10].UID_02
6266 local classSummon = SET_SPY[10].UID_03
6267 local atual = SET_SPY[10].UID_04
6268 local name = modules.game_database.onKard(01, classSummon, atual)
6269
6270 local RARE_01 = modules.game_database.onKard(05, classSummon, atual, 01)
6271 local RARE_02 = modules.game_database.onKard(05, classSummon, atual, 02)
6272 local RARE_03 = modules.game_database.onKard(05, classSummon, atual, 03)
6273 local RARE_04 = modules.game_database.onKard(05, classSummon, atual, 04)
6274 local RARE_05 = modules.game_database.onKard(05, classSummon, atual, 05)
6275
6276 if rare < RARE_01 then
6277 KARD_SPY:setImageSource("/images/custom/UI/summon_view_0")
6278 elseif rare < (RARE_01 + RARE_02) then
6279 KARD_SPY:setImageSource("/images/custom/UI/summon_view_1")
6280 elseif rare < (RARE_01 + RARE_02 + RARE_03) then
6281 KARD_SPY:setImageSource("/images/custom/UI/summon_view_2")
6282 elseif rare < (RARE_01 + RARE_02 + RARE_03 + RARE_04) then
6283 KARD_SPY:setImageSource("/images/custom/UI/summon_view_3")
6284 elseif rare < (RARE_01 + RARE_02 + RARE_03 + RARE_04 + RARE_05) then
6285 KARD_SPY:setImageSource("/images/custom/UI/summon_view_4")
6286 else
6287 KARD_SPY:setImageSource("/images/custom/UI/summon_view_4")
6288 end
6289
6290 KARD_SPY_MONSTER:setImageSource("/images/custom/Monster/" ..id)
6291 KARD_SPY_MONSTER:setImageRect(modules.game_database.onKard(04, classSummon, atual))
6292 KARD_SPY_STAR:setImageSource("/images/custom/UI/star_0")
6293 KARD_SPY:setTooltip(name)
6294 else
6295 KARD_SPY_MONSTER:setImageSource("/images/custom/Monster/0")
6296 KARD_SPY_STAR:setImageSource("/images/custom/UI/star_0")
6297 KARD_SPY:setImageSource("/images/custom/UI/infoInv")
6298 KARD_SPY:setTooltip("")
6299 end
6300
6301 local GOLD_COIN = SET_SPY[00].UID_01
6302 if GOLD_COIN < 0 then GOLD_COIN = 0 end
6303
6304 local ONLI_COIN = SET_SPY[00].UID_02
6305 if ONLI_COIN < 0 then ONLI_COIN = 0 end
6306
6307 GOLD_SPY:setText(mask_number(GOLD_COIN))
6308 ONLI_SPY:setText(mask_number(ONLI_COIN))
6309
6310 spyWindowBox:setText(SET_SPY[00].UID_10)
6311 spyWindowBox:show()
6312 end
6313 if string.find(text, "@FechandoSpy") then
6314 spyWindowBox:hide()
6315 end
6316 if string.find(text, "@RankLevel") then
6317 local t = string.explode(text, "#")
6318 if g_app.isMobile() then
6319 return
6320 end
6321
6322 if tonumber(t[02]) == 01 then
6323 for X = 01, 50 do
6324 RANK_ID = menuBackground:recursiveGetChildById('RANK_' ..X)
6325 if RANK_ID then
6326 RANK_ID:destroy()
6327 end
6328 end
6329 end
6330
6331 RANK_LINHA = g_ui.createWidget('UIButton', RANK_LIST)
6332 RANK_LINHA:setId('RANK_' ..tonumber(t[02]))
6333 RANK_LINHA:setMarginTop(03)
6334
6335 RANK_POS = g_ui.createWidget('UIButton', RANK_LINHA)
6336 RANK_POS:setId('RANK_POS')
6337 RANK_POS:setSize({width = 35, height = 18})
6338 RANK_POS:setFont('terminus-10px')
6339 RANK_POS:setTextAlign(AlignCenter)
6340 if tonumber(t[02]) > 09 then
6341 RANK_POS:setText(t[02])
6342 else
6343 RANK_POS:setText("0" ..t[02])
6344 end
6345 if tonumber(t[02]) > 10 then
6346 RANK_POS:setImageSource("/images/custom/Task/Monster_1")
6347 else
6348 RANK_POS:setImageSource("/images/custom/Task/Monster_2")
6349 end
6350
6351 RANK_NAME = g_ui.createWidget('UIButton', RANK_LINHA)
6352 RANK_NAME:setId('RANK_NAME')
6353 RANK_NAME:setSize({width = 140, height = 18})
6354 RANK_NAME:setFont('terminus-10px')
6355 RANK_NAME:setTextAlign(AlignCenter)
6356 RANK_NAME:setImageSource("/images/custom/Task/Monster_1")
6357 RANK_NAME:addAnchor(AnchorLeft, 'RANK_POS', AnchorRight)
6358 RANK_NAME:setMarginLeft(03)
6359 RANK_NAME:setText(t[03])
6360
6361 RANK_LEVEL = g_ui.createWidget('UIButton', RANK_LINHA)
6362 RANK_LEVEL:setSize({width = 60, height = 18})
6363 RANK_LEVEL:setFont('terminus-10px')
6364 RANK_LEVEL:setTextAlign(AlignCenter)
6365 RANK_LEVEL:setImageSource("/images/custom/Task/Monster_1")
6366 RANK_LEVEL:addAnchor(AnchorLeft, 'RANK_NAME', AnchorRight)
6367 RANK_LEVEL:setMarginLeft(03)
6368 RANK_LEVEL:setText("Lv." ..t[04])
6369 end
6370 if string.find(text, "@RankSkills") then
6371 local t = string.explode(text, "#")
6372 if g_app.isMobile() then
6373 return
6374 end
6375 if tonumber(t[02]) == 01 then
6376 for X = 01, 50 do
6377 RANK_ID = menuBackground:recursiveGetChildById('RANK_' ..X)
6378 if RANK_ID then
6379 RANK_ID:destroy()
6380 end
6381 end
6382 end
6383
6384 RANK_LINHA = g_ui.createWidget('UIButton', RANK_LIST)
6385 RANK_LINHA:setId('RANK_' ..tonumber(t[02]))
6386 RANK_LINHA:setMarginTop(03)
6387
6388 RANK_POS = g_ui.createWidget('UIButton', RANK_LINHA)
6389 RANK_POS:setId('RANK_POS')
6390 RANK_POS:setSize({width = 35, height = 18})
6391 RANK_POS:setFont('terminus-10px')
6392 RANK_POS:setTextAlign(AlignCenter)
6393 RANK_POS:setImageSource("/images/custom/Task/Monster_1")
6394 if tonumber(t[02]) > 09 then
6395 RANK_POS:setText(t[02])
6396 else
6397 RANK_POS:setText("0" ..t[02])
6398 end
6399
6400 RANK_NAME = g_ui.createWidget('UIButton', RANK_LINHA)
6401 RANK_NAME:setId('RANK_NAME')
6402 RANK_NAME:setSize({width = 140, height = 18})
6403 RANK_NAME:setFont('terminus-10px')
6404 RANK_NAME:setTextAlign(AlignCenter)
6405 RANK_NAME:setImageSource("/images/custom/Task/Monster_1")
6406 RANK_NAME:addAnchor(AnchorLeft, 'RANK_POS', AnchorRight)
6407 RANK_NAME:setMarginLeft(03)
6408 RANK_NAME:setText(t[03])
6409
6410 RANK_LEVEL = g_ui.createWidget('UIButton', RANK_LINHA)
6411 RANK_LEVEL:setSize({width = 60, height = 18})
6412 RANK_LEVEL:setFont('terminus-10px')
6413 RANK_LEVEL:setTextAlign(AlignCenter)
6414 RANK_LEVEL:setImageSource("/images/custom/Task/Monster_1")
6415 RANK_LEVEL:addAnchor(AnchorLeft, 'RANK_NAME', AnchorRight)
6416 RANK_LEVEL:setMarginLeft(03)
6417 if tonumber(t[04]) > 09 then
6418 RANK_LEVEL:setText(t[04])
6419 else
6420 RANK_LEVEL:setText("0" ..t[04])
6421 end
6422 end
6423 if string.find(text, "@Fendas") then
6424 local t = string.explode(text, ",")
6425 if g_app.isMobile() then
6426 return
6427 end
6428 for X = 02, 51 do
6429 FENDAS_ID = menuBackground:recursiveGetChildById('FENDAS_' ..X)
6430 if FENDAS_ID then
6431 FENDAS_ID:destroy()
6432 end
6433 end
6434
6435 local CountSeladas = 0
6436 for F = 02, 51 do
6437 FENDAS_SLOT = g_ui.createWidget('UIButton', FENDAS_LIST)
6438 FENDAS_SLOT:setTooltip(modules.game_database.onGlobalRandom(06, 00, (F - 01)))
6439 FENDAS_SLOT:setId('FENDAS_' ..F)
6440 FENDAS_IMG = g_ui.createWidget('UIButton', FENDAS_SLOT)
6441 FENDAS_IMG:setIcon("/images/custom/Task/Monster_1")
6442 FENDAS_IMG:setIconSize({width = 45, height = 15})
6443 FENDAS_IMG:setText(" Lv." ..modules.game_database.onGlobalRandom(06, 01, (F - 01)))
6444 FENDAS_IMG:setTooltip(tr(modules.game_database.onGlobalRandom(06, 00, (F - 01))))
6445 FENDAS_IMG:setFont('terminus-10px')
6446 FENDAS_IMG:setTextAlign(AlignCenter)
6447 FENDAS_IMG:addAnchor(AnchorBottom, 'parent', AnchorBottom)
6448 FENDAS_IMG:addAnchor(AnchorLeft, 'parent', AnchorLeft)
6449
6450 FENDAS_LOG = g_ui.createWidget('UIButton', FENDAS_SLOT)
6451 FENDAS_LOG:setTooltip(tr(modules.game_database.onGlobalRandom(06, 00, (F - 01))))
6452 FENDAS_LOG:setImageSource("/images/custom/UI/dimensional")
6453 FENDAS_LOG:setImageSize({width = 32, height = 32})
6454 FENDAS_LOG:addAnchor(AnchorTop, 'parent', AnchorTop)
6455 FENDAS_LOG:addAnchor(AnchorLeft, 'parent', AnchorLeft)
6456 FENDAS_LOG:setMarginTop(03)
6457 FENDAS_LOG:setMarginLeft(07)
6458 FENDAS_SLOT:setMarginTop(05)
6459 if tonumber(t[F]) == 01 then
6460 CountSeladas = CountSeladas + 01
6461 FENDAS_SLOT:setImageSource("/images/custom/Task/Monster_2")
6462 else
6463 FENDAS_SLOT:setImageSource("/images/custom/Task/Monster_1")
6464 end
6465 end
6466
6467 if CountSeladas < 20 then
6468 FENDAS_REWARD_1:setImageSource("/images/custom/Task/Monster_1")
6469 FENDAS_LABEL_1:setText(CountSeladas.. "/20")
6470 FENDAS_PROGRESS_1:setValue(CountSeladas, 0, 20)
6471 else
6472 FENDAS_REWARD_1:setImageSource("/images/custom/Task/Monster_4")
6473 FENDAS_LABEL_1:setText("20/20")
6474 FENDAS_PROGRESS_1:setValue(20, 0, 20)
6475 end
6476 if CountSeladas < 30 then
6477 FENDAS_REWARD_2:setImageSource("/images/custom/Task/Monster_1")
6478 FENDAS_LABEL_2:setText(CountSeladas.. "/30")
6479 FENDAS_PROGRESS_2:setValue(CountSeladas, 0, 30)
6480 else
6481 FENDAS_REWARD_2:setImageSource("/images/custom/Task/Monster_4")
6482 FENDAS_LABEL_2:setText("30/30")
6483 FENDAS_PROGRESS_2:setValue(30, 0, 30)
6484 end
6485 if CountSeladas < 40 then
6486 FENDAS_REWARD_3:setImageSource("/images/custom/Task/Monster_1")
6487 FENDAS_LABEL_3:setText(CountSeladas.. "/40")
6488 FENDAS_PROGRESS_3:setValue(CountSeladas, 0, 40)
6489 else
6490 FENDAS_REWARD_3:setImageSource("/images/custom/Task/Monster_4")
6491 FENDAS_LABEL_3:setText("40/40")
6492 FENDAS_PROGRESS_3:setValue(40, 0, 40)
6493 end
6494 if CountSeladas < 50 then
6495 FENDAS_REWARD_4:setImageSource("/images/custom/Task/Monster_1")
6496 FENDAS_LABEL_4:setText(CountSeladas.. "/50")
6497 FENDAS_PROGRESS_4:setValue(CountSeladas, 0, 50)
6498 else
6499 FENDAS_REWARD_4:setImageSource("/images/custom/Task/Monster_4")
6500 FENDAS_LABEL_4:setText("50/50")
6501 FENDAS_PROGRESS_4:setValue(50, 0, 50)
6502 end
6503 end
6504 if string.find(text, "@PlayersOnline") then
6505 local t = string.explode(text, "#")
6506 if g_app.isMobile() then
6507 return
6508 end
6509 if tonumber(t[02]) == 01 then
6510 for X = 01, 1000 do
6511 ONLINE_ID = menuBackground:recursiveGetChildById('ONLINE_' ..X)
6512 if ONLINE_ID then
6513 ONLINE_ID:destroy()
6514 else
6515 break
6516 end
6517 end
6518 end
6519
6520 local localPlayer = g_game.getLocalPlayer()
6521 ONLINE_LIN = g_ui.createWidget('UIButton', ONLINE_LIST)
6522 ONLINE_LIN:setId('ONLINE_' ..tonumber(t[02]))
6523 ONLINE_LIN:setMarginTop(03)
6524
6525 ONLINE_NAME = g_ui.createWidget('UIButton', ONLINE_LIN)
6526 ONLINE_NAME:setId('ONLINE_NAME')
6527 ONLINE_NAME:setSize({width = 147, height = 30})
6528 ONLINE_NAME:setFont('terminus-10px')
6529 ONLINE_NAME:setTextAlign(AlignCenter)
6530 ONLINE_NAME:addAnchor(AnchorLeft, 'parent', AnchorLeft)
6531 ONLINE_NAME:addAnchor(AnchorTop, 'parent', AnchorTop)
6532 ONLINE_NAME:setImageSource("/images/custom/Task/Monster_1")
6533 ONLINE_NAME:setText(t[03])
6534 if tonumber(t[06]) == 00 then
6535 ONLINE_NAME:setColor('white')
6536 else
6537 ONLINE_NAME:setColor('orange')
6538 end
6539
6540 ONLINE_LEVEL = g_ui.createWidget('UIButton', ONLINE_LIN)
6541 ONLINE_LEVEL:setId('ONLINE_LEVEL')
6542 ONLINE_LEVEL:setSize({width = 50, height = 30})
6543 ONLINE_LEVEL:setFont('terminus-10px')
6544 ONLINE_LEVEL:setTextAlign(AlignCenter)
6545 ONLINE_LEVEL:setImageSource("/images/custom/Task/Monster_2")
6546 ONLINE_LEVEL:addAnchor(AnchorLeft, 'ONLINE_NAME', AnchorRight)
6547 ONLINE_LEVEL:setMarginLeft(03)
6548 ONLINE_LEVEL:setText("Lv." ..t[04])
6549
6550 ONLINE_MENU = g_ui.createWidget('UIButton', ONLINE_LIN)
6551 ONLINE_MENU:setSize({width = 30, height = 30})
6552 ONLINE_MENU:setText("...")
6553 ONLINE_MENU:addAnchor(AnchorLeft, 'ONLINE_LEVEL', AnchorRight)
6554 ONLINE_MENU:setMarginLeft(03)
6555 if localPlayer:getName() == t[03] then
6556 ONLINE_MENU:setImageSource("/images/custom/Task/Monster_1")
6557 ONLINE_MENU.onClick = function() end
6558 else
6559 ONLINE_MENU:setImageSource("/images/custom/Task/Monster_3")
6560 ONLINE_MENU.onClick = function()
6561 local playerName = t[03]
6562 local menu = g_ui.createWidget('PopupMenu')
6563 menu:addOption(tr("Ver Equipamentos"), function() g_game.talk(g_game.talk("!spy " ..playerName)) end)
6564 menu:addOption(tr("Enviar Mensagem"), function() g_game.openPrivateChannel(playerName) end)
6565 menu:addOption("Add. Vip List", function() g_game.addVip(playerName) end)
6566 menu:addOption(tr("Copiar Nome"), function()
6567 g_window.setClipboardText(playerName)
6568 modules.game_adm.onSetAdmName(playerName)
6569 end)
6570 menu:display()
6571 end
6572 end
6573
6574 ONLINE_LABEL:setText(tr("Jogadores Online").. ": " ..t[02])
6575 end
6576 if string.find(text, "@Analyser") then
6577 local t = string.explode(text, "#")
6578 if AnalyserOn == true then
6579 if tonumber(t[02]) == 01 then
6580 AnalyserEXP = AnalyserEXP + tonumber(t[03])
6581 AnalyserRefresh()
6582 end
6583 if tonumber(t[02]) == 02 then
6584 local ITEM_ID = tonumber(t[03])
6585 local ITEM_QNT = tonumber(t[04])
6586 local ITEM_RARE = tonumber(t[05])
6587 if modules.game_database.getItemInfo(ITEM_ID, 09) ~= nil then
6588 local checkSameItem, posItem = false, 0
6589 for X = 01, 100 do
6590 if ANALYSER_ITEMS[X].UID == ITEM_ID then
6591 if ANALYSER_ITEMS[X].RARE == ITEM_RARE then
6592 checkSameItem = true
6593 posItem = X
6594 break
6595 end
6596 end
6597 end
6598
6599 if checkSameItem then
6600 ANALYSER_ITEMS[posItem].UID = ITEM_ID
6601 ANALYSER_ITEMS[posItem].QNT = ANALYSER_ITEMS[posItem].QNT + ITEM_QNT
6602 else
6603 for X = 01, 100 do
6604 if ANALYSER_ITEMS[X].UID == 0000 then
6605 ANALYSER_ITEMS[X].UID = ITEM_ID
6606 ANALYSER_ITEMS[X].QNT = ITEM_QNT
6607 ANALYSER_ITEMS[X].RARE = ITEM_RARE
6608 ANALYSER_ITEMS[0000].TOTAL = ANALYSER_ITEMS[0000].TOTAL + 01
6609 break
6610 end
6611 end
6612 end
6613 local ITEM_PRICE = modules.game_database.getItemInfo(ITEM_ID, 09)
6614 AnalyserLoot = AnalyserLoot + (ITEM_PRICE * ITEM_QNT)
6615 onLootRefresh()
6616 AnalyserRefresh()
6617 end
6618 end
6619 if tonumber(t[02]) == 03 then
6620 local ITEM_ID = 3001
6621 local ITEM_QNT = tonumber(t[03])
6622 local checkSameItem, posItem = false, 0
6623 for X = 01, 100 do
6624 if ANALYSER_ITEMS[X].UID == ITEM_ID then
6625 checkSameItem = true
6626 posItem = X
6627 break
6628 end
6629 end
6630
6631 if checkSameItem then
6632 ANALYSER_ITEMS[posItem].UID = ITEM_ID
6633 ANALYSER_ITEMS[posItem].QNT = ANALYSER_ITEMS[posItem].QNT + ITEM_QNT
6634 else
6635 for X = 01, 100 do
6636 if ANALYSER_ITEMS[X].UID == 0000 then
6637 ANALYSER_ITEMS[X].UID = ITEM_ID
6638 ANALYSER_ITEMS[X].QNT = ITEM_QNT
6639 ANALYSER_ITEMS[X].RARE = 00
6640 ANALYSER_ITEMS[0000].TOTAL = ANALYSER_ITEMS[0000].TOTAL + 01
6641 break
6642 end
6643 end
6644 end
6645 AnalyserLoot = AnalyserLoot + ITEM_QNT
6646 AnalyserRefresh()
6647 onLootRefresh()
6648 end
6649 if tonumber(t[02]) == 04 then
6650 AnalyserSupplies = AnalyserSupplies + tonumber(t[03])
6651 AnalyserRefresh()
6652 end
6653 if tonumber(t[02]) == 05 then
6654 AnalyserKill = AnalyserKill + 01
6655 AnalyserRefresh()
6656 end
6657 end
6658 end
6659 if string.find(text, "@OnHunt") then
6660 local t = string.explode(text, " ")
6661 if tonumber(t[02]) == 00 then
6662 AnalyserOn = false
6663 HUNT_START:setText(tr("Iniciar"))
6664 HUNT_PAUSE:disable()
6665 HUNT_PAUSE:setText('-')
6666 HUNT_COMPACT_PAUSE:disable()
6667 HUNT_COMPACT_PAUSE:setText('-')
6668 HUNT_START:setImageSource("/images/custom/UI/button_2")
6669 HUNT_COMPACT_START:setText("Iniciar")
6670 HUNT_COMPACT_START:setImageSource("/images/custom/UI/button_2")
6671 else
6672 AnalyserOn = true
6673 HUNT_START:setText(tr("Redefinir"))
6674 HUNT_PAUSE:enable()
6675 HUNT_PAUSE:setText(tr('Pausar'))
6676 HUNT_COMPACT_PAUSE:enable()
6677 HUNT_COMPACT_PAUSE:setText(tr('Pausar'))
6678 HUNT_START:setImageSource("/images/custom/UI/button_3")
6679 HUNT_COMPACT_START:setText("Redefinir")
6680 HUNT_COMPACT_START:setImageSource("/images/custom/UI/button_3")
6681 end
6682
6683 AnalyserTimer()
6684 end
6685 if string.find(text, "@CompactAnalyser") then
6686 AnalyserBox:show()
6687 end
6688 if string.find(text, "@ToolsLoad") then
6689 local t = string.explode(text, " ")
6690 LOJA_REMOTA = tonumber(t[02])
6691 NEXUS_REMOTO = tonumber(t[03])
6692 DESCONTRUIR_EVENT = tonumber(t[04])
6693
6694 if LOJA_REMOTA > 00 then
6695 LOJA_REM_BT:show()
6696 LOJA_REM_BT.onClick = function()
6697 g_game.talk(g_game.talk("!inventario 46"))
6698 return
6699 end
6700 else
6701 LOJA_REM_BT:hide()
6702 LOJA_REM_BT.onClick = function() end
6703 modules.game_centralbox.closer()
6704 end
6705 if NEXUS_REMOTO > 00 then
6706 NexusRemote:setVisible(true)
6707 else
6708 NexusRemote:setVisible(false)
6709 modules.game_nexusbox.closer()
6710 end
6711 end
6712 if string.find(text, "@CriptLoad") then
6713 local t = string.explode(text, "-")
6714 local localPlayer = g_game.getLocalPlayer()
6715
6716 if g_app.isMobile() then
6717 return
6718 end
6719 if tonumber(t[02]) == 01 then
6720 if tonumber(t[03]) == 01 then
6721 for _ERASE = 01, #HISTORY_CRIPTO do
6722 HISTORY_CRIPTO[_ERASE].ID = 0000
6723 HISTORY_CRIPTO[_ERASE].ACCOUNT_ID = 0000
6724 HISTORY_CRIPTO[_ERASE].NAME = ""
6725 HISTORY_CRIPTO[_ERASE].EMAIL = ""
6726 HISTORY_CRIPTO[_ERASE].BANK = ""
6727 HISTORY_CRIPTO[_ERASE].CRIPTOMOEDA = 0000
6728 HISTORY_CRIPTO[_ERASE].PRICE = ""
6729 HISTORY_CRIPTO[_ERASE].VALOR = ""
6730 HISTORY_CRIPTO[_ERASE].STATUS = 0000
6731 HISTORY_CRIPTO[_ERASE].OBS = ""
6732 end
6733 end
6734 for _ADD = 01, #HISTORY_CRIPTO do
6735 if HISTORY_CRIPTO[_ADD].ID == 0000 then
6736 HISTORY_CRIPTO[_ADD].ID = tonumber(t[04])
6737 HISTORY_CRIPTO[_ADD].ACCOUNT_ID = tonumber(t[05])
6738 HISTORY_CRIPTO[_ADD].NAME = t[06]
6739 HISTORY_CRIPTO[_ADD].EMAIL = t[07]
6740 HISTORY_CRIPTO[_ADD].BANK = t[08]
6741 HISTORY_CRIPTO[_ADD].CRIPTOMOEDA = tonumber(t[09])
6742 HISTORY_CRIPTO[_ADD].PRICE = t[10]
6743 HISTORY_CRIPTO[_ADD].VALOR = t[11]
6744 HISTORY_CRIPTO[_ADD].STATUS = tonumber(t[12])
6745 HISTORY_CRIPTO[_ADD].OBS = t[13]
6746 break
6747 end
6748 end
6749 else
6750 for _DEL = 01, #HISTORY_CRIPTO do
6751 DEL_CRIPT = menuBackground:recursiveGetChildById('HistCript_' .._DEL)
6752 if DEL_CRIPT then
6753 DEL_CRIPT:destroy()
6754 else
6755 break
6756 end
6757 end
6758 for _LOAD = 01, #HISTORY_CRIPTO do
6759 if HISTORY_CRIPTO[_LOAD].ID > 0000 then
6760 HIST_REQUEST = g_ui.createWidget('UIButton', REQUEST_PANEL)
6761 HIST_REQUEST:setId('HistCript_' .._LOAD)
6762 HIST_REQUEST:setImageSource("/images/custom/Task/Monster_1")
6763 HIST_REQUEST:setOpacity('0.8')
6764 HIST_REQUEST:setMarginTop(05)
6765 HIST_REQUEST.onHoverChange = function(widget, hoverState)
6766 if hoverState then
6767 widget:setOpacity('1.0')
6768 else
6769 widget:setOpacity('0.8')
6770 end
6771 end
6772
6773 REQUEST_IMG_STATUS = g_ui.createWidget('UIButton', HIST_REQUEST)
6774 REQUEST_IMG_STATUS:setId('imgStatus_' .._LOAD)
6775 REQUEST_IMG_STATUS:setSize({width = 44, height = 44})
6776 REQUEST_IMG_STATUS:addAnchor(AnchorTop, 'parent', AnchorTop)
6777 REQUEST_IMG_STATUS:addAnchor(AnchorLeft, 'parent', AnchorLeft)
6778 REQUEST_IMG_STATUS:setMarginTop(03)
6779 REQUEST_IMG_STATUS:setMarginLeft(10)
6780 REQUEST_IMG_STATUS:setPhantom(true)
6781
6782 REQUEST_TXT_STATUS = g_ui.createWidget('UIButton', HIST_REQUEST)
6783 REQUEST_TXT_STATUS:setId('txtStatus_' .._LOAD)
6784 REQUEST_TXT_STATUS:setFont('terminus-10px')
6785 REQUEST_TXT_STATUS:setTextAlign(AlignLeft)
6786 REQUEST_TXT_STATUS:setSize({width = 150, height = 15})
6787 REQUEST_TXT_STATUS:addAnchor(AnchorTop, 'parent', AnchorTop)
6788 REQUEST_TXT_STATUS:addAnchor(AnchorLeft, 'imgStatus_' .._LOAD, AnchorRight)
6789 REQUEST_TXT_STATUS:setMarginTop(05)
6790 REQUEST_TXT_STATUS:setMarginLeft(20)
6791 REQUEST_TXT_STATUS:setPhantom(true)
6792
6793 REQUEST_ID = g_ui.createWidget('UIButton', HIST_REQUEST)
6794 REQUEST_ID:setId('txtIDStatus_' .._LOAD)
6795 REQUEST_ID:setFont('terminus-10px')
6796 REQUEST_ID:setText("Pedido ID: " ..HISTORY_CRIPTO[_LOAD].ID)
6797 REQUEST_ID:setTextAlign(AlignLeft)
6798 REQUEST_ID:setSize({width = 150, height = 15})
6799 REQUEST_ID:addAnchor(AnchorTop, 'txtStatus_' .._LOAD, AnchorBottom)
6800 REQUEST_ID:addAnchor(AnchorLeft, 'imgStatus_' .._LOAD, AnchorRight)
6801 REQUEST_ID:setMarginLeft(20)
6802 REQUEST_ID:setPhantom(true)
6803
6804 REQUEST_VALOR = g_ui.createWidget('UIButton', HIST_REQUEST)
6805 REQUEST_VALOR:setId('txtValorStatus_' .._LOAD)
6806 REQUEST_VALOR:setFont('terminus-10px')
6807 REQUEST_VALOR:setText("Valor: R$ " ..HISTORY_CRIPTO[_LOAD].VALOR)
6808 REQUEST_VALOR:setTextAlign(AlignLeft)
6809 REQUEST_VALOR:setSize({width = 150, height = 15})
6810 REQUEST_VALOR:addAnchor(AnchorTop, 'txtIDStatus_' .._LOAD, AnchorBottom)
6811 REQUEST_VALOR:addAnchor(AnchorLeft, 'imgStatus_' .._LOAD, AnchorRight)
6812 REQUEST_VALOR:setMarginLeft(20)
6813 REQUEST_VALOR:setPhantom(true)
6814
6815 if HISTORY_CRIPTO[_LOAD].STATUS == 01 then -- EM ANALISE
6816 REQUEST_IMG_STATUS:setImageSource("/images/custom/UI/loading")
6817 REQUEST_TXT_STATUS:setText("Em Analise...")
6818 REQUEST_TXT_STATUS:setColor("yellow")
6819 elseif HISTORY_CRIPTO[_LOAD].STATUS == 02 then -- ALERTA (DIVERG�NCIA)
6820 REQUEST_IMG_STATUS:setImageSource("/images/custom/UI/alert")
6821 REQUEST_TXT_STATUS:setText("Erro Encontrado")
6822 REQUEST_TXT_STATUS:setColor("black")
6823 HIST_REQUEST:setImageSource("/images/custom/Task/Monster_2")
6824 elseif HISTORY_CRIPTO[_LOAD].STATUS == 03 then -- CANCELADO
6825 REQUEST_IMG_STATUS:setImageSource("/images/custom/UI/block")
6826 REQUEST_TXT_STATUS:setText("Pagamento Cancelado")
6827 REQUEST_TXT_STATUS:setColor("white")
6828 HIST_REQUEST:setImageSource("/images/custom/Task/Monster_5")
6829 elseif HISTORY_CRIPTO[_LOAD].STATUS == 04 then -- APROVADO (PAGO)
6830 REQUEST_IMG_STATUS:setImageSource("/images/custom/UI/confirm")
6831 REQUEST_TXT_STATUS:setText("Pagamento Realizado")
6832 REQUEST_TXT_STATUS:setColor("white")
6833 HIST_REQUEST:setImageSource("/images/custom/Task/Monster_4")
6834 HIST_REQUEST.onClick = function() end
6835 end
6836
6837 local INDEX_SAVE = _LOAD
6838 HIST_REQUEST.onClick = function() onRequestPay(03, INDEX_SAVE) end
6839 end
6840 end
6841
6842 CriptoMoeda = tonumber(t[03])
6843 SaldoBlacklist = tonumber(t[04])
6844 HIGH_PLAYER_ACCOUNT = t[05]
6845 if CriptoMoeda < 00 then CriptoMoeda = 0 end
6846 CRIPT_SALDO:setText(CriptoMoeda)
6847 SALDO_BLACKMARKET:setText(SaldoBlacklist)
6848 SALDO_BMARKET:setText(SaldoBlacklist)
6849 if localPlayer:getLevel() < 100 then
6850 CriptoPrice = 0.05
6851 elseif localPlayer:getLevel() < 200 then
6852 CriptoPrice = 0.06
6853 elseif localPlayer:getLevel() < 300 then
6854 CriptoPrice = 0.07
6855 elseif localPlayer:getLevel() < 400 then
6856 CriptoPrice = 0.08
6857 elseif localPlayer:getLevel() < 500 then
6858 CriptoPrice = 0.09
6859 elseif localPlayer:getLevel() < 600 then
6860 CriptoPrice = 0.10
6861 elseif localPlayer:getLevel() < 700 then
6862 CriptoPrice = 0.11
6863 elseif localPlayer:getLevel() < 800 then
6864 CriptoPrice = 0.12
6865 elseif localPlayer:getLevel() < 900 then
6866 CriptoPrice = 0.13
6867 elseif localPlayer:getLevel() < 999 then
6868 CriptoPrice = 0.14
6869 elseif localPlayer:getLevel() > 999 then
6870 CriptoPrice = 0.15
6871 else
6872 CriptoPrice = 0
6873 end
6874
6875 CRIPT_TXT:setText(tr("Valor da criptomoeda baseado\nem seu nivel atual").. ": " ..tr("R$").. " " ..CriptoPrice.. ".")
6876 DinRealCalculo = CriptoMoeda * CriptoPrice
6877 CRIPT_VALOR:setText(tr("R$").. " " ..mask_number(DinRealCalculo))
6878 CRIPT_PANEL:show()
6879 LOAD_REQUEST:hide()
6880 end
6881 end
6882 if string.find(text, "@LoadPix") then
6883 local t = string.explode(text, "-")
6884 if g_app.isMobile() then
6885 return
6886 end
6887 PIX_REAL_NAME = t[02]
6888 PIX_EMAIL = t[03]
6889 PIX_BANK = t[04]
6890
6891 PIX_LABEL_NAME:setText(PIX_REAL_NAME)
6892 PIX_LABEL_EMAIL:setText(PIX_EMAIL)
6893 PIX_LABEL_BANK:setText(PIX_BANK)
6894 LOAD_REQUEST:hide()
6895 REQUEST_STEP_1:show()
6896 REQUEST_PAY_PANEL:show()
6897 end
6898 if string.find(text, "@StatusCript") then
6899 local t = string.explode(text, " ")
6900 local ERRO_STATUS = tonumber(t[02])
6901
6902 if ERRO_STATUS == 01 then
6903 scheduleEvent(function()
6904 LOAD_REQUEST:hide()
6905 ACTIVE_WINDOW:hide()
6906 g_game.talk(g_game.talk("!inventario 37"))
6907 CRIPT_PANEL:show()
6908 modules.game_interface.onLoginAdvice("Solicitacao de pagamento registrada com sucesso.")
6909 end, 500)
6910 elseif ERRO_STATUS == 02 then
6911 scheduleEvent(function()
6912 LOAD_REQUEST:hide()
6913 ACTIVE_WINDOW:hide()
6914 g_game.talk(g_game.talk("!inventario 37"))
6915 CRIPT_PANEL:show()
6916 modules.game_interface.onLoginAdvice("Erro inesperado\nFalha ao registrar solicitacao.")
6917 end, 500)
6918 elseif ERRO_STATUS == 03 then
6919 scheduleEvent(function()
6920 LOAD_REQUEST:hide()
6921 ACTIVE_WINDOW:hide()
6922 g_game.talk(g_game.talk("!inventario 37"))
6923 CRIPT_PANEL:show()
6924 modules.game_interface.onLoginAdvice("Solicitacao editada com sucesso.")
6925 end, 500)
6926 elseif ERRO_STATUS == 04 then
6927 scheduleEvent(function()
6928 LOAD_REQUEST:hide()
6929 ACTIVE_WINDOW:hide()
6930 g_game.talk(g_game.talk("!inventario 37"))
6931 CRIPT_PANEL:show()
6932 modules.game_interface.onLoginAdvice("Erro inesperado\nFalha ao editar sua solicitacao.")
6933 end, 500)
6934 elseif ERRO_STATUS == 05 then
6935 scheduleEvent(function()
6936 LOAD_REQUEST:hide()
6937 ACTIVE_WINDOW:hide()
6938 g_game.talk(g_game.talk("!inventario 37"))
6939 CRIPT_PANEL:show()
6940 modules.game_interface.onLoginAdvice("Solicitacao cancelada com sucesso.")
6941 end, 500)
6942 end
6943 end
6944 if string.find(text, "@closedBackpack") then
6945 CloseBackpack()
6946 end
6947 if string.find(text, "@PassivesLoad") then
6948 local t = string.explode(text, ",")
6949 local MAX_PASSIVES = #PASSIVES
6950 for CLEAN = 01, MAX_PASSIVES do
6951 PASSIVES[CLEAN].STORAGE = 0
6952 end
6953 for X = 02, (MAX_PASSIVES + 01) do
6954 if tonumber(t[X]) > 00 then
6955 local Level = t[X]
6956 X = X - 01
6957 PASSIVES[X].STORAGE = tonumber(Level)
6958 end
6959 end
6960 if PASSIVE_BOX:isVisible() then
6961 if PassiveCategoria < 01 or PassiveCategoria > 04 then
6962 PassiveCategoria = 01
6963 end
6964 onLoadPassives(PassiveCategoria)
6965 end
6966 end
6967 if string.find(text, "@PassiveBoxClose") then
6968 PASSIVE_BOX:hide()
6969 end
6970 if string.find(text, "@IndividualStatus") then
6971 local t = string.explode(text, " ")
6972 local healthPercent = math.floor(g_game.getLocalPlayer():getHealthPercent())
6973 if tonumber(t[02]) == 01 then -- ESQUIVA
6974 MOBILE_STATUS_ESQ = modules.game_interface.onMobileWindow(33)
6975 if tonumber(t[03]) > 00 then
6976 local Und = PASSIVES[09].POWER_BASE + (PASSIVES[09].POWER_FOR_LEVEL * (PASSIVES[09].STORAGE - 01))
6977 if DAILY_EVENT == 02 then -- PASSIVA DAS CORES
6978 if PASS_EVENT == PASSIVES[09].CATEGORY then
6979 Und = Und + PASSIVES[09].BOOST
6980 end
6981 end
6982 if PASSIVES[50].STORAGE > 01 and PA_1 == 50 or PA_2 == 50 or PA_3 == 50 or PA_4 == 50 or PA_5 == 50 or PA_6 == 50 then
6983 if healthPercent > 70 then
6984 Und = Und + PASSIVES[50].POWER_BASE + (PASSIVES[50].POWER_FOR_LEVEL * (PASSIVES[50].STORAGE - 01))
6985 if DAILY_EVENT == 02 then -- PASSIVA DAS CORES
6986 if PASS_EVENT == PASSIVES[50].CATEGORY then
6987 Und = Und + PASSIVES[50].BOOST
6988 end
6989 end
6990 end
6991 end
6992 TXT_ESQ:setText(modules.game_database.getStatus(02) + Und)
6993 TXT_ESQ:setColor('green')
6994
6995 MOBILE_STATUS_ESQ:setText(modules.game_database.getStatus(02) + Und)
6996 MOBILE_STATUS_ESQ:setColor('green')
6997 else
6998 local Und = modules.game_database.getStatus(02)
6999 if PASSIVES[50].STORAGE > 01 and PA_1 == 50 or PA_2 == 50 or PA_3 == 50 or PA_4 == 50 or PA_5 == 50 or PA_6 == 50 then
7000 if healthPercent > 70 then
7001 Und = Und + PASSIVES[50].POWER_BASE + (PASSIVES[50].POWER_FOR_LEVEL * (PASSIVES[50].STORAGE - 01))
7002 if DAILY_EVENT == 02 then -- PASSIVA DAS CORES
7003 if PASS_EVENT == PASSIVES[50].CATEGORY then
7004 Und = Und + PASSIVES[50].BOOST
7005 end
7006 end
7007 MOBILE_STATUS_ESQ:setColor('green')
7008 TXT_ESQ:setColor('green')
7009 else
7010 MOBILE_STATUS_ESQ:setColor('white')
7011 TXT_ESQ:setColor('white')
7012 end
7013 else
7014 TXT_ESQ:setColor('white')
7015 MOBILE_STATUS_ESQ:setColor('white')
7016 end
7017
7018 TXT_ESQ:setText(Und)
7019 MOBILE_STATUS_ESQ:setText(Und)
7020 end
7021 end
7022 if tonumber(t[02]) == 02 then -- DEFESA
7023 MOBILE_STATUS_DEF = modules.game_interface.onMobileWindow(32)
7024 if tonumber(t[03]) > 00 then
7025 local Und = PASSIVES[19].POWER_BASE + (PASSIVES[19].POWER_FOR_LEVEL * (PASSIVES[19].STORAGE - 01))
7026 if DAILY_EVENT == 02 then -- PASSIVA DAS CORES
7027 if PASS_EVENT == PASSIVES[19].CATEGORY then
7028 Und = Und + PASSIVES[19].BOOST
7029 end
7030 end
7031 if PASSIVES[62].STORAGE > 01 and PA_1 == 62 or PA_2 == 62 or PA_3 == 62 or PA_4 == 62 or PA_5 == 62 or PA_6 == 62 then
7032 if healthPercent > 70 then
7033 Und = Und + PASSIVES[62].POWER_BASE + (PASSIVES[62].POWER_FOR_LEVEL * (PASSIVES[62].STORAGE - 01))
7034 if DAILY_EVENT == 02 then -- PASSIVA DAS CORES
7035 if PASS_EVENT == PASSIVES[62].CATEGORY then
7036 Und = Und + PASSIVES[62].BOOST
7037 end
7038 end
7039 end
7040 end
7041
7042 TXT_DEF:setText(modules.game_database.getStatus(01) + Und)
7043 TXT_DEF:setColor('green')
7044
7045 MOBILE_STATUS_DEF:setText(modules.game_database.getStatus(01) + Und)
7046 MOBILE_STATUS_DEF:setColor('green')
7047 else
7048 local Und = modules.game_database.getStatus(01)
7049 if PASSIVES[62].STORAGE > 01 and PA_1 == 62 or PA_2 == 62 or PA_3 == 62 or PA_4 == 62 or PA_5 == 62 or PA_6 == 62 then
7050 if healthPercent > 70 then
7051 Und = Und + PASSIVES[62].POWER_BASE + (PASSIVES[62].POWER_FOR_LEVEL * (PASSIVES[62].STORAGE - 01))
7052 if DAILY_EVENT == 02 then -- PASSIVA DAS CORES
7053 if PASS_EVENT == PASSIVES[62].CATEGORY then
7054 Und = Und + PASSIVES[62].BOOST
7055 end
7056 end
7057 TXT_DEF:setColor('green')
7058 MOBILE_STATUS_DEF:setColor('green')
7059 else
7060 TXT_DEF:setColor('white')
7061 MOBILE_STATUS_DEF:setColor('white')
7062 end
7063 else
7064 TXT_DEF:setColor('white')
7065 MOBILE_STATUS_DEF:setColor('white')
7066 end
7067 TXT_DEF:setText(Und)
7068 MOBILE_STATUS_DEF:setText(Und)
7069 end
7070 end
7071 end
7072 if string.find(text, "@StatusPassive") then
7073 local t = string.explode(text, " ")
7074 local POIN = tonumber(t[02])
7075 local localPlayer = g_game.getLocalPlayer()
7076 PA_1 = tonumber(t[03])
7077 PA_2 = tonumber(t[04])
7078 PA_3 = tonumber(t[05])
7079 PA_4 = tonumber(t[06])
7080 PA_5 = tonumber(t[07])
7081 PA_6 = tonumber(t[08])
7082 EVEN = tonumber(t[09])
7083
7084 MOBILE_LABEL_DIST = modules.game_interface.onMobileWindow(117)
7085 MOBILE_PASSIVE_1 = modules.game_interface.onMobileWindow(119)
7086 MOBILE_PASSIVE_2 = modules.game_interface.onMobileWindow(120)
7087 MOBILE_PASSIVE_3 = modules.game_interface.onMobileWindow(121)
7088 MOBILE_PASSIVE_4 = modules.game_interface.onMobileWindow(122)
7089 MOBILE_PASSIVE_5 = modules.game_interface.onMobileWindow(123)
7090 MOBILE_PASSIVE_6 = modules.game_interface.onMobileWindow(124)
7091 MOBILE_TXT_PASSIVE_1 = modules.game_interface.onMobileWindow(152)
7092 MOBILE_TXT_PASSIVE_2 = modules.game_interface.onMobileWindow(153)
7093 MOBILE_TXT_PASSIVE_3 = modules.game_interface.onMobileWindow(154)
7094 MOBILE_TXT_PASSIVE_4 = modules.game_interface.onMobileWindow(155)
7095 MOBILE_TXT_PASSIVE_5 = modules.game_interface.onMobileWindow(156)
7096 MOBILE_TXT_PASSIVE_6 = modules.game_interface.onMobileWindow(157)
7097
7098 MOBILE_PASSIVE_1:setIconSize({width = 32, height = 32})
7099 MOBILE_PASSIVE_1:setIconOffset('23 06')
7100 MOBILE_PASSIVE_2:setIconSize({width = 32, height = 32})
7101 MOBILE_PASSIVE_2:setIconOffset('23 06')
7102 MOBILE_PASSIVE_3:setIconSize({width = 32, height = 32})
7103 MOBILE_PASSIVE_3:setIconOffset('23 06')
7104 MOBILE_PASSIVE_4:setIconSize({width = 32, height = 32})
7105 MOBILE_PASSIVE_4:setIconOffset('23 06')
7106 MOBILE_PASSIVE_5:setIconSize({width = 32, height = 32})
7107 MOBILE_PASSIVE_5:setIconOffset('23 06')
7108 MOBILE_PASSIVE_6:setIconSize({width = 32, height = 32})
7109 MOBILE_PASSIVE_6:setIconOffset('23 06')
7110
7111 BT_PANEL_PASSIVE_1:setIconSize({width = 32, height = 32})
7112 BT_PANEL_PASSIVE_1:setIconOffset('23 03')
7113 BT_PANEL_PASSIVE_2:setIconSize({width = 32, height = 32})
7114 BT_PANEL_PASSIVE_2:setIconOffset('23 03')
7115 BT_PANEL_PASSIVE_3:setIconSize({width = 32, height = 32})
7116 BT_PANEL_PASSIVE_3:setIconOffset('23 03')
7117 BT_PANEL_PASSIVE_4:setIconSize({width = 32, height = 32})
7118 BT_PANEL_PASSIVE_4:setIconOffset('23 03')
7119 BT_PANEL_PASSIVE_5:setIconSize({width = 32, height = 32})
7120 BT_PANEL_PASSIVE_5:setIconOffset('23 03')
7121 BT_PANEL_PASSIVE_6:setIconSize({width = 32, height = 32})
7122 BT_PANEL_PASSIVE_6:setIconOffset('23 03')
7123
7124 if PASSIVES[PA_1] then
7125 local INDEX = PA_1
7126 if PASSIVES[INDEX].STORAGE > 01 then
7127 BT_PANEL_PASSIVE_1:setTooltip(tr(PASSIVES[INDEX].DESC).. "\n" ..tr(PASSIVES[INDEX].POWER_INFO).. " " ..(PASSIVES[INDEX].POWER_BASE + (PASSIVES[INDEX].POWER_FOR_LEVEL * (PASSIVES[INDEX].STORAGE - 01))).. "" ..PASSIVES[INDEX].POWER_SINAL)
7128 MOBILE_PASSIVE_1:setTooltip(tr(PASSIVES[INDEX].DESC).. "\n" ..tr(PASSIVES[INDEX].POWER_INFO).. " " ..(PASSIVES[INDEX].POWER_BASE + (PASSIVES[INDEX].POWER_FOR_LEVEL * (PASSIVES[INDEX].STORAGE - 01))).. "" ..PASSIVES[INDEX].POWER_SINAL)
7129 else
7130 BT_PANEL_PASSIVE_1:setTooltip(tr(PASSIVES[INDEX].DESC).. "\n" ..tr(PASSIVES[INDEX].POWER_INFO).. " " ..PASSIVES[INDEX].POWER_BASE.. "" ..PASSIVES[INDEX].POWER_SINAL)
7131 MOBILE_PASSIVE_1:setTooltip(tr(PASSIVES[INDEX].DESC).. "\n" ..tr(PASSIVES[INDEX].POWER_INFO).. " " ..PASSIVES[INDEX].POWER_BASE.. "" ..PASSIVES[INDEX].POWER_SINAL)
7132 end
7133
7134 BT_PANEL_PASSIVE_1:setImageSource("/images/custom/UI/cat_" ..PASSIVES[PA_1].CATEGORY)
7135 MOBILE_PASSIVE_1:setImageSource("/images/custom/UI/cat_" ..PASSIVES[PA_1].CATEGORY)
7136 if DAILY_EVENT == 02 then
7137 if PASS_EVENT == PASSIVES[PA_1].CATEGORY then
7138 BT_PANEL_PASSIVE_1:setImageSource("/images/custom/UI/cat_" ..PASSIVES[PA_1].CATEGORY.. "_boost")
7139 MOBILE_PASSIVE_1:setImageSource("/images/custom/UI/cat_" ..PASSIVES[PA_1].CATEGORY.. "_boost")
7140
7141 if PASSIVES[INDEX].STORAGE > 01 then
7142 BT_PANEL_PASSIVE_1:setTooltip(tr(PASSIVES[INDEX].DESC).. "\n" ..tr(PASSIVES[INDEX].POWER_INFO).. " " ..(PASSIVES[INDEX].POWER_BASE + (PASSIVES[INDEX].POWER_FOR_LEVEL * (PASSIVES[INDEX].STORAGE - 01)) + PASSIVES[INDEX].BOOST).. "" ..PASSIVES[INDEX].POWER_SINAL.. " (" ..(PASSIVES[INDEX].POWER_BASE + (PASSIVES[INDEX].POWER_FOR_LEVEL * (PASSIVES[INDEX].STORAGE - 01)).. " + " ..PASSIVES[INDEX].BOOST).. ")")
7143 MOBILE_PASSIVE_1:setTooltip(tr(PASSIVES[INDEX].DESC).. "\n" ..tr(PASSIVES[INDEX].POWER_INFO).. " " ..(PASSIVES[INDEX].POWER_BASE + (PASSIVES[INDEX].POWER_FOR_LEVEL * (PASSIVES[INDEX].STORAGE - 01))).. "" ..PASSIVES[INDEX].POWER_SINAL.. " (" ..(PASSIVES[INDEX].POWER_BASE + (PASSIVES[INDEX].POWER_FOR_LEVEL * (PASSIVES[INDEX].STORAGE - 01)).. " + " ..PASSIVES[INDEX].BOOST).. ")")
7144 else
7145 BT_PANEL_PASSIVE_1:setTooltip(tr(PASSIVES[INDEX].DESC).. "\n" ..tr(PASSIVES[INDEX].POWER_INFO).. " " ..(PASSIVES[INDEX].POWER_BASE + PASSIVES[INDEX].BOOST).. "" ..PASSIVES[INDEX].POWER_SINAL.. " (" ..PASSIVES[INDEX].POWER_BASE.. " + " ..PASSIVES[INDEX].BOOST.. ")")
7146 MOBILE_PASSIVE_1:setTooltip(tr(PASSIVES[INDEX].DESC).. "\n" ..tr(PASSIVES[INDEX].POWER_INFO).. " " ..PASSIVES[INDEX].POWER_BASE.. "" ..PASSIVES[INDEX].POWER_SINAL.. " (" ..PASSIVES[INDEX].POWER_BASE.. " + " ..PASSIVES[INDEX].BOOST.. ")")
7147 end
7148 end
7149 end
7150 BT_PANEL_PASSIVE_1:setIcon("/images/custom/Spells/Passiva/passive_" ..PA_1)
7151 MOBILE_PASSIVE_1:setIcon("/images/custom/Spells/Passiva/passive_" ..PA_1)
7152 TXT_PANEL_PASSIVE_1:setText("Lv." ..PASSIVES[PA_1].STORAGE)
7153 MOBILE_TXT_PASSIVE_1:setText("Lv." ..PASSIVES[PA_1].STORAGE)
7154 else
7155 BT_PANEL_PASSIVE_1:setTooltip(tr("Clique para inserir uma passiva."))
7156 BT_PANEL_PASSIVE_1:setImageSource("/images/custom/UI/insert_passive")
7157 BT_PANEL_PASSIVE_1:setIcon("/images/custom/UI/0")
7158 TXT_PANEL_PASSIVE_1:setText("0")
7159
7160 MOBILE_PASSIVE_1:setTooltip(tr("Clique para inserir uma passiva."))
7161 MOBILE_PASSIVE_1:setImageSource("/images/custom/UI/insert_passive")
7162 MOBILE_PASSIVE_1:setIcon("/images/custom/UI/0")
7163 MOBILE_TXT_PASSIVE_1:setText("0")
7164 end
7165
7166 if PASSIVES[PA_2] then
7167 local INDEX = PA_2
7168 if PASSIVES[INDEX].STORAGE > 01 then
7169 BT_PANEL_PASSIVE_2:setTooltip(tr(PASSIVES[INDEX].DESC).. "\n" ..tr(PASSIVES[INDEX].POWER_INFO).. " " ..(PASSIVES[INDEX].POWER_BASE + (PASSIVES[INDEX].POWER_FOR_LEVEL * (PASSIVES[INDEX].STORAGE - 01))).. "" ..PASSIVES[INDEX].POWER_SINAL)
7170 MOBILE_PASSIVE_2:setTooltip(tr(PASSIVES[INDEX].DESC).. "\n" ..tr(PASSIVES[INDEX].POWER_INFO).. " " ..(PASSIVES[INDEX].POWER_BASE + (PASSIVES[INDEX].POWER_FOR_LEVEL * (PASSIVES[INDEX].STORAGE - 01))).. "" ..PASSIVES[INDEX].POWER_SINAL)
7171 else
7172 BT_PANEL_PASSIVE_2:setTooltip(tr(PASSIVES[INDEX].DESC).. "\n" ..tr(PASSIVES[INDEX].POWER_INFO).. " " ..PASSIVES[INDEX].POWER_BASE.. "" ..PASSIVES[INDEX].POWER_SINAL)
7173 MOBILE_PASSIVE_2:setTooltip(tr(PASSIVES[INDEX].DESC).. "\n" ..tr(PASSIVES[INDEX].POWER_INFO).. " " ..PASSIVES[INDEX].POWER_BASE.. "" ..PASSIVES[INDEX].POWER_SINAL)
7174 end
7175 BT_PANEL_PASSIVE_2:setImageSource("/images/custom/UI/cat_" ..PASSIVES[PA_2].CATEGORY)
7176 MOBILE_PASSIVE_2:setImageSource("/images/custom/UI/cat_" ..PASSIVES[PA_2].CATEGORY)
7177 if DAILY_EVENT == 02 then
7178 if PASS_EVENT == PASSIVES[PA_2].CATEGORY then
7179 BT_PANEL_PASSIVE_2:setImageSource("/images/custom/UI/cat_" ..PASSIVES[PA_2].CATEGORY.. "_boost")
7180 MOBILE_PASSIVE_2:setImageSource("/images/custom/UI/cat_" ..PASSIVES[PA_2].CATEGORY.. "_boost")
7181
7182 if PASSIVES[INDEX].STORAGE > 01 then
7183 BT_PANEL_PASSIVE_2:setTooltip(tr(PASSIVES[INDEX].DESC).. "\n" ..tr(PASSIVES[INDEX].POWER_INFO).. " " ..(PASSIVES[INDEX].POWER_BASE + (PASSIVES[INDEX].POWER_FOR_LEVEL * (PASSIVES[INDEX].STORAGE - 01)) + PASSIVES[INDEX].BOOST).. "" ..PASSIVES[INDEX].POWER_SINAL.. " (" ..(PASSIVES[INDEX].POWER_BASE + (PASSIVES[INDEX].POWER_FOR_LEVEL * (PASSIVES[INDEX].STORAGE - 01)).. " + " ..PASSIVES[INDEX].BOOST).. ")")
7184 MOBILE_PASSIVE_2:setTooltip(tr(PASSIVES[INDEX].DESC).. "\n" ..tr(PASSIVES[INDEX].POWER_INFO).. " " ..(PASSIVES[INDEX].POWER_BASE + (PASSIVES[INDEX].POWER_FOR_LEVEL * (PASSIVES[INDEX].STORAGE - 01))).. "" ..PASSIVES[INDEX].POWER_SINAL.. " (" ..(PASSIVES[INDEX].POWER_BASE + (PASSIVES[INDEX].POWER_FOR_LEVEL * (PASSIVES[INDEX].STORAGE - 01)).. " + " ..PASSIVES[INDEX].BOOST).. ")")
7185 else
7186 BT_PANEL_PASSIVE_2:setTooltip(tr(PASSIVES[INDEX].DESC).. "\n" ..tr(PASSIVES[INDEX].POWER_INFO).. " " ..(PASSIVES[INDEX].POWER_BASE + PASSIVES[INDEX].BOOST).. "" ..PASSIVES[INDEX].POWER_SINAL.. " (" ..PASSIVES[INDEX].POWER_BASE.. " + " ..PASSIVES[INDEX].BOOST.. ")")
7187 MOBILE_PASSIVE_2:setTooltip(tr(PASSIVES[INDEX].DESC).. "\n" ..tr(PASSIVES[INDEX].POWER_INFO).. " " ..PASSIVES[INDEX].POWER_BASE.. "" ..PASSIVES[INDEX].POWER_SINAL.. " (" ..PASSIVES[INDEX].POWER_BASE.. " + " ..PASSIVES[INDEX].BOOST.. ")")
7188 end
7189 end
7190 end
7191 BT_PANEL_PASSIVE_2:setIcon("/images/custom/Spells/Passiva/passive_" ..PA_2)
7192 TXT_PANEL_PASSIVE_2:setText("Lv." ..PASSIVES[PA_2].STORAGE)
7193 MOBILE_PASSIVE_2:setIcon("/images/custom/Spells/Passiva/passive_" ..PA_2)
7194 MOBILE_TXT_PASSIVE_2:setText("Lv." ..PASSIVES[PA_2].STORAGE)
7195 else
7196 BT_PANEL_PASSIVE_2:setTooltip(tr("Clique para inserir uma passiva."))
7197 BT_PANEL_PASSIVE_2:setImageSource("/images/custom/UI/insert_passive")
7198 BT_PANEL_PASSIVE_2:setIcon("/images/custom/UI/0")
7199 TXT_PANEL_PASSIVE_2:setText("0")
7200
7201 MOBILE_PASSIVE_2:setTooltip(tr("Clique para inserir uma passiva."))
7202 MOBILE_PASSIVE_2:setImageSource("/images/custom/UI/insert_passive")
7203 MOBILE_PASSIVE_2:setIcon("/images/custom/UI/0")
7204 MOBILE_TXT_PASSIVE_2:setText("0")
7205 end
7206
7207 if PASSIVES[PA_3] then
7208 local INDEX = PA_3
7209 if PASSIVES[INDEX].STORAGE > 01 then
7210 BT_PANEL_PASSIVE_3:setTooltip(tr(PASSIVES[INDEX].DESC).. "\n" ..tr(PASSIVES[INDEX].POWER_INFO).. " " ..(PASSIVES[INDEX].POWER_BASE + (PASSIVES[INDEX].POWER_FOR_LEVEL * (PASSIVES[INDEX].STORAGE - 01))).. "" ..PASSIVES[INDEX].POWER_SINAL)
7211 MOBILE_PASSIVE_3:setTooltip(tr(PASSIVES[INDEX].DESC).. "\n" ..tr(PASSIVES[INDEX].POWER_INFO).. " " ..(PASSIVES[INDEX].POWER_BASE + (PASSIVES[INDEX].POWER_FOR_LEVEL * (PASSIVES[INDEX].STORAGE - 01))).. "" ..PASSIVES[INDEX].POWER_SINAL)
7212 else
7213 BT_PANEL_PASSIVE_3:setTooltip(tr(PASSIVES[INDEX].DESC).. "\n" ..tr(PASSIVES[INDEX].POWER_INFO).. " " ..PASSIVES[INDEX].POWER_BASE.. "" ..PASSIVES[INDEX].POWER_SINAL)
7214 MOBILE_PASSIVE_3:setTooltip(tr(PASSIVES[INDEX].DESC).. "\n" ..tr(PASSIVES[INDEX].POWER_INFO).. " " ..PASSIVES[INDEX].POWER_BASE.. "" ..PASSIVES[INDEX].POWER_SINAL)
7215 end
7216 BT_PANEL_PASSIVE_3:setImageSource("/images/custom/UI/cat_" ..PASSIVES[PA_3].CATEGORY)
7217 MOBILE_PASSIVE_3:setImageSource("/images/custom/UI/cat_" ..PASSIVES[PA_3].CATEGORY)
7218 if DAILY_EVENT == 02 then
7219 if PASS_EVENT == PASSIVES[PA_3].CATEGORY then
7220 BT_PANEL_PASSIVE_3:setImageSource("/images/custom/UI/cat_" ..PASSIVES[PA_3].CATEGORY.. "_boost")
7221 MOBILE_PASSIVE_3:setImageSource("/images/custom/UI/cat_" ..PASSIVES[PA_3].CATEGORY.. "_boost")
7222
7223 if PASSIVES[INDEX].STORAGE > 01 then
7224 BT_PANEL_PASSIVE_3:setTooltip(tr(PASSIVES[INDEX].DESC).. "\n" ..tr(PASSIVES[INDEX].POWER_INFO).. " " ..(PASSIVES[INDEX].POWER_BASE + (PASSIVES[INDEX].POWER_FOR_LEVEL * (PASSIVES[INDEX].STORAGE - 01)) + PASSIVES[INDEX].BOOST).. "" ..PASSIVES[INDEX].POWER_SINAL.. " (" ..(PASSIVES[INDEX].POWER_BASE + (PASSIVES[INDEX].POWER_FOR_LEVEL * (PASSIVES[INDEX].STORAGE - 01)).. " + " ..PASSIVES[INDEX].BOOST).. ")")
7225 MOBILE_PASSIVE_3:setTooltip(tr(PASSIVES[INDEX].DESC).. "\n" ..tr(PASSIVES[INDEX].POWER_INFO).. " " ..(PASSIVES[INDEX].POWER_BASE + (PASSIVES[INDEX].POWER_FOR_LEVEL * (PASSIVES[INDEX].STORAGE - 01))).. "" ..PASSIVES[INDEX].POWER_SINAL.. " (" ..(PASSIVES[INDEX].POWER_BASE + (PASSIVES[INDEX].POWER_FOR_LEVEL * (PASSIVES[INDEX].STORAGE - 01)).. " + " ..PASSIVES[INDEX].BOOST).. ")")
7226 else
7227 BT_PANEL_PASSIVE_3:setTooltip(tr(PASSIVES[INDEX].DESC).. "\n" ..tr(PASSIVES[INDEX].POWER_INFO).. " " ..(PASSIVES[INDEX].POWER_BASE + PASSIVES[INDEX].BOOST).. "" ..PASSIVES[INDEX].POWER_SINAL.. " (" ..PASSIVES[INDEX].POWER_BASE.. " + " ..PASSIVES[INDEX].BOOST.. ")")
7228 MOBILE_PASSIVE_3:setTooltip(tr(PASSIVES[INDEX].DESC).. "\n" ..tr(PASSIVES[INDEX].POWER_INFO).. " " ..PASSIVES[INDEX].POWER_BASE.. "" ..PASSIVES[INDEX].POWER_SINAL.. " (" ..PASSIVES[INDEX].POWER_BASE.. " + " ..PASSIVES[INDEX].BOOST.. ")")
7229 end
7230 end
7231 end
7232 BT_PANEL_PASSIVE_3:setIcon("/images/custom/Spells/Passiva/passive_" ..PA_3)
7233 TXT_PANEL_PASSIVE_3:setText("Lv." ..PASSIVES[PA_3].STORAGE)
7234 MOBILE_PASSIVE_3:setIcon("/images/custom/Spells/Passiva/passive_" ..PA_3)
7235 MOBILE_TXT_PASSIVE_3:setText("Lv." ..PASSIVES[PA_3].STORAGE)
7236 else
7237 BT_PANEL_PASSIVE_3:setTooltip(tr("Clique para inserir uma passiva."))
7238 BT_PANEL_PASSIVE_3:setImageSource("/images/custom/UI/insert_passive")
7239 BT_PANEL_PASSIVE_3:setIcon("/images/custom/UI/0")
7240 TXT_PANEL_PASSIVE_3:setText("0")
7241
7242 MOBILE_PASSIVE_3:setTooltip(tr("Clique para inserir uma passiva."))
7243 MOBILE_PASSIVE_3:setImageSource("/images/custom/UI/insert_passive")
7244 MOBILE_PASSIVE_3:setIcon("/images/custom/UI/0")
7245 MOBILE_TXT_PASSIVE_3:setText("0")
7246 end
7247
7248 if PASSIVES[PA_4] then
7249 local INDEX = PA_4
7250 if PASSIVES[INDEX].STORAGE > 01 then
7251 BT_PANEL_PASSIVE_4:setTooltip(tr(PASSIVES[INDEX].DESC).. "\n" ..tr(PASSIVES[INDEX].POWER_INFO).. " " ..(PASSIVES[INDEX].POWER_BASE + (PASSIVES[INDEX].POWER_FOR_LEVEL * (PASSIVES[INDEX].STORAGE - 01))).. "" ..PASSIVES[INDEX].POWER_SINAL)
7252 MOBILE_PASSIVE_4:setTooltip(tr(PASSIVES[INDEX].DESC).. "\n" ..tr(PASSIVES[INDEX].POWER_INFO).. " " ..(PASSIVES[INDEX].POWER_BASE + (PASSIVES[INDEX].POWER_FOR_LEVEL * (PASSIVES[INDEX].STORAGE - 01))).. "" ..PASSIVES[INDEX].POWER_SINAL)
7253 else
7254 BT_PANEL_PASSIVE_4:setTooltip(tr(PASSIVES[INDEX].DESC).. "\n" ..tr(PASSIVES[INDEX].POWER_INFO).. " " ..PASSIVES[INDEX].POWER_BASE.. "" ..PASSIVES[INDEX].POWER_SINAL)
7255 MOBILE_PASSIVE_4:setTooltip(tr(PASSIVES[INDEX].DESC).. "\n" ..tr(PASSIVES[INDEX].POWER_INFO).. " " ..PASSIVES[INDEX].POWER_BASE.. "" ..PASSIVES[INDEX].POWER_SINAL)
7256 end
7257 BT_PANEL_PASSIVE_4:setImageSource("/images/custom/UI/cat_" ..PASSIVES[PA_4].CATEGORY)
7258 MOBILE_PASSIVE_4:setImageSource("/images/custom/UI/cat_" ..PASSIVES[PA_4].CATEGORY)
7259 if DAILY_EVENT == 02 then
7260 if PASS_EVENT == PASSIVES[PA_4].CATEGORY then
7261 BT_PANEL_PASSIVE_4:setImageSource("/images/custom/UI/cat_" ..PASSIVES[PA_4].CATEGORY.. "_boost")
7262 MOBILE_PASSIVE_4:setImageSource("/images/custom/UI/cat_" ..PASSIVES[PA_4].CATEGORY.. "_boost")
7263
7264 if PASSIVES[INDEX].STORAGE > 01 then
7265 BT_PANEL_PASSIVE_4:setTooltip(tr(PASSIVES[INDEX].DESC).. "\n" ..tr(PASSIVES[INDEX].POWER_INFO).. " " ..(PASSIVES[INDEX].POWER_BASE + (PASSIVES[INDEX].POWER_FOR_LEVEL * (PASSIVES[INDEX].STORAGE - 01)) + PASSIVES[INDEX].BOOST).. "" ..PASSIVES[INDEX].POWER_SINAL.. " (" ..(PASSIVES[INDEX].POWER_BASE + (PASSIVES[INDEX].POWER_FOR_LEVEL * (PASSIVES[INDEX].STORAGE - 01)).. " + " ..PASSIVES[INDEX].BOOST).. ")")
7266 MOBILE_PASSIVE_4:setTooltip(tr(PASSIVES[INDEX].DESC).. "\n" ..tr(PASSIVES[INDEX].POWER_INFO).. " " ..(PASSIVES[INDEX].POWER_BASE + (PASSIVES[INDEX].POWER_FOR_LEVEL * (PASSIVES[INDEX].STORAGE - 01))).. "" ..PASSIVES[INDEX].POWER_SINAL.. " (" ..(PASSIVES[INDEX].POWER_BASE + (PASSIVES[INDEX].POWER_FOR_LEVEL * (PASSIVES[INDEX].STORAGE - 01)).. " + " ..PASSIVES[INDEX].BOOST).. ")")
7267 else
7268 BT_PANEL_PASSIVE_4:setTooltip(tr(PASSIVES[INDEX].DESC).. "\n" ..tr(PASSIVES[INDEX].POWER_INFO).. " " ..(PASSIVES[INDEX].POWER_BASE + PASSIVES[INDEX].BOOST).. "" ..PASSIVES[INDEX].POWER_SINAL.. " (" ..PASSIVES[INDEX].POWER_BASE.. " + " ..PASSIVES[INDEX].BOOST.. ")")
7269 MOBILE_PASSIVE_4:setTooltip(tr(PASSIVES[INDEX].DESC).. "\n" ..tr(PASSIVES[INDEX].POWER_INFO).. " " ..PASSIVES[INDEX].POWER_BASE.. "" ..PASSIVES[INDEX].POWER_SINAL.. " (" ..PASSIVES[INDEX].POWER_BASE.. " + " ..PASSIVES[INDEX].BOOST.. ")")
7270 end
7271 end
7272 end
7273 BT_PANEL_PASSIVE_4:setIcon("/images/custom/Spells/Passiva/passive_" ..PA_4)
7274 TXT_PANEL_PASSIVE_4:setText("Lv." ..PASSIVES[PA_4].STORAGE)
7275 MOBILE_PASSIVE_4:setIcon("/images/custom/Spells/Passiva/passive_" ..PA_4)
7276 MOBILE_TXT_PASSIVE_4:setText("Lv." ..PASSIVES[PA_4].STORAGE)
7277 else
7278 BT_PANEL_PASSIVE_4:setTooltip(tr("Clique para inserir uma passiva."))
7279 BT_PANEL_PASSIVE_4:setImageSource("/images/custom/UI/insert_passive")
7280 BT_PANEL_PASSIVE_4:setIcon("/images/custom/UI/0")
7281 TXT_PANEL_PASSIVE_4:setText("0")
7282
7283 MOBILE_PASSIVE_4:setTooltip(tr("Clique para inserir uma passiva."))
7284 MOBILE_PASSIVE_4:setImageSource("/images/custom/UI/insert_passive")
7285 MOBILE_PASSIVE_4:setIcon("/images/custom/UI/0")
7286 MOBILE_TXT_PASSIVE_4:setText("0")
7287 end
7288
7289 if PASSIVES[PA_5] then
7290 local INDEX = PA_5
7291 if PASSIVES[INDEX].STORAGE > 01 then
7292 BT_PANEL_PASSIVE_5:setTooltip(tr(PASSIVES[INDEX].DESC).. "\n" ..tr(PASSIVES[INDEX].POWER_INFO).. " " ..(PASSIVES[INDEX].POWER_BASE + (PASSIVES[INDEX].POWER_FOR_LEVEL * (PASSIVES[INDEX].STORAGE - 01))).. "" ..PASSIVES[INDEX].POWER_SINAL)
7293 MOBILE_PASSIVE_5:setTooltip(tr(PASSIVES[INDEX].DESC).. "\n" ..tr(PASSIVES[INDEX].POWER_INFO).. " " ..(PASSIVES[INDEX].POWER_BASE + (PASSIVES[INDEX].POWER_FOR_LEVEL * (PASSIVES[INDEX].STORAGE - 01))).. "" ..PASSIVES[INDEX].POWER_SINAL)
7294 else
7295 BT_PANEL_PASSIVE_5:setTooltip(tr(PASSIVES[INDEX].DESC).. "\n" ..tr(PASSIVES[INDEX].POWER_INFO).. " " ..PASSIVES[INDEX].POWER_BASE.. "" ..PASSIVES[INDEX].POWER_SINAL)
7296 MOBILE_PASSIVE_5:setTooltip(tr(PASSIVES[INDEX].DESC).. "\n" ..tr(PASSIVES[INDEX].POWER_INFO).. " " ..PASSIVES[INDEX].POWER_BASE.. "" ..PASSIVES[INDEX].POWER_SINAL)
7297 end
7298 BT_PANEL_PASSIVE_5:setImageSource("/images/custom/UI/cat_" ..PASSIVES[PA_5].CATEGORY)
7299 MOBILE_PASSIVE_5:setImageSource("/images/custom/UI/cat_" ..PASSIVES[PA_5].CATEGORY)
7300 if DAILY_EVENT == 02 then
7301 if PASS_EVENT == PASSIVES[PA_5].CATEGORY then
7302 BT_PANEL_PASSIVE_5:setImageSource("/images/custom/UI/cat_" ..PASSIVES[PA_5].CATEGORY.. "_boost")
7303 MOBILE_PASSIVE_5:setImageSource("/images/custom/UI/cat_" ..PASSIVES[PA_5].CATEGORY.. "_boost")
7304
7305 if PASSIVES[INDEX].STORAGE > 01 then
7306 BT_PANEL_PASSIVE_5:setTooltip(tr(PASSIVES[INDEX].DESC).. "\n" ..tr(PASSIVES[INDEX].POWER_INFO).. " " ..(PASSIVES[INDEX].POWER_BASE + (PASSIVES[INDEX].POWER_FOR_LEVEL * (PASSIVES[INDEX].STORAGE - 01)) + PASSIVES[INDEX].BOOST).. "" ..PASSIVES[INDEX].POWER_SINAL.. " (" ..(PASSIVES[INDEX].POWER_BASE + (PASSIVES[INDEX].POWER_FOR_LEVEL * (PASSIVES[INDEX].STORAGE - 01)).. " + " ..PASSIVES[INDEX].BOOST).. ")")
7307 MOBILE_PASSIVE_5:setTooltip(tr(PASSIVES[INDEX].DESC).. "\n" ..tr(PASSIVES[INDEX].POWER_INFO).. " " ..(PASSIVES[INDEX].POWER_BASE + (PASSIVES[INDEX].POWER_FOR_LEVEL * (PASSIVES[INDEX].STORAGE - 01))).. "" ..PASSIVES[INDEX].POWER_SINAL.. " (" ..(PASSIVES[INDEX].POWER_BASE + (PASSIVES[INDEX].POWER_FOR_LEVEL * (PASSIVES[INDEX].STORAGE - 01)).. " + " ..PASSIVES[INDEX].BOOST).. ")")
7308 else
7309 BT_PANEL_PASSIVE_5:setTooltip(tr(PASSIVES[INDEX].DESC).. "\n" ..tr(PASSIVES[INDEX].POWER_INFO).. " " ..(PASSIVES[INDEX].POWER_BASE + PASSIVES[INDEX].BOOST).. "" ..PASSIVES[INDEX].POWER_SINAL.. " (" ..PASSIVES[INDEX].POWER_BASE.. " + " ..PASSIVES[INDEX].BOOST.. ")")
7310 MOBILE_PASSIVE_5:setTooltip(tr(PASSIVES[INDEX].DESC).. "\n" ..tr(PASSIVES[INDEX].POWER_INFO).. " " ..PASSIVES[INDEX].POWER_BASE.. "" ..PASSIVES[INDEX].POWER_SINAL.. " (" ..PASSIVES[INDEX].POWER_BASE.. " + " ..PASSIVES[INDEX].BOOST.. ")")
7311 end
7312 end
7313 end
7314 BT_PANEL_PASSIVE_5:setIcon("/images/custom/Spells/Passiva/passive_" ..PA_5)
7315 TXT_PANEL_PASSIVE_5:setText("Lv." ..PASSIVES[PA_5].STORAGE)
7316 MOBILE_PASSIVE_5:setIcon("/images/custom/Spells/Passiva/passive_" ..PA_5)
7317 MOBILE_TXT_PASSIVE_5:setText("Lv." ..PASSIVES[PA_5].STORAGE)
7318 else
7319 BT_PANEL_PASSIVE_5:setTooltip(tr("Clique para inserir uma passiva."))
7320 BT_PANEL_PASSIVE_5:setImageSource("/images/custom/UI/insert_passive")
7321 BT_PANEL_PASSIVE_5:setIcon("/images/custom/UI/0")
7322 TXT_PANEL_PASSIVE_5:setText("0")
7323
7324 MOBILE_PASSIVE_5:setTooltip(tr("Clique para inserir uma passiva."))
7325 MOBILE_PASSIVE_5:setImageSource("/images/custom/UI/insert_passive")
7326 MOBILE_PASSIVE_5:setIcon("/images/custom/UI/0")
7327 MOBILE_TXT_PASSIVE_5:setText("0")
7328 end
7329
7330 if PASSIVES[PA_6] then
7331 local INDEX = PA_6
7332 if PASSIVES[INDEX].STORAGE > 01 then
7333 BT_PANEL_PASSIVE_6:setTooltip(tr(PASSIVES[INDEX].DESC).. "\n" ..tr(PASSIVES[INDEX].POWER_INFO).. " " ..(PASSIVES[INDEX].POWER_BASE + (PASSIVES[INDEX].POWER_FOR_LEVEL * (PASSIVES[INDEX].STORAGE - 01))).. "" ..PASSIVES[INDEX].POWER_SINAL)
7334 MOBILE_PASSIVE_6:setTooltip(tr(PASSIVES[INDEX].DESC).. "\n" ..tr(PASSIVES[INDEX].POWER_INFO).. " " ..(PASSIVES[INDEX].POWER_BASE + (PASSIVES[INDEX].POWER_FOR_LEVEL * (PASSIVES[INDEX].STORAGE - 01))).. "" ..PASSIVES[INDEX].POWER_SINAL)
7335 else
7336 BT_PANEL_PASSIVE_6:setTooltip(tr(PASSIVES[INDEX].DESC).. "\n" ..tr(PASSIVES[INDEX].POWER_INFO).. " " ..PASSIVES[INDEX].POWER_BASE.. "" ..PASSIVES[INDEX].POWER_SINAL)
7337 MOBILE_PASSIVE_6:setTooltip(tr(PASSIVES[INDEX].DESC).. "\n" ..tr(PASSIVES[INDEX].POWER_INFO).. " " ..PASSIVES[INDEX].POWER_BASE.. "" ..PASSIVES[INDEX].POWER_SINAL)
7338 end
7339 BT_PANEL_PASSIVE_6:setImageSource("/images/custom/UI/cat_" ..PASSIVES[PA_6].CATEGORY)
7340 MOBILE_PASSIVE_6:setImageSource("/images/custom/UI/cat_" ..PASSIVES[PA_6].CATEGORY)
7341 if DAILY_EVENT == 02 then
7342 if PASS_EVENT == PASSIVES[PA_6].CATEGORY then
7343 BT_PANEL_PASSIVE_6:setImageSource("/images/custom/UI/cat_" ..PASSIVES[PA_6].CATEGORY.. "_boost")
7344 MOBILE_PASSIVE_6:setImageSource("/images/custom/UI/cat_" ..PASSIVES[PA_6].CATEGORY.. "_boost")
7345
7346 if PASSIVES[INDEX].STORAGE > 01 then
7347 BT_PANEL_PASSIVE_6:setTooltip(tr(PASSIVES[INDEX].DESC).. "\n" ..tr(PASSIVES[INDEX].POWER_INFO).. " " ..(PASSIVES[INDEX].POWER_BASE + (PASSIVES[INDEX].POWER_FOR_LEVEL * (PASSIVES[INDEX].STORAGE - 01)) + PASSIVES[INDEX].BOOST).. "" ..PASSIVES[INDEX].POWER_SINAL.. " (" ..(PASSIVES[INDEX].POWER_BASE + (PASSIVES[INDEX].POWER_FOR_LEVEL * (PASSIVES[INDEX].STORAGE - 01)).. " + " ..PASSIVES[INDEX].BOOST).. ")")
7348 MOBILE_PASSIVE_6:setTooltip(tr(PASSIVES[INDEX].DESC).. "\n" ..tr(PASSIVES[INDEX].POWER_INFO).. " " ..(PASSIVES[INDEX].POWER_BASE + (PASSIVES[INDEX].POWER_FOR_LEVEL * (PASSIVES[INDEX].STORAGE - 01))).. "" ..PASSIVES[INDEX].POWER_SINAL.. " (" ..(PASSIVES[INDEX].POWER_BASE + (PASSIVES[INDEX].POWER_FOR_LEVEL * (PASSIVES[INDEX].STORAGE - 01)).. " + " ..PASSIVES[INDEX].BOOST).. ")")
7349 else
7350 BT_PANEL_PASSIVE_6:setTooltip(tr(PASSIVES[INDEX].DESC).. "\n" ..tr(PASSIVES[INDEX].POWER_INFO).. " " ..(PASSIVES[INDEX].POWER_BASE + PASSIVES[INDEX].BOOST).. "" ..PASSIVES[INDEX].POWER_SINAL.. " (" ..PASSIVES[INDEX].POWER_BASE.. " + " ..PASSIVES[INDEX].BOOST.. ")")
7351 MOBILE_PASSIVE_6:setTooltip(tr(PASSIVES[INDEX].DESC).. "\n" ..tr(PASSIVES[INDEX].POWER_INFO).. " " ..PASSIVES[INDEX].POWER_BASE.. "" ..PASSIVES[INDEX].POWER_SINAL.. " (" ..PASSIVES[INDEX].POWER_BASE.. " + " ..PASSIVES[INDEX].BOOST.. ")")
7352 end
7353 end
7354 end
7355 BT_PANEL_PASSIVE_6:setIcon("/images/custom/Spells/Passiva/passive_" ..PA_6)
7356 TXT_PANEL_PASSIVE_6:setText("Lv." ..PASSIVES[PA_6].STORAGE)
7357 MOBILE_PASSIVE_6:setIcon("/images/custom/Spells/Passiva/passive_" ..PA_6)
7358 MOBILE_TXT_PASSIVE_6:setText("Lv." ..PASSIVES[PA_6].STORAGE)
7359 else
7360 BT_PANEL_PASSIVE_6:setTooltip(tr("Clique para inserir uma passiva."))
7361 BT_PANEL_PASSIVE_6:setImageSource("/images/custom/UI/insert_passive")
7362 BT_PANEL_PASSIVE_6:setIcon("/images/custom/UI/0")
7363 TXT_PANEL_PASSIVE_6:setText("0")
7364
7365 MOBILE_PASSIVE_6:setTooltip(tr("Clique para inserir uma passiva."))
7366 MOBILE_PASSIVE_6:setImageSource("/images/custom/UI/insert_passive")
7367 MOBILE_PASSIVE_6:setIcon("/images/custom/UI/0")
7368 MOBILE_TXT_PASSIVE_6:setText("0")
7369 end
7370
7371 if POIN > 00 then
7372 TXT_PANEL_POINTS:setText(tr('Pontos de Passiva').. ': ' ..POIN)
7373 TXT_PANEL_POINTS:setColor('green')
7374 MOBILE_LABEL_DIST:setText(tr('Pontos de Passiva').. ': ' ..POIN)
7375 MOBILE_LABEL_DIST:setColor('green')
7376 else
7377 TXT_PANEL_POINTS:setText(tr('Pontos de Passiva').. ': 0')
7378 TXT_PANEL_POINTS:setColor('gray')
7379 MOBILE_LABEL_DIST:setText(tr('Pontos de Passiva').. ': 0')
7380 MOBILE_LABEL_DIST:setColor('gray')
7381 end
7382
7383 MOBILE_PASSIVE_1.onClick = function()
7384 if PASSIVE_BOX:isVisible() then
7385 PASSIVE_BOX:hide()
7386 else
7387 PassiveSlot = 01
7388 onLoadPassives(01)
7389 end
7390 end
7391 MOBILE_PASSIVE_2.onClick = function()
7392 if PASSIVE_BOX:isVisible() then
7393 PASSIVE_BOX:hide()
7394 else
7395 PassiveSlot = 02
7396 onLoadPassives(01)
7397 end
7398 end
7399 MOBILE_PASSIVE_3.onClick = function()
7400 if PASSIVE_BOX:isVisible() then
7401 PASSIVE_BOX:hide()
7402 else
7403 PassiveSlot = 03
7404 onLoadPassives(01)
7405 end
7406 end
7407 MOBILE_PASSIVE_4.onClick = function()
7408 if PASSIVE_BOX:isVisible() then
7409 PASSIVE_BOX:hide()
7410 else
7411 PassiveSlot = 04
7412 onLoadPassives(01)
7413 end
7414 end
7415 MOBILE_PASSIVE_5.onClick = function()
7416 if PASSIVE_BOX:isVisible() then
7417 PASSIVE_BOX:hide()
7418 else
7419 PassiveSlot = 05
7420 onLoadPassives(01)
7421 end
7422 end
7423 MOBILE_PASSIVE_6.onClick = function()
7424 if PASSIVE_BOX:isVisible() then
7425 PASSIVE_BOX:hide()
7426 else
7427 PassiveSlot = 06
7428 onLoadPassives(01)
7429 end
7430 end
7431
7432 onStatusCheck()
7433 end
7434 if string.find(text, "@BetaTester") then
7435 local t = string.explode(text, " ")
7436 if tonumber(t[02]) == 00 then
7437 buttonText:setText(tr('CERRAR'))
7438 buttonText.onClick = function()
7439 closer_boxShop()
7440 end
7441 descText:setText('Nenhuma bonificacao foi encontrada para esta conta.')
7442 descText:setImageSource('/images/custom/Task/Monster_5')
7443 scheduleEvent(function()
7444 descText:show()
7445 buttonText:show()
7446 LoadingPanel:hide()
7447 return
7448 end, 3000)
7449 return
7450 end
7451 if tonumber(t[02]) == 01 then
7452 buttonText:setText('CONFIRMAR E RECEBER BONIFICACAO')
7453 buttonText.onClick = function()
7454 g_game.talk(g_game.talk("!donatesdev 01"))
7455 closer_boxShop()
7456 end
7457 descText:setText('Obrigado por fazer parte do periodo BETA do RD Core. Aqui esta sua recompensa baseado em seus Donate e tambem em seu maior nivel durante a primeira fase do BETA, caso tenha participado.')
7458 descText:setImageSource('/images/custom/Task/Monster_4')
7459 valorLabel:setText('R$ ' ..t[03])
7460 VipTextLabel:setText(t[04])
7461 PersonagemLabel:setText(t[05])
7462 LevelLabel:setText('Lv. ' ..t[06])
7463 TotalLabel:setText((tonumber(t[04]) + tonumber(t[06])))
7464 buttonText:hide()
7465 scheduleEvent(function()
7466 descText:show()
7467 buttonText:show()
7468 valorText:show()
7469 valorLabel:show()
7470 VipText:show()
7471 VipTextLabel:show()
7472 PersonagemText:show()
7473 PersonagemLabel:show()
7474 LevelText:show()
7475 LevelLabel:show()
7476 TotalLabel:show()
7477 TotalText:show()
7478 LoadingPanel:hide()
7479 return
7480 end, 3000)
7481 return
7482 end
7483 if tonumber(t[02]) == 02 then
7484 buttonText:setText('CERRAR')
7485 buttonText.onClick = function()
7486 closer_boxShop()
7487 end
7488 descText:setText('Esta conta ja recebeu a bonificacao.')
7489 descText:setImageSource('/images/custom/Task/Monster_2')
7490 valorLabel:setText('R$ ' ..t[03])
7491 VipTextLabel:setText(t[04])
7492 PersonagemLabel:setText(t[05])
7493 LevelLabel:setText('Lv. ' ..t[06])
7494 TotalLabel:setText((tonumber(t[04]) + tonumber(t[06])))
7495 buttonText:hide()
7496 scheduleEvent(function()
7497 descText:show()
7498 buttonText:show()
7499 valorText:show()
7500 valorLabel:show()
7501 VipText:show()
7502 VipTextLabel:show()
7503 PersonagemText:show()
7504 PersonagemLabel:show()
7505 LevelText:show()
7506 LevelLabel:show()
7507 TotalLabel:show()
7508 TotalText:show()
7509 LoadingPanel:hide()
7510 return
7511 end, 3000)
7512 return
7513 end
7514 end
7515 if string.find(text, "@LoadPVP") then
7516 local t = string.explode(text, " ")
7517 local LOAD_ID = tonumber(t[02])
7518 local COUNT_PVP_1 = tonumber(t[03])
7519 local COUNT_PVP_2 = tonumber(t[04])
7520 local COUNT_PVP_3 = tonumber(t[05])
7521 local COUNT_PVP_4 = tonumber(t[06])
7522 local COUNT_PVP_5 = tonumber(t[07])
7523 local COUNT_PVP_6 = tonumber(t[08])
7524
7525 if COUNT_PVP_1 < 00 then
7526 COUNT_PVP_1 = 00
7527 end
7528 if COUNT_PVP_2 < 00 then
7529 COUNT_PVP_2 = 00
7530 end
7531 if COUNT_PVP_3 < 00 then
7532 COUNT_PVP_3 = 00
7533 end
7534 if COUNT_PVP_4 < 00 then
7535 COUNT_PVP_4 = 00
7536 end
7537 if COUNT_PVP_5 < 00 then
7538 COUNT_PVP_5 = 00
7539 end
7540 if COUNT_PVP_6 < 00 then
7541 COUNT_PVP_6 = 00
7542 end
7543
7544 if LOAD_ID == 01 then
7545 local VERSUS_MAX = 04
7546 local ARENA_MAX = 10
7547 local CASTLE_MAX = 20
7548 local BATTLE_MAX = 20
7549 local WARZONE_MAX = 30
7550 local LIVRE_MAX = 50
7551
7552 PVP_VERSUS_BAR:setValue(COUNT_PVP_1, 0, VERSUS_MAX)
7553 PVP_VERSUS_TXT:setText(COUNT_PVP_1.. "/" ..VERSUS_MAX)
7554 PVP_ARENA_BAR:setValue(COUNT_PVP_2, 0, ARENA_MAX)
7555 PVP_ARENA_TXT:setText(COUNT_PVP_2.. "/" ..ARENA_MAX)
7556 PVP_CASTLE_BAR:setValue(COUNT_PVP_3, 0, CASTLE_MAX)
7557 PVP_CASTLE_TXT:setText(COUNT_PVP_3.. "/" ..CASTLE_MAX)
7558 PVP_BATTLE_BAR:setValue(COUNT_PVP_4, 0, BATTLE_MAX)
7559 PVP_BATTLE_TXT:setText(COUNT_PVP_4.. "/" ..BATTLE_MAX)
7560 PVP_WARZONE_BAR:setValue(COUNT_PVP_5, 0, WARZONE_MAX)
7561 PVP_WARZONE_TXT:setText(COUNT_PVP_5.. "/" ..WARZONE_MAX)
7562 PVP_LIVRE_BAR:setValue(COUNT_PVP_6, 0, LIVRE_MAX)
7563 PVP_LIVRE_TXT:setText(COUNT_PVP_6.. "/" ..LIVRE_MAX)
7564
7565 if COUNT_PVP_1 >= VERSUS_MAX then
7566 PVP_VERSUS:setImageSource("/images/custom/Task/Monster_5")
7567 PVP_VERSUS_BT:setText('Max')
7568 PVP_VERSUS_BT:disable()
7569 else
7570 PVP_VERSUS:setImageSource("/images/custom/Task/Monster_1")
7571 PVP_VERSUS_BT:setText(tr('Entrar'))
7572 PVP_VERSUS_BT:enable()
7573 end
7574 if COUNT_PVP_2 >= ARENA_MAX then
7575 PVP_ARENA:setImageSource("/images/custom/Task/Monster_5")
7576 PVP_ARENA_BT:setText('Max')
7577 PVP_ARENA_BT:disable()
7578 else
7579 PVP_ARENA:setImageSource("/images/custom/Task/Monster_1")
7580 PVP_ARENA_BT:setText(tr('Entrar'))
7581 PVP_ARENA_BT:enable()
7582 end
7583 if COUNT_PVP_3 >= CASTLE_MAX then
7584 PVP_CASTLE:setImageSource("/images/custom/Task/Monster_5")
7585 PVP_CASTLE_BT:setText('Max')
7586 PVP_CASTLE_BT:disable()
7587 else
7588 PVP_CASTLE:setImageSource("/images/custom/Task/Monster_1")
7589 PVP_CASTLE_BT:setText(tr('Entrar'))
7590 PVP_CASTLE_BT:enable()
7591 end
7592 if COUNT_PVP_4 >= BATTLE_MAX then
7593 PVP_BATTLEROYAL:setImageSource("/images/custom/Task/Monster_5")
7594 PVP_BATTLE_BT:setText('Max')
7595 PVP_BATTLE_BT:disable()
7596 else
7597 PVP_BATTLEROYAL:setImageSource("/images/custom/Task/Monster_1")
7598 PVP_BATTLE_BT:setText(tr('Entrar'))
7599 PVP_BATTLE_BT:enable()
7600 end
7601 if COUNT_PVP_5 >= WARZONE_MAX then
7602 PVP_WARZONE:setImageSource("/images/custom/Task/Monster_5")
7603 PVP_WARZONE_BT:setText('Max')
7604 PVP_WARZONE_BT:disable()
7605 else
7606 PVP_WARZONE:setImageSource("/images/custom/Task/Monster_1")
7607 PVP_WARZONE_BT:setText(tr('Entrar'))
7608 PVP_WARZONE_BT:enable()
7609 end
7610 if COUNT_PVP_6 >= LIVRE_MAX then
7611 PVP_MODO_LIVRE:setImageSource("/images/custom/Task/Monster_5")
7612 PVP_LIVRE_BT:setText('Max')
7613 PVP_LIVRE_BT:disable()
7614 else
7615 PVP_MODO_LIVRE:setImageSource("/images/custom/Task/Monster_1")
7616 PVP_LIVRE_BT:setText(tr('Entrar'))
7617 PVP_LIVRE_BT:enable()
7618 end
7619 end
7620 end
7621 end
7622end
7623
7624-- SALAS PVP
7625function onPVPRoomClick(id)
7626 local yesChoose = function()
7627 g_game.talk(g_game.talk("!pvproom " ..id))
7628 onPVPRoomWindow:destroy()
7629 onPVPRoomWindow = nil
7630 end
7631 local noChoose = function()
7632 onPVPRoomWindow:destroy()
7633 onPVPRoomWindow = nil
7634 end
7635 if onPVPRoomWindow ~= nil then
7636 onPVPRoomWindow:destroy()
7637 onPVPRoomWindow = nil
7638 end
7639
7640 onPVPRoomWindow = displayGeneralBox(tr('Sala PVP'), tr("Deseja entrar nessa sala PVP?"),
7641 { { text=tr('Entrar'), callback=yesChoose },
7642 { text=tr('Cancelar'), callback=noChoose },
7643 anchor=AnchorHorizontalCenter }, yesChoose, noChoose)
7644end
7645function onGetDailyEvent(id)
7646 if id == 00 then
7647 return DAILY_EVENT
7648 else
7649 return PASS_EVENT
7650 end
7651end
7652-- STATUS INDIVIDUAL CHECK
7653function onStatusCheck()
7654 local healthPercent = math.floor(g_game.getLocalPlayer():getHealthPercent())
7655 local localPlayer = g_game.getLocalPlayer()
7656 local PID = 00
7657 local SKILL_BOOST_ESPINGARDA_CHECK, SKILL_BOOST_RIFLE_CHECK, SKILL_BOOST_PISTOLA_CHECK, SKILL_BOOST_METRALHADORA_CHECK = 00, 00, 00, 00
7658 local CRITICAL_BOOST, TAXA_CRITICAL_BOOST, SKILL_BOOST_DEFESA, SKILL_BOOST_ESQUIVA = 00, 00, 00, 00
7659 TXT_DEF:setText(modules.game_database.getStatus(01))
7660 TXT_ESQ:setText(modules.game_database.getStatus(02))
7661 TXT_TAX:setText(modules.game_database.getStatus(04).. "%")
7662 TXT_CRI:setText(modules.game_database.getStatus(05).. "%")
7663
7664 MOBILE_STATUS_DEF = modules.game_interface.onMobileWindow(32)
7665 MOBILE_STATUS_ESQ = modules.game_interface.onMobileWindow(33)
7666 MOBILE_STATUS_TAX = modules.game_interface.onMobileWindow(35)
7667 MOBILE_STATUS_CRI = modules.game_interface.onMobileWindow(36)
7668 MOBILE_STATUS_DEF:setText(modules.game_database.getStatus(01))
7669 MOBILE_STATUS_ESQ:setText(modules.game_database.getStatus(02))
7670 MOBILE_STATUS_TAX:setText(modules.game_database.getStatus(04).. "%")
7671 MOBILE_STATUS_CRI:setText(modules.game_database.getStatus(05).. "%")
7672
7673 PID = 62
7674 if PASSIVES[PID].STORAGE > 00 and PA_1 == PID or PA_2 == PID or PA_3 == PID or PA_4 == PID or PA_5 == PID or PA_6 == PID then
7675 if healthPercent > 70 then
7676 local Und = PASSIVES[PID].POWER_BASE + (PASSIVES[PID].POWER_FOR_LEVEL * (PASSIVES[PID].STORAGE - 01))
7677 if DAILY_EVENT == 02 then -- PASSIVA DAS CORES
7678 if PASS_EVENT == PASSIVES[PID].CATEGORY then
7679 Und = Und + PASSIVES[PID].BOOST
7680 end
7681 end
7682 TXT_DEF:setText(modules.game_database.getStatus(01) + Und)
7683 TXT_DEF:setTooltip(modules.game_database.getStatus(01).. " + " ..Und.. " (" ..(modules.game_database.getStatus(01) + Und).. ")")
7684 TXT_DEF:setColor('green')
7685
7686 MOBILE_STATUS_DEF:setText(modules.game_database.getStatus(01) + Und)
7687 MOBILE_STATUS_DEF:setTooltip(modules.game_database.getStatus(01).. " + " ..Und.. " (" ..(modules.game_database.getStatus(01) + Und).. ")")
7688 MOBILE_STATUS_DEF:setColor('green')
7689
7690 SKILL_BOOST_DEFESA = Und
7691 else
7692 local Und = PASSIVES[PID].POWER_BASE + (PASSIVES[PID].POWER_FOR_LEVEL * (PASSIVES[PID].STORAGE - 01))
7693 if DAILY_EVENT == 02 then -- PASSIVA DAS CORES
7694 if PASS_EVENT == PASSIVES[PID].CATEGORY then
7695 Und = Und + PASSIVES[PID].BOOST
7696 end
7697 end
7698 TXT_DEF:setTooltip(modules.game_database.getStatus(01).. " + " ..Und.. " (" ..(modules.game_database.getStatus(01) + Und).. ")")
7699 TXT_DEF:setColor('white')
7700
7701 MOBILE_STATUS_DEF:setTooltip(modules.game_database.getStatus(01).. " + " ..Und.. " (" ..(modules.game_database.getStatus(01) + Und).. ")")
7702 MOBILE_STATUS_DEF:setColor('white')
7703 end
7704 else
7705 TXT_DEF:setTooltip('')
7706 TXT_DEF:setColor('white')
7707
7708 MOBILE_STATUS_DEF:setTooltip('')
7709 MOBILE_STATUS_DEF:setColor('white')
7710 end
7711
7712 PID = 45
7713 if PASSIVES[PID].STORAGE > 00 and PA_1 == PID or PA_2 == PID or PA_3 == PID or PA_4 == PID or PA_5 == PID or PA_6 == PID then
7714 if healthPercent < 30 then
7715 local Und = PASSIVES[PID].POWER_BASE + (PASSIVES[PID].POWER_FOR_LEVEL * (PASSIVES[PID].STORAGE - 01))
7716 if DAILY_EVENT == 02 then -- PASSIVA DAS CORES
7717 if PASS_EVENT == PASSIVES[PID].CATEGORY then
7718 Und = Und + PASSIVES[PID].BOOST
7719 end
7720 end
7721 TXT_TAX:setText(modules.game_database.getStatus(04) + Und.. "%")
7722 TXT_TAX:setTooltip(modules.game_database.getStatus(04).. " + " ..Und.. " (" ..(modules.game_database.getStatus(04) + Und).. ")")
7723 TXT_TAX:setColor('green')
7724
7725 MOBILE_STATUS_TAX:setText(modules.game_database.getStatus(04) + Und.. "%")
7726 MOBILE_STATUS_TAX:setTooltip(modules.game_database.getStatus(04).. " + " ..Und.. " (" ..(modules.game_database.getStatus(04) + Und).. ")")
7727 MOBILE_STATUS_TAX:setColor('green')
7728
7729 TAXA_CRITICAL_BOOST = TAXA_CRITICAL_BOOST + Und
7730 else
7731 local Und = PASSIVES[PID].POWER_BASE + (PASSIVES[PID].POWER_FOR_LEVEL * (PASSIVES[PID].STORAGE - 01))
7732 if DAILY_EVENT == 02 then -- PASSIVA DAS CORES
7733 if PASS_EVENT == PASSIVES[PID].CATEGORY then
7734 Und = Und + PASSIVES[PID].BOOST
7735 end
7736 end
7737 TXT_TAX:setTooltip(modules.game_database.getStatus(04).. " + " ..Und.. " (" ..(modules.game_database.getStatus(04) + Und).. ")")
7738 TXT_TAX:setColor('white')
7739
7740 MOBILE_STATUS_TAX:setTooltip(modules.game_database.getStatus(04).. " + " ..Und.. " (" ..(modules.game_database.getStatus(04) + Und).. ")")
7741 MOBILE_STATUS_TAX:setColor('white')
7742 end
7743 else
7744 TXT_TAX:setTooltip('')
7745 TXT_TAX:setColor('white')
7746
7747 MOBILE_STATUS_TAX:setTooltip('')
7748 MOBILE_STATUS_TAX:setColor('white')
7749 end
7750
7751 PID = 50
7752 if PASSIVES[PID].STORAGE > 00 and PA_1 == PID or PA_2 == PID or PA_3 == PID or PA_4 == PID or PA_5 == PID or PA_6 == PID then
7753 if healthPercent > 70 then
7754 local Und = PASSIVES[PID].POWER_BASE + (PASSIVES[PID].POWER_FOR_LEVEL * (PASSIVES[PID].STORAGE - 01))
7755 if DAILY_EVENT == 02 then -- PASSIVA DAS CORES
7756 if PASS_EVENT == PASSIVES[PID].CATEGORY then
7757 Und = Und + PASSIVES[PID].BOOST
7758 end
7759 end
7760 TXT_ESQ:setText(modules.game_database.getStatus(02) + Und)
7761 TXT_ESQ:setTooltip(modules.game_database.getStatus(02).. " + " ..Und.. " (" ..(modules.game_database.getStatus(02) + Und).. ")")
7762 TXT_ESQ:setColor('green')
7763
7764 MOBILE_STATUS_ESQ:setText(modules.game_database.getStatus(02) + Und)
7765 MOBILE_STATUS_ESQ:setTooltip(modules.game_database.getStatus(02).. " + " ..Und.. " (" ..(modules.game_database.getStatus(02) + Und).. ")")
7766 MOBILE_STATUS_ESQ:setColor('green')
7767
7768 SKILL_BOOST_ESQUIVA = Und
7769 else
7770 local Und = PASSIVES[PID].POWER_BASE + (PASSIVES[PID].POWER_FOR_LEVEL * (PASSIVES[PID].STORAGE - 01))
7771 if DAILY_EVENT == 02 then -- PASSIVA DAS CORES
7772 if PASS_EVENT == PASSIVES[PID].CATEGORY then
7773 Und = Und + PASSIVES[PID].BOOST
7774 end
7775 end
7776 TXT_ESQ:setTooltip(modules.game_database.getStatus(02).. " + " ..Und.. " (" ..(modules.game_database.getStatus(02) + Und).. ")")
7777 TXT_ESQ:setColor('white')
7778
7779 MOBILE_STATUS_ESQ:setTooltip(modules.game_database.getStatus(02).. " + " ..Und.. " (" ..(modules.game_database.getStatus(02) + Und).. ")")
7780 MOBILE_STATUS_ESQ:setColor('white')
7781 end
7782 else
7783 TXT_ESQ:setTooltip('')
7784 TXT_ESQ:setColor('white')
7785
7786 MOBILE_STATUS_ESQ:setTooltip('')
7787 MOBILE_STATUS_ESQ:setColor('white')
7788 end
7789
7790 PID = 61
7791 if PASSIVES[PID].STORAGE > 00 and PA_1 == PID or PA_2 == PID or PA_3 == PID or PA_4 == PID or PA_5 == PID or PA_6 == PID then
7792 if healthPercent > 70 then
7793 local Und = PASSIVES[PID].POWER_BASE + (PASSIVES[PID].POWER_FOR_LEVEL * (PASSIVES[PID].STORAGE - 01))
7794 if DAILY_EVENT == 02 then -- PASSIVA DAS CORES
7795 if PASS_EVENT == PASSIVES[PID].CATEGORY then
7796 Und = Und + PASSIVES[PID].BOOST
7797 end
7798 end
7799 TXT_TAX:setText(modules.game_database.getStatus(04) + Und.. "%")
7800 TXT_TAX:setTooltip(modules.game_database.getStatus(04).. " + " ..Und.. " (" ..(modules.game_database.getStatus(04) + Und).. ")")
7801 TXT_TAX:setColor('green')
7802
7803 MOBILE_STATUS_TAX:setText(modules.game_database.getStatus(04) + Und.. "%")
7804 MOBILE_STATUS_TAX:setTooltip(modules.game_database.getStatus(04).. " + " ..Und.. " (" ..(modules.game_database.getStatus(04) + Und).. ")")
7805 MOBILE_STATUS_TAX:setColor('green')
7806
7807 TAXA_CRITICAL_BOOST = TAXA_CRITICAL_BOOST + Und
7808 else
7809 local Und = PASSIVES[PID].POWER_BASE + (PASSIVES[PID].POWER_FOR_LEVEL * (PASSIVES[PID].STORAGE - 01))
7810 if DAILY_EVENT == 02 then -- PASSIVA DAS CORES
7811 if PASS_EVENT == PASSIVES[PID].CATEGORY then
7812 Und = Und + PASSIVES[PID].BOOST
7813 end
7814 end
7815 TXT_TAX:setTooltip(modules.game_database.getStatus(04).. " + " ..Und.. " (" ..(modules.game_database.getStatus(04) + Und).. ")")
7816 TXT_TAX:setColor('white')
7817
7818 MOBILE_STATUS_TAX:setTooltip(modules.game_database.getStatus(04).. " + " ..Und.. " (" ..(modules.game_database.getStatus(04) + Und).. ")")
7819 MOBILE_STATUS_TAX:setColor('white')
7820 end
7821 else
7822 TXT_TAX:setTooltip('')
7823 TXT_TAX:setColor('white')
7824
7825 MOBILE_STATUS_TAX:setTooltip('')
7826 MOBILE_STATUS_TAX:setColor('white')
7827 end
7828
7829 PID = 26
7830 if PASSIVES[PID].STORAGE > 00 and PA_1 == PID or PA_2 == PID or PA_3 == PID or PA_4 == PID or PA_5 == PID or PA_6 == PID then
7831 local Und = PASSIVES[PID].POWER_BASE + (PASSIVES[PID].POWER_FOR_LEVEL * (PASSIVES[PID].STORAGE - 01))
7832 if DAILY_EVENT == 02 then -- PASSIVA DAS CORES
7833 if PASS_EVENT == PASSIVES[PID].CATEGORY then
7834 Und = Und + PASSIVES[PID].BOOST
7835 end
7836 end
7837 TXT_CRI:setText(modules.game_database.getStatus(05) + Und.. "%")
7838 TXT_CRI:setTooltip(modules.game_database.getStatus(05).. " + " ..Und.. " (" ..(modules.game_database.getStatus(05) + Und).. ")")
7839 TXT_CRI:setColor('green')
7840
7841 MOBILE_STATUS_CRI:setText(modules.game_database.getStatus(05) + Und.. "%")
7842 MOBILE_STATUS_CRI:setTooltip(modules.game_database.getStatus(05).. " + " ..Und.. " (" ..(modules.game_database.getStatus(05) + Und).. ")")
7843 MOBILE_STATUS_CRI:setColor('green')
7844
7845 CRITICAL_BOOST = Und
7846 else
7847 TXT_CRI:setTooltip('')
7848 TXT_CRI:setColor('white')
7849
7850 MOBILE_STATUS_CRI:setTooltip('')
7851 MOBILE_STATUS_CRI:setColor('white')
7852 end
7853
7854 PID = 04
7855 local SKILL_ID = 00 -- ESPINGARDA
7856 local skill = menuBackground:recursiveGetChildById('valueSkill' ..SKILL_ID)
7857 local Mobileskill = modules.game_interface.onMobileWindow(116)
7858 if PASSIVES[PID].STORAGE > 00 and PA_1 == PID or PA_2 == PID or PA_3 == PID or PA_4 == PID or PA_5 == PID or PA_6 == PID then
7859 local Und = PASSIVES[PID].POWER_BASE + (PASSIVES[PID].POWER_FOR_LEVEL * (PASSIVES[PID].STORAGE - 01))
7860 if DAILY_EVENT == 02 then -- PASSIVA DAS CORES
7861 if PASS_EVENT == PASSIVES[PID].CATEGORY then
7862 Und = Und + PASSIVES[PID].BOOST
7863 end
7864 end
7865 skill:setColor('green') -- green
7866 skill:setText(localPlayer:getSkillLevel(SKILL_ID) + Und)
7867 skill:setTooltip(localPlayer:getSkillLevel(SKILL_ID) .. ' + ' .. Und)
7868
7869 Mobileskill:setColor('green') -- green
7870 Mobileskill:setText(localPlayer:getSkillLevel(SKILL_ID) + Und)
7871 Mobileskill:setTooltip(localPlayer:getSkillLevel(SKILL_ID) .. ' + ' .. Und)
7872
7873 SKILL_BOOST_ESPINGARDA_CHECK = Und
7874 else
7875 skill:setText(localPlayer:getSkillLevel(SKILL_ID))
7876 skill:setTooltip('')
7877 skill:setColor('white')
7878
7879 Mobileskill:setText(localPlayer:getSkillLevel(SKILL_ID))
7880 Mobileskill:setTooltip('')
7881 Mobileskill:setColor('white')
7882 end
7883 PID = 11
7884 SKILL_ID = 02 -- RIFLE
7885 skill = menuBackground:recursiveGetChildById('valueSkill' ..SKILL_ID)
7886 Mobileskill = modules.game_interface.onMobileWindow(114)
7887 if PASSIVES[PID].STORAGE > 00 and PA_1 == PID or PA_2 == PID or PA_3 == PID or PA_4 == PID or PA_5 == PID or PA_6 == PID then
7888 local Und = PASSIVES[PID].POWER_BASE + (PASSIVES[PID].POWER_FOR_LEVEL * (PASSIVES[PID].STORAGE - 01))
7889 if DAILY_EVENT == 02 then -- PASSIVA DAS CORES
7890 if PASS_EVENT == PASSIVES[PID].CATEGORY then
7891 Und = Und + PASSIVES[PID].BOOST
7892 end
7893 end
7894 skill:setColor('green') -- green
7895 skill:setText(localPlayer:getSkillLevel(SKILL_ID) + Und)
7896 skill:setTooltip(localPlayer:getSkillLevel(SKILL_ID) .. ' + ' .. Und)
7897
7898 Mobileskill:setColor('green') -- green
7899 Mobileskill:setText(localPlayer:getSkillLevel(SKILL_ID) + Und)
7900 Mobileskill:setTooltip(localPlayer:getSkillLevel(SKILL_ID) .. ' + ' .. Und)
7901
7902 SKILL_BOOST_RIFLE_CHECK = Und
7903 else
7904 skill:setText(localPlayer:getSkillLevel(SKILL_ID))
7905 skill:setTooltip('')
7906 skill:setColor('white')
7907
7908 Mobileskill:setText(localPlayer:getSkillLevel(SKILL_ID))
7909 Mobileskill:setTooltip('')
7910 Mobileskill:setColor('white')
7911 end
7912 PID = 25
7913 SKILL_ID = 03 -- PISTOLA
7914 skill = menuBackground:recursiveGetChildById('valueSkill' ..SKILL_ID)
7915 Mobileskill = modules.game_interface.onMobileWindow(115)
7916 if PASSIVES[PID].STORAGE > 00 and PA_1 == PID or PA_2 == PID or PA_3 == PID or PA_4 == PID or PA_5 == PID or PA_6 == PID then
7917 local Und = PASSIVES[PID].POWER_BASE + (PASSIVES[PID].POWER_FOR_LEVEL * (PASSIVES[PID].STORAGE - 01))
7918 if DAILY_EVENT == 02 then -- PASSIVA DAS CORES
7919 if PASS_EVENT == PASSIVES[PID].CATEGORY then
7920 Und = Und + PASSIVES[PID].BOOST
7921 end
7922 end
7923 skill:setColor('green') -- green
7924 skill:setText(localPlayer:getSkillLevel(SKILL_ID) + Und)
7925 skill:setTooltip(localPlayer:getSkillLevel(SKILL_ID) .. ' + ' .. Und)
7926
7927 Mobileskill:setColor('green') -- green
7928 Mobileskill:setText(localPlayer:getSkillLevel(SKILL_ID) + Und)
7929 Mobileskill:setTooltip(localPlayer:getSkillLevel(SKILL_ID) .. ' + ' .. Und)
7930
7931 SKILL_BOOST_PISTOLA_CHECK = Und
7932 else
7933 skill:setText(localPlayer:getSkillLevel(SKILL_ID))
7934 skill:setTooltip('')
7935 skill:setColor('white')
7936
7937 Mobileskill:setText(localPlayer:getSkillLevel(SKILL_ID))
7938 Mobileskill:setTooltip('')
7939 Mobileskill:setColor('white')
7940 end
7941 PID = 40
7942 SKILL_ID = 01 -- METRALHADORA
7943 skill = menuBackground:recursiveGetChildById('valueSkill' ..SKILL_ID)
7944 Mobileskill = modules.game_interface.onMobileWindow(113)
7945 if PASSIVES[PID].STORAGE > 00 and PA_1 == PID or PA_2 == PID or PA_3 == PID or PA_4 == PID or PA_5 == PID or PA_6 == PID then
7946 local Und = PASSIVES[PID].POWER_BASE + (PASSIVES[PID].POWER_FOR_LEVEL * (PASSIVES[PID].STORAGE - 01))
7947 if DAILY_EVENT == 02 then -- PASSIVA DAS CORES
7948 if PASS_EVENT == PASSIVES[PID].CATEGORY then
7949 Und = Und + PASSIVES[PID].BOOST
7950 end
7951 end
7952 skill:setColor('green') -- green
7953 skill:setText(localPlayer:getSkillLevel(SKILL_ID) + Und)
7954 skill:setTooltip(localPlayer:getSkillLevel(SKILL_ID) .. ' + ' .. Und)
7955
7956 Mobileskill:setColor('green') -- green
7957 Mobileskill:setText(localPlayer:getSkillLevel(SKILL_ID) + Und)
7958 Mobileskill:setTooltip(localPlayer:getSkillLevel(SKILL_ID) .. ' + ' .. Und)
7959
7960 SKILL_BOOST_METRALHADORA_CHECK = Und
7961 else
7962 skill:setText(localPlayer:getSkillLevel(SKILL_ID))
7963 skill:setTooltip('')
7964 skill:setColor('white')
7965
7966 Mobileskill:setText(localPlayer:getSkillLevel(SKILL_ID))
7967 Mobileskill:setTooltip('')
7968 Mobileskill:setColor('white')
7969 end
7970
7971 -- BONUS EXTRA
7972 PID = 02
7973 SKILL_ID = 03 -- PISTOLA
7974 skill = menuBackground:recursiveGetChildById('valueSkill' ..SKILL_ID)
7975 Mobileskill = modules.game_interface.onMobileWindow(115)
7976 SKILL_UND = SKILL_BOOST_PISTOLA_CHECK
7977 if modules.game_database.onGetBonusExtra(PID) > 00 then
7978 local Und = 0
7979 if SKILL_UND > 00 then
7980 Und = SKILL_UND
7981 end
7982
7983 skill:setColor('green') -- green
7984 skill:setText(localPlayer:getSkillLevel(SKILL_ID) + (Und + modules.game_database.onGetBonusExtra(PID)))
7985 skill:setTooltip(localPlayer:getSkillLevel(SKILL_ID) .. ' + ' .. Und .. " + " ..modules.game_database.onGetBonusExtra(PID))
7986
7987 Mobileskill:setColor('green') -- green
7988 Mobileskill:setText(localPlayer:getSkillLevel(SKILL_ID) + (Und + modules.game_database.onGetBonusExtra(PID)))
7989 Mobileskill:setTooltip(localPlayer:getSkillLevel(SKILL_ID) .. ' + ' .. Und .. " + " ..modules.game_database.onGetBonusExtra(PID))
7990 else
7991 if SKILL_UND > 00 then
7992 skill:setColor('green') -- green
7993 skill:setText(localPlayer:getSkillLevel(SKILL_ID) + SKILL_UND)
7994 skill:setTooltip(localPlayer:getSkillLevel(SKILL_ID) .. ' + ' .. SKILL_UND)
7995
7996 Mobileskill:setColor('green') -- green
7997 Mobileskill:setText(localPlayer:getSkillLevel(SKILL_ID) + SKILL_UND)
7998 Mobileskill:setTooltip(localPlayer:getSkillLevel(SKILL_ID) .. ' + ' .. SKILL_UND)
7999 else
8000 skill:setText(localPlayer:getSkillLevel(SKILL_ID))
8001 skill:setTooltip('')
8002 skill:setColor('white')
8003
8004 Mobileskill:setText(localPlayer:getSkillLevel(SKILL_ID))
8005 Mobileskill:setTooltip('')
8006 Mobileskill:setColor('white')
8007 end
8008 end
8009
8010 PID = 03
8011 SKILL_ID = 01 -- METRALHADORA
8012 skill = menuBackground:recursiveGetChildById('valueSkill' ..SKILL_ID)
8013 Mobileskill = modules.game_interface.onMobileWindow(113)
8014 SKILL_UND = SKILL_BOOST_METRALHADORA_CHECK
8015 if modules.game_database.onGetBonusExtra(PID) > 00 then
8016 local Und = 0
8017 if SKILL_UND > 00 then
8018 Und = SKILL_UND
8019 end
8020
8021 skill:setColor('green') -- green
8022 skill:setText(localPlayer:getSkillLevel(SKILL_ID) + (Und + modules.game_database.onGetBonusExtra(PID)))
8023 skill:setTooltip(localPlayer:getSkillLevel(SKILL_ID) .. ' + ' .. Und .. " + " ..modules.game_database.onGetBonusExtra(PID))
8024
8025 Mobileskill:setColor('green') -- green
8026 Mobileskill:setText(localPlayer:getSkillLevel(SKILL_ID) + (Und + modules.game_database.onGetBonusExtra(PID)))
8027 Mobileskill:setTooltip(localPlayer:getSkillLevel(SKILL_ID) .. ' + ' .. Und .. " + " ..modules.game_database.onGetBonusExtra(PID))
8028 else
8029 if SKILL_UND > 00 then
8030 skill:setColor('green') -- green
8031 skill:setText(localPlayer:getSkillLevel(SKILL_ID) + SKILL_UND)
8032 skill:setTooltip(localPlayer:getSkillLevel(SKILL_ID) .. ' + ' .. SKILL_UND)
8033
8034 Mobileskill:setColor('green') -- green
8035 Mobileskill:setText(localPlayer:getSkillLevel(SKILL_ID) + SKILL_UND)
8036 Mobileskill:setTooltip(localPlayer:getSkillLevel(SKILL_ID) .. ' + ' .. SKILL_UND)
8037 else
8038 skill:setText(localPlayer:getSkillLevel(SKILL_ID))
8039 skill:setTooltip('')
8040 skill:setColor('white')
8041
8042 Mobileskill:setText(localPlayer:getSkillLevel(SKILL_ID))
8043 Mobileskill:setTooltip('')
8044 Mobileskill:setColor('white')
8045 end
8046 end
8047
8048 PID = 04
8049 SKILL_ID = 00 -- ESPINGARDA
8050 skill = menuBackground:recursiveGetChildById('valueSkill' ..SKILL_ID)
8051 Mobileskill = modules.game_interface.onMobileWindow(116)
8052 SKILL_UND = SKILL_BOOST_ESPINGARDA_CHECK
8053 if modules.game_database.onGetBonusExtra(PID) > 00 then
8054 local Und = 0
8055 if SKILL_UND > 00 then
8056 Und = SKILL_UND
8057 end
8058
8059 skill:setColor('green') -- green
8060 skill:setText(localPlayer:getSkillLevel(SKILL_ID) + (Und + modules.game_database.onGetBonusExtra(PID)))
8061 skill:setTooltip(localPlayer:getSkillLevel(SKILL_ID) .. ' + ' .. Und .. " + " ..modules.game_database.onGetBonusExtra(PID))
8062
8063 Mobileskill:setColor('green') -- green
8064 Mobileskill:setText(localPlayer:getSkillLevel(SKILL_ID) + (Und + modules.game_database.onGetBonusExtra(PID)))
8065 Mobileskill:setTooltip(localPlayer:getSkillLevel(SKILL_ID) .. ' + ' .. Und .. " + " ..modules.game_database.onGetBonusExtra(PID))
8066 else
8067 if SKILL_UND > 00 then
8068 skill:setColor('green') -- green
8069 skill:setText(localPlayer:getSkillLevel(SKILL_ID) + SKILL_UND)
8070 skill:setTooltip(localPlayer:getSkillLevel(SKILL_ID) .. ' + ' .. SKILL_UND)
8071
8072 Mobileskill:setColor('green') -- green
8073 Mobileskill:setText(localPlayer:getSkillLevel(SKILL_ID) + SKILL_UND)
8074 Mobileskill:setTooltip(localPlayer:getSkillLevel(SKILL_ID) .. ' + ' .. SKILL_UND)
8075 else
8076 skill:setText(localPlayer:getSkillLevel(SKILL_ID))
8077 skill:setTooltip('')
8078 skill:setColor('white')
8079
8080 Mobileskill:setText(localPlayer:getSkillLevel(SKILL_ID))
8081 Mobileskill:setTooltip('')
8082 Mobileskill:setColor('white')
8083 end
8084 end
8085
8086 PID = 05
8087 SKILL_ID = 02 -- RIFLE
8088 skill = menuBackground:recursiveGetChildById('valueSkill' ..SKILL_ID)
8089 Mobileskill = modules.game_interface.onMobileWindow(114)
8090 SKILL_UND = SKILL_BOOST_RIFLE_CHECK
8091 if modules.game_database.onGetBonusExtra(PID) > 00 then
8092 local Und = 0
8093 if SKILL_UND > 00 then
8094 Und = SKILL_UND
8095 end
8096
8097 skill:setColor('green') -- green
8098 skill:setText(localPlayer:getSkillLevel(SKILL_ID) + (Und + modules.game_database.onGetBonusExtra(PID)))
8099 skill:setTooltip(localPlayer:getSkillLevel(SKILL_ID) .. ' + ' .. Und .. " + " ..modules.game_database.onGetBonusExtra(PID))
8100
8101 Mobileskill:setColor('green') -- green
8102 Mobileskill:setText(localPlayer:getSkillLevel(SKILL_ID) + (Und + modules.game_database.onGetBonusExtra(PID)))
8103 Mobileskill:setTooltip(localPlayer:getSkillLevel(SKILL_ID) .. ' + ' .. Und .. " + " ..modules.game_database.onGetBonusExtra(PID))
8104 else
8105 if SKILL_UND > 00 then
8106 skill:setColor('green') -- green
8107 skill:setText(localPlayer:getSkillLevel(SKILL_ID) + SKILL_UND)
8108 skill:setTooltip(localPlayer:getSkillLevel(SKILL_ID) .. ' + ' .. SKILL_UND)
8109
8110 Mobileskill:setColor('green') -- green
8111 Mobileskill:setText(localPlayer:getSkillLevel(SKILL_ID) + SKILL_UND)
8112 Mobileskill:setTooltip(localPlayer:getSkillLevel(SKILL_ID) .. ' + ' .. SKILL_UND)
8113 else
8114 skill:setText(localPlayer:getSkillLevel(SKILL_ID))
8115 skill:setTooltip('')
8116 skill:setColor('white')
8117
8118 Mobileskill:setText(localPlayer:getSkillLevel(SKILL_ID))
8119 Mobileskill:setTooltip('')
8120 Mobileskill:setColor('white')
8121 end
8122 end
8123
8124 PID = 06
8125 SKILL_UND = CRITICAL_BOOST -- CRITICAL DAMAGE
8126 if modules.game_database.onGetBonusExtra(PID) > 00 then
8127 local Und = 0
8128 if SKILL_UND > 00 then
8129 Und = SKILL_UND
8130 end
8131
8132 TXT_CRI:setText(modules.game_database.getStatus(05) + (Und + modules.game_database.onGetBonusExtra(PID)).. "%")
8133 TXT_CRI:setTooltip(modules.game_database.getStatus(05).. " + " ..Und.. " + " ..modules.game_database.onGetBonusExtra(PID).. " (" ..(modules.game_database.getStatus(05) + Und + modules.game_database.onGetBonusExtra(PID)).. ")")
8134 TXT_CRI:setColor('green')
8135
8136 MOBILE_STATUS_CRI:setText(modules.game_database.getStatus(05) + (Und + modules.game_database.onGetBonusExtra(PID)).. "%")
8137 MOBILE_STATUS_CRI:setTooltip(modules.game_database.getStatus(05).. " + " ..Und.. " + " ..modules.game_database.onGetBonusExtra(PID).. " (" ..(modules.game_database.getStatus(05) + Und + modules.game_database.onGetBonusExtra(PID)).. ")")
8138 MOBILE_STATUS_CRI:setColor('green')
8139 else
8140 if SKILL_UND > 00 then
8141 TXT_CRI:setText(modules.game_database.getStatus(05) + SKILL_UND.. "%")
8142 TXT_CRI:setTooltip(modules.game_database.getStatus(05).. " + " ..SKILL_UND.. " (" ..(modules.game_database.getStatus(05) + SKILL_UND).. ")")
8143 TXT_CRI:setColor('green')
8144
8145 MOBILE_STATUS_CRI:setText(modules.game_database.getStatus(05) + SKILL_UND.. "%")
8146 MOBILE_STATUS_CRI:setTooltip(modules.game_database.getStatus(05).. " + " ..SKILL_UND.. " (" ..(modules.game_database.getStatus(05) + SKILL_UND).. ")")
8147 MOBILE_STATUS_CRI:setColor('green')
8148 else
8149 TXT_CRI:setTooltip('')
8150 TXT_CRI:setColor('white')
8151
8152 MOBILE_STATUS_CRI:setTooltip('')
8153 MOBILE_STATUS_CRI:setColor('white')
8154 end
8155 end
8156
8157 PID = 07
8158 SKILL_UND = TAXA_CRITICAL_BOOST -- TAXA CRITICA
8159 if modules.game_database.onGetBonusExtra(PID) > 00 then
8160 local Und = 0
8161 if SKILL_UND > 00 then
8162 Und = SKILL_UND
8163 end
8164
8165 TXT_TAX:setText(modules.game_database.getStatus(05) + (Und + modules.game_database.onGetBonusExtra(PID)).. "%")
8166 TXT_TAX:setTooltip(modules.game_database.getStatus(05).. " + " ..Und.. " + " ..modules.game_database.onGetBonusExtra(PID).. " (" ..(modules.game_database.getStatus(05) + Und + modules.game_database.onGetBonusExtra(PID)).. ")")
8167 TXT_TAX:setColor('green')
8168
8169 MOBILE_STATUS_TAX:setText(modules.game_database.getStatus(05) + (Und + modules.game_database.onGetBonusExtra(PID)).. "%")
8170 MOBILE_STATUS_TAX:setTooltip(modules.game_database.getStatus(05).. " + " ..Und.. " + " ..modules.game_database.onGetBonusExtra(PID).. " (" ..(modules.game_database.getStatus(05) + Und + modules.game_database.onGetBonusExtra(PID)).. ")")
8171 MOBILE_STATUS_TAX:setColor('green')
8172 else
8173 if SKILL_UND > 00 then
8174 TXT_TAX:setText(modules.game_database.getStatus(05) + SKILL_UND.. "%")
8175 TXT_TAX:setTooltip(modules.game_database.getStatus(05).. " + " ..SKILL_UND.. " (" ..(modules.game_database.getStatus(05) + SKILL_UND).. ")")
8176 TXT_TAX:setColor('green')
8177
8178 MOBILE_STATUS_TAX:setText(modules.game_database.getStatus(05) + SKILL_UND.. "%")
8179 MOBILE_STATUS_TAX:setTooltip(modules.game_database.getStatus(05).. " + " ..SKILL_UND.. " (" ..(modules.game_database.getStatus(05) + SKILL_UND).. ")")
8180 MOBILE_STATUS_TAX:setColor('green')
8181 else
8182 TXT_TAX:setTooltip('')
8183 TXT_TAX:setColor('white')
8184
8185 MOBILE_STATUS_TAX:setTooltip('')
8186 MOBILE_STATUS_TAX:setColor('white')
8187 end
8188 end
8189
8190 PID = 32
8191 SKILL_UND = SKILL_BOOST_DEFESA -- DEFESA
8192 if modules.game_database.onGetBonusExtra(PID) > 00 then
8193 local Und = 0
8194 if SKILL_UND > 00 then
8195 Und = SKILL_UND
8196 end
8197
8198 TXT_DEF:setText(modules.game_database.getStatus(01) + (Und + modules.game_database.onGetBonusExtra(PID)))
8199 TXT_DEF:setTooltip(modules.game_database.getStatus(01).. " + " ..Und.. " + " ..modules.game_database.onGetBonusExtra(PID).. " (" ..(modules.game_database.getStatus(01) + Und + modules.game_database.onGetBonusExtra(PID)).. ")")
8200 TXT_DEF:setColor('green')
8201
8202 MOBILE_STATUS_DEF:setText(modules.game_database.getStatus(01) + (Und + modules.game_database.onGetBonusExtra(PID)))
8203 MOBILE_STATUS_DEF:setTooltip(modules.game_database.getStatus(01).. " + " ..Und.. " + " ..modules.game_database.onGetBonusExtra(PID).. " (" ..(modules.game_database.getStatus(01) + Und + modules.game_database.onGetBonusExtra(PID)).. ")")
8204 MOBILE_STATUS_DEF:setColor('green')
8205 else
8206 if SKILL_UND > 00 then
8207 TXT_DEF:setText(modules.game_database.getStatus(01) + SKILL_UND)
8208 TXT_DEF:setTooltip(modules.game_database.getStatus(01).. " + " ..SKILL_UND.. " (" ..(modules.game_database.getStatus(01) + SKILL_UND).. ")")
8209 TXT_DEF:setColor('green')
8210
8211 MOBILE_STATUS_DEF:setText(modules.game_database.getStatus(01) + SKILL_UND)
8212 MOBILE_STATUS_DEF:setTooltip(modules.game_database.getStatus(01).. " + " ..SKILL_UND.. " (" ..(modules.game_database.getStatus(01) + SKILL_UND).. ")")
8213 MOBILE_STATUS_DEF:setColor('green')
8214 else
8215 TXT_DEF:setTooltip('')
8216 TXT_DEF:setColor('white')
8217
8218 MOBILE_STATUS_DEF:setTooltip('')
8219 MOBILE_STATUS_DEF:setColor('white')
8220 end
8221 end
8222
8223 PID = 44
8224 SKILL_UND = SKILL_BOOST_ESQUIVA -- ESQUIVA
8225 if modules.game_database.onGetBonusExtra(PID) > 00 then
8226 local Und = 0
8227 if SKILL_UND > 00 then
8228 Und = SKILL_UND
8229 end
8230
8231 TXT_ESQ:setText(modules.game_database.getStatus(02) + (Und + modules.game_database.onGetBonusExtra(PID)))
8232 TXT_ESQ:setTooltip(modules.game_database.getStatus(02).. " + " ..Und.. " + " ..modules.game_database.onGetBonusExtra(PID).. " (" ..(modules.game_database.getStatus(02) + Und + modules.game_database.onGetBonusExtra(PID)).. ")")
8233 TXT_ESQ:setColor('green')
8234
8235 MOBILE_STATUS_ESQ:setText(modules.game_database.getStatus(02) + (Und + modules.game_database.onGetBonusExtra(PID)))
8236 MOBILE_STATUS_ESQ:setTooltip(modules.game_database.getStatus(02).. " + " ..Und.. " + " ..modules.game_database.onGetBonusExtra(PID).. " (" ..(modules.game_database.getStatus(02) + Und + modules.game_database.onGetBonusExtra(PID)).. ")")
8237 MOBILE_STATUS_ESQ:setColor('green')
8238 else
8239 if SKILL_UND > 00 then
8240 TXT_ESQ:setText(modules.game_database.getStatus(02) + SKILL_UND)
8241 TXT_ESQ:setTooltip(modules.game_database.getStatus(02).. " + " ..SKILL_UND.. " (" ..(modules.game_database.getStatus(02) + SKILL_UND).. ")")
8242 TXT_ESQ:setColor('green')
8243
8244 MOBILE_STATUS_ESQ:setText(modules.game_database.getStatus(02) + SKILL_UND)
8245 MOBILE_STATUS_ESQ:setTooltip(modules.game_database.getStatus(02).. " + " ..SKILL_UND.. " (" ..(modules.game_database.getStatus(02) + SKILL_UND).. ")")
8246 MOBILE_STATUS_ESQ:setColor('green')
8247 else
8248 TXT_ESQ:setTooltip('')
8249 TXT_ESQ:setColor('white')
8250
8251 MOBILE_STATUS_ESQ:setTooltip('')
8252 MOBILE_STATUS_ESQ:setColor('white')
8253 end
8254 end
8255
8256end
8257-- CRIPTOMOEDA
8258function onPix(step, txt)
8259 if step == 01 then -- ABRIR JANELA PIX
8260 PixBoxView = true
8261 pixBox:show()
8262 end
8263 if step == 02 then -- NOME
8264 PIX_LABEL_NAME:setText(txt)
8265 end
8266 if step == 03 then -- EMAIL
8267 PIX_LABEL_EMAIL:setText(txt)
8268 end
8269 if step == 04 then -- BANCO
8270 PIX_LABEL_BANK:setText(txt)
8271 end
8272end
8273function onMobileFinishRequest(id, request, name, email, banco, finalcoin, price, oldcript, idd, editvalor)
8274 if id == 02 then
8275 g_game.getProtocolGame():sendExtendedOpcode(Opcode_cripto, "2," ..request.. "," ..name.. "," ..email.. "," ..banco.. "," ..finalcoin.. "," ..price.. "," ..oldcript.. "," ..idd.. "," ..editvalor)
8276 else
8277 g_game.getProtocolGame():sendExtendedOpcode(Opcode_cripto, "1," ..request.. "," ..name.. "," ..email.. "," ..banco.. "," ..finalcoin.. "," ..price.. "," ..oldcript)
8278 end
8279end
8280function onPaymentMeth()
8281 local localPlayer = g_game.getLocalPlayer()
8282 onHiderWindows()
8283 LOAD_REQUEST:show()
8284
8285 local VipConsPayment = 00
8286 local realDin = DinRealCalculo
8287 repeat
8288 realDin = realDin - 0.30
8289 VipConsPayment = VipConsPayment + 01
8290 until realDin < 00
8291 VipConsPayment = VipConsPayment - 01
8292 if VipConsPayment < 00 then
8293 VipConsPayment = 00
8294 end
8295 PAYMENT_METH_REAL:setText(tr('SER PAGO COM DINHEIRO REAL').. ':\nR$ ' ..mask_number(DinRealCalculo))
8296 PAYMENT_METH_VIP:setText(tr('SER PAGO COM VIP COINS').. ':\n' ..VipConsPayment)
8297 PAYMENT_METH_REAL.onClick = function()
8298 if DinRealCalculo < 01 then
8299 modules.game_interface.onLoginAdvice(tr("E necessario ter no minimo R$ 1.00 para poder solicitar pagamento."))
8300 return
8301 end
8302 if SaldoBlacklist < 01 then
8303 modules.game_interface.onLoginAdvice(tr("Nao ha saldo suficiente no black market."))
8304 return
8305 end
8306 onHiderWindows()
8307 onRequestPay(01)
8308 end
8309 PAYMENT_METH_VIP.onClick = function()
8310 if VipConsPayment > 00 then
8311 local yesChoose = function()
8312 g_game.talk(g_game.talk("!inventario 45 " ..DinRealCalculo))
8313 buyVipWindow:destroy()
8314
8315 onHiderWindows()
8316 LOAD_REQUEST:show()
8317 scheduleEvent(function()
8318 g_game.talk(g_game.talk("!inventario 37"))
8319 return
8320 end, 500)
8321 return
8322 end
8323 local noChoose = function()
8324 buyVipWindow:destroy()
8325 end
8326 buyVipWindow = displayGeneralBox(tr('Comprar Vip Coins'), tr("Essa acao nao podera ser desfeita.\nDeseja comprar").. " " ..VipConsPayment.. " " ..tr("Vip Coins usando todas as suas").. " " ..CriptoMoeda.. " " ..tr("criptomoedas").. "?",
8327 { { text=tr('Comprar'), callback=yesChoose },
8328 { text=tr('Cancelar'), callback=noChoose },
8329 anchor=AnchorHorizontalCenter }, yesChoose, noChoose)
8330 return
8331 else
8332 modules.game_interface.onLoginAdvice(tr("Voce nao possui saldo suficiente."))
8333 return
8334 end
8335 end
8336
8337 if HIGH_PLAYER_ACCOUNT ~= localPlayer:getName() then
8338 PAYMENT_METH_REAL:disable()
8339 PAYMENT_METH_VIP:disable()
8340 PAYMENT_METH_REAL:setImageSource("/images/custom/Task/Monster_5")
8341 PAYMENT_METH_VIP:setImageSource("/images/custom/Task/Monster_5")
8342 PAYMENT_METH_DESC:setText(tr('Somente o personagem de nivel mais alto nessa conta pode usar estes servicos.'))
8343 else
8344 PAYMENT_METH_DESC:setText('')
8345 PAYMENT_METH_REAL:enable()
8346 PAYMENT_METH_VIP:enable()
8347 PAYMENT_METH_REAL:setImageSource("/images/custom/Task/Monster_4")
8348 PAYMENT_METH_VIP:setImageSource("/images/custom/Task/Monster_2")
8349 end
8350 scheduleEvent(function()
8351 LOAD_REQUEST:hide()
8352 PAYMENT_METH_PANEL:show()
8353 return
8354 end, 500)
8355end
8356function onRequestPay(step, edit, finish)
8357 REQUEST_STEP_1:hide()
8358 REQUEST_STEP_2:hide()
8359 REQUEST_STEP_3:hide()
8360 local VALOR_INICIAL = CriptoMoeda * CriptoPrice
8361 if edit == nil then
8362 if VALOR_INICIAL < 01 then
8363 modules.game_interface.onLoginAdvice(tr("E necessario ter no minimo R$ 1.00 para poder solicitar pagamento."))
8364 return
8365 end
8366 end
8367 if step == 01 then
8368 CRIPT_PANEL:hide()
8369 REQUEST_PAY_PANEL:hide()
8370 LOAD_REQUEST:show()
8371 STEP_REQUEST:setImageSource("/images/custom/UI/step_1")
8372
8373 if edit then
8374 PIX_REAL_NAME = HISTORY_CRIPTO[edit].NAME
8375 PIX_EMAIL = HISTORY_CRIPTO[edit].EMAIL
8376 PIX_BANK = HISTORY_CRIPTO[edit].BANK
8377 PIX_LABEL_NAME:setText(PIX_REAL_NAME)
8378 PIX_LABEL_EMAIL:setText(PIX_EMAIL)
8379 PIX_LABEL_BANK:setText(PIX_BANK)
8380
8381 LOAD_REQUEST:hide()
8382 REQUEST_STEP_1:show()
8383 REQUEST_PAY_PANEL:show()
8384 end
8385
8386 PIX_EDIT.onClick = function()
8387 EDIT_REAL_NAME:setText(PIX_REAL_NAME)
8388 EDIT_EMAIL:setText(PIX_EMAIL)
8389 EDIT_BANK:setText(PIX_BANK)
8390
8391 PixBoxView = true
8392 pixBox:show()
8393 end
8394 LAST_STEP_1.onClick = function()
8395 REQUEST_STEP_1:hide()
8396 REQUEST_STEP_2:hide()
8397 REQUEST_STEP_3:hide()
8398 CRIPT_PANEL:hide()
8399 REQUEST_PAY_PANEL:hide()
8400 PAYMENT_METH_PANEL:hide()
8401 onPaymentMeth()
8402 end
8403 NEXT_STEP_1.onClick = function()
8404 if #PIX_REAL_NAME > 04 then
8405 if #PIX_EMAIL > 10 then
8406 if #PIX_BANK > 04 then
8407 if edit then
8408 onRequestPay(02, edit)
8409 else
8410 onRequestPay(02)
8411 end
8412 else
8413 modules.game_interface.onLoginAdvice(tr("Nome da instituicao financeira negado."))
8414 return
8415 end
8416 else
8417 modules.game_interface.onLoginAdvice(tr("Email invalido."))
8418 return
8419 end
8420 else
8421 modules.game_interface.onLoginAdvice(tr("Nome muito curto."))
8422 return
8423 end
8424 end
8425 if edit then
8426 return
8427 else
8428 scheduleEvent(function() g_game.talk("!inventario 38") end, 500)
8429 end
8430 end
8431 if step == 02 then
8432 CRIPT_PANEL:hide()
8433 REQUEST_PAY_PANEL:hide()
8434 LOAD_REQUEST:show()
8435 STEP_REQUEST:setImageSource("/images/custom/UI/step_2")
8436
8437 local NEW_MAX = 0
8438 local NewMoeda, NewPrice = 0, 0
8439 if edit then
8440 EditOldValor = HISTORY_CRIPTO[edit].VALOR
8441 EditOldCript = HISTORY_CRIPTO[edit].CRIPTOMOEDA
8442 NewPrice = HISTORY_CRIPTO[edit].PRICE
8443 NEW_MAX = HISTORY_CRIPTO[edit].CRIPTOMOEDA + CriptoMoeda
8444
8445 NewMoeda = HISTORY_CRIPTO[edit].CRIPTOMOEDA
8446 RequestFinalCoin = NewMoeda
8447 CRIPT_SCROLL:setMaximum(NEW_MAX)
8448 CRIPT_SCROLL:setValue(NewMoeda)
8449 CRIPT_COUNT:setText(NewMoeda)
8450 RequestFinalValor = NewMoeda * NewPrice
8451 CRIPT_FINAL_PRICE:setText(tr("R$").. " " ..RequestFinalValor)
8452 else
8453 CRIPT_COUNT:setText(CriptoMoeda)
8454 CRIPT_SCROLL:setValue(CriptoMoeda)
8455 CRIPT_SCROLL:setMaximum(CriptoMoeda)
8456 CRIPT_FINAL_PRICE:setText(tr("R$").. " " ..VALOR_INICIAL)
8457 RequestFinalCoin = CriptoMoeda
8458 RequestFinalValor = VALOR_INICIAL
8459 end
8460
8461 CRIPT_SCROLL:setMinimum(0)
8462
8463 CRIPT_SCROLL.onValueChange = function(self, value)
8464 local FinalPrice = value * CriptoPrice
8465 if edit then
8466 FinalPrice = value * NewPrice
8467 end
8468
8469 CRIPT_COUNT:setText(value)
8470 CRIPT_FINAL_PRICE:setText(tr("R$").. " " ..FinalPrice)
8471 RequestFinalCoin = value
8472 RequestFinalValor = FinalPrice
8473 end
8474 NEXT_STEP_2.onClick = function()
8475 if edit then
8476 local CHECK_PRICE_CRIPT = RequestFinalCoin * NewPrice
8477 if CHECK_PRICE_CRIPT == 00 then
8478 local yesChoose = function()
8479 g_game.getProtocolGame():sendExtendedOpcode(Opcode_cripto, "3," ..HISTORY_CRIPTO[edit].VALOR.. "," ..PIX_REAL_NAME.. "," ..PIX_EMAIL.. "," ..PIX_BANK.. "," ..HISTORY_CRIPTO[edit].CRIPTOMOEDA.. "," ..CriptoPrice.. "," ..EditOldCript.. "," ..HISTORY_CRIPTO[edit].ID.. "," ..EditOldValor)
8480 exitWindow:destroy()
8481 REQUEST_STEP_1:hide()
8482 REQUEST_STEP_2:hide()
8483 REQUEST_STEP_3:hide()
8484 REQUEST_PAY_PANEL:hide()
8485 LOAD_REQUEST:show()
8486 return
8487 end
8488 local noChoose = function() exitWindow:destroy() end
8489
8490 exitWindow = displayGeneralBox(tr('Deletar Pedido'), tr("Continuar deletara esse pedido de pagamento.\nDeseja realmente deletar este pedido?"),
8491 { { text=tr('Yes'), callback=yesChoose },
8492 { text=tr('No'), callback=noChoose },
8493 anchor=AnchorHorizontalCenter }, yesChoose, noChoose)
8494 return
8495
8496 elseif CHECK_PRICE_CRIPT > 00 and CHECK_PRICE_CRIPT < 01 then
8497 modules.game_interface.onLoginAdvice(tr("E necessario ter no minimo R$ 1.00 para poder solicitar pagamento."))
8498 return
8499 end
8500 onRequestPay(03, edit, true)
8501 else
8502 local CHECK_PRICE_CRIPT = RequestFinalCoin * CriptoPrice
8503 if CHECK_PRICE_CRIPT < 01 then
8504 modules.game_interface.onLoginAdvice(tr("E necessario ter no minimo R$ 1.00 para poder solicitar pagamento."))
8505 return
8506 end
8507 onRequestPay(03)
8508 end
8509 end
8510 LAST_STEP_2.onClick = function()
8511 if edit then
8512 onRequestPay(01, edit)
8513 else
8514 onRequestPay(01)
8515 end
8516 end
8517 scheduleEvent(function()
8518 REQUEST_STEP_2:show()
8519 REQUEST_PAY_PANEL:show()
8520 LOAD_REQUEST:hide()
8521 end, 500)
8522 end
8523 if step == 03 then
8524 CRIPT_PANEL:hide()
8525 REQUEST_PAY_PANEL:hide()
8526 LOAD_REQUEST:show()
8527 if edit then
8528 if finish then
8529 FINAL_INFO:setText(tr("Qualquer divergencia envolvendo nome do titular, chave pix ou instituicao financeira anulara o pedido."))
8530 STEP_REQUEST:show()
8531 NEXT_STEP_3:setText(tr("AVANCAR"))
8532 NEXT_STEP_3:show()
8533 LAST_STEP_3:show()
8534 STEP_REQUEST:setImageSource("/images/custom/UI/step_3")
8535
8536 FINAL_VALOR:setText(tr("R$").. " " ..RequestFinalValor)
8537 FINAL_NOME:setText(PIX_REAL_NAME)
8538 FINAL_EMAIL:setText(PIX_EMAIL)
8539 FINAL_BANK:setText(PIX_BANK)
8540 FINAL_COIN:setText(RequestFinalCoin)
8541
8542 NEXT_STEP_3.onClick = function()
8543 if RequestFinalValor > SaldoBlacklist then
8544 modules.game_interface.onLoginAdvice(tr("Nao ha saldo suficiente na Black Market para pagar sua solicitacao."))
8545 return
8546 end
8547 onFinalizarRequest(edit)
8548 end
8549 LAST_STEP_3.onClick = function()
8550 onRequestPay(02, edit)
8551 end
8552 else
8553 STEP_REQUEST:hide()
8554 if HISTORY_CRIPTO[edit].STATUS == 01 then
8555 FINAL_INFO:setText(tr("Qualquer divergencia envolvendo nome do titular, chave pix ou instituicao financeira anulara o pedido."))
8556 NEXT_STEP_3:setText(tr("EDITAR"))
8557 NEXT_STEP_3:show()
8558 elseif HISTORY_CRIPTO[edit].STATUS == 02 then
8559 FINAL_INFO:setText(HISTORY_CRIPTO[edit].OBS)
8560 NEXT_STEP_3:setText(tr("EDITAR"))
8561 NEXT_STEP_3:show()
8562 else
8563 FINAL_INFO:setText(HISTORY_CRIPTO[edit].OBS)
8564 NEXT_STEP_3:hide()
8565 end
8566 FINAL_VALOR:setText("R$ " ..HISTORY_CRIPTO[edit].VALOR)
8567 FINAL_NOME:setText(HISTORY_CRIPTO[edit].NAME)
8568 FINAL_EMAIL:setText(HISTORY_CRIPTO[edit].EMAIL)
8569 FINAL_BANK:setText(HISTORY_CRIPTO[edit].BANK)
8570 FINAL_COIN:setText(HISTORY_CRIPTO[edit].CRIPTOMOEDA)
8571
8572 LAST_STEP_3:show()
8573 NEXT_STEP_3.onClick = function()
8574 if RequestFinalValor > SaldoBlacklist then
8575 modules.game_interface.onLoginAdvice(tr("Nao ha saldo suficiente na Black Market para pagar sua solicitacao."))
8576 return
8577 end
8578 onRequestPay(01, edit)
8579 end
8580 LAST_STEP_3.onClick = function()
8581 REQUEST_STEP_1:hide()
8582 REQUEST_STEP_2:hide()
8583 REQUEST_STEP_3:hide()
8584 REQUEST_PAY_PANEL:hide()
8585
8586 CRIPT_PANEL:show()
8587 LOAD_REQUEST:hide()
8588 end
8589 end
8590 else
8591 FINAL_INFO:setText(tr("Qualquer divergencia envolvendo nome do titular, chave pix ou instituicao financeira anulara o pedido."))
8592 STEP_REQUEST:show()
8593 NEXT_STEP_3:setText(tr("AVANCAR"))
8594 NEXT_STEP_3:show()
8595 LAST_STEP_3:show()
8596 STEP_REQUEST:setImageSource("/images/custom/UI/step_3")
8597
8598 FINAL_VALOR:setText(tr("R$").. " " ..RequestFinalValor)
8599 FINAL_NOME:setText(PIX_REAL_NAME)
8600 FINAL_EMAIL:setText(PIX_EMAIL)
8601 FINAL_BANK:setText(PIX_BANK)
8602 FINAL_COIN:setText(RequestFinalCoin)
8603
8604 NEXT_STEP_3.onClick = function()
8605 if RequestFinalValor > SaldoBlacklist then
8606 modules.game_interface.onLoginAdvice(tr("Nao ha saldo suficiente na Black Market para pagar sua solicitacao."))
8607 return
8608 end
8609 onFinalizarRequest()
8610 end
8611 LAST_STEP_3.onClick = function() onRequestPay(02) end
8612 end
8613 scheduleEvent(function()
8614 REQUEST_STEP_3:show()
8615 REQUEST_PAY_PANEL:show()
8616 LOAD_REQUEST:hide()
8617 end, 500)
8618 end
8619end
8620function onFinalizarRequest(edit)
8621 REQUEST_STEP_1:hide()
8622 REQUEST_STEP_2:hide()
8623 REQUEST_STEP_3:hide()
8624 CRIPT_PANEL:hide()
8625 REQUEST_PAY_PANEL:hide()
8626 PAYMENT_METH_PANEL:hide()
8627 LOAD_REQUEST:show()
8628
8629 if edit then
8630 g_game.getProtocolGame():sendExtendedOpcode(Opcode_cripto, "2," ..RequestFinalValor.. "," ..PIX_REAL_NAME.. "," ..PIX_EMAIL.. "," ..PIX_BANK.. "," ..RequestFinalCoin.. "," ..CriptoPrice.. "," ..EditOldCript.. "," ..HISTORY_CRIPTO[edit].ID.. "," ..EditOldValor)
8631 else
8632 g_game.getProtocolGame():sendExtendedOpcode(Opcode_cripto, "1," ..RequestFinalValor.. "," ..PIX_REAL_NAME.. "," ..PIX_EMAIL.. "," ..PIX_BANK.. "," ..RequestFinalCoin.. "," ..CriptoPrice.. "," ..EditOldCript)
8633 end
8634end
8635function onSavePix()
8636 PIX_REAL_NAME = EDIT_REAL_NAME:getText()
8637 PIX_EMAIL = EDIT_EMAIL:getText()
8638 PIX_BANK = EDIT_BANK:getText()
8639
8640 PIX_LABEL_NAME:setText(PIX_REAL_NAME)
8641 PIX_LABEL_EMAIL:setText(PIX_EMAIL)
8642 PIX_LABEL_BANK:setText(PIX_BANK)
8643 g_game.getProtocolGame():sendExtendedOpcode(Opcode_Pix, "," ..PIX_REAL_NAME.. "," ..PIX_EMAIL.. "," ..PIX_BANK)
8644 modules.game_interface.onEditPix(PIX_REAL_NAME, PIX_EMAIL, PIX_BANK)
8645
8646 PixBoxView = false
8647 pixBox:hide()
8648end
8649function criptomoedaInfo()
8650 local MSG = tr("O valor aumenta por nivel").. ".\n\n� Nv. 001 a 100: R$ 0,05\n� Nv. 101 a 200: R$ 0,06\n� Nv. 201 a 300: R$ 0,07\n� Nv. 301 a 400: R$ 0,08\n� Nv. 401 a 500: R$ 0,09\n� Nv. 501 a 600: R$ 0,10\n� Nv. 601 a 700: R$ 0,11\n� Nv. 701 a 800: R$ 0,12\n� Nv. 801 a 900: R$ 0,13\n� Nv. 901 a 999: R$ 0,14\n� Nv. 1000 > : R$ 0,15"
8651
8652 premiumWindowBox:setParent(gameRootPanel)
8653 premiumWindowBox:addAnchor(AnchorTop, 'gameMapPanel', AnchorTop)
8654 premiumWindowBox:addAnchor(AnchorRight, 'gameMapPanel', AnchorRight)
8655 premiumWindowBox:setMarginTop(200)
8656 premiumWindowBox:setMarginRight(300)
8657 NameItem = premiumWindowBox:recursiveGetChildById('itemName')
8658 DescItem = premiumWindowBox:recursiveGetChildById('itemDetalhes')
8659 PriceOne = premiumWindowBox:recursiveGetChildById('paymentVip')
8660 PriceTwo = premiumWindowBox:recursiveGetChildById('paymentOnline')
8661
8662 NameItem:setText(tr('VALOR DA CRIPTOMOEDA'))
8663 DescItem:setText(MSG)
8664 PriceOne:hide()
8665 PriceTwo:hide()
8666
8667 premiumWindowBox:show()
8668end
8669-- SHOP
8670function onTableShop(type, categoria, index, subtype)
8671 if type == 01 then -- NAME
8672 return SHOP_PRODUCTS[categoria][index].NAME
8673 end
8674 if type == 02 then -- DESC
8675 return SHOP_PRODUCTS[categoria][index].DESC
8676 end
8677 if type == 03 then -- PREMIUM
8678 return SHOP_PRODUCTS[categoria][index].PREMIUM
8679 end
8680 if type == 04 then -- RESIZE
8681 return SHOP_PRODUCTS[categoria][index].RESIZE
8682 end
8683 if type == 05 then -- OUTFIT
8684 return SHOP_PRODUCTS[categoria][index].OUTFIT
8685 end
8686 if type == 06 then -- CLOSED
8687 return SHOP_PRODUCTS[categoria][index].CLOSED
8688 end
8689 if type == 07 then -- ACT_ID
8690 return SHOP_PRODUCTS[categoria][index].ACT_ID[subtype]
8691 end
8692 if type == 08 then -- VIP ORIGIN_PRICE
8693 return SHOP_PRODUCTS[categoria][index].VIP.ORIGIN_PRICE
8694 end
8695 if type == 09 then -- VIP PROMO_PRICE
8696 return SHOP_PRODUCTS[categoria][index].VIP.PROMO_PRICE
8697 end
8698 if type == 10 then -- ONLINE VISIBLE
8699 return SHOP_PRODUCTS[categoria][index].ONLINE.VISIBLE
8700 end
8701 if type == 11 then -- ONLINE ORIGIN_PRICE
8702 return SHOP_PRODUCTS[categoria][index].ONLINE.ORIGIN_PRICE
8703 end
8704 if type == 12 then -- ONLINE PROMO_PRICE
8705 return SHOP_PRODUCTS[categoria][index].ONLINE.PROMO_PRICE
8706 end
8707 if type == 13 then -- PVP VISIBLE
8708 return SHOP_PRODUCTS[categoria][index].PVP.VISIBLE
8709 end
8710 if type == 14 then -- PVP ORIGIN_PRICE
8711 return SHOP_PRODUCTS[categoria][index].PVP.ORIGIN_PRICE
8712 end
8713 if type == 15 then -- PVP PROMO_PRICE
8714 return SHOP_PRODUCTS[categoria][index].PVP.PROMO_PRICE
8715 end
8716 if type == 16 then -- #SHOP_PRODUCTS
8717 return #SHOP_PRODUCTS
8718 end
8719 if type == 17 then -- #SHOP_PRODUCTS[categoria]
8720 return #SHOP_PRODUCTS[categoria]
8721 end
8722 if type == 18 then -- VISIBLE
8723 return SHOP_PRODUCTS[categoria][index].VISIBLE
8724 end
8725end
8726function onShopFavorite(type, cat, index)
8727 if type == 00 then -- CARREGANDO FAVORITOS
8728 local INDEX_FAVORITE = 00
8729 for O = 01, 03 do
8730 HOME_FAVORITE = menuBackground:recursiveGetChildById('Favoritos_' ..O.. "_Img")
8731 HOME_FAVORITE:setSize({width = 64, height = 64})
8732 HOME_FAVORITE:setImageSource("/images/custom/UI/0")
8733
8734 HOME_CLICK = menuBackground:recursiveGetChildById('Favoritos_' ..O)
8735 HOME_CLICK:setTooltip("")
8736 HOME_CLICK.onClick = function() end
8737 end
8738 for X = 01, 03 do
8739 if _FAVORITE_SHOP[X].FAVORITE ~= "" then
8740 local Act = X
8741 local t = string.explode(_FAVORITE_SHOP[Act].FAVORITE, "-")
8742 local Categoria = tonumber(t[01])
8743 local Product = tonumber(t[02])
8744
8745 HOME_FAVORITE = menuBackground:recursiveGetChildById('Favoritos_' ..X.. "_Img")
8746 HOME_FAVORITE:addAnchor(AnchorLeft, 'parent', AnchorLeft)
8747 HOME_FAVORITE:addAnchor(AnchorBottom, 'parent', AnchorBottom)
8748 HOME_FAVORITE:setSize({width = 32, height = 32})
8749 HOME_FAVORITE:setMarginLeft(17)
8750 HOME_FAVORITE:setMarginBottom(17)
8751 HOME_FAVORITE:setImageSource("/images/custom/Shop/" .._FAVORITE_SHOP[X].FAVORITE)
8752
8753 HOME_CLICK = menuBackground:recursiveGetChildById('Favoritos_' ..X)
8754 HOME_CLICK:setTooltip(tr(SHOP_PRODUCTS[Categoria][Product].NAME))
8755 HOME_CLICK.onClick = function()
8756 onShopBox(Categoria, Product)
8757 end
8758
8759 INDEX_FAVORITE = INDEX_FAVORITE + 01
8760 _FAVORITE_SHOP[00].TOTAL = INDEX_FAVORITE
8761 end
8762 end
8763 end
8764 if type == 01 then -- ADICIONANDO FAVORITOS
8765 for X = 01, 03 do
8766 if _FAVORITE_SHOP[X].FAVORITE == "" then
8767 local STRING_FAVORITE = cat.. "-" ..index
8768 _FAVORITE_SHOP[X].FAVORITE = STRING_FAVORITE
8769 g_settings.set('favorite' ..X, STRING_FAVORITE)
8770
8771 INDEX_FAVORITE = _FAVORITE_SHOP[00].TOTAL
8772 INDEX_FAVORITE = INDEX_FAVORITE + 01
8773 _FAVORITE_SHOP[00].TOTAL = INDEX_FAVORITE
8774 break
8775 end
8776 end
8777
8778 end
8779 if type == 02 then -- REMOVENDO FAVORITOS
8780 for X = 01, 03 do
8781 local STRING_FAVORITE = cat.. "-" ..index
8782 if g_settings.getString('favorite' ..X) == STRING_FAVORITE then
8783 g_settings.set('favorite' ..X, "")
8784 _FAVORITE_SHOP[X].FAVORITE = ""
8785 STRING_FAVORITE = ""
8786
8787 INDEX_FAVORITE = _FAVORITE_SHOP[00].TOTAL
8788 INDEX_FAVORITE = INDEX_FAVORITE - 01
8789 _FAVORITE_SHOP[00].TOTAL = INDEX_FAVORITE
8790 break
8791 end
8792 end
8793
8794 end
8795
8796end
8797function closer_boxShop()
8798 premiumWindowBox:hide()
8799 summonWindowBox:hide()
8800 itemViewMobile:hide()
8801 betaWindow:hide()
8802 PASSIVE_BOX:hide()
8803
8804 PixBoxView = false
8805 pixBox:hide()
8806end
8807function onShopHome()
8808 onHiderWindows()
8809 closer_boxShop()
8810 onShopFavorite(00)
8811 SHOP_WINDOW:show()
8812end
8813function onShopSelect(cat)
8814 SHOP_WINDOW:hide()
8815 local MAX_PRODUCT_IN_SHOP = 99
8816
8817 for _SHOP = 01, MAX_PRODUCT_IN_SHOP do
8818 SHOP_OFFERT = menuBackground:recursiveGetChildById('offertShop_' .._SHOP)
8819 if SHOP_OFFERT then
8820 SHOP_OFFERT:destroy()
8821 else
8822 break
8823 end
8824 end
8825 for X = 01, #SHOP_PRODUCTS[cat] do
8826 if SHOP_PRODUCTS[cat][X].VISIBLE then
8827 local CatIndex = cat..'-' ..X
8828 SHOP_SELECT_DESC:setText(tr(SHOP_PRODUCTS[cat][00].DESC))
8829
8830 SHOP_OFFERT = g_ui.createWidget('UIButton', SHOP_SELECT_PANEL)
8831 SHOP_OFFERT:setId('offertShop_' ..X)
8832 SHOP_OFFERT:setImageSource("/images/custom/Shop/OfferPanel")
8833 SHOP_OFFERT:setOpacity('0.8')
8834 SHOP_OFFERT.onHoverChange = function(widget, hoverState)
8835 if hoverState then
8836 widget:setOpacity('1.0')
8837 else
8838 widget:setOpacity('0.8')
8839 end
8840 end
8841
8842 SHOP_FAVORITE = g_ui.createWidget('UIButton', SHOP_OFFERT)
8843 SHOP_FAVORITE:setId(CatIndex)
8844 SHOP_FAVORITE:setSize({width = 20, height = 20})
8845 SHOP_FAVORITE:addAnchor(AnchorTop, 'parent', AnchorTop)
8846 SHOP_FAVORITE:addAnchor(AnchorRight, 'parent', AnchorRight)
8847 SHOP_FAVORITE:setImageSource("/images/custom/Shop/Fav_off")
8848 SHOP_FAVORITE:setMarginTop(05)
8849 SHOP_FAVORITE:setMarginRight(05)
8850
8851 for V = 01, 03 do
8852 if _FAVORITE_SHOP[V].FAVORITE == CatIndex then
8853 SHOP_FAVORITE:setImageSource("/images/custom/Shop/Fav_on")
8854 break
8855 end
8856 end
8857 SHOP_FAVORITE.onClick = function()
8858 local checkFavorito = 0
8859 for V = 01, 03 do
8860 if _FAVORITE_SHOP[V].FAVORITE == CatIndex then
8861 checkFavorito = 01
8862 break
8863 end
8864 end
8865 if checkFavorito == 01 then
8866 local DelIndex = X
8867 onShopFavorite(02, cat, DelIndex)
8868
8869 HOME_FAVORITE = menuBackground:recursiveGetChildById(cat..'-' ..DelIndex)
8870 HOME_FAVORITE:setImageSource("/images/custom/Shop/Fav_off")
8871 else
8872 if _FAVORITE_SHOP[00].TOTAL == 03 then
8873 modules.game_textmessage.displayGameMessage(tr('Voce so pode ter 03 items nos favoritos.'))
8874 else
8875 local FavIndex = X
8876 onShopFavorite(01, cat, FavIndex)
8877
8878 HOME_FAVORITE = menuBackground:recursiveGetChildById(cat..'-' ..FavIndex)
8879 HOME_FAVORITE:setImageSource("/images/custom/Shop/Fav_on")
8880 end
8881 end
8882 end
8883
8884 SHOP_OFFERT_LABEL = g_ui.createWidget('UIButton', SHOP_OFFERT)
8885 SHOP_OFFERT_LABEL:setSize({width = 42, height = 15})
8886 SHOP_OFFERT_LABEL:addAnchor(AnchorTop, 'parent', AnchorTop)
8887 SHOP_OFFERT_LABEL:addAnchor(AnchorLeft, 'parent', AnchorLeft)
8888 SHOP_OFFERT_LABEL:setImageSource("/images/custom/Shop/OfertaLabel")
8889 SHOP_OFFERT_LABEL:setMarginTop(05)
8890 SHOP_OFFERT_LABEL:setMarginLeft(05)
8891 SHOP_OFFERT_LABEL:setPhantom(true)
8892
8893 SHOP_ITEM_IMG = g_ui.createWidget('UIButton', SHOP_OFFERT)
8894 SHOP_ITEM_IMG:setPhantom(true)
8895 if SHOP_PRODUCTS[cat][X].RESIZE then
8896 SHOP_ITEM_IMG:setSize({width = 32, height = 32})
8897 SHOP_ITEM_IMG:setImageSource("/images/custom/Shop/" ..cat.. "-" ..X)
8898 SHOP_ITEM_IMG:addAnchor(AnchorLeft, 'parent', AnchorLeft)
8899 SHOP_ITEM_IMG:addAnchor(AnchorTop, 'parent', AnchorTop)
8900 SHOP_ITEM_IMG:setMarginLeft(40)
8901 SHOP_ITEM_IMG:setMarginTop(30)
8902 else
8903 SHOP_ITEM_IMG:setSize({width = 64, height = 64})
8904 SHOP_ITEM_IMG:setImageSource("/images/custom/Shop/" ..cat.. "-" ..X)
8905 SHOP_ITEM_IMG:addAnchor(AnchorLeft, 'parent', AnchorLeft)
8906 SHOP_ITEM_IMG:addAnchor(AnchorTop, 'parent', AnchorTop)
8907 SHOP_ITEM_IMG:setMarginLeft(25)
8908 SHOP_ITEM_IMG:setMarginTop(10)
8909 end
8910
8911 SHOP_ITEM_NAME = g_ui.createWidget('UIButton', SHOP_OFFERT)
8912 SHOP_ITEM_NAME:setSize({width = 10, height = 30})
8913 SHOP_ITEM_NAME:addAnchor(AnchorLeft, 'parent', AnchorLeft)
8914 SHOP_ITEM_NAME:addAnchor(AnchorRight, 'parent', AnchorRight)
8915 SHOP_ITEM_NAME:addAnchor(AnchorTop, 'parent', AnchorTop)
8916 SHOP_ITEM_NAME:setFont('lucida-11px-rounded')
8917 SHOP_ITEM_NAME:setMarginLeft(05)
8918 SHOP_ITEM_NAME:setMarginRight(05)
8919 SHOP_ITEM_NAME:setMarginTop(75)
8920 SHOP_ITEM_NAME:setPhantom(true)
8921 SHOP_ITEM_NAME:setTextWrap(true)
8922 SHOP_ITEM_NAME:setText(tr(SHOP_PRODUCTS[cat][X].NAME))
8923
8924 SHOP_PRICE_ONE = g_ui.createWidget('UIButton', SHOP_OFFERT)
8925 SHOP_PRICE_ONE:setSize({width = 10, height = 20})
8926 SHOP_PRICE_ONE:addAnchor(AnchorLeft, 'parent', AnchorLeft)
8927 SHOP_PRICE_ONE:addAnchor(AnchorRight, 'parent', AnchorRight)
8928 SHOP_PRICE_ONE:addAnchor(AnchorBottom, 'parent', AnchorBottom)
8929 SHOP_PRICE_ONE:setImageSource("/images/custom/Shop/buyBt_3")
8930 SHOP_PRICE_ONE:setFont('lucida-11px-rounded')
8931 SHOP_PRICE_ONE:setMarginLeft(05)
8932 SHOP_PRICE_ONE:setMarginRight(05)
8933 SHOP_PRICE_ONE:setMarginBottom(05)
8934 SHOP_PRICE_ONE:setTextWrap(true)
8935 SHOP_PRICE_ONE:setPhantom(true)
8936
8937 if SHOP_PRODUCTS[cat][X].VIP.PROMO_PRICE > 00 then
8938 SHOP_PRICE_ONE:setText(SHOP_PRODUCTS[cat][X].VIP.PROMO_PRICE)
8939 SHOP_OFFERT_LABEL:setVisible(true)
8940 ITEM_PRICE_ONE = SHOP_PRODUCTS[cat][X].VIP.PROMO_PRICE
8941 else
8942 SHOP_PRICE_ONE:setText(SHOP_PRODUCTS[cat][X].VIP.ORIGIN_PRICE)
8943 SHOP_OFFERT_LABEL:setVisible(false)
8944 ITEM_PRICE_ONE = SHOP_PRODUCTS[cat][X].VIP.ORIGIN_PRICE
8945 end
8946 if SHOP_PRODUCTS[cat][X].ONLINE.VISIBLE or SHOP_PRODUCTS[cat][X].PVP.VISIBLE then
8947 SHOP_PRICE_TWO = g_ui.createWidget('UIButton', SHOP_OFFERT)
8948 SHOP_PRICE_TWO:setSize({width = 10, height = 20})
8949 SHOP_PRICE_TWO:addAnchor(AnchorLeft, 'parent', AnchorLeft)
8950 SHOP_PRICE_TWO:addAnchor(AnchorRight, 'parent', AnchorRight)
8951 SHOP_PRICE_TWO:addAnchor(AnchorBottom, 'parent', AnchorBottom)
8952 SHOP_PRICE_TWO:setFont('lucida-11px-rounded')
8953 SHOP_PRICE_TWO:setMarginLeft(05)
8954 SHOP_PRICE_TWO:setMarginRight(05)
8955 SHOP_PRICE_TWO:setMarginBottom(28)
8956 SHOP_PRICE_TWO:setTextWrap(true)
8957 SHOP_PRICE_TWO:setPhantom(true)
8958
8959 if SHOP_PRODUCTS[cat][X].ONLINE.VISIBLE then
8960 SHOP_PRICE_TWO:setImageSource("/images/custom/Shop/buyBt_2")
8961 ITEM_TWO_TYPE = 02
8962 if SHOP_PRODUCTS[cat][X].ONLINE.PROMO_PRICE > 00 then
8963 SHOP_PRICE_TWO:setText(SHOP_PRODUCTS[cat][X].ONLINE.PROMO_PRICE)
8964 ITEM_PRICE_TWO = SHOP_PRODUCTS[cat][X].ONLINE.PROMO_PRICE
8965 if not SHOP_OFFERT_LABEL:isVisible() then
8966 SHOP_OFFERT_LABEL:setVisible(true)
8967 end
8968 else
8969 SHOP_PRICE_TWO:setText(SHOP_PRODUCTS[cat][X].ONLINE.ORIGIN_PRICE)
8970 ITEM_PRICE_TWO = SHOP_PRODUCTS[cat][X].ONLINE.ORIGIN_PRICE
8971 end
8972 else
8973 SHOP_PRICE_TWO:setImageSource("/images/custom/Shop/buyBt_1")
8974 ITEM_TWO_TYPE = 01
8975 if SHOP_PRODUCTS[cat][X].PVP.PROMO_PRICE > 00 then
8976 SHOP_PRICE_TWO:setText(SHOP_PRODUCTS[cat][X].PVP.PROMO_PRICE)
8977 ITEM_PRICE_TWO = SHOP_PRODUCTS[cat][X].PVP.PROMO_PRICE
8978 if not SHOP_OFFERT_LABEL:isVisible() then
8979 SHOP_OFFERT_LABEL:setVisible(true)
8980 end
8981 else
8982 SHOP_PRICE_TWO:setText(SHOP_PRODUCTS[cat][X].PVP.ORIGIN_PRICE)
8983 ITEM_PRICE_TWO = SHOP_PRODUCTS[cat][X].PVP.PROMO_PRICE
8984 end
8985 end
8986 end
8987
8988 SHOP_OFFERT.onClick = function()
8989 local Index = X
8990 onShopBox(cat, Index)
8991 end
8992 else
8993 SHOP_OFFERT = g_ui.createWidget('UIButton', SHOP_SELECT_PANEL)
8994 SHOP_OFFERT:setId('offertShop_' ..X)
8995 SHOP_OFFERT:setVisible(false)
8996 end
8997 end
8998 SHOP_SELECT:show()
8999end
9000function onDelayShop(timer)
9001 if timer > 00 then
9002 timer = timer - 01
9003 scheduleEvent(function()
9004 onDelayShop(timer)
9005 end, 1000)
9006 else
9007 DELAY_CLICK = false
9008 end
9009end
9010function onShopBox(cat, Index)
9011 premiumWindowBox:setParent(gameRootPanel)
9012 premiumWindowBox:addAnchor(AnchorTop, 'gameMapPanel', AnchorTop)
9013 premiumWindowBox:addAnchor(AnchorRight, 'gameMapPanel', AnchorRight)
9014 if g_app.isMobile() then
9015 premiumWindowBox:setMarginTop(70)
9016 premiumWindowBox:setMarginRight(200)
9017 else
9018 premiumWindowBox:setMarginTop(200)
9019 premiumWindowBox:setMarginRight(300)
9020 end
9021 NameItem = premiumWindowBox:recursiveGetChildById('itemName')
9022 DescItem = premiumWindowBox:recursiveGetChildById('itemDetalhes')
9023 PriceOne = premiumWindowBox:recursiveGetChildById('paymentVip')
9024 PriceTwo = premiumWindowBox:recursiveGetChildById('paymentOnline')
9025
9026 NameItem:setText(tr(SHOP_PRODUCTS[cat][Index].NAME))
9027 DescItem:setText(tr(SHOP_PRODUCTS[cat][Index].DESC))
9028 PriceOne:show()
9029 PriceOne.onClick = function()
9030 if DELAY_CLICK then
9031 return
9032 else
9033 g_game.talk("!buyshop 3 " ..cat.. " " ..Index)
9034 if SHOP_PRODUCTS[cat][Index].CLOSED then
9035 closer_boxShop()
9036 end
9037 DELAY_CLICK = true
9038 onDelayShop(SECONDS_DELAY)
9039 end
9040 end
9041 if SHOP_PRODUCTS[cat][Index].VIP.PROMO_PRICE > 00 then
9042 PriceOne:setText(SHOP_PRODUCTS[cat][Index].VIP.PROMO_PRICE)
9043 else
9044 PriceOne:setText(SHOP_PRODUCTS[cat][Index].VIP.ORIGIN_PRICE)
9045 end
9046 if SHOP_PRODUCTS[cat][Index].ONLINE.VISIBLE or SHOP_PRODUCTS[cat][Index].PVP.VISIBLE then
9047 if SHOP_PRODUCTS[cat][Index].ONLINE.VISIBLE then
9048 PriceTwo:setImageSource("/images/custom/Shop/buyBt_2")
9049 PriceTwo:setTooltip(tr('Compre usando suas Online Coins.'))
9050 PriceTwo.onClick = function()
9051 if DELAY_CLICK then
9052 return
9053 else
9054 g_game.talk("!buyshop 2 " ..cat.. " " ..Index)
9055 if SHOP_PRODUCTS[cat][Index].CLOSED then
9056 closer_boxShop()
9057 end
9058 DELAY_CLICK = true
9059 onDelayShop(SECONDS_DELAY)
9060 end
9061 end
9062 if SHOP_PRODUCTS[cat][Index].ONLINE.PROMO_PRICE > 00 then
9063 PriceTwo:setText(SHOP_PRODUCTS[cat][Index].ONLINE.PROMO_PRICE)
9064 else
9065 PriceTwo:setText(SHOP_PRODUCTS[cat][Index].ONLINE.ORIGIN_PRICE)
9066 end
9067 else
9068 PriceTwo:setImageSource("/images/custom/Shop/buyBt_1")
9069 PriceTwo:setTooltip('Compre usando suas PVP Coins')
9070 PriceTwo.onClick = function()
9071 if DELAY_CLICK then
9072 return
9073 else
9074 g_game.talk("!buyshop 1 " ..cat.. " " ..Index)
9075 if SHOP_PRODUCTS[cat][Index].CLOSED then
9076 closer_boxShop()
9077 end
9078 DELAY_CLICK = true
9079 onDelayShop(SECONDS_DELAY)
9080 end
9081 end
9082 if SHOP_PRODUCTS[cat][Index].PVP.PROMO_PRICE > 00 then
9083 PriceTwo:setText(SHOP_PRODUCTS[cat][Index].PVP.PROMO_PRICE)
9084 else
9085 PriceTwo:setText(SHOP_PRODUCTS[cat][Index].PVP.ORIGIN_PRICE)
9086 end
9087 end
9088
9089 PriceTwo:show()
9090 else
9091 PriceTwo:setImageSource("/images/custom/UI/0")
9092 PriceTwo:setText("")
9093 PriceTwo:hide()
9094 end
9095
9096 premiumWindowBox:show()
9097end
9098-- SPY
9099function onSpyClose()
9100 spyWindowBox:hide()
9101 hotkeyWindowBox:hide()
9102 descBox:hide()
9103end
9104function closer_hunt()
9105 AnalyserBox:hide()
9106end
9107function onLoginMobile()
9108 modules.game_actionbar.hide()
9109 modules.game_battle.Meclose()
9110 modules.game_skills.Meclose()
9111 modules.game_cooldown.Meclose()
9112
9113 MOBILE_SKILL_BAR = modules.client_mobile.onMobileButton(07)
9114 MOBILE_LEFT_BAR = modules.game_interface.onMobileWindow(38)
9115 MOBILE_ATTACKER = modules.client_mobile.onMobileButton(05)
9116
9117 OverLogin = 0
9118 menuBackgroundShow = 0
9119 ViewMenuID = 00
9120 onResetMenuBar()
9121
9122 MOBILE_LEFT_BAR:setVisible(true)
9123 MOBILE_ATTACKER:setVisible(true)
9124 MOBILE_SKILL_BAR:setVisible(true)
9125 reloadSpellBar()
9126
9127 onLoadAmmo()
9128end
9129function onProgressEquiKard(newValue)
9130 AtualStorage = AtualStorage + newValue
9131 BAG = SUMMON
9132 if modules.game_database.getInventory(10, 1) > 0 then
9133 local id = modules.game_database.getInventory(10, 1)
9134 local rare = modules.game_database.getInventory(10, 2)
9135 local classSummon = modules.game_database.getInventory(10, 3)
9136 local atual = modules.game_database.getInventory(10, 4)
9137 local name = modules.game_database.onKard(01, classSummon, atual)
9138 local Lv = modules.game_database.onKard(06, classSummon, atual)
9139
9140 RareMax = modules.game_database.onKard(05, classSummon, atual, 05)
9141 SUMMON_IMAGE:setImageSource("/images/custom/Monster/" ..id)
9142 SUMMON_IMAGE:setImageRect(modules.game_database.onKard(04, classSummon, atual))
9143 SUMMON_STAR:setImageSource("/images/custom/UI/star_0")
9144
9145 if g_app.isMobile() then
9146 MOBILE_KARD_IMG = modules.game_interface.onMobileWindow(85)
9147 MOBILE_KARD_STA = modules.game_interface.onMobileWindow(87)
9148
9149 MOBILE_KARD_IMG:setImageSource("/images/custom/Monster/" ..id)
9150 MOBILE_KARD_IMG:setImageRect(modules.game_database.onKard(04, classSummon, atual))
9151 MOBILE_KARD_STA:setImageSource("/images/custom/UI/star_0")
9152 end
9153
9154 local RARE_01 = modules.game_database.onKard(05, classSummon, atual, 01)
9155 local RARE_02 = modules.game_database.onKard(05, classSummon, atual, 02)
9156 local RARE_03 = modules.game_database.onKard(05, classSummon, atual, 03)
9157 local RARE_04 = modules.game_database.onKard(05, classSummon, atual, 04)
9158 local RARE_05 = modules.game_database.onKard(05, classSummon, atual, 05)
9159
9160 if rare < RARE_01 then
9161 AtualStorage = rare
9162 RareMax = modules.game_database.onKard(05, classSummon, atual, 01)
9163 BAG:setImageSource("/images/custom/UI/summon_view_0")
9164 INFOBOX:setText(name.. "\nEXP: 10%\n\nNext Rare:")
9165 --INFOBOX:setText(name.. "\nEXP: 10%\nInvocar: Lv." ..Lv.. "\nTempo: 05 minutos.")
9166 if g_app.isMobile() then
9167 MOBILE_KARD_NAM = modules.game_interface.onMobileWindow(86)
9168 MOBILE_KARD_MAI = modules.game_interface.onMobileWindow(82)
9169 MOBILE_KARD_NAM:setText(name.. "\nEXP: 10%")
9170 MOBILE_KARD_MAI:setImageSource("/images/custom/UI/summon_view_0")
9171 end
9172 elseif rare < (RARE_01 + RARE_02) then
9173 AtualStorage = rare - RARE_01
9174 RareMax = modules.game_database.onKard(05, classSummon, atual, 02)
9175 BAG:setImageSource("/images/custom/UI/summon_view_1")
9176 INFOBOX:setText(name.. "\nEXP: 20%\n\nNext Rare:")
9177 --INFOBOX:setText(name.. "\nEXP: 20%\nInvocar: Lv." ..Lv.. "\nTempo: 10 minutos.")
9178 if g_app.isMobile() then
9179 MOBILE_KARD_NAM = modules.game_interface.onMobileWindow(86)
9180 MOBILE_KARD_MAI = modules.game_interface.onMobileWindow(82)
9181 MOBILE_KARD_NAM:setText(name.. "\nEXP: 20%")
9182 MOBILE_KARD_MAI:setImageSource("/images/custom/UI/summon_view_1")
9183 end
9184 elseif rare < (RARE_01 + RARE_02 + RARE_03) then
9185 AtualStorage = rare - (RARE_01 + RARE_02)
9186 RareMax = modules.game_database.onKard(05, classSummon, atual, 03)
9187 BAG:setImageSource("/images/custom/UI/summon_view_2")
9188 INFOBOX:setText(name.. "\nEXP: 30%\n\nNext Rare:")
9189 --INFOBOX:setText(name.. "\nEXP: 30%\nInvocar: Lv." ..Lv.. "\nTempo: 15 minutos.")
9190 if g_app.isMobile() then
9191 MOBILE_KARD_NAM = modules.game_interface.onMobileWindow(86)
9192 MOBILE_KARD_MAI = modules.game_interface.onMobileWindow(82)
9193 MOBILE_KARD_NAM:setText(name.. "\nEXP: 30%")
9194 MOBILE_KARD_MAI:setImageSource("/images/custom/UI/summon_view_2")
9195 end
9196 elseif rare < (RARE_01 + RARE_02 + RARE_03 + RARE_04) then
9197 AtualStorage = rare - (RARE_01 + RARE_02 + RARE_03)
9198 RareMax = modules.game_database.onKard(05, classSummon, atual, 04)
9199 BAG:setImageSource("/images/custom/UI/summon_view_3")
9200 INFOBOX:setText(name.. "\nEXP: 40%\n\nNext Rare:")
9201 --INFOBOX:setText(name.. "\nEXP: 40%\nInvocar: Lv." ..Lv.. "\nTempo: 20 minutos.")
9202 if g_app.isMobile() then
9203 MOBILE_KARD_NAM = modules.game_interface.onMobileWindow(86)
9204 MOBILE_KARD_MAI = modules.game_interface.onMobileWindow(82)
9205 MOBILE_KARD_NAM:setText(name.. "\nEXP: 40%")
9206 MOBILE_KARD_MAI:setImageSource("/images/custom/UI/summon_view_3")
9207 end
9208 elseif rare < (RARE_01 + RARE_02 + RARE_03 + RARE_04 + RARE_05) then
9209 AtualStorage = rare - (RARE_01 + RARE_02 + RARE_03 + RARE_04)
9210 RareMax = modules.game_database.onKard(05, classSummon, atual, 05)
9211 BAG:setImageSource("/images/custom/UI/summon_view_4")
9212 INFOBOX:setText(name.. "\nEXP: 50%\n\nNext Rare:")
9213 --INFOBOX:setText(name.. "\nEXP: 50%\nInvocar: Lv." ..Lv.. "\nTempo: 25 minutos.")
9214 if g_app.isMobile() then
9215 MOBILE_KARD_NAM = modules.game_interface.onMobileWindow(86)
9216 MOBILE_KARD_MAI = modules.game_interface.onMobileWindow(82)
9217 MOBILE_KARD_NAM:setText(name.. "\nEXP: 50%")
9218 MOBILE_KARD_MAI:setImageSource("/images/custom/UI/summon_view_4")
9219 end
9220 else
9221 AtualStorage = modules.game_database.onKard(05, classSummon, atual, 05)
9222 BAG:setImageSource("/images/custom/UI/summon_view_4")
9223 INFOBOX:setText(name.. "\nEXP: 60%\n\nNext Rare:")
9224 --INFOBOX:setText(name.. "\nEXP: 60%\nInvocar: Lv." ..Lv.. "\nTempo: 30 minutos.")
9225 if g_app.isMobile() then
9226 MOBILE_KARD_NAM = modules.game_interface.onMobileWindow(86)
9227 MOBILE_KARD_MAI = modules.game_interface.onMobileWindow(82)
9228 MOBILE_KARD_NAM:setText(name.. "\nEXP: 60%")
9229 MOBILE_KARD_MAI:setImageSource("/images/custom/UI/summon_view_4")
9230 end
9231 end
9232
9233 EQUIPSUMPRO:setValue(AtualStorage, 0, RareMax)
9234 EQUIPSUMPRO:setTooltip(AtualStorage.. " / " ..RareMax)
9235 EQUIPSUMPRO:show()
9236 else
9237 INFOBOX:setText("")
9238 SUMMON_IMAGE:setImageSource("/images/custom/Monster/0")
9239 SUMMON_STAR:setImageSource("/images/custom/UI/star_0")
9240 BAG:setImageSource("/images/custom/UI/infoInv")
9241 INFOBOX:setText(tr("Nenhum Kard\n equipado"))
9242 EQUIPSUMPRO:hide()
9243
9244 if g_app.isMobile() then
9245 MOBILE_KARD_NAM = modules.game_interface.onMobileWindow(86)
9246 MOBILE_KARD_IMG = modules.game_interface.onMobileWindow(85)
9247 MOBILE_KARD_STA = modules.game_interface.onMobileWindow(87)
9248
9249 MOBILE_KARD_IMG:setImageSource("/images/custom/Monster/0")
9250 MOBILE_KARD_STA:setImageSource("/images/custom/UI/star_0")
9251 MOBILE_KARD_NAM:setText(tr('Nenhum Kard'))
9252 end
9253 end
9254end
9255function ConfigHotkeys()
9256 -- RESETANDO ATALHOS
9257
9258 HOT_K_1 = g_settings.getString('hotkey1')
9259 HOT_K_2 = g_settings.getString('hotkey2')
9260 HOT_K_3 = g_settings.getString('hotkey3')
9261 HOT_K_4 = g_settings.getString('hotkey4')
9262 HOT_K_5 = g_settings.getString('hotkey5')
9263 HOT_K_6 = g_settings.getString('hotkey6')
9264
9265 g_keyboard.unbindKeyPress(HOT_K_1)
9266 g_keyboard.unbindKeyPress(HOT_K_2)
9267 g_keyboard.unbindKeyPress(HOT_K_3)
9268 g_keyboard.unbindKeyPress(HOT_K_4)
9269 g_keyboard.unbindKeyPress(HOT_K_5)
9270 g_keyboard.unbindKeyPress(HOT_K_6)
9271 g_keyboard.unbindKeyPress('Space')
9272
9273 g_keyboard.bindKeyPress(HOT_K_1, function()
9274 if modules.game_chat.onViewChat() then
9275 return
9276 end
9277 local skillSlot = modules.game_database.getInventory(4, 4)
9278 if skillSlot > 00 then
9279 g_game.talk("Skill " ..skillSlot)
9280 end
9281 end)
9282 g_keyboard.bindKeyPress(HOT_K_2, function()
9283 if modules.game_chat.onViewChat() then
9284 return
9285 end
9286 local skillSlot = modules.game_database.getInventory(4, 5)
9287 if skillSlot > 00 then
9288 g_game.talk("Skill " ..skillSlot)
9289 end
9290 end)
9291 g_keyboard.bindKeyPress(HOT_K_3, function()
9292 if modules.game_chat.onViewChat() then
9293 return
9294 end
9295 local skillSlot = modules.game_database.getInventory(4, 6)
9296 if skillSlot > 00 then
9297 g_game.talk("Skill " ..skillSlot)
9298 end
9299 end)
9300 g_keyboard.bindKeyPress(HOT_K_4, function()
9301 if modules.game_chat.onViewChat() then
9302 return
9303 end
9304 local skillSlot = 71
9305 g_game.talk("Skill " ..skillSlot)
9306 end)
9307 g_keyboard.bindKeyPress(HOT_K_5, function()
9308 if modules.game_chat.onViewChat() then
9309 return
9310 end
9311 local skillSlot = 72
9312 MACRO_COUNT = MACRO_COUNT + 01
9313 if MACRO_EVENT == nil then
9314 MACRO_EVENT = scheduleEvent(function()
9315 onMacroDelay()
9316 end, 500)
9317 end
9318 modules.game_walking.setPressKeyAction(06)
9319 g_game.talk("Skill " ..skillSlot)
9320 end)
9321 g_keyboard.bindKeyPress(HOT_K_6, function()
9322 if modules.game_chat.onViewChat() then
9323 return
9324 end
9325 local skillMaestria = modules.game_database.getMaestriaEsp(00)
9326 local skillSlot = 73
9327 if skillMaestria > 00 then
9328 g_game.talk("Skill " ..skillSlot)
9329 end
9330 end)
9331
9332 g_keyboard.bindKeyPress('Space', function()
9333 modules.game_hotkeys.onSpaceAttack()
9334 end)
9335 -- Agregado: Binding para abrir el chat con la tecla Enter
9336 g_keyboard.bindKeyPress('Enter', function()
9337 if modules.game_chat and modules.game_chat.onOpen then
9338 modules.game_chat.onOpen() -- Ajusta esta llamada según la función que abra el chat
9339 end
9340 end)
9341
9342 reloadSpellBar()
9343end
9344function onViewChat()
9345 -- Implement the logic for viewing chat here
9346end
9347
9348function onShowSetHotkey()
9349 for IMG = 01, #LOAD_HOTKEY do
9350 LOAD_HOT = hotkeyWindowBox:recursiveGetChildById(LOAD_HOTKEY[IMG][01])
9351 g_keyboard.unbindKeyPress(LOAD_HOTKEY[IMG][01])
9352 LOAD_HOTKEY[IMG][02] = false
9353 LOAD_HOT:setImageSource("/images/custom/UI/button")
9354 LOAD_HOT:enable()
9355 end
9356 for H = 01, 06 do
9357 local AtualHot = g_settings.getString('hotkey' ..H)
9358 for X = 01, #LOAD_HOTKEY do
9359 LOAD_HOT = hotkeyWindowBox:recursiveGetChildById(LOAD_HOTKEY[X][01])
9360 if LOAD_HOT then
9361 local getHot = LOAD_HOT:getText()
9362 if AtualHot == getHot then
9363 if H == 01 then
9364 local skillSlot = modules.game_database.getInventory(4, 4)
9365 if skillSlot > 00 then
9366 LOAD_HOTKEY[X][02] = true
9367 LOAD_HOT:setImageSource("/images/custom/UI/button_3")
9368 LOAD_HOT:disable()
9369 end
9370 elseif H == 02 then
9371 local skillSlot = modules.game_database.getInventory(4, 5)
9372 if skillSlot > 00 then
9373 LOAD_HOTKEY[X][02] = true
9374 LOAD_HOT:setImageSource("/images/custom/UI/button_3")
9375 LOAD_HOT:disable()
9376 end
9377 elseif H == 03 then
9378 local skillSlot = modules.game_database.getInventory(4, 6)
9379 if skillSlot > 00 then
9380 LOAD_HOTKEY[X][02] = true
9381 LOAD_HOT:setImageSource("/images/custom/UI/button_3")
9382 LOAD_HOT:disable()
9383 end
9384 elseif H == 06 then
9385 local skillSlot = modules.game_database.getMaestriaEsp(00)
9386 if skillSlot > 00 then
9387 LOAD_HOTKEY[X][02] = true
9388 LOAD_HOT:setImageSource("/images/custom/UI/button_3")
9389 LOAD_HOT:disable()
9390 end
9391 else
9392 LOAD_HOTKEY[X][02] = true
9393 LOAD_HOT:setImageSource("/images/custom/UI/button_3")
9394 LOAD_HOT:disable()
9395 end
9396 end
9397 end
9398 end
9399 end
9400
9401 SKILL_IMG = hotkeyWindowBox:recursiveGetChildById('imgHotkey')
9402 ATUAL_HOTKEY = hotkeyWindowBox:recursiveGetChildById('atualHotkey')
9403 if SetHotkeySlot == 01 then
9404 local skillSlot = modules.game_database.getInventory(4, 4)
9405 SKILL_IMG:setImageSource("/images/custom/Spells/HUB/skill_" ..skillSlot)
9406 elseif SetHotkeySlot == 02 then
9407 local skillSlot = modules.game_database.getInventory(4, 5)
9408 SKILL_IMG:setImageSource("/images/custom/Spells/HUB/skill_" ..skillSlot)
9409 elseif SetHotkeySlot == 03 then
9410 local skillSlot = modules.game_database.getInventory(4, 6)
9411 SKILL_IMG:setImageSource("/images/custom/Spells/HUB/skill_" ..skillSlot)
9412 elseif SetHotkeySlot == 04 then
9413 local skillSlot = 71
9414 SKILL_IMG:setImageSource("/images/custom/Spells/HUB/skill_" ..skillSlot)
9415 elseif SetHotkeySlot == 05 then
9416 local skillSlot = modules.game_database.onCureInfo(00)
9417 SKILL_IMG:setImageSource("/images/custom/Spells/HUB/cura_" ..skillSlot)
9418 elseif SetHotkeySlot == 06 then
9419 local skillSlot = modules.game_database.getMaestriaEsp(00)
9420 SKILL_IMG:setImageSource("/images/custom/Spells/HUB/maestria" ..skillSlot)
9421 else
9422 SKILL_IMG:setImageSource("/images/custom/Spells/HUB/skill_0")
9423 end
9424
9425 ATUAL_HOTKEY:setText(tr("Hotkey Atual").. ":\n" ..g_settings.getString('hotkey' ..SetHotkeySlot))
9426 hotkeyWindowBox:show()
9427end
9428function onSetHotkey(id)
9429
9430 for X = 01, 06 do
9431 local AtualHot = g_settings.getString('hotkey' ..X)
9432 if AtualHot == id then
9433 for Y = 01, #LOAD_HOTKEY do
9434 if LOAD_HOTKEY[Y][01] ~= id and LOAD_HOTKEY[Y][02] == false then
9435 g_settings.set('hotkey' ..X, LOAD_HOTKEY[Y][01])
9436 if X == 01 then
9437 HOT_K_1 = LOAD_HOTKEY[Y][01]
9438 elseif X == 02 then
9439 HOT_K_2 = LOAD_HOTKEY[Y][01]
9440 elseif X == 03 then
9441 HOT_K_3 = LOAD_HOTKEY[Y][01]
9442 elseif X == 04 then
9443 HOT_K_4 = LOAD_HOTKEY[Y][01]
9444 elseif X == 05 then
9445 HOT_K_5 = LOAD_HOTKEY[Y][01]
9446 elseif X == 06 then
9447 HOT_K_6 = LOAD_HOTKEY[Y][01]
9448 end
9449 break
9450 end
9451 end
9452 end
9453 end
9454
9455 for IMG = 01, #LOAD_HOTKEY do
9456 LOAD_HOT = hotkeyWindowBox:recursiveGetChildById(LOAD_HOTKEY[IMG][01])
9457 g_keyboard.unbindKeyPress(LOAD_HOTKEY[IMG][01])
9458 end
9459
9460 g_settings.set('hotkey' ..SetHotkeySlot, id)
9461 onShowSetHotkey()
9462 ConfigHotkeys()
9463end
9464function getMenuShow()
9465 return menuBackgroundShow
9466end
9467function setCoins(gold, online)
9468 GOLDC:setText(mask_number(tonumber(gold)))
9469 ONLINEC:setText(mask_number(tonumber(online)))
9470end
9471function getNovato()
9472 return Novato
9473end
9474function setNovato(value)
9475 Novato = value
9476end
9477function DisableMenuButtons()
9478 INVENTARIO_BUTTON.onClick = function() end
9479 STATUS_BUTTON.onClick = function() end
9480 TASK_BUTTON.onClick = function() end
9481 QUEST_BUTTON.onClick = function() end
9482 SHOP_BUTTON.onClick = function() end
9483end
9484
9485-- PvP ans Nexus Remote
9486function getPvPMode()
9487 return ModoPVP
9488end
9489function PvPMode()
9490 local localPlayer = g_game.getLocalPlayer()
9491 if localPlayer:getSkull() > 0 then
9492 ModoPVP = true
9493 g_game.setSafeFight(false)
9494 PvpMode:setImageSource("/images/custom/UI/pvpRed")
9495 PvpMode:setTooltip(tr("Voce podera atacar qualquer personagem."))
9496 return
9497 end
9498
9499 if ModoPVP == true then
9500 if localPlayer:getSkull() > 0 then
9501 modules.game_textmessage.displayFailureMessage(tr('Sorry, not possible.'))
9502 else
9503 modules.game_battle.filterPanel.buttons.hidePlayers:setChecked(true)
9504 modules.game_battle.filterPanel.buttons.hideNPCs:setChecked(false)
9505 modules.game_battle.filterPanel.buttons.hideParty:isChecked(false)
9506 g_game.setSafeFight(true)
9507 ModoPVP = false
9508 g_game.cancelAttack()
9509 g_game.attack(nil)
9510 PvpMode:setImageSource("/images/custom/UI/pvpWhite")
9511 PvpMode:setTooltip(tr("Voce nao podera atacar nenhum personagem."))
9512 end
9513 else
9514 modules.game_battle.filterPanel.buttons.hidePlayers:setChecked(false)
9515 modules.game_battle.filterPanel.buttons.hideNPCs:setChecked(true)
9516 modules.game_battle.filterPanel.buttons.hideParty:isChecked(true)
9517 ModoPVP = true
9518 g_game.setSafeFight(false)
9519 PvpMode:setImageSource("/images/custom/UI/pvpRed")
9520 PvpMode:setTooltip(tr("Voce podera atacar qualquer personagem."))
9521 end
9522end
9523
9524function onHiderWindows()
9525 INVENTARIO_WINDOW:hide()
9526 RANK_PANEL:hide()
9527 PVP_ROOM_PANEL:hide()
9528 LOAD_REQUEST:hide()
9529 CRIPT_PANEL:hide()
9530 HUNT_PANEL:hide()
9531 ONLINE_PANEL:hide()
9532 FENDAS_PANEL:hide()
9533 QUEST_WINDOW:hide()
9534 TASK_WINDOW:hide()
9535 ACTIVE_WINDOW:hide()
9536 SHOP_WINDOW:hide()
9537 STATUS_WINDOW:hide()
9538 KARDS_PANEL:hide()
9539 KARDS_PANEL_OFF:hide()
9540 COLISEU_PANEL_OFF:hide()
9541 COLISEU_PANEL:hide()
9542 EVENT_PANEL_0:hide()
9543 EVENT_PANEL_1:hide()
9544 EVENT_PANEL_2:hide()
9545 EVENT_PANEL_3:hide()
9546 EVENT_PANEL_4:hide()
9547 EVENT_PANEL_5:hide()
9548 EVENT_PANEL_6:hide()
9549 EVENT_PANEL_7:hide()
9550 EVENT_PANEL_8:hide()
9551 EVENT_PANEL_9:hide()
9552 EVENT_PANEL_10:hide()
9553 EVENT_PANEL_11:hide()
9554 EVENT_PANEL_12:hide()
9555 SHOP_SELECT:hide()
9556 REQUEST_PAY_PANEL:hide()
9557 PAYMENT_METH_PANEL:hide()
9558 REQUEST_STEP_1:hide()
9559 REQUEST_STEP_2:hide()
9560 REQUEST_STEP_3:hide()
9561end
9562function LoadQuestRealTime()
9563 if g_app.isMobile() then
9564 return
9565 end
9566 if ViewMenuID == 02 then
9567 QUEST_BUTTON.onClick = function() end
9568 QuestFilter = 1
9569 g_game.talk(g_game.talk("!inventario 25"))
9570 INVENTARIO_BUTTON:setImageSource("/images/custom/UI/menu_option")
9571 QUEST_BUTTON:setImageSource("/images/custom/UI/menu_select")
9572 STATUS_BUTTON:setImageSource("/images/custom/UI/menu_option")
9573 TASK_BUTTON:setImageSource("/images/custom/UI/menu_option")
9574 SHOP_BUTTON:setImageSource("/images/custom/UI/menu_option")
9575
9576 onHiderWindows()
9577
9578 -- Enquanto rolar Loading, nao pode clicar em mais nada no menu.
9579 LoadingQuest:show()
9580 DisableMenuButtons()
9581 scheduleEvent(function()
9582 onHiderWindows()
9583 QUEST_WINDOW:show()
9584 TituloQuest:hide()
9585 DetalhesQuest:hide()
9586 RecompensaQuest:hide()
9587 RastrearQuest:hide()
9588 ProgressQuest:hide()
9589 BackQuest:hide()
9590
9591 --AbertasQuest:show()
9592 --ConcluidasQuest:show()
9593 ListaQuest:show()
9594 ScrollBarQuest:show()
9595
9596 FilterButtonQuest(01)
9597 LoadingQuest:hide()
9598 ReloadButtonMenu()
9599 end, 500)
9600 end
9601end
9602function ReloadButtonMenu()
9603 closer_boxShop()
9604 -- INVENTARIO BUTTON
9605 INVENTARIO_BUTTON.onClick = function()
9606 ViewMenuID = 01
9607 INVENTARIO_BUTTON.onClick = function() end
9608 INVENTARIO_BUTTON:setImageSource("/images/custom/UI/menu_select")
9609 STATUS_BUTTON:setImageSource("/images/custom/UI/menu_option")
9610 QUEST_BUTTON:setImageSource("/images/custom/UI/menu_option")
9611 TASK_BUTTON:setImageSource("/images/custom/UI/menu_option")
9612 SHOP_BUTTON:setImageSource("/images/custom/UI/menu_option")
9613
9614 onHiderWindows()
9615 INVENTARIO_WINDOW:show()
9616 end
9617 -- STATUS BUTTON
9618 STATUS_BUTTON.onClick = function()
9619 ViewMenuID = 03
9620 g_game.talk(g_game.talk("!inventario 32"))
9621 STATUS_BUTTON.onClick = function() end
9622 STATUS_BUTTON:setImageSource("/images/custom/UI/menu_select")
9623 INVENTARIO_BUTTON:setImageSource("/images/custom/UI/menu_option")
9624 QUEST_BUTTON:setImageSource("/images/custom/UI/menu_option")
9625 TASK_BUTTON:setImageSource("/images/custom/UI/menu_option")
9626 SHOP_BUTTON:setImageSource("/images/custom/UI/menu_option")
9627
9628 onHiderWindows()
9629 LOADING_STATUS:show()
9630 DisableMenuButtons()
9631 scheduleEvent(function()
9632 local localPlayer = g_game.getLocalPlayer()
9633 local MAESTRIA_TYPE = modules.game_database.getMaestriaEsp(00)
9634 if MAESTRIA_TYPE < 0 then MAESTRIA_TYPE = 0 end
9635 local ESPECIALISTA_TYPE = modules.game_database.getMaestriaEsp(01)
9636 if ESPECIALISTA_TYPE < 0 then ESPECIALISTA_TYPE = 0 end
9637
9638 MAESTRIA_STATUS:setImageSource("/images/custom/UI/maestria" ..MAESTRIA_TYPE)
9639 ESPECIALISTA_STATUS:setImageSource("/images/custom/UI/especialista" ..ESPECIALISTA_TYPE)
9640 MAESTRIA_STATUS:setTooltip('')
9641 ESPECIALISTA_STATUS:setTooltip('')
9642 if MAESTRIA_TYPE > 0 then
9643 local MAESTRIA_LEVEL = modules.game_database.getMaestriaEsp(02)
9644 if MAESTRIA_LEVEL < 0 then MAESTRIA_LEVEL = 0 end
9645 TXT_PANEL_MAES:setText('Lv.' ..MAESTRIA_LEVEL)
9646 if MAESTRIA_LEVEL < 5 then
9647 MAESTRIA_STATUS:setTooltip(tr('Maestria Nv.').. ' ' ..MAESTRIA_LEVEL.. "\n" ..tr(GET_MAESTRIA[MAESTRIA_TYPE][00]).. "\n\n".. tr("Proximo Nivel").. ":\n" ..tr(GET_MAESTRIA[MAESTRIA_TYPE][MAESTRIA_LEVEL + 1]))
9648 else
9649 MAESTRIA_STATUS:setTooltip(tr('Maestria Nv.').. ' ' ..MAESTRIA_LEVEL.. "\n" ..tr(GET_MAESTRIA[MAESTRIA_TYPE][00]).. "\n\n".. tr("Nivel maximo alcancado."))
9650 end
9651 else
9652 TXT_PANEL_MAES:hide()
9653 end
9654 if ESPECIALISTA_TYPE > 0 then
9655 local ESPECIALISTA_LEVEL = modules.game_database.getMaestriaEsp(03)
9656 if ESPECIALISTA_LEVEL < 0 then ESPECIALISTA_LEVEL = 0 end
9657 TXT_PANEL_ESP:setText('Lv.' ..ESPECIALISTA_LEVEL)
9658 TXT_PANEL_ESP:show()
9659 if ESPECIALISTA_LEVEL < 5 then
9660 ESPECIALISTA_STATUS:setTooltip('Especialista Nv. ' ..ESPECIALISTA_LEVEL.. "\n" ..GET_ESPECIALISTA[ESPECIALISTA_TYPE][00].. "\n\nProximo Nivel:\n" ..GET_ESPECIALISTA[ESPECIALISTA_TYPE][ESPECIALISTA_LEVEL + 1])
9661 else
9662 ESPECIALISTA_STATUS:setTooltip('Especialista Nv. ' ..ESPECIALISTA_LEVEL.. "\n" ..GET_ESPECIALISTA[ESPECIALISTA_TYPE][00].. "\n\nNivel maximo alcancado.")
9663 end
9664 else
9665 TXT_PANEL_ESP:hide()
9666 end
9667 TXT_ATK:setText(modules.game_database.getStatus(00))
9668 --TXT_DEF:setText(modules.game_database.getStatus(01))
9669 --TXT_ESQ:setText(modules.game_database.getStatus(02))
9670 local FIRE_PROTECTION = modules.game_database.getStatus(08)
9671 local ICE_PROTECTION = modules.game_database.getStatus(09)
9672 local ENERGY_PROTECTION = modules.game_database.getStatus(10)
9673 local EARTH_PROTECTION = modules.game_database.getStatus(11)
9674 local DEATH_PROTECTION = modules.game_database.getStatus(12)
9675
9676 local BONUS_EXTRA_ID = 34
9677 if modules.game_database.onGetBonusExtra(BONUS_EXTRA_ID) > 00 then
9678 FIRE_PROTECTION = FIRE_PROTECTION + modules.game_database.onGetBonusExtra(BONUS_EXTRA_ID)
9679 TXT_FIRE:setColor('green')
9680 TXT_FIRE:setTooltip(FIRE_PROTECTION.. ' + ' ..modules.game_database.onGetBonusExtra(BONUS_EXTRA_ID))
9681 else
9682 TXT_FIRE:setColor('white')
9683 TXT_FIRE:setTooltip('')
9684 end
9685 BONUS_EXTRA_ID = 35
9686 if modules.game_database.onGetBonusExtra(BONUS_EXTRA_ID) > 00 then
9687 ICE_PROTECTION = ICE_PROTECTION + modules.game_database.onGetBonusExtra(BONUS_EXTRA_ID)
9688 TXT_ICE:setColor('green')
9689 TXT_ICE:setTooltip(ICE_PROTECTION.. ' + ' ..modules.game_database.onGetBonusExtra(BONUS_EXTRA_ID))
9690 else
9691 TXT_ICE:setColor('white')
9692 TXT_ICE:setTooltip('')
9693 end
9694 BONUS_EXTRA_ID = 36
9695 if modules.game_database.onGetBonusExtra(BONUS_EXTRA_ID) > 00 then
9696 EARTH_PROTECTION = EARTH_PROTECTION + modules.game_database.onGetBonusExtra(BONUS_EXTRA_ID)
9697 TXT_EARTH:setColor('green')
9698 TXT_EARTH:setTooltip(EARTH_PROTECTION.. ' + ' ..modules.game_database.onGetBonusExtra(BONUS_EXTRA_ID))
9699 else
9700 TXT_EARTH:setColor('white')
9701 TXT_EARTH:setTooltip('')
9702 end
9703 BONUS_EXTRA_ID = 37
9704 if modules.game_database.onGetBonusExtra(BONUS_EXTRA_ID) > 00 then
9705 ENERGY_PROTECTION = ENERGY_PROTECTION + modules.game_database.onGetBonusExtra(BONUS_EXTRA_ID)
9706 TXT_ENERGY:setColor('green')
9707 TXT_ENERGY:setTooltip(ENERGY_PROTECTION.. ' + ' ..modules.game_database.onGetBonusExtra(BONUS_EXTRA_ID))
9708 else
9709 TXT_ENERGY:setColor('white')
9710 TXT_ENERGY:setTooltip('')
9711 end
9712 BONUS_EXTRA_ID = 38
9713 if modules.game_database.onGetBonusExtra(BONUS_EXTRA_ID) > 00 then
9714 DEATH_PROTECTION = DEATH_PROTECTION + modules.game_database.onGetBonusExtra(BONUS_EXTRA_ID)
9715 TXT_DEATH:setColor('green')
9716 TXT_DEATH:setTooltip(DEATH_PROTECTION.. ' + ' ..modules.game_database.onGetBonusExtra(BONUS_EXTRA_ID))
9717 else
9718 TXT_DEATH:setColor('white')
9719 TXT_DEATH:setTooltip('')
9720 end
9721
9722 PRO_FIRE:setValue(FIRE_PROTECTION, 0, 100)
9723 TXT_FIRE:setText(FIRE_PROTECTION.. "%")
9724 PRO_ICE:setValue(ICE_PROTECTION, 0, 100)
9725 TXT_ICE:setText(ICE_PROTECTION.. "%")
9726 PRO_ENERGY:setValue(ENERGY_PROTECTION, 0, 100)
9727 TXT_ENERGY:setText(ENERGY_PROTECTION.. "%")
9728 PRO_EARTH:setValue(EARTH_PROTECTION, 0, 100)
9729 TXT_EARTH:setText(EARTH_PROTECTION.. "%")
9730 PRO_DEATH:setValue(DEATH_PROTECTION, 0, 100)
9731 TXT_DEATH:setText(DEATH_PROTECTION.. "%")
9732 --TXT_TAX:setText(modules.game_database.getStatus(04).. "%")
9733 TXT_PEN:setText(modules.game_database.getStatus(06).. "%")
9734 TXT_PVP:setText(modules.game_database.getStatus(07))
9735
9736 BT_PANEL_PASSIVE_1.onClick = function()
9737 if PASSIVE_BOX:isVisible() then
9738 PASSIVE_BOX:hide()
9739 else
9740 PassiveSlot = 01
9741 onLoadPassives(01)
9742 end
9743 end
9744 BT_PANEL_PASSIVE_2.onClick = function()
9745 if PASSIVE_BOX:isVisible() then
9746 PASSIVE_BOX:hide()
9747 else
9748 PassiveSlot = 02
9749 onLoadPassives(01)
9750 end
9751 end
9752 BT_PANEL_PASSIVE_3.onClick = function()
9753 if PASSIVE_BOX:isVisible() then
9754 PASSIVE_BOX:hide()
9755 else
9756 PassiveSlot = 03
9757 onLoadPassives(01)
9758 end
9759 end
9760 BT_PANEL_PASSIVE_4.onClick = function()
9761 if PASSIVE_BOX:isVisible() then
9762 PASSIVE_BOX:hide()
9763 else
9764 PassiveSlot = 04
9765 onLoadPassives(01)
9766 end
9767 end
9768 BT_PANEL_PASSIVE_5.onClick = function()
9769 if PASSIVE_BOX:isVisible() then
9770 PASSIVE_BOX:hide()
9771 else
9772 PassiveSlot = 05
9773 onLoadPassives(01)
9774 end
9775 end
9776 BT_PANEL_PASSIVE_6.onClick = function()
9777 if PASSIVE_BOX:isVisible() then
9778 PASSIVE_BOX:hide()
9779 else
9780 PassiveSlot = 06
9781 onLoadPassives(01)
9782 end
9783 end
9784
9785 for i = 00, 03 do
9786 onSkillChange(localPlayer, i, localPlayer:getSkillLevel(i), localPlayer:getSkillLevelPercent(i))
9787 onBaseSkillChange(localPlayer, i, localPlayer:getSkillBaseLevel(i))
9788 end
9789 LOADING_STATUS:hide()
9790 STATUS_WINDOW:show()
9791 scheduleEvent(function() ReloadButtonMenu() end, 500)
9792 end, 500)
9793 end
9794 -- QUEST BUTTON
9795 QUEST_BUTTON.onClick = function()
9796 ViewMenuID = 02
9797 QUEST_BUTTON.onClick = function() end
9798 QuestFilter = 1
9799 g_game.talk(g_game.talk("!inventario 25"))
9800 INVENTARIO_BUTTON:setImageSource("/images/custom/UI/menu_option")
9801 QUEST_BUTTON:setImageSource("/images/custom/UI/menu_select")
9802 STATUS_BUTTON:setImageSource("/images/custom/UI/menu_option")
9803 TASK_BUTTON:setImageSource("/images/custom/UI/menu_option")
9804 SHOP_BUTTON:setImageSource("/images/custom/UI/menu_option")
9805
9806 onHiderWindows()
9807 -- Enquanto rolar Loading, nao pode clicar em mais nada no menu.
9808 LoadingQuest:show()
9809 DisableMenuButtons()
9810 scheduleEvent(function()
9811 onHiderWindows()
9812 QUEST_WINDOW:show()
9813 TituloQuest:hide()
9814 DetalhesQuest:hide()
9815 RecompensaQuest:hide()
9816 RastrearQuest:hide()
9817 ProgressQuest:hide()
9818 BackQuest:hide()
9819
9820 --AbertasQuest:show()
9821 --ConcluidasQuest:show()
9822 ListaQuest:show()
9823 ScrollBarQuest:show()
9824
9825 FilterButtonQuest(01)
9826 LoadingQuest:hide()
9827 scheduleEvent(function() ReloadButtonMenu() end, 500)
9828 end, 500)
9829 end
9830 -- TASK BUTTON
9831 TASK_BUTTON.onClick = function()
9832 ViewMenuID = 04
9833 --g_game.talk(g_game.talk("!inventario 34 02"))
9834 TASK_BUTTON.onClick = function() end
9835 INVENTARIO_BUTTON:setImageSource("/images/custom/UI/menu_option")
9836 QUEST_BUTTON:setImageSource("/images/custom/UI/menu_option")
9837 STATUS_BUTTON:setImageSource("/images/custom/UI/menu_option")
9838 TASK_BUTTON:setImageSource("/images/custom/UI/menu_select")
9839 SHOP_BUTTON:setImageSource("/images/custom/UI/menu_option")
9840
9841 onHiderWindows()
9842 ACTIVE_WINDOW:show()
9843 PVP_ROOM_BUTTON.onClick = function()
9844 g_game.talk(g_game.talk("!pvproom 00"))
9845 ACTIVE_WINDOW:hide()
9846 PVP_ROOM_PANEL:show()
9847 end
9848 BLACKLIST_BUTTON.onClick = function()
9849 ACTIVE_WINDOW:hide()
9850 TASK_WINDOW:show()
9851 StartTask()
9852 end
9853 RANK_BUTTON.onClick = function()
9854 ACTIVE_WINDOW:hide()
9855 g_game.talk(g_game.talk("!rank 00"))
9856 RANK_FILTRO:setOption("Level", "00")
9857 RANK_FILTRO.onOptionChange = onChangeRankSortType
9858 RANK_PANEL:show()
9859 end
9860 FENDAS_BUTTON.onClick = function()
9861 ACTIVE_WINDOW:hide()
9862 g_game.talk(g_game.talk("!fendas 00"))
9863 FENDAS_PANEL:show()
9864 end
9865 ONLINE_BUTTON.onClick = function()
9866 ACTIVE_WINDOW:hide()
9867 g_game.talk(g_game.talk("!online"))
9868 ONLINE_PANEL:show()
9869 end
9870 EVENTS_BUTTON.onClick = function()
9871 ViewMenuID = 06
9872 ACTIVE_WINDOW:hide()
9873 LOAD_REQUEST:show()
9874 g_game.talk(g_game.talk("!inventario 40"))
9875 end
9876 KARDS_BUTTON.onClick = function()
9877 ACTIVE_WINDOW:hide()
9878 LOAD_REQUEST:show()
9879 g_game.talk(g_game.talk("!inventario 42 03"))
9880 end
9881 COLISEU_BUTTON.onClick = function()
9882 ACTIVE_WINDOW:hide()
9883 LOAD_REQUEST:show()
9884 g_game.talk(g_game.talk("!inventario 44 01"))
9885 end
9886 CRIPT_BUTTON.onClick = function()
9887 ACTIVE_WINDOW:hide()
9888 LOAD_REQUEST:show()
9889 g_game.talk(g_game.talk("!inventario 37"))
9890 end
9891 HUNT_BUTTON.onClick = function()
9892 ACTIVE_WINDOW:hide()
9893 HUNT_PANEL:show()
9894 if AnalyserOn == false then
9895 HUNT_PAUSE:disable()
9896 HUNT_PAUSE:setText('-')
9897 HUNT_COMPACT_PAUSE:disable()
9898 HUNT_COMPACT_PAUSE:setText('-')
9899 end
9900 HUNT_PAUSE.onClick = function()
9901 if AnalyserPause == false then
9902 AnalyserPause = true
9903 else
9904 AnalyserPause = false
9905 end
9906 end
9907 HUNT_COMPACT_PAUSE.onClick = function()
9908 if AnalyserPause == false then
9909 AnalyserPause = true
9910 else
9911 AnalyserPause = false
9912 end
9913 end
9914 HUNT_START.onClick = function()
9915 if AnalyserOn == false then
9916 AnalyserOn = true
9917 HUNT_START:setText(tr("Redefinir"))
9918 HUNT_PAUSE:enable()
9919 HUNT_PAUSE:setText(tr('Pausar'))
9920 HUNT_COMPACT_PAUSE:enable()
9921 HUNT_COMPACT_PAUSE:setText(tr('Pausar'))
9922 HUNT_START:setImageSource("/images/custom/UI/button_3")
9923 HUNT_COMPACT_START:setText(tr("Redefinir"))
9924 HUNT_COMPACT_START:setImageSource("/images/custom/UI/button_3")
9925 else
9926 AnalyserOn = false
9927 HUNT_START:setText(tr("Iniciar"))
9928 HUNT_PAUSE:disable()
9929 HUNT_PAUSE:setText('-')
9930 HUNT_COMPACT_PAUSE:disable()
9931 HUNT_COMPACT_PAUSE:setText('-')
9932 HUNT_START:setImageSource("/images/custom/UI/button_2")
9933 HUNT_COMPACT_START:setText(tr("Iniciar"))
9934 HUNT_COMPACT_START:setImageSource("/images/custom/UI/button_2")
9935 end
9936 AnalyserPause = false
9937 AnalyserTimer()
9938 end
9939 HUNT_CLOSER.onClick = function()
9940 AnalyserBox:setParent(modules.game_interface.getRootPanel())
9941 AnalyserBox:addAnchor(AnchorTop, 'gameMapPanel', AnchorTop)
9942 AnalyserBox:addAnchor(AnchorLeft, 'gameMapPanel', AnchorLeft)
9943 AnalyserBox:setMarginTop(77)
9944 AnalyserBox:setOpacity(0.7)
9945 AnalyserBox:setMarginLeft(205)
9946 AnalyserBox:show()
9947
9948 if g_settings.getString('fixeMenu') == "true" then
9949 INVENTARIO_BUTTON.onClick = function() end
9950 INVENTARIO_BUTTON:setImageSource("/images/custom/UI/menu_select")
9951 STATUS_BUTTON:setImageSource("/images/custom/UI/menu_option")
9952 QUEST_BUTTON:setImageSource("/images/custom/UI/menu_option")
9953 TASK_BUTTON:setImageSource("/images/custom/UI/menu_option")
9954 SHOP_BUTTON:setImageSource("/images/custom/UI/menu_option")
9955
9956 onHiderWindows()
9957 INVENTARIO_WINDOW:show()
9958 else
9959 closedInventario()
9960 end
9961 end
9962 HUNT_COMPACT_START.onClick = function()
9963 if AnalyserOn == false then
9964 AnalyserOn = true
9965 HUNT_START:setText(tr("Redefinir"))
9966 HUNT_PAUSE:enable()
9967 HUNT_PAUSE:setText(tr('Pausar'))
9968 HUNT_COMPACT_PAUSE:enable()
9969 HUNT_COMPACT_PAUSE:setText(tr('Pausar'))
9970 HUNT_START:setImageSource("/images/custom/UI/button_3")
9971 HUNT_COMPACT_START:setText(tr("Redefinir"))
9972 HUNT_COMPACT_START:setImageSource("/images/custom/UI/button_3")
9973 else
9974 AnalyserOn = false
9975 HUNT_START:setText(tr("Iniciar"))
9976 HUNT_PAUSE:disable()
9977 HUNT_PAUSE:setText('-')
9978 HUNT_COMPACT_PAUSE:disable()
9979 HUNT_COMPACT_PAUSE:setText('-')
9980 HUNT_START:setImageSource("/images/custom/UI/button_2")
9981 HUNT_COMPACT_START:setText(tr("Iniciar"))
9982 HUNT_COMPACT_START:setImageSource("/images/custom/UI/button_2")
9983 end
9984 AnalyserPause = false
9985 AnalyserTimer()
9986 end
9987 HUNT_COMPACT_CLOSE.onClick = function()
9988 closer_hunt()
9989 end
9990 end
9991 scheduleEvent(function() ReloadButtonMenu() end, 500)
9992 end
9993 -- SHOP BUTTON
9994 SHOP_BUTTON.onClick = function()
9995 ViewMenuID = 05
9996 SHOP_BUTTON.onClick = function() end
9997 INVENTARIO_BUTTON:setImageSource("/images/custom/UI/menu_option")
9998 QUEST_BUTTON:setImageSource("/images/custom/UI/menu_option")
9999 STATUS_BUTTON:setImageSource("/images/custom/UI/menu_option")
10000 TASK_BUTTON:setImageSource("/images/custom/UI/menu_option")
10001 SHOP_BUTTON:setImageSource("/images/custom/UI/menu_select")
10002
10003 onHiderWindows()
10004 onShopFavorite(00)
10005 SHOP_WINDOW:show()
10006 for X = 01, #SHOP_PRODUCTS do
10007 SHOP_OFFERT = menuBackground:recursiveGetChildById('OfertaLabel_' ..X)
10008 SHOP_OFFERT:setVisible(false)
10009 for INDEX = 01, #SHOP_PRODUCTS[X] do
10010 if SHOP_PRODUCTS[X][INDEX].VIP.PROMO_PRICE > 00 then
10011 SHOP_OFFERT:setVisible(true)
10012 break
10013 elseif SHOP_PRODUCTS[X][INDEX].ONLINE.PROMO_PRICE > 00 then
10014 SHOP_OFFERT:setVisible(true)
10015 break
10016 elseif SHOP_PRODUCTS[X][INDEX].PVP.PROMO_PRICE > 00 then
10017 SHOP_OFFERT:setVisible(true)
10018 break
10019 end
10020 end
10021 end
10022 scheduleEvent(function() ReloadButtonMenu() end, 500)
10023
10024 PremiumLabel.onClick = function() onShopSelect(01) end
10025 ConsumiveisLabel.onClick = function() onShopSelect(02) end
10026 BuffLabel.onClick = function() onShopSelect(03) end
10027 ServicosLabel.onClick = function() onShopSelect(04) end
10028 EspecialLabel.onClick = function() onShopSelect(05) end
10029 FerramentasLabel.onClick = function() onShopSelect(06) end
10030 OutfitLabel.onClick = function() onShopSelect(07) end
10031 MontariaLabel.onClick = function() onShopSelect(08) end
10032 BackpackLabel.onClick = function() onShopSelect(09) end
10033 KardLabel.onClick = function() onShopSelect(10) end
10034 ExtensoesLabel.onClick = function() onShopSelect(11) end
10035 WarzoneLabel.onClick = function() onShopSelect(12) end
10036
10037 end
10038end
10039
10040local Hora, Minuto, Segundo = 0, 0, -1
10041function onLoadPassives(cat)
10042 PassiveCategoria = cat
10043 BT_CATEGORY_PASSIVE_1 = PASSIVE_BOX:recursiveGetChildById('categoria_1')
10044 BT_CATEGORY_PASSIVE_2 = PASSIVE_BOX:recursiveGetChildById('categoria_2')
10045 BT_CATEGORY_PASSIVE_3 = PASSIVE_BOX:recursiveGetChildById('categoria_3')
10046 BT_CATEGORY_PASSIVE_4 = PASSIVE_BOX:recursiveGetChildById('categoria_4')
10047 BT_CATEGORY_PASSIVE_1:setImageSource('/images/custom/UI/cat_1_on')
10048 BT_CATEGORY_PASSIVE_2:setImageSource('/images/custom/UI/cat_2_on')
10049 BT_CATEGORY_PASSIVE_3:setImageSource('/images/custom/UI/cat_3_on')
10050 BT_CATEGORY_PASSIVE_4:setImageSource('/images/custom/UI/cat_4_on')
10051 BT_CATEGORY_PASSIVE_1:enable()
10052 BT_CATEGORY_PASSIVE_2:enable()
10053 BT_CATEGORY_PASSIVE_3:enable()
10054 BT_CATEGORY_PASSIVE_4:enable()
10055
10056 BT_CATEGORY_PASSIVE = PASSIVE_BOX:recursiveGetChildById('categoria_' ..cat)
10057 BT_CATEGORY_PASSIVE:setImageSource('/images/custom/UI/cat_' ..cat.. '_off')
10058 BT_CATEGORY_PASSIVE:disable()
10059
10060 if Novato == 49 then
10061 modules.game_alert.onShowTutor(49)
10062 Novato = 50
10063 end
10064 if PASSIVE_BOX:isVisible() and cat == LastPassiveCat then
10065 for _PASS = 01, #PASSIVES do
10066 if cat == PASSIVES[_PASS].CATEGORY then
10067 PASSIVE_WINDOW = PASSIVE_BOX:recursiveGetChildById("PASSIVE_ID_" .._PASS)
10068 PASSIVE_LEVEL = PASSIVE_BOX:recursiveGetChildById("PASSIVE_LEVEL" .._PASS)
10069 PASSIVE_NAME = PASSIVE_BOX:recursiveGetChildById("PASSIVE_NAME" .._PASS)
10070 PASSIVE_VERTICAL = PASSIVE_BOX:recursiveGetChildById("PASSIVE_VERTICAL" .._PASS)
10071 PASSIVE_DESC = PASSIVE_BOX:recursiveGetChildById("PASSIVE_DESC" .._PASS)
10072 PASSIVE_UPGRADE = PASSIVE_BOX:recursiveGetChildById("PASSIVE_UPGRADE" .._PASS)
10073
10074 if PASSIVES[_PASS].STORAGE > 0 then
10075 PASSIVE_WINDOW:setImageSource(ColorPanel[cat])
10076 PASSIVE_WINDOW:setTooltip(tr("Clique para equipar").. ".")
10077 PASSIVE_WINDOW.onClick = function()
10078 local INDEX = _PASS
10079 g_game.talk(g_game.talk("!inventario 48 " ..PassiveSlot.. " " ..INDEX.. " " ..PASSIVES[INDEX].STORAGE))
10080 if Novato == 50 then
10081 modules.game_alert.onShowTutor(50)
10082 Novato = 00
10083 end
10084 end
10085 else
10086 PASSIVE_WINDOW:setImageSource(ColorPanel[00])
10087 PASSIVE_WINDOW:setTooltip("")
10088 PASSIVE_WINDOW.onClick = function() end
10089 end
10090
10091 PASSIVE_LEVEL:setText("Lv. " ..PASSIVES[_PASS].STORAGE.. "/10")
10092 if PASSIVES[_PASS].STORAGE > 01 then
10093 PASSIVE_DESC:setText(tr(PASSIVES[_PASS].POWER_INFO).. " " ..(PASSIVES[_PASS].POWER_BASE + (PASSIVES[_PASS].POWER_FOR_LEVEL * (PASSIVES[_PASS].STORAGE - 01)).. "" ..PASSIVES[_PASS].POWER_SINAL))
10094 else
10095 PASSIVE_DESC:setText(tr(PASSIVES[_PASS].POWER_INFO).. " " ..PASSIVES[_PASS].POWER_BASE.. "" ..PASSIVES[_PASS].POWER_SINAL)
10096 end
10097 PASSIVE_UPGRADE.onHoverChange = function(widget, hoverState)
10098 if hoverState then
10099 widget:setOpacity('1.0')
10100 else
10101 widget:setOpacity('0.8')
10102 g_tooltip.hide()
10103 end
10104 end
10105 if PASSIVES[_PASS].STORAGE >= 10 then
10106 PASSIVE_UPGRADE:setText('MAX')
10107 PASSIVE_UPGRADE:setOpacity('1.0')
10108 PASSIVE_UPGRADE:disable()
10109 PASSIVE_UPGRADE.onClick = function() end
10110 else
10111 if PASSIVES[_PASS].STORAGE > 00 then
10112 PASSIVE_UPGRADE:setText('UPGRADE')
10113 else
10114 PASSIVE_UPGRADE:setText('UNLOCK')
10115 end
10116 PASSIVE_UPGRADE:setOpacity('0.8')
10117 PASSIVE_UPGRADE.onClick = function()
10118 local INDEX = _PASS
10119 local textMsg = ""
10120 local NeedPoints = 01
10121 if PASSIVES[INDEX].STORAGE == 00 then
10122 textMsg = "[" ..tr(PASSIVES[INDEX].DESC).. "]\n\n" ..tr(PASSIVES[INDEX].POWER_INFO).. " " ..(PASSIVES[_PASS].POWER_BASE + (PASSIVES[_PASS].POWER_FOR_LEVEL * PASSIVES[_PASS].STORAGE)).. "" ..PASSIVES[_PASS].POWER_SINAL.. "\n".. tr("Desbloquear essa passiva custara 01 Ponto de Passiva.")
10123 elseif PASSIVES[_PASS].STORAGE > 01 then
10124 local LevelAtual = PASSIVES[INDEX].POWER_BASE + (PASSIVES[INDEX].POWER_FOR_LEVEL * (PASSIVES[_PASS].STORAGE - 01))
10125 NeedPoints = (PASSIVES[INDEX].STORAGE + 01)
10126 textMsg = "[" ..tr(PASSIVES[INDEX].DESC).. "]\n\n" ..tr(PASSIVES[INDEX].POWER_INFO).. " " ..LevelAtual.. "" ..PASSIVES[INDEX].POWER_SINAL.. " > " .. (LevelAtual + PASSIVES[INDEX].POWER_FOR_LEVEL) .. "" ..PASSIVES[INDEX].POWER_SINAL.. "\n".. tr("Esse upgrade custara").. " " ..NeedPoints.. " " ..tr("Pontos de Passiva.")
10127 else
10128 NeedPoints = (PASSIVES[INDEX].STORAGE + 01)
10129 textMsg = "[" ..tr(PASSIVES[INDEX].DESC).. "]\n\n" ..tr(PASSIVES[INDEX].POWER_INFO).. " " ..PASSIVES[INDEX].POWER_BASE.. "" ..PASSIVES[INDEX].POWER_SINAL.. " > " .. (PASSIVES[INDEX].POWER_BASE + PASSIVES[INDEX].POWER_FOR_LEVEL) .. "" ..PASSIVES[INDEX].POWER_SINAL.. "\n".. tr("Esse upgrade custara").. " " ..NeedPoints.. " " ..tr("Pontos de Passiva.")
10130 end
10131 local yesChoose = function()
10132 g_game.talk(g_game.talk("!inventario 47 " ..INDEX.. " " ..NeedPoints))
10133 atrBuy:destroy()
10134 end
10135 local noChoose = function() atrBuy:destroy() end
10136
10137 atrBuy = displayGeneralBox(tr(''), (textMsg),
10138 { { text=tr('Upgrade'), callback=yesChoose },
10139 { text=tr('Cancelar'), callback=noChoose },
10140 anchor=AnchorHorizontalCenter }, yesChoose, noChoose)
10141 end
10142 end
10143 end
10144 end
10145 else
10146 LastPassiveCat = cat
10147 for DEL_PASSIVE = 01, #PASSIVES do
10148 PASSIVE_ID = PASSIVE_BOX:recursiveGetChildById('PASSIVE_ID_' ..DEL_PASSIVE)
10149 if PASSIVE_ID then
10150 PASSIVE_ID:destroy()
10151 end
10152 end
10153 for _PASS = 01, #PASSIVES do
10154 if cat == PASSIVES[_PASS].CATEGORY then
10155 PASSIVE_WINDOW = g_ui.createWidget('UIButton', PASSIVE_PANEL)
10156 PASSIVE_WINDOW:setId("PASSIVE_ID_" .._PASS)
10157 PASSIVE_WINDOW:setMarginTop(05)
10158 if PASSIVES[_PASS].STORAGE > 0 then
10159 PASSIVE_WINDOW:setImageSource(ColorPanel[cat])
10160 PASSIVE_WINDOW:setTooltip(tr("Clique para equipar").. ".")
10161 PASSIVE_WINDOW.onClick = function()
10162 local INDEX = _PASS
10163 g_game.talk(g_game.talk("!inventario 48 " ..PassiveSlot.. " " ..INDEX.. " " ..PASSIVES[INDEX].STORAGE))
10164 end
10165 else
10166 PASSIVE_WINDOW:setImageSource(ColorPanel[00])
10167 PASSIVE_WINDOW:setTooltip("")
10168 PASSIVE_WINDOW.onClick = function() end
10169 end
10170
10171 PASSIVE_IMG = g_ui.createWidget('UIButton', PASSIVE_WINDOW)
10172 PASSIVE_IMG:setId("PASSIVE_IMG" .._PASS)
10173 PASSIVE_IMG:setSize({width = 32, height = 32})
10174 PASSIVE_IMG:setImageSource("/images/custom/Spells/Passiva/passive_" .._PASS)
10175 PASSIVE_IMG:addAnchor(AnchorTop, 'parent', AnchorTop)
10176 PASSIVE_IMG:addAnchor(AnchorLeft, 'parent', AnchorLeft)
10177 PASSIVE_IMG:setMarginTop(15)
10178 PASSIVE_IMG:setMarginLeft(15)
10179 PASSIVE_IMG:setPhantom(true)
10180
10181 PASSIVE_LEVEL = g_ui.createWidget('UIButton', PASSIVE_WINDOW)
10182 PASSIVE_LEVEL:setId("PASSIVE_LEVEL" .._PASS)
10183 PASSIVE_LEVEL:setSize({width = 60, height = 32})
10184 PASSIVE_LEVEL:addAnchor(AnchorTop, 'parent', AnchorTop)
10185 PASSIVE_LEVEL:addAnchor(AnchorLeft, 'parent', AnchorLeft)
10186 PASSIVE_LEVEL:setMarginTop(40)
10187 PASSIVE_LEVEL:setMarginLeft(05)
10188 PASSIVE_LEVEL:setText("Lv. " ..PASSIVES[_PASS].STORAGE.. "/10")
10189 PASSIVE_LEVEL:setPhantom(true)
10190
10191 PASSIVE_NAME = g_ui.createWidget('UIButton', PASSIVE_WINDOW)
10192 PASSIVE_NAME:setId("PASSIVE_NAME" .._PASS)
10193 PASSIVE_NAME:setSize({width = 10, height = 50})
10194 PASSIVE_NAME:addAnchor(AnchorLeft, 'parent', AnchorLeft)
10195 PASSIVE_NAME:addAnchor(AnchorRight, 'parent', AnchorRight)
10196 PASSIVE_NAME:addAnchor(AnchorTop, 'parent', AnchorTop)
10197 PASSIVE_NAME:setMarginLeft(65)
10198 PASSIVE_NAME:setMarginRight(05)
10199 PASSIVE_NAME:setMarginTop(05)
10200 PASSIVE_NAME:setTextWrap(true)
10201 PASSIVE_NAME:setFont("lucida-11px-rounded")
10202 PASSIVE_NAME:setText(tr(PASSIVES[_PASS].DESC))
10203 PASSIVE_NAME:setPhantom(true)
10204
10205 PASSIVE_VERTICAL = g_ui.createWidget('UIButton', PASSIVE_WINDOW)
10206 PASSIVE_VERTICAL:setId("PASSIVE_VERTICAL" .._PASS)
10207 PASSIVE_VERTICAL:setSize({width = 150, height = 02})
10208 PASSIVE_VERTICAL:setImageSource("/images/custom/UI/s")
10209 PASSIVE_VERTICAL:addAnchor(AnchorLeft, 'parent', AnchorLeft)
10210 PASSIVE_VERTICAL:addAnchor(AnchorRight, 'parent', AnchorRight)
10211 PASSIVE_VERTICAL:addAnchor(AnchorTop, 'parent', AnchorTop)
10212 PASSIVE_VERTICAL:setMarginTop(70)
10213 PASSIVE_VERTICAL:setPhantom(true)
10214
10215 PASSIVE_DESC = g_ui.createWidget('UIButton', PASSIVE_WINDOW)
10216 PASSIVE_DESC:setId("PASSIVE_DESC" .._PASS)
10217 PASSIVE_DESC:setSize({width = 10, height = 18})
10218 PASSIVE_DESC:addAnchor(AnchorLeft, 'parent', AnchorLeft)
10219 PASSIVE_DESC:addAnchor(AnchorRight, 'parent', AnchorRight)
10220 PASSIVE_DESC:addAnchor(AnchorTop, 'parent', AnchorTop)
10221 PASSIVE_DESC:setMarginLeft(05)
10222 PASSIVE_DESC:setMarginTop(74)
10223 PASSIVE_DESC:setTextWrap(true)
10224 PASSIVE_DESC:setPhantom(true)
10225 PASSIVE_DESC:setTextAlign(AlignLeft)
10226 PASSIVE_DESC:setFont("lucida-11px-rounded")
10227 if PASSIVES[_PASS].STORAGE > 01 then
10228 PASSIVE_DESC:setText(tr(PASSIVES[_PASS].POWER_INFO).. " " ..(PASSIVES[_PASS].POWER_BASE + (PASSIVES[_PASS].POWER_FOR_LEVEL * (PASSIVES[_PASS].STORAGE - 01)).. "" ..PASSIVES[_PASS].POWER_SINAL))
10229 else
10230 PASSIVE_DESC:setText(tr(PASSIVES[_PASS].POWER_INFO).. " " ..PASSIVES[_PASS].POWER_BASE.. "" ..PASSIVES[_PASS].POWER_SINAL)
10231 end
10232
10233 PASSIVE_UPGRADE = g_ui.createWidget('UIButton', PASSIVE_WINDOW)
10234 PASSIVE_UPGRADE:setId("PASSIVE_UPGRADE" .._PASS)
10235 PASSIVE_UPGRADE:setSize({width = 75, height = 20})
10236 PASSIVE_UPGRADE:setImageSource("/images/custom/Task/Monster_1")
10237 PASSIVE_UPGRADE:addAnchor(AnchorRight, 'parent', AnchorRight)
10238 PASSIVE_UPGRADE:addAnchor(AnchorTop, 'parent', AnchorTop)
10239 PASSIVE_UPGRADE:setMarginRight(05)
10240 PASSIVE_UPGRADE:setMarginTop(60)
10241 PASSIVE_UPGRADE:setFont("lucida-11px-rounded")
10242 PASSIVE_UPGRADE.onHoverChange = function(widget, hoverState)
10243 if hoverState then
10244 widget:setOpacity('1.0')
10245 else
10246 widget:setOpacity('0.8')
10247 g_tooltip.hide()
10248 end
10249 end
10250 if PASSIVES[_PASS].STORAGE >= 10 then
10251 PASSIVE_UPGRADE:setText('MAX')
10252 PASSIVE_UPGRADE:setOpacity('1.0')
10253 PASSIVE_UPGRADE:disable()
10254 PASSIVE_UPGRADE.onClick = function() end
10255 else
10256 if PASSIVES[_PASS].STORAGE > 00 then
10257 PASSIVE_UPGRADE:setText('UPGRADE')
10258 else
10259 PASSIVE_UPGRADE:setText('UNLOCK')
10260 end
10261 PASSIVE_UPGRADE:setOpacity('0.8')
10262 PASSIVE_UPGRADE.onClick = function()
10263 local INDEX = _PASS
10264 local textMsg = ""
10265 local NeedPoints = 01
10266 if PASSIVES[INDEX].STORAGE == 00 then
10267 textMsg = "[" ..tr(PASSIVES[INDEX].DESC).. "]\n\n" ..tr(PASSIVES[INDEX].POWER_INFO).. " " ..(PASSIVES[_PASS].POWER_BASE + (PASSIVES[_PASS].POWER_FOR_LEVEL * PASSIVES[_PASS].STORAGE)).. "" ..PASSIVES[_PASS].POWER_SINAL.. "\n".. tr("Desbloquear essa passiva custara 01 Ponto de Passiva.")
10268 elseif PASSIVES[_PASS].STORAGE > 01 then
10269 local LevelAtual = PASSIVES[INDEX].POWER_BASE + (PASSIVES[INDEX].POWER_FOR_LEVEL * (PASSIVES[_PASS].STORAGE - 01))
10270 NeedPoints = (PASSIVES[INDEX].STORAGE + 01)
10271 textMsg = "[" ..tr(PASSIVES[INDEX].DESC).. "]\n\n" ..tr(PASSIVES[INDEX].POWER_INFO).. " " ..LevelAtual.. "" ..PASSIVES[INDEX].POWER_SINAL.. " > " .. (LevelAtual + PASSIVES[INDEX].POWER_FOR_LEVEL) .. "" ..PASSIVES[INDEX].POWER_SINAL.. "\n".. tr("Esse upgrade custara").. " " ..NeedPoints.. " ".. tr("Pontos de Passiva.")
10272 else
10273 NeedPoints = (PASSIVES[INDEX].STORAGE + 01)
10274 textMsg = "[" ..tr(PASSIVES[INDEX].DESC).. "]\n\n" ..tr(PASSIVES[INDEX].POWER_INFO).. " " ..PASSIVES[INDEX].POWER_BASE.. "" ..PASSIVES[INDEX].POWER_SINAL.. " > " .. (PASSIVES[INDEX].POWER_BASE + PASSIVES[INDEX].POWER_FOR_LEVEL) .. "" ..PASSIVES[INDEX].POWER_SINAL.. "\n".. tr("Esse upgrade custara").. " " ..NeedPoints.. " ".. tr("Pontos de Passiva.")
10275 end
10276 local yesChoose = function()
10277 g_game.talk(g_game.talk("!inventario 47 " ..INDEX.. " " ..NeedPoints))
10278 atrBuy:destroy()
10279 end
10280 local noChoose = function() atrBuy:destroy() end
10281
10282 atrBuy = displayGeneralBox(tr(''), (textMsg),
10283 { { text=tr('Upgrade'), callback=yesChoose },
10284 { text=tr('Cancelar'), callback=noChoose },
10285 anchor=AnchorHorizontalCenter }, yesChoose, noChoose)
10286 end
10287 end
10288 end
10289 end
10290 end
10291
10292 if g_app.isMobile() then
10293 PASSIVE_BOX:setParent(gameRootPanel)
10294 PASSIVE_BOX:addAnchor(AnchorTop, 'gameMapPanel', AnchorTop)
10295 PASSIVE_BOX:addAnchor(AnchorRight, 'gameMapPanel', AnchorRight)
10296
10297 PASSIVE_BOX:setMarginTop(60)
10298 PASSIVE_BOX:setMarginRight(200)
10299 end
10300 PASSIVE_BOX:show()
10301end
10302function AnalyserTimer()
10303 if AnalyserPause then
10304 scheduleEvent(function() AnalyserTimer() end, 1000)
10305 return
10306 end
10307 if AnalyserOn == true then
10308 if Segundo == 59 then
10309 Minuto = Minuto + 1
10310 Segundo = 0
10311 else
10312 Segundo = Segundo + 1
10313 end
10314 if Minuto == 60 then
10315 Hora = Hora + 1
10316 Minuto = 0
10317 end
10318
10319 local HoraLabel, MinutoLabel, SegundoLabel = "", "", ""
10320 if Hora < 10 then
10321 HoraLabel = "0"..Hora
10322 else
10323 HoraLabel = Hora
10324 end
10325 if Minuto < 10 then
10326 MinutoLabel = "0"..Minuto
10327 else
10328 MinutoLabel = Minuto
10329 end
10330 if Segundo < 10 then
10331 SegundoLabel = "0"..Segundo
10332 else
10333 SegundoLabel = Segundo
10334 end
10335
10336 HUNT_COMPACT_TIME_LABEL:setText(HoraLabel.. ":" ..MinutoLabel.. ":" ..SegundoLabel.. "h")
10337 HUNT_TIME_LABEL:setText(HoraLabel.. ":" ..MinutoLabel.. ":" ..SegundoLabel.. "h")
10338 scheduleEvent(function() AnalyserTimer() end, 1000)
10339 else
10340 for X = 01, 100 do
10341 ANALYSER_ITEMS[X].UID = 0000
10342 ANALYSER_ITEMS[X].QNT = 0000
10343 ANALYSER_ITEMS[X].RARE = 0000
10344 end
10345 ANALYSER_ITEMS[0000].TOTAL = 0
10346 for X = 01, 100 do
10347 LOOT_ID = menuBackground:recursiveGetChildById('LOOT_' ..X)
10348 LOOT_COMPACT_ID = AnalyserBox:recursiveGetChildById('LOOT_' ..X)
10349 if LOOT_ID then
10350 LOOT_ID:destroy()
10351 end
10352 if LOOT_COMPACT_ID then
10353 LOOT_COMPACT_ID:destroy()
10354 end
10355 end
10356 Hora, Minuto, Segundo = 0, 0, -1
10357 AnalyserEXP, AnalyserLoot, AnalyserSupplies, AnalyserKill = 0, 0, 0, 0
10358 HUNT_TIME_LABEL:setText("00:00:00h")
10359 HUNT_COMPACT_TIME_LABEL:setText("00:00:00h")
10360 HUNT_EXP_LABEL:setText("0")
10361 HUNT_COMPACT_EXP_LABEL:setText("0")
10362 HUNT_LOOT_LABEL:setText("0")
10363 HUNT_COMPACT_LOOT_LABEL:setText("0")
10364 HUNT_SUPPLIES_LABEL:setText("0")
10365 HUNT_COMPACT_SUPPLIES_LABEL:setText("0")
10366 HUNT_BALANCE_LABEL:setText("0")
10367 HUNT_COMPACT_BALANCE_LABEL:setText("0")
10368 HUNT_BALANCE_LABEL:setColor('white')
10369 HUNT_COMPACT_BALANCE_LABEL:setColor('white')
10370 HUNT_KILLED_LABEL:setText("0")
10371 HUNT_COMPACT_KILLED_LABEL:setText("0")
10372 return true
10373 end
10374end
10375function AnalyserRefresh()
10376 if AnalyserPause then
10377 return
10378 end
10379 HUNT_EXP_LABEL:setText(mask_number(AnalyserEXP))
10380 HUNT_COMPACT_EXP_LABEL:setText(mask_number(AnalyserEXP))
10381 HUNT_LOOT_LABEL:setText(mask_number(AnalyserLoot))
10382 HUNT_COMPACT_LOOT_LABEL:setText(mask_number(AnalyserLoot))
10383 HUNT_SUPPLIES_LABEL:setText(mask_number(AnalyserSupplies))
10384 HUNT_COMPACT_SUPPLIES_LABEL:setText(mask_number(AnalyserSupplies))
10385
10386 local LootPrice = HUNT_LOOT_LABEL:getText():gsub(",", "")
10387 local LootValue = tonumber(LootPrice)
10388 local SuppliesPrice = HUNT_SUPPLIES_LABEL:getText():gsub(",", "")
10389 local SuppliesValue = tonumber(SuppliesPrice)
10390 local AnalyserBalance = LootValue - SuppliesValue
10391
10392 HUNT_BALANCE_LABEL:setText(mask_number(AnalyserBalance))
10393 HUNT_COMPACT_BALANCE_LABEL:setText(mask_number(AnalyserBalance))
10394 if AnalyserBalance == 0 then
10395 HUNT_BALANCE_LABEL:setColor('white')
10396 HUNT_COMPACT_BALANCE_LABEL:setColor('white')
10397 elseif AnalyserBalance > 0 then
10398 HUNT_BALANCE_LABEL:setColor('green')
10399 HUNT_COMPACT_BALANCE_LABEL:setColor('green')
10400 else
10401 HUNT_BALANCE_LABEL:setColor('orange')
10402 HUNT_COMPACT_BALANCE_LABEL:setColor('orange')
10403 end
10404
10405 HUNT_KILLED_LABEL:setText(mask_number(AnalyserKill))
10406 HUNT_COMPACT_KILLED_LABEL:setText(mask_number(AnalyserKill))
10407end
10408function onLootRefresh()
10409 if AnalyserPause then
10410 return
10411 end
10412 for X = 01, 100 do
10413 LOOT_ID = menuBackground:recursiveGetChildById('LOOT_' ..X)
10414 LOOT_COMPACT_ID = AnalyserBox:recursiveGetChildById('LOOT_' ..X)
10415 if LOOT_ID then
10416 LOOT_ID:destroy()
10417 end
10418 if LOOT_COMPACT_ID then
10419 LOOT_COMPACT_ID:destroy()
10420 end
10421 end
10422 for A = 01, 100 do
10423 if ANALYSER_ITEMS[A].UID > 0000 then
10424 local ITEMID = ANALYSER_ITEMS[A].UID
10425 local RARE = ANALYSER_ITEMS[A].RARE
10426 local TYPE = modules.game_database.getItemInfo(ITEMID, 02)
10427
10428 LOOT_ITEM = g_ui.createWidget('UIButton', HUNT_LIST)
10429 LOOT_ITEM:setId('LOOT_' ..A)
10430 LOOT_ITEM:setIcon("/images/custom/Items/" ..ANALYSER_ITEMS[A].UID)
10431 LOOT_ITEM:setImageSource("/images/custom/UI/rare_" ..RARE)
10432 LOOT_ITEM:setIconRect("05 05 32 32")
10433 LOOT_ITEM:setMarginTop(03)
10434 if TYPE == 04 then
10435 LOOT_ITEM:setTooltip("@GUN " ..ITEMID.. " " ..RARE.. " 0 0 0 0 0 0 0 0")
10436 else
10437 LOOT_ITEM:setTooltip("@BAG " ..ITEMID.. " " ..RARE.. " 0 " ..ANALYSER_ITEMS[A].QNT.. " 0 0 0 0 0 0")
10438 end
10439
10440 LOOT_TXT = g_ui.createWidget('UIButton', LOOT_ITEM)
10441 LOOT_TXT:setSize({width = 42, height = 15})
10442 LOOT_TXT:addAnchor(AnchorBottom, 'parent', AnchorBottom)
10443 LOOT_TXT:setText(ANALYSER_ITEMS[A].QNT)
10444 LOOT_TXT:setPhantom(true)
10445
10446 --[[
10447 LOOT_ITEM = g_ui.createWidget('UIButton', HUNT_COMPACT_LIST)
10448 LOOT_ITEM:setId('LOOT_' ..A)
10449 LOOT_ITEM:setIcon("/images/custom/Items/" ..ANALYSER_ITEMS[A].UID)
10450 LOOT_ITEM:setImageSource("/images/custom/UI/rare_" ..RARE)
10451 LOOT_ITEM:setIconRect("05 05 32 32")
10452 LOOT_ITEM:setMarginTop(03)
10453 LOOT_ITEM:setTooltip("@BAG " ..ITEMID.. " " ..RARE.. " 0 " ..ANALYSER_ITEMS[A].QNT.. " 0 0 0 0 0 0")
10454
10455 LOOT_TXT = g_ui.createWidget('UIButton', LOOT_ITEM)
10456 LOOT_TXT:setSize({width = 42, height = 15})
10457 LOOT_TXT:addAnchor(AnchorBottom, 'parent', AnchorBottom)
10458 LOOT_TXT:setText(ANALYSER_ITEMS[A].QNT)
10459 LOOT_TXT:setPhantom(true)
10460 ]]
10461 else
10462 break
10463 end
10464 end
10465end
10466function onColiseuShop(keys, hard)
10467 local ATR_SHOP = {
10468 [01] = {
10469 [01] = {11001, 25},
10470 [02] = {11006, 25},
10471 [03] = {11007, 25},
10472 [04] = {11008, 25},
10473 [05] = {11015, 25},
10474 [06] = {11020, 25},
10475 },
10476 [02] = {
10477 [01] = {11001, 25},
10478 [02] = {11006, 25},
10479 [03] = {11007, 25},
10480 [04] = {11008, 25},
10481 [05] = {11015, 25},
10482 [06] = {11020, 25},
10483
10484 [07] = {11004, 50},
10485 [08] = {11005, 50},
10486 [09] = {11011, 50},
10487 [10] = {11014, 50},
10488 [11] = {11032, 50},
10489 [12] = {11040, 50},
10490 },
10491 [03] = {
10492 [01] = {11001, 25},
10493 [02] = {11006, 25},
10494 [03] = {11007, 25},
10495 [04] = {11008, 25},
10496 [05] = {11015, 25},
10497 [06] = {11020, 25},
10498
10499 [07] = {11004, 50},
10500 [08] = {11005, 50},
10501 [09] = {11011, 50},
10502 [10] = {11014, 50},
10503 [11] = {11032, 50},
10504 [12] = {11040, 50},
10505
10506 [13] = {11003, 75},
10507 [14] = {11010, 75},
10508 [15] = {11012, 75},
10509 [16] = {11016, 75},
10510 [17] = {11026, 75},
10511 },
10512 [04] = {
10513 [01] = {11001, 25},
10514 [02] = {11006, 25},
10515 [03] = {11007, 25},
10516 [04] = {11008, 25},
10517 [05] = {11015, 25},
10518 [06] = {11020, 25},
10519
10520 [07] = {11004, 50},
10521 [08] = {11005, 50},
10522 [09] = {11011, 50},
10523 [10] = {11014, 50},
10524 [11] = {11032, 50},
10525 [12] = {11040, 50},
10526
10527 [13] = {11003, 75},
10528 [14] = {11010, 75},
10529 [15] = {11012, 75},
10530 [16] = {11016, 75},
10531 [17] = {11026, 75},
10532
10533 [18] = {11002, 100},
10534 [19] = {11013, 100},
10535 [20] = {11017, 100},
10536 [21] = {11018, 100},
10537 [22] = {11019, 100},
10538 [23] = {11021, 100},
10539 [24] = {11022, 100},
10540 [25] = {11023, 100},
10541 [26] = {11024, 100},
10542 },
10543 [05] = {
10544 [01] = {11001, 25},
10545 [02] = {11006, 25},
10546 [03] = {11007, 25},
10547 [04] = {11008, 25},
10548 [05] = {11015, 25},
10549 [06] = {11020, 25},
10550
10551 [07] = {11004, 50},
10552 [08] = {11005, 50},
10553 [09] = {11011, 50},
10554 [10] = {11014, 50},
10555 [11] = {11032, 50},
10556 [12] = {11040, 50},
10557
10558 [13] = {11003, 75},
10559 [14] = {11010, 75},
10560 [15] = {11012, 75},
10561 [16] = {11016, 75},
10562 [17] = {11026, 75},
10563
10564 [18] = {11002, 100},
10565 [19] = {11013, 100},
10566 [20] = {11017, 100},
10567 [21] = {11018, 100},
10568 [22] = {11019, 100},
10569 [23] = {11021, 100},
10570 [24] = {11022, 100},
10571 [25] = {11023, 100},
10572 [26] = {11024, 100},
10573 },
10574 }
10575
10576 COLISEUS_LABEL = menuBackground:recursiveGetChildById('coliseuLabel')
10577 local HardTxt = 'Facil'
10578 if hard == 02 then
10579 HardTxt = 'Medio'
10580 elseif hard == 03 then
10581 HardTxt = 'Dificil'
10582 elseif hard >= 04 then
10583 HardTxt = 'Expert'
10584 end
10585
10586 COLISEUS_LABEL:setText(tr("Chaves").. ": " ..keys.. " | ".. tr("Dificuldade").. ": " ..HardTxt)
10587 for _ATR_DEL = 01, 50 do
10588 ATR_IDD = menuBackground:recursiveGetChildById('ATR_' .._ATR_DEL)
10589 if ATR_IDD then
10590 ATR_IDD:destroy()
10591 else
10592 break
10593 end
10594 end
10595 for X = 01, #ATR_SHOP[hard] do
10596 local BUY_INDEX = X
10597 local ATR_ITEMID = ATR_SHOP[hard][X][01]
10598
10599 ATR_OFFERT = g_ui.createWidget('UIButton', COLISEU_SCROLL)
10600 ATR_OFFERT:setId('ATR_' ..X)
10601 ATR_OFFERT:setImageSource("/images/custom/Shop/OfferPanel")
10602 ATR_OFFERT:setOpacity('0.8')
10603 ATR_OFFERT.onHoverChange = function(widget, hoverState)
10604 if hoverState then
10605 widget:setOpacity('1.0')
10606 g_tooltip.display("@BAG " ..ATR_ITEMID.. " 0 1 0 0 0 0 0 0")
10607 else
10608 widget:setOpacity('0.8')
10609 g_tooltip.hide()
10610 end
10611 end
10612
10613 ATR_ITEM_IMG = g_ui.createWidget('UIButton', ATR_OFFERT)
10614 ATR_ITEM_IMG:setPhantom(true)
10615 ATR_ITEM_IMG:setSize({width = 32, height = 32})
10616 ATR_ITEM_IMG:setImageSource("/images/custom/Items/" ..ATR_ITEMID)
10617 ATR_ITEM_IMG:addAnchor(AnchorLeft, 'parent', AnchorLeft)
10618 ATR_ITEM_IMG:addAnchor(AnchorTop, 'parent', AnchorTop)
10619 ATR_ITEM_IMG:setMarginLeft(40)
10620 ATR_ITEM_IMG:setMarginTop(30)
10621
10622 ATR_ITEM_NAME = g_ui.createWidget('UIButton', ATR_OFFERT)
10623 ATR_ITEM_NAME:setSize({width = 10, height = 30})
10624 ATR_ITEM_NAME:addAnchor(AnchorLeft, 'parent', AnchorLeft)
10625 ATR_ITEM_NAME:addAnchor(AnchorRight, 'parent', AnchorRight)
10626 ATR_ITEM_NAME:addAnchor(AnchorTop, 'parent', AnchorTop)
10627 ATR_ITEM_NAME:setFont('lucida-11px-rounded')
10628 ATR_ITEM_NAME:setMarginLeft(05)
10629 ATR_ITEM_NAME:setMarginRight(05)
10630 ATR_ITEM_NAME:setMarginTop(75)
10631 ATR_ITEM_NAME:setPhantom(true)
10632 ATR_ITEM_NAME:setTextWrap(true)
10633 ATR_ITEM_NAME:setText(tr(modules.game_database.getItemInfo(ATR_ITEMID, 01)))
10634
10635 ATR_PRICE = g_ui.createWidget('UIButton', ATR_OFFERT)
10636 ATR_PRICE:setSize({width = 10, height = 20})
10637 ATR_PRICE:addAnchor(AnchorLeft, 'parent', AnchorLeft)
10638 ATR_PRICE:addAnchor(AnchorRight, 'parent', AnchorRight)
10639 ATR_PRICE:addAnchor(AnchorBottom, 'parent', AnchorBottom)
10640 ATR_PRICE:setImageSource("/images/custom/Shop/buyBt_1")
10641 ATR_PRICE:setFont('lucida-11px-rounded')
10642 ATR_PRICE:setMarginLeft(05)
10643 ATR_PRICE:setMarginRight(05)
10644 ATR_PRICE:setMarginBottom(05)
10645 ATR_PRICE:setTextWrap(true)
10646 ATR_PRICE:setPhantom(true)
10647 ATR_PRICE:setText(ATR_SHOP[hard][X][02])
10648
10649 ATR_OFFERT.onClick = function()
10650 local yesChoose = function()
10651 g_game.talk(g_game.talk("!inventario 44 02 " ..ATR_ITEMID.. " " ..ATR_SHOP[hard][X][02]))
10652 atrBuy:destroy()
10653 atrBuy = nil
10654 end
10655 local noChoose = function() atrBuy:destroy() atrBuy = nil end
10656 if atrBuy ~= nil then
10657 atrBuy:destroy()
10658 atrBuy = nil
10659 end
10660 atrBuy = displayGeneralBox(tr('Comprar'), tr("Deseja comprar o atributo para equipamento").. " [ " ..tr(modules.game_database.getItemInfo(ATR_ITEMID, 01)).. " ]?",
10661 { { text=tr('Comprar'), callback=yesChoose },
10662 { text=tr('Cancelar'), callback=noChoose },
10663 anchor=AnchorHorizontalCenter }, yesChoose, noChoose)
10664 end
10665 end
10666end
10667
10668-- EVENTS
10669function onLoadEvents(id)
10670 EVENT_PANEL = menuBackground:recursiveGetChildById('showEvents_' ..id)
10671 if ViewMenuID == 06 then
10672 if id > 00 then
10673 EVENT_TITLE = menuBackground:recursiveGetChildById('eventTitle_' ..id)
10674 EVENT_SUB_TITLE = menuBackground:recursiveGetChildById('eventSubTitle_' ..id)
10675 EVENT_INFO = menuBackground:recursiveGetChildById('eventInfo_' ..id)
10676
10677 EVENT_TITLE:setText(EVENTOS_TABLE[id].EVENT_NAME)
10678 EVENT_SUB_TITLE:setText(EVENTOS_TABLE[id].DATA_DESC)
10679 EVENT_INFO:setText(EVENTOS_TABLE[id].EVENT_INF)
10680
10681 if id == 01 then
10682 MONSTER_1 = menuBackground:recursiveGetChildById('Monster_1')
10683 MONSTER_2 = menuBackground:recursiveGetChildById('Monster_2')
10684 MONSTER_3 = menuBackground:recursiveGetChildById('Monster_3')
10685 BUFF_ACTIVE_BT = menuBackground:recursiveGetChildById('buyBuff')
10686
10687 MONSTER_1:setImageSource("/images/custom/Monster/" ..EVENTOS_TABLE[00].EVENT_UID_3)
10688 MONSTER_1:setImageRect(modules.game_database.onKard(04, EVENTOS_TABLE[00].EVENT_UID_1, EVENTOS_TABLE[00].EVENT_UID_2))
10689 MONSTER_1:setTooltip(modules.game_database.onKard(01, EVENTOS_TABLE[00].EVENT_UID_1, EVENTOS_TABLE[00].EVENT_UID_2))
10690 MONSTER_2:setImageSource("/images/custom/Monster/" ..EVENTOS_TABLE[00].EVENT_UID_6)
10691 MONSTER_2:setImageRect(modules.game_database.onKard(04, EVENTOS_TABLE[00].EVENT_UID_4, EVENTOS_TABLE[00].EVENT_UID_5))
10692 MONSTER_2:setTooltip(modules.game_database.onKard(01, EVENTOS_TABLE[00].EVENT_UID_4, EVENTOS_TABLE[00].EVENT_UID_5))
10693 MONSTER_3:setImageSource("/images/custom/Monster/" ..EVENTOS_TABLE[00].EVENT_UID_9)
10694 MONSTER_3:setImageRect(modules.game_database.onKard(04, EVENTOS_TABLE[00].EVENT_UID_7, EVENTOS_TABLE[00].EVENT_UID_8))
10695 MONSTER_3:setTooltip(modules.game_database.onKard(01, EVENTOS_TABLE[00].EVENT_UID_7, EVENTOS_TABLE[00].EVENT_UID_8))
10696
10697 SALDO_GOLD_TOKEN:setText(tr('Saldo Gold Token').. ': ' ..EVENTOS_TABLE[01].GOLD_TOKEN)
10698 BUFF_ACTIVE_BT.onClick = function()
10699 if EVENTOS_TABLE[01].GOLD_TOKEN >= 50 then
10700 g_game.talk(g_game.talk("!inventario 41 01"))
10701 else
10702 modules.game_textmessage.displayGameMessage(tr('E necessario 50 Gold Tokens para ativar este Buff.'))
10703 end
10704 end
10705 end
10706 if id == 02 then
10707 local QNT = EVENTOS_TABLE[00].EVENT_UID_1
10708 local META = 5000
10709 META_BAR = menuBackground:recursiveGetChildById('metaModoOnline')
10710 META_PANEL = menuBackground:recursiveGetChildById('bonusPanel')
10711 META_DESC = menuBackground:recursiveGetChildById('bonusDesc')
10712 PROGRESS_LABEL = menuBackground:recursiveGetChildById('labelModoOnline')
10713
10714 META_BAR:setValue(QNT, 0, META)
10715 PROGRESS_LABEL:setText(QNT.. ' / ' ..META)
10716 if QNT == META then
10717 META_PANEL:setImageSource("/images/custom/Task/Monster_4")
10718 META_DESC:setText(tr('BONUS ATIVO:\n\n1x Online Points adicional para cada uma hora online.'))
10719 else
10720 META_PANEL:setImageSource("/images/custom/Task/Monster_1")
10721 META_DESC:setText(tr('BONUS AINDA NAO ATIVO:\n\n1x Online Points adicional para cada uma hora online.'))
10722 end
10723 end
10724 if id == 03 then
10725 local DESCONTO = EVENTOS_TABLE[00].EVENT_UID_1
10726 if DESCONTO < 00 then
10727 DESCONTO = 00
10728 end
10729 local FIXO_PRICE = 50000
10730 local TOTAL_DESCONTO = FIXO_PRICE - DESCONTO
10731
10732 PRICE_CRYPT = menuBackground:recursiveGetChildById('finalCryptPrice')
10733 BUY_CRYPT = menuBackground:recursiveGetChildById('buyTask_1')
10734
10735 PRICE_CRYPT:setText(mask_number(TOTAL_DESCONTO))
10736 BUY_CRYPT:setTooltip(tr('Compre Criptomoedas usando suas Gold Coins.'))
10737 BUY_CRYPT.onClick = function() g_game.talk(g_game.talk("!inventario 41 02")) end
10738 end
10739 if id == 04 then
10740 BUFF_FIRE_EVENT = menuBackground:recursiveGetChildById('buyFire')
10741 BUFF_ENERGY_EVENT = menuBackground:recursiveGetChildById('buyEnergy')
10742 BUFF_EARTH_EVENT = menuBackground:recursiveGetChildById('buyEarth')
10743 BUFF_ICE_EVENT = menuBackground:recursiveGetChildById('buyIce')
10744
10745 BUFF_FIRE_EVENT.onClick = function() g_game.talk(g_game.talk("!inventario 41 04 01")) end
10746 BUFF_ENERGY_EVENT.onClick = function() g_game.talk(g_game.talk("!inventario 41 04 03")) end
10747 BUFF_EARTH_EVENT.onClick = function() g_game.talk(g_game.talk("!inventario 41 04 04")) end
10748 BUFF_ICE_EVENT.onClick = function() g_game.talk(g_game.talk("!inventario 41 04 02")) end
10749 end
10750 if id == 05 then
10751 ITEM_1 = menuBackground:recursiveGetChildById('eventItem_1_1')
10752 ITEM_2 = menuBackground:recursiveGetChildById('eventItem_1_2')
10753 ITEM_3 = menuBackground:recursiveGetChildById('eventItem_1_3')
10754 ITEM_4 = menuBackground:recursiveGetChildById('eventItem_2_1')
10755 ITEM_5 = menuBackground:recursiveGetChildById('eventItem_2_2')
10756 ITEM_6 = menuBackground:recursiveGetChildById('eventItem_2_3')
10757 ITEM_7 = menuBackground:recursiveGetChildById('eventItem_3_1')
10758 ITEM_8 = menuBackground:recursiveGetChildById('eventItem_3_2')
10759 ITEM_9 = menuBackground:recursiveGetChildById('eventItem_3_3')
10760 QNT_ITEM_1 = menuBackground:recursiveGetChildById('qntItem_1_1')
10761 QNT_ITEM_2 = menuBackground:recursiveGetChildById('qntItem_1_2')
10762 QNT_ITEM_3 = menuBackground:recursiveGetChildById('qntItem_1_3')
10763 QNT_ITEM_4 = menuBackground:recursiveGetChildById('qntItem_2_1')
10764 QNT_ITEM_5 = menuBackground:recursiveGetChildById('qntItem_2_2')
10765 QNT_ITEM_6 = menuBackground:recursiveGetChildById('qntItem_2_3')
10766 QNT_ITEM_7 = menuBackground:recursiveGetChildById('qntItem_3_1')
10767 QNT_ITEM_8 = menuBackground:recursiveGetChildById('qntItem_3_2')
10768 QNT_ITEM_9 = menuBackground:recursiveGetChildById('qntItem_3_3')
10769 ENTREGA_1 = menuBackground:recursiveGetChildById('buyEntrega_1')
10770 ENTREGA_2 = menuBackground:recursiveGetChildById('buyEntrega_2')
10771 ENTREGA_3 = menuBackground:recursiveGetChildById('buyEntrega_3')
10772
10773
10774 ITEM_1:setImageSource("/images/custom/UI/rare_" ..modules.game_database.getItemInfo(EVENTOS_TABLE[00].EVENT_UID_4, 13))
10775 ITEM_1:setIcon("/images/custom/Items/" ..EVENTOS_TABLE[00].EVENT_UID_4)
10776 ITEM_1:setTooltip("@BAG " ..EVENTOS_TABLE[00].EVENT_UID_4.. " " ..modules.game_database.getItemInfo(EVENTOS_TABLE[00].EVENT_UID_4, 13).. " 0 " ..EVENTOS_TABLE[00].EVENT_UID_1.. " 0 0 0 0 0 0")
10777 ITEM_2:setImageSource("/images/custom/UI/rare_" ..modules.game_database.getItemInfo(EVENTOS_TABLE[00].EVENT_UID_5, 13))
10778 ITEM_2:setIcon("/images/custom/Items/" ..EVENTOS_TABLE[00].EVENT_UID_5)
10779 ITEM_2:setTooltip("@BAG " ..EVENTOS_TABLE[00].EVENT_UID_5.. " " ..modules.game_database.getItemInfo(EVENTOS_TABLE[00].EVENT_UID_5, 13).. " 0 " ..EVENTOS_TABLE[00].EVENT_UID_1.. " 0 0 0 0 0 0")
10780 ITEM_3:setImageSource("/images/custom/UI/rare_" ..modules.game_database.getItemInfo(EVENTOS_TABLE[00].EVENT_UID_6, 13))
10781 ITEM_3:setIcon("/images/custom/Items/" ..EVENTOS_TABLE[00].EVENT_UID_6)
10782 ITEM_3:setTooltip("@BAG " ..EVENTOS_TABLE[00].EVENT_UID_6.. " " ..modules.game_database.getItemInfo(EVENTOS_TABLE[00].EVENT_UID_6, 13).. " 0 " ..EVENTOS_TABLE[00].EVENT_UID_1.. " 0 0 0 0 0 0")
10783 QNT_ITEM_1:setText(EVENTOS_TABLE[00].EVENT_UID_1)
10784 QNT_ITEM_2:setText(EVENTOS_TABLE[00].EVENT_UID_1)
10785 QNT_ITEM_3:setText(EVENTOS_TABLE[00].EVENT_UID_1)
10786
10787 ITEM_4:setImageSource("/images/custom/UI/rare_" ..modules.game_database.getItemInfo(EVENTOS_TABLE[00].EVENT_UID_7, 13))
10788 ITEM_4:setIcon("/images/custom/Items/" ..EVENTOS_TABLE[00].EVENT_UID_7)
10789 ITEM_4:setTooltip("@BAG " ..EVENTOS_TABLE[00].EVENT_UID_7.. " " ..modules.game_database.getItemInfo(EVENTOS_TABLE[00].EVENT_UID_7, 13).. " 0 " ..EVENTOS_TABLE[00].EVENT_UID_2.. " 0 0 0 0 0 0")
10790 ITEM_5:setImageSource("/images/custom/UI/rare_" ..modules.game_database.getItemInfo(EVENTOS_TABLE[00].EVENT_UID_8, 13))
10791 ITEM_5:setIcon("/images/custom/Items/" ..EVENTOS_TABLE[00].EVENT_UID_8)
10792 ITEM_5:setTooltip("@BAG " ..EVENTOS_TABLE[00].EVENT_UID_8.. " " ..modules.game_database.getItemInfo(EVENTOS_TABLE[00].EVENT_UID_8, 13).. " 0 " ..EVENTOS_TABLE[00].EVENT_UID_2.. " 0 0 0 0 0 0")
10793 ITEM_6:setImageSource("/images/custom/UI/rare_" ..modules.game_database.getItemInfo(EVENTOS_TABLE[00].EVENT_UID_9, 13))
10794 ITEM_6:setIcon("/images/custom/Items/" ..EVENTOS_TABLE[00].EVENT_UID_9)
10795 ITEM_6:setTooltip("@BAG " ..EVENTOS_TABLE[00].EVENT_UID_9.. " " ..modules.game_database.getItemInfo(EVENTOS_TABLE[00].EVENT_UID_9, 13).. " 0 " ..EVENTOS_TABLE[00].EVENT_UID_2.. " 0 0 0 0 0 0")
10796 QNT_ITEM_4:setText(EVENTOS_TABLE[00].EVENT_UID_2)
10797 QNT_ITEM_5:setText(EVENTOS_TABLE[00].EVENT_UID_2)
10798 QNT_ITEM_6:setText(EVENTOS_TABLE[00].EVENT_UID_2)
10799
10800 ITEM_7:setImageSource("/images/custom/UI/rare_" ..modules.game_database.getItemInfo(EVENTOS_TABLE[00].EVENT_UID_10, 13))
10801 ITEM_7:setIcon("/images/custom/Items/" ..EVENTOS_TABLE[00].EVENT_UID_10)
10802 ITEM_7:setTooltip("@BAG " ..EVENTOS_TABLE[00].EVENT_UID_10.. " " ..modules.game_database.getItemInfo(EVENTOS_TABLE[00].EVENT_UID_10, 13).. " 0 " ..EVENTOS_TABLE[00].EVENT_UID_3.. " 0 0 0 0 0 0")
10803 ITEM_8:setImageSource("/images/custom/UI/rare_" ..modules.game_database.getItemInfo(EVENTOS_TABLE[00].EVENT_UID_11, 13))
10804 ITEM_8:setIcon("/images/custom/Items/" ..EVENTOS_TABLE[00].EVENT_UID_11)
10805 ITEM_8:setTooltip("@BAG " ..EVENTOS_TABLE[00].EVENT_UID_11.. " " ..modules.game_database.getItemInfo(EVENTOS_TABLE[00].EVENT_UID_11, 13).. " 0 " ..EVENTOS_TABLE[00].EVENT_UID_3.. " 0 0 0 0 0 0")
10806 ITEM_9:setImageSource("/images/custom/UI/rare_" ..modules.game_database.getItemInfo(EVENTOS_TABLE[00].EVENT_UID_12, 13))
10807 ITEM_9:setIcon("/images/custom/Items/" ..EVENTOS_TABLE[00].EVENT_UID_12)
10808 ITEM_9:setTooltip("@BAG " ..EVENTOS_TABLE[00].EVENT_UID_12.. " " ..modules.game_database.getItemInfo(EVENTOS_TABLE[00].EVENT_UID_12, 13).. " 0 " ..EVENTOS_TABLE[00].EVENT_UID_3.. " 0 0 0 0 0 0")
10809 QNT_ITEM_7:setText(EVENTOS_TABLE[00].EVENT_UID_3)
10810 QNT_ITEM_8:setText(EVENTOS_TABLE[00].EVENT_UID_3)
10811 QNT_ITEM_9:setText(EVENTOS_TABLE[00].EVENT_UID_3)
10812
10813 ENTREGA_1.onClick = function() g_game.talk(g_game.talk("!inventario 41 05 01")) end
10814 ENTREGA_2.onClick = function() g_game.talk(g_game.talk("!inventario 41 05 02")) end
10815 ENTREGA_3.onClick = function() g_game.talk(g_game.talk("!inventario 41 05 03")) end
10816 end
10817 if id == 06 then
10818 SALDO_LEVEL_TOKEN:setText(tr('Saldo de Pontos').. ': ' ..EVENTOS_TABLE[06].POINTS)
10819 PRESENT_BUTTON = menuBackground:recursiveGetChildById('buyPresent')
10820 PRESENT_BUTTON.onClick = function() g_game.talk(g_game.talk("!inventario 41 06")) end
10821 end
10822 if id == 07 then
10823 SALDO_BONUS_EXP:setText(tr('Bonus de EXP ativo').. ': ' ..EVENTOS_TABLE[07].EXP_BONUS.. "%")
10824 for DEL_NPC = 01, #EVENTOS_TABLE[id].NPC do
10825 NPC_ID = menuBackground:recursiveGetChildById('_NPC_ID_' ..DEL_NPC)
10826 if NPC_ID then
10827 NPC_ID:destroy()
10828 end
10829 end
10830 for _DUEL = 01, #EVENTOS_TABLE[id].NPC do
10831 local RASTREAR_ID = id
10832 NPC = g_ui.createWidget('UIButton', EVENT_SCROLL)
10833 NPC:setId("_NPC_ID_" .._DUEL)
10834 NPC:setImageSource("/images/custom/Task/Monster_1")
10835 NPC:setMarginTop(05)
10836
10837 NPC_DESC = g_ui.createWidget('UIButton', NPC)
10838 NPC_DESC:setSize({width = 20, height = 35})
10839 NPC_DESC:addAnchor(AnchorLeft, 'parent', AnchorLeft)
10840 NPC_DESC:addAnchor(AnchorRight, 'parent', AnchorRight)
10841 NPC_DESC:addAnchor(AnchorTop, 'parent', AnchorTop)
10842 NPC_DESC:setMarginTop(05)
10843 NPC_DESC:setMarginLeft(70)
10844 NPC_DESC:setMarginRight(10)
10845 NPC_DESC:setTextAlign(AlignLeft)
10846 NPC_DESC:setText(EVENTOS_TABLE[id].NPC[_DUEL].NAME.. "\n".. tr('Bonus de EXP').. ": " ..EVENTOS_TABLE[id].NPC[_DUEL].EXP.. "%")
10847
10848 NPC_IMG = g_ui.createWidget('UIButton', NPC)
10849 NPC_IMG:setSize({width = EVENTOS_TABLE[id].NPC[_DUEL].SIZE[01], height = EVENTOS_TABLE[id].NPC[_DUEL].SIZE[02]})
10850 NPC_IMG:setImageSource("/images/custom/Monster/Humanos/" ..EVENTOS_TABLE[id].NPC[_DUEL].NAME)
10851 NPC_IMG:addAnchor(AnchorLeft, 'parent', AnchorLeft)
10852 NPC_IMG:addAnchor(AnchorTop, 'parent', AnchorTop)
10853 NPC_IMG:setMarginLeft(EVENTOS_TABLE[id].NPC[_DUEL].SIZE[04])
10854 NPC_IMG:setMarginTop(EVENTOS_TABLE[id].NPC[_DUEL].SIZE[03])
10855
10856 NPC_RAST = g_ui.createWidget('UIButton', NPC)
10857 NPC_RAST:setSize({width = 20, height = 20})
10858 NPC_RAST:setImageSource("/images/custom/UI/button")
10859 NPC_RAST:addAnchor(AnchorLeft, 'parent', AnchorLeft)
10860 NPC_RAST:addAnchor(AnchorRight, 'parent', AnchorRight)
10861 NPC_RAST:addAnchor(AnchorBottom, 'parent', AnchorBottom)
10862 NPC_RAST:setMarginLeft(70)
10863 NPC_RAST:setMarginRight(10)
10864 NPC_RAST:setMarginBottom(05)
10865 NPC_RAST:setOpacity(0.8)
10866 NPC_RAST:setText(tr("RASTREAR NPC"))
10867 NPC_RAST.onClick = function()
10868 local DESC = tr("NPC de Duelo").. "\n[ " ..EVENTOS_TABLE[id].NPC[_DUEL].NAME.. " ]"
10869 local POS = EVENTOS_TABLE[id].NPC[_DUEL].RASTREAR[01]
10870 modules.game_minimap.onRastrearQuest(POS, DESC)
10871 modules.game_textmessage.displayGameMessage(tr('A localizacao de').. ' ' ..EVENTOS_TABLE[id].NPC[_DUEL].NAME.. ' '.. tr('foi agora\nmarcado em seu mapa.'))
10872 end
10873 NPC_RAST.onHoverChange = function(widget, hoverState)
10874 if hoverState then
10875 widget:setOpacity(1.0)
10876 else
10877 widget:setOpacity(0.6)
10878 end
10879 end
10880 end
10881 end
10882 if id == 10 then
10883 BUY_CHEST = menuBackground:recursiveGetChildById('buyChest')
10884 KEYS_LABEL = menuBackground:recursiveGetChildById('saldoKeys')
10885
10886 KEYS_LABEL:setText(tr('Chaves do Evento').. ': ' ..EVENTOS_TABLE[10].KEYS_EVENT)
10887 BUY_CHEST.onClick = function() g_game.talk(g_game.talk("!inventario 41 10")) end
10888 end
10889 if id == 11 then
10890 PILLAR_BONUS = menuBackground:recursiveGetChildById('pillarBonus')
10891 PILLAR_TXT = menuBackground:recursiveGetChildById('pillartxt')
10892
10893 if EVENTOS_TABLE[11].PILLAR_STEP == 06 then
10894 PILLAR_BONUS:setImageSource("/images/custom/Task/Monster_2")
10895 PILLAR_TXT:setText(tr("BONUS ATIVO:\n\nO dobro de Gold Coins de todas as criaturas ate o proximo ServerSave."))
10896 else
10897 PILLAR_BONUS:setImageSource("/images/custom/Task/Monster_1")
10898 PILLAR_TXT:setText(tr("BONUS AINDA NAO ATIVO:\n\nO dobro de Gold Coins de todas as criaturas ate o proximo ServerSave."))
10899 end
10900
10901 RASTREAR_PILLAR = menuBackground:recursiveGetChildById('rastrearPillar')
10902 RASTREAR_PILLAR.onClick = function() g_game.talk(g_game.talk("!inventario 41 11")) end
10903 end
10904 if id == 12 then
10905 local QNT = EVENTOS_TABLE[00].EVENT_UID_4
10906 local META = 1000
10907 local MAX = 2000
10908 local CLASSES_IMG = {
10909 [01] = {NAME = 'DRAGON', IMG = '/images/custom/Spells/Passiva/passive_4019'};
10910 [02] = {NAME = 'MAGICA', IMG = '/images/custom/Spells/Passiva/passive_4026'};
10911 [03] = {NAME = 'REPTEIS', IMG = '/images/custom/Spells/Passiva/passive_4036'};
10912 [04] = {NAME = 'AQUATICOS', IMG = '/images/custom/Spells/Passiva/passive_4046'};
10913 [05] = {NAME = 'MORTO-VIVO', IMG = '/images/custom/Spells/Passiva/passive_4049'};
10914 [06] = {NAME = 'VERMES', IMG = '/images/custom/Spells/Passiva/passive_4020'};
10915 [07] = {NAME = 'MAM�FEROS', IMG = '/images/custom/Spells/Passiva/passive_4015'};
10916 [08] = {NAME = 'DEMON', IMG = '/images/custom/Spells/Passiva/passive_4030'};
10917 [09] = {NAME = 'GIGANTES', IMG = '/images/custom/Spells/Passiva/passive_4033'};
10918 [10] = {NAME = 'CONSTRUCTOS', IMG = '/images/custom/Spells/Passiva/passive_4001'};
10919 [11] = {NAME = 'HUMANOIDES', IMG = '/images/custom/Spells/Passiva/passive_4005'};
10920 [12] = {NAME = 'DIMENSIONAIS', IMG = '/images/custom/Spells/Passiva/passive_4012'};
10921 }
10922 local BONUS_BUFF = {
10923 [01] = {TOOL = 'Municao infinita ate o proximo ServerSave.', IMG = '/images/custom/Items/10454'};
10924 [02] = {TOOL = 'Potions infinita ate o proximo ServerSave.', IMG = '/images/custom/UI/Supreme_Health_Potion'};
10925 }
10926 META_BAR = menuBackground:recursiveGetChildById('metaEscolhidos')
10927 META_PANEL = menuBackground:recursiveGetChildById('bonusEscolhidos')
10928 META_DESC = menuBackground:recursiveGetChildById('bonusEscolhidosDesc')
10929 PROGRESS_LABEL = menuBackground:recursiveGetChildById('labelEscolhidos')
10930 CLASS_IMG_1 = menuBackground:recursiveGetChildById('classe_1')
10931 CLASS_IMG_2 = menuBackground:recursiveGetChildById('classe_2')
10932 CLASS_IMG_3 = menuBackground:recursiveGetChildById('classe_3')
10933 ICON_IMG = menuBackground:recursiveGetChildById('iconImg12')
10934
10935 META_BAR:setValue(QNT, 0, MAX)
10936 PROGRESS_LABEL:setText(QNT.. ' / ' ..MAX)
10937 if QNT >= META then
10938 META_BAR:setBackgroundColor("#2b8a44")
10939 PROGRESS_LABEL:setColor("#2b8a44")
10940 META_PANEL:setImageSource("/images/custom/Task/Monster_4")
10941 ICON_IMG:setImageSource(BONUS_BUFF[EVENTOS_TABLE[00].EVENT_UID_5].IMG)
10942 META_DESC:setText(tr('BONUS ATIVO').. ':\n\n' ..tr(BONUS_BUFF[EVENTOS_TABLE[00].EVENT_UID_5].TOOL))
10943 else
10944 META_BAR:setBackgroundColor("white")
10945 PROGRESS_LABEL:setColor("white")
10946 META_PANEL:setImageSource("/images/custom/Task/Monster_1")
10947 ICON_IMG:setImageSource(BONUS_BUFF[EVENTOS_TABLE[00].EVENT_UID_5].IMG)
10948 META_DESC:setText('BONUS AINDA NAO ATIVO:\n\n' ..tr(BONUS_BUFF[EVENTOS_TABLE[00].EVENT_UID_5].TOOL))
10949 end
10950
10951 CLASS_IMG_1:setIcon(CLASSES_IMG[EVENTOS_TABLE[00].EVENT_UID_1].IMG)
10952 CLASS_IMG_2:setIcon(CLASSES_IMG[EVENTOS_TABLE[00].EVENT_UID_2].IMG)
10953 CLASS_IMG_3:setIcon(CLASSES_IMG[EVENTOS_TABLE[00].EVENT_UID_3].IMG)
10954 CLASS_IMG_1:setTooltip(CLASSES_IMG[EVENTOS_TABLE[00].EVENT_UID_1].NAME)
10955 CLASS_IMG_2:setTooltip(CLASSES_IMG[EVENTOS_TABLE[00].EVENT_UID_2].NAME)
10956 CLASS_IMG_3:setTooltip(CLASSES_IMG[EVENTOS_TABLE[00].EVENT_UID_3].NAME)
10957 end
10958 else
10959 NO_EVENT_DESC = menuBackground:recursiveGetChildById('noEventDesc')
10960 --print("DIA HOJE: " ..EVENTOS_TABLE[00].EVENT_UID_2.. " | FINAL EVENT: " ..EVENTOS_TABLE[EVENTOS_TABLE[00].EVENT_UID_1].DATA_INICIO)
10961 if EVENTOS_TABLE[00].EVENT_UID_2 > EVENTOS_TABLE[EVENTOS_TABLE[00].EVENT_UID_1].DATA_INICIO then
10962 if EVENTOS_TABLE[00].EVENT_UID_1 == 12 then
10963 NO_EVENT_DESC:setText(tr('Nao ha nenhum evento ativo no momento.\n\nO proximo evento automatico sera').. ':\n\n\n[ ' ..tr(EVENTOS_TABLE[01].EVENT_NAME).. ' ]\n' ..tr(EVENTOS_TABLE[01].DATA_DESC).. ' '.. tr('de').. ' ' ..tr(EVENTOS_TABLE[01].MES_NAME))
10964 else
10965 NO_EVENT_DESC:setText(tr('Nao ha nenhum evento ativo no momento.\n\nO proximo evento automatico sera').. ':\n\n\n[ ' ..tr(EVENTOS_TABLE[EVENTOS_TABLE[00].EVENT_UID_1 + 01].EVENT_NAME).. ' ]\n' ..tr(EVENTOS_TABLE[EVENTOS_TABLE[00].EVENT_UID_1 + 01].DATA_DESC).. ' '.. tr('de').. ' ' ..tr(EVENTOS_TABLE[EVENTOS_TABLE[00].EVENT_UID_1 + 01].MES_NAME))
10966 end
10967 else
10968 NO_EVENT_DESC:setText(tr('Nao ha nenhum evento ativo no momento.\n\nO proximo evento automatico sera').. ':\n\n\n[ ' ..tr(EVENTOS_TABLE[EVENTOS_TABLE[00].EVENT_UID_1].EVENT_NAME).. ' ]\n' ..tr(EVENTOS_TABLE[EVENTOS_TABLE[00].EVENT_UID_1].DATA_DESC).. ' '.. tr('de').. ' ' ..tr(EVENTOS_TABLE[00].MES_NAME))
10969 end
10970 end
10971 scheduleEvent(function()
10972 LOAD_REQUEST:hide()
10973 EVENT_PANEL:show()
10974 end, 500)
10975 end
10976end
10977function setRankSortType(value)
10978 if value == "00" then
10979 g_game.talk(g_game.talk("!rank 00"))
10980 else
10981 g_game.talk(g_game.talk("!rank 01 " ..value))
10982 end
10983end
10984function onChangeRankSortType(comboBox, option, value)
10985 setRankSortType(value:lower())
10986end
10987function StartTask()
10988 -- RANK IMAGEM | NAME | PROGRESS
10989 MOBILE_BLACKLIST_NEXT = modules.game_interface.onMobileWindow(53)
10990 MOBILE_BLACKLIST_BACK = modules.game_interface.onMobileWindow(54)
10991 MOBILE_BLACKLIST_WHITE = modules.game_interface.onMobileWindow(58)
10992 MOBILE_BLACKLIST_YELLOW = modules.game_interface.onMobileWindow(59)
10993 MOBILE_BLACKLIST_BLUE = modules.game_interface.onMobileWindow(60)
10994
10995 local RANK_ID = modules.game_database.getTask(00)
10996 RankPage = RANK_ID
10997 if RANK_ID > 1 then
10998 TASK_RANK_NEXT:disable()
10999 TASK_RANK_LAST:enable()
11000 MOBILE_BLACKLIST_NEXT:disable()
11001 MOBILE_BLACKLIST_BACK:enable()
11002 else
11003 TASK_RANK_NEXT:disable()
11004 TASK_RANK_LAST:disable()
11005 MOBILE_BLACKLIST_NEXT:disable()
11006 MOBILE_BLACKLIST_BACK:disable()
11007 end
11008
11009 -- TASK ATIVA
11010 if modules.game_database.getTask(05) > 0 then
11011 local MON_TASK_NAME = ""
11012 local MON_COIN = 0
11013 local MON_TOTAL = 0
11014 for N = 01, modules.game_database.getTask(22) do
11015 for X = 01, modules.game_database.getTask(21, N) do
11016 if modules.game_database.getTask(05) == modules.game_database.getTask(16, N, X) then
11017 MON_TASK_NAME = modules.game_database.getTask(17, N, X)
11018 MON_COIN = modules.game_database.getTask(23, N, X)
11019 MON_TOTAL = modules.game_database.getTask(20, N, X)
11020 break
11021 end
11022 end
11023 end
11024
11025 local BackgroundTask = modules.game_database.getMonsterLoot(04, MON_TASK_NAME, 00, 03)
11026 TASK_ATIVA:setImageSource("/images/custom/Task/task_ativa_" ..BackgroundTask)
11027 TASK_ATIVA_NAME:setText(MON_TASK_NAME)
11028 TASK_ATIVA_QNT:setText(modules.game_database.getTask(06).. "/" ..MON_TOTAL)
11029 TASK_ATIVA_PROGRESS:setValue(modules.game_database.getTask(06), 0, MON_TOTAL)
11030 else
11031 TASK_ATIVA:setImageSource("/images/custom/Task/task_ativa_0")
11032 TASK_ATIVA_NAME:setText("--")
11033 TASK_ATIVA_QNT:setText("0/0")
11034 TASK_ATIVA_PROGRESS:setValue(00, 0, 00)
11035 end
11036
11037 -- TASK COINS
11038 TASK_COINS_1:setText(modules.game_database.getTask(02))
11039 TASK_COINS_2:setText(modules.game_database.getTask(03))
11040 TASK_COINS_3:setText(modules.game_database.getTask(04))
11041
11042 MOBILE_BLACKLIST_WHITE:setText(modules.game_database.getTask(02))
11043 MOBILE_BLACKLIST_YELLOW:setText(modules.game_database.getTask(03))
11044 MOBILE_BLACKLIST_BLUE:setText(modules.game_database.getTask(04))
11045
11046 TASK_RANK_NEXT.onClick = function()
11047 if RankPage == RANK_ID then
11048 TASK_RANK_NEXT:disable()
11049 else
11050 TASK_RANK_NEXT:enable()
11051 end
11052 RankPage = RankPage + 1
11053 if RankPage == RANK_ID then
11054 TASK_RANK_NEXT:disable()
11055 end
11056 TASK_RANK_LAST:enable()
11057 onLoadBosses(RankPage)
11058 end
11059 TASK_RANK_LAST.onClick = function()
11060 if RankPage == 01 or RankPage == 0 then
11061 TASK_RANK_LAST:disable()
11062 else
11063 TASK_RANK_LAST:enable()
11064 end
11065 RankPage = RankPage - 1
11066 if RankPage == 01 or RankPage == 0 then
11067 TASK_RANK_LAST:disable()
11068 end
11069 TASK_RANK_NEXT:enable()
11070 onLoadBosses(RankPage)
11071 end
11072
11073 MOBILE_BLACKLIST_NEXT.onClick = function()
11074 if RankPage == RANK_ID then
11075 MOBILE_BLACKLIST_NEXT:disable()
11076 else
11077 MOBILE_BLACKLIST_NEXT:enable()
11078 end
11079 RankPage = RankPage + 1
11080 if RankPage == RANK_ID then
11081 MOBILE_BLACKLIST_NEXT:disable()
11082 end
11083 MOBILE_BLACKLIST_BACK:enable()
11084 onLoadBosses(RankPage)
11085 end
11086 MOBILE_BLACKLIST_BACK.onClick = function()
11087 if RankPage == 01 or RankPage == 0 then
11088 MOBILE_BLACKLIST_BACK:disable()
11089 else
11090 MOBILE_BLACKLIST_BACK:enable()
11091 end
11092 RankPage = RankPage - 1
11093 if RankPage == 01 or RankPage == 0 then
11094 MOBILE_BLACKLIST_BACK:disable()
11095 end
11096 MOBILE_BLACKLIST_NEXT:enable()
11097 onLoadBosses(RankPage)
11098 end
11099
11100 onLoadBosses(RANK_ID)
11101end
11102function onLoadBosses(rankid)
11103 MOBILE_BLACKLIST_RANK = modules.game_interface.onMobileWindow(57)
11104 MOBILE_BLACKLIST_PROGRESS = modules.game_interface.onMobileWindow(52)
11105 local ORIGINAL_RANK = modules.game_database.getTask(00)
11106 local RANK_ID = rankid
11107 if RankPage < ORIGINAL_RANK then
11108 local Max = modules.game_database.getTask(09, RankPage)
11109 TASK_RANK_NAME:setText(tr(modules.game_database.getTask(08, RankPage)))
11110 TASK_RANK_PROGRESS:setValue(Max, 0, Max)
11111 TASK_RANK_PROGRESS:setTooltip(Max.. " / " ..Max)
11112
11113 MOBILE_BLACKLIST_RANK:setText(tr(modules.game_database.getTask(08, RankPage)))
11114 MOBILE_BLACKLIST_PROGRESS:setValue(Max, 0, Max)
11115 MOBILE_BLACKLIST_PROGRESS:setTooltip(Max.. " / " ..Max)
11116 else
11117 local Min = modules.game_database.getTask(01)
11118 local Max = modules.game_database.getTask(09, RANK_ID)
11119 TASK_RANK_NAME:setText(tr(modules.game_database.getTask(08, RANK_ID)))
11120 TASK_RANK_PROGRESS:setValue(Min, 0, Max)
11121 TASK_RANK_PROGRESS:setTooltip(Min.. " / " ..Max)
11122
11123 MOBILE_BLACKLIST_RANK:setText(tr(modules.game_database.getTask(08, RANK_ID)))
11124 MOBILE_BLACKLIST_PROGRESS:setValue(Min, 0, Max)
11125 MOBILE_BLACKLIST_PROGRESS:setTooltip(Min.. " / " ..Max)
11126 end
11127 if RANK_ID > 0 then
11128 TASK_RANK:setImageSource("/images/custom/Task/Emblem_" ..RANK_ID)
11129 else
11130 TASK_RANK:setImageSource("/images/custom/Task/Emblem_1")
11131 end
11132 for Clear = 01, 10 do
11133 if g_app.isMobile() then
11134 local BossMobileTask = modules.game_interface.onMobileWindow(55, Clear)
11135 BossMobileTask:hide()
11136 else
11137 local BossTask = menuBackground:recursiveGetChildById('Task' ..Clear)
11138 BossTask:hide()
11139 end
11140 end
11141 for X = 01, modules.game_database.getTask(15, RANK_ID) do
11142 if g_app.isMobile() then
11143 local BossTask = modules.game_interface.onMobileWindow(55, X)
11144 local BossImg = modules.game_interface.onMobileWindow(56, X)
11145 local BossIndex = X
11146 BossImg:setImageSource("/images/custom/Monster/Boss/" ..modules.game_database.getTask(10, RANK_ID, X))
11147 BossImg:setImageRect(modules.game_database.getTask(12, RANK_ID, X))
11148 if RANK_ID >= 09 then
11149 BossTask:setText("HP: " ..modules.game_database.getTask(13, RANK_ID, X).. "\n" ..tr("Pontos").. ": " ..modules.game_database.getTask(14, RANK_ID, X))
11150 else
11151 BossTask:setText("HP: " ..modules.game_database.getTask(13, RANK_ID, X).. "\n" ..tr("Pontos").. ": " ..modules.game_database.getTask(14, RANK_ID, X).. "\nEXP: " ..modules.game_database.getTask(24, RANK_ID, X))
11152 end
11153 BossTask:setImageSource("/images/custom/Task/Monster_" ..modules.game_database.getTask(07, RANK_ID))
11154 BossTask:show()
11155 BossTask.onClick = function()
11156 local BossName = modules.game_database.getTask(11, RANK_ID, X)
11157 for S = 01, 50 do
11158 SUMNUMBER = summonWindowBox:recursiveGetChildById('Monter' ..S)
11159 SUMNUMBER:hide()
11160 end
11161 for Z = 02, modules.game_database.getMonsterLoot(00, BossName) do
11162 local LootID = modules.game_database.getMonsterLoot(01, BossName, Z)
11163 SUMNUMBER = summonWindowBox:recursiveGetChildById('Monter' ..Z)
11164 IMG = summonWindowBox:recursiveGetChildById('IMGSUM_' ..Z)
11165 DET = summonWindowBox:recursiveGetChildById('TEXT_' ..Z)
11166 STA = summonWindowBox:recursiveGetChildById('STARSUM_' ..Z)
11167 IMG:setImageSource("/images/custom/Items/" ..LootID)
11168 IMG:setImageRect('15 15 32 32')
11169
11170 local ItemName = modules.game_database.getItemInfo(LootID, 01)
11171 local SlotType = modules.game_database.getItemInfo(LootID, 02)
11172 DET:setTextWrap(false)
11173
11174 if SlotType == 04 then
11175 SUMNUMBER:setImageSource("/images/custom/UI/loot_4")
11176 DET:setTooltip("@GUN " ..LootID.. " 4 0 0 0 0 0 0 0 0")
11177 DET:setText(tr("Chance de\nLendario"))
11178 else
11179 local ITEM_RARE = modules.game_database.getItemInfo(LootID, 13)
11180 if ITEM_RARE == 00 then
11181 DET:setText(tr("Comum"))
11182 DET:setTooltip("@BAG " ..LootID.. " 0 0 1 0 0 0 0 0 0")
11183 SUMNUMBER:setImageSource("/images/custom/UI/loot_0")
11184 elseif ITEM_RARE == 01 then
11185 DET:setText(tr("Melhorado"))
11186 DET:setTooltip("@BAG " ..LootID.. " 1 0 1 0 0 0 0 0 0")
11187 SUMNUMBER:setImageSource("/images/custom/UI/loot_1")
11188 elseif ITEM_RARE == 02 then
11189 DET:setText(tr("Raro"))
11190 DET:setTooltip("@BAG " ..LootID.. " 2 0 1 0 0 0 0 0 0")
11191 SUMNUMBER:setImageSource("/images/custom/UI/loot_2")
11192 elseif ITEM_RARE == 03 then
11193 DET:setText(tr("Epico"))
11194 DET:setTooltip("@BAG " ..LootID.. " 3 0 1 0 0 0 0 0 0")
11195 SUMNUMBER:setImageSource("/images/custom/UI/loot_3")
11196 elseif ITEM_RARE == 04 then
11197 DET:setText(tr("Lendario"))
11198 DET:setTooltip("@BAG " ..LootID.. " 4 0 1 0 0 0 0 0 0")
11199 SUMNUMBER:setImageSource("/images/custom/UI/loot_4")
11200 end
11201 end
11202 STA:setImageSource("/images/custom/UI/star_0")
11203 SUMNUMBER:show()
11204 end
11205
11206 GoldPrice = summonWindowBox:recursiveGetChildById('paymentVip')
11207 OnliPrice = summonWindowBox:recursiveGetChildById('paymentOnline')
11208 OnliPrice:setVisible(false)
11209 GoldPrice:setVisible(true)
11210 GoldPrice:setText(modules.game_database.getTask(14, RANK_ID, X))
11211 GoldPrice:setTooltip(tr("Clique aqui para enfrentar o Boss"))
11212 GoldPrice:setImageSource("/images/custom/UI/TPoints_" ..modules.game_database.getMonsterLoot(04, BossName, 00, 03))
11213 GoldPrice:setSize({width = 180, height = 30})
11214 GoldPrice.onClick = function()
11215 g_game.talk(g_game.talk("!blacklist 3 " ..RANK_ID.. " " ..BossIndex))
11216 mobileBlacklistShow()
11217 closer_boxShop()
11218 end
11219
11220
11221 ITEMDETALHES = summonWindowBox:recursiveGetChildById('itemDetalhes')
11222 ITEMDETALHES:setText(tr('Possiveis Loot').. ":")
11223 NameItem = summonWindowBox:recursiveGetChildById('itemName')
11224 NameItem:setText(BossName)
11225 summonWindowBox:setParent(gameRootPanel)
11226 summonWindowBox:addAnchor(AnchorTop, 'gameMapPanel', AnchorTop)
11227 summonWindowBox:addAnchor(AnchorRight, 'gameMapPanel', AnchorRight)
11228 summonWindowBox:setMarginTop(25)
11229 summonWindowBox:setMarginRight(190)
11230 summonWindowBox:show()
11231 end
11232 else
11233 local BossTask = menuBackground:recursiveGetChildById('Task' ..X)
11234 local BossImg = menuBackground:recursiveGetChildById('ImgTask' ..X)
11235 local BossIndex = X
11236 BossImg:setImageSource("/images/custom/Monster/Boss/" ..modules.game_database.getTask(10, RANK_ID, X))
11237 BossImg:setImageRect(modules.game_database.getTask(12, RANK_ID, X))
11238 if RANK_ID >= 09 then
11239 BossTask:setText(modules.game_database.getTask(11, RANK_ID, X).. "\nHP: " ..modules.game_database.getTask(13, RANK_ID, X).. "\n".. tr("Pontos").. ": " ..modules.game_database.getTask(14, RANK_ID, X))
11240 else
11241 BossTask:setText(modules.game_database.getTask(11, RANK_ID, X).. "\nHP: " ..modules.game_database.getTask(13, RANK_ID, X).. "\n".. tr("Pontos").. ": " ..modules.game_database.getTask(14, RANK_ID, X).. " | EXP: " ..modules.game_database.getTask(24, RANK_ID, X))
11242 end
11243 BossTask:setImageSource("/images/custom/Task/Monster_" ..modules.game_database.getTask(07, RANK_ID))
11244 BossTask:show()
11245 BossTask.onClick = function()
11246 local BossName = modules.game_database.getTask(11, RANK_ID, X)
11247 for S = 01, 50 do
11248 SUMNUMBER = summonWindowBox:recursiveGetChildById('Monter' ..S)
11249 SUMNUMBER:hide()
11250 end
11251 for Z = 02, modules.game_database.getMonsterLoot(00, BossName) do
11252 local LootID = modules.game_database.getMonsterLoot(01, BossName, Z)
11253 SUMNUMBER = summonWindowBox:recursiveGetChildById('Monter' ..Z)
11254 IMG = summonWindowBox:recursiveGetChildById('IMGSUM_' ..Z)
11255 DET = summonWindowBox:recursiveGetChildById('TEXT_' ..Z)
11256 STA = summonWindowBox:recursiveGetChildById('STARSUM_' ..Z)
11257 IMG:setImageSource("/images/custom/Items/" ..LootID)
11258 IMG:setImageRect('15 15 32 32')
11259
11260 local ItemName = modules.game_database.getItemInfo(LootID, 01)
11261 local SlotType = modules.game_database.getItemInfo(LootID, 02)
11262 DET:setTextWrap(false)
11263
11264 if SlotType == 04 then
11265 SUMNUMBER:setImageSource("/images/custom/UI/loot_4")
11266 DET:setTooltip("@GUN " ..LootID.. " 4 0 0 0 0 0 0 0 0")
11267 DET:setText(tr("Chance de\nLendario"))
11268 else
11269 local ITEM_RARE = modules.game_database.getItemInfo(LootID, 13)
11270 if ITEM_RARE == 00 then
11271 DET:setText(tr("Comum"))
11272 DET:setTooltip("@BAG " ..LootID.. " 0 0 1 0 0 0 0 0 0")
11273 SUMNUMBER:setImageSource("/images/custom/UI/loot_0")
11274 elseif ITEM_RARE == 01 then
11275 DET:setText(tr("Melhorado"))
11276 DET:setTooltip("@BAG " ..LootID.. " 1 0 1 0 0 0 0 0 0")
11277 SUMNUMBER:setImageSource("/images/custom/UI/loot_1")
11278 elseif ITEM_RARE == 02 then
11279 DET:setText(tr("Raro"))
11280 DET:setTooltip("@BAG " ..LootID.. " 2 0 1 0 0 0 0 0 0")
11281 SUMNUMBER:setImageSource("/images/custom/UI/loot_2")
11282 elseif ITEM_RARE == 03 then
11283 DET:setText(tr("Epico"))
11284 DET:setTooltip("@BAG " ..LootID.. " 3 0 1 0 0 0 0 0 0")
11285 SUMNUMBER:setImageSource("/images/custom/UI/loot_3")
11286 elseif ITEM_RARE == 04 then
11287 DET:setText(tr("Lendario"))
11288 DET:setTooltip("@BAG " ..LootID.. " 4 0 1 0 0 0 0 0 0")
11289 SUMNUMBER:setImageSource("/images/custom/UI/loot_4")
11290 end
11291 end
11292 STA:setImageSource("/images/custom/UI/star_0")
11293 SUMNUMBER:show()
11294 end
11295
11296 GoldPrice = summonWindowBox:recursiveGetChildById('paymentVip')
11297 OnliPrice = summonWindowBox:recursiveGetChildById('paymentOnline')
11298 OnliPrice:setVisible(false)
11299 GoldPrice:setVisible(true)
11300 GoldPrice:setText(modules.game_database.getTask(14, RANK_ID, X))
11301 GoldPrice:setTooltip(tr("Clique aqui para enfrentar o Boss"))
11302 GoldPrice:setImageSource("/images/custom/UI/TPoints_" ..modules.game_database.getMonsterLoot(04, BossName, 00, 03))
11303 GoldPrice:setSize({width = 180, height = 30})
11304 GoldPrice.onClick = function()
11305 g_game.talk(g_game.talk("!blacklist 3 " ..RANK_ID.. " " ..BossIndex))
11306 closer_boxShop()
11307 end
11308
11309 ITEMDETALHES = summonWindowBox:recursiveGetChildById('itemDetalhes')
11310 ITEMDETALHES:setText(tr('Possiveis Loot').. ":")
11311 NameItem = summonWindowBox:recursiveGetChildById('itemName')
11312 NameItem:setText(BossName)
11313 summonWindowBox:setParent(gameRootPanel)
11314 summonWindowBox:addAnchor(AnchorTop, 'gameMapPanel', AnchorTop)
11315 summonWindowBox:addAnchor(AnchorRight, 'gameMapPanel', AnchorRight)
11316 summonWindowBox:setMarginTop(200)
11317 summonWindowBox:setMarginRight(310)
11318 summonWindowBox:show()
11319 end
11320 end
11321 end
11322end
11323
11324function FilterButtonQuest(id)
11325 local QuestCheck = 0
11326
11327 for Q = 01, modules.game_database.getMaxQuest() do
11328 QUEST_ID = menuBackground:recursiveGetChildById('Q_' ..Q)
11329 if QUEST_ID then
11330 QUEST_ID:destroy()
11331 end
11332 end
11333 if id == 01 then -- SOMENTE QUEST EM ABERTO
11334 QuestFilter = 1
11335 for X = 01, modules.game_database.getMaxQuest() do
11336 if modules.game_database.getQuestInfo(X, 10) == false then
11337 if modules.game_database.getQuestInfo(X, 00) > 0 and modules.game_database.getQuestInfo(X, 00) < 100 then
11338 local posQuest = X
11339 Quest = g_ui.createWidget('UIButton', QUEST_PANEL)
11340 Quest:setId('Q_' ..X)
11341 Quest:setMarginTop(05)
11342 Quest:setImageSource("/images/custom/UI/quest_background")
11343 Quest.onHoverChange = function(widget, hoverState)
11344 if hoverState then
11345 widget:setImageSource("/images/custom/UI/quest_background_hove")
11346 else
11347 widget:setImageSource("/images/custom/UI/quest_background")
11348 end
11349 end
11350 Quest.onClick = function()
11351 if Novato == 03 then
11352 modules.game_alert.onShowTutor(04)
11353 Novato = 4
11354 end
11355 QuestSelect = posQuest
11356 onShowQuestDetalhes(posQuest)
11357 end
11358 TextQuest = g_ui.createWidget('UIButton', Quest)
11359 TextQuest:setId('TitleQuest')
11360 TextQuest:setSize({width = 175, height = 15})
11361 TextQuest:addAnchor(AnchorLeft, 'parent', AnchorLeft)
11362 TextQuest:addAnchor(AnchorTop, 'parent', AnchorTop)
11363 TextQuest:setTextAlign(AlignLeft)
11364 TextQuest:setPhantom(true)
11365 TextQuest:setTextWrap(true)
11366 TextQuest:setMarginTop(08)
11367 TextQuest:setMarginLeft(50)
11368 --TextQuest:setImageSource("/images/custom/UI/EXP")
11369 TextQuest:setFont('verdana-11px-antialised')
11370 TextQuest:setText(tr(modules.game_database.getQuestInfo(X, 01)))
11371
11372 InfoQuest = g_ui.createWidget('UIButton', Quest)
11373 InfoQuest:setSize({width = 175, height = 15})
11374 InfoQuest:addAnchor(AnchorLeft, 'parent', AnchorLeft)
11375 InfoQuest:addAnchor(AnchorTop, 'TitleQuest', AnchorBottom)
11376 InfoQuest:setTextAlign(AlignLeft)
11377 InfoQuest:setPhantom(true)
11378 InfoQuest:setTextWrap(true)
11379 InfoQuest:setMarginTop(01)
11380 InfoQuest:setMarginLeft(50)
11381 --InfoQuest:setImageSource("/images/custom/UI/EXP")
11382 InfoQuest:setFont('lucida-11px-rounded')
11383 InfoQuest:setColor(modules.game_database.getQuestInfo(X, 13))
11384 InfoQuest:setText(tr(modules.game_database.getQuestInfo(X, 12)))
11385
11386 QuestCheck = QuestCheck + 1
11387 end
11388 else
11389 if modules.game_database.getQuestInfo(X, 00) > 1 and modules.game_database.getQuestInfo(X, 00) < 100 then
11390 local posQuest = X
11391 Quest = g_ui.createWidget('UIButton', QUEST_PANEL)
11392 Quest:setId('Q_' ..X)
11393 Quest:setFont('verdana-11px-antialised')
11394 Quest:setMarginTop(05)
11395 Quest:setImageSource("/images/custom/UI/quest_background")
11396 Quest.onHoverChange = function(widget, hoverState)
11397 if hoverState then
11398 widget:setImageSource("/images/custom/UI/quest_background_hove")
11399 else
11400 widget:setImageSource("/images/custom/UI/quest_background")
11401 end
11402 end
11403 Quest.onClick = function()
11404 if Novato == 03 then
11405 modules.game_alert.onShowTutor(04)
11406 Novato = 4
11407 end
11408 onShowQuestDetalhes(posQuest)
11409 end
11410 TextQuest = g_ui.createWidget('UIButton', Quest)
11411 TextQuest:setId('TitleQuest')
11412 TextQuest:setSize({width = 175, height = 15})
11413 TextQuest:addAnchor(AnchorLeft, 'parent', AnchorLeft)
11414 TextQuest:addAnchor(AnchorTop, 'parent', AnchorTop)
11415 TextQuest:setTextAlign(AlignLeft)
11416 TextQuest:setPhantom(true)
11417 TextQuest:setTextWrap(true)
11418 TextQuest:setMarginTop(08)
11419 TextQuest:setMarginLeft(50)
11420 --TextQuest:setImageSource("/images/custom/UI/EXP")
11421 TextQuest:setFont('verdana-11px-antialised')
11422 TextQuest:setText(tr(modules.game_database.getQuestInfo(X, 01)))
11423
11424 InfoQuest = g_ui.createWidget('UIButton', Quest)
11425 InfoQuest:setSize({width = 175, height = 15})
11426 InfoQuest:addAnchor(AnchorLeft, 'parent', AnchorLeft)
11427 InfoQuest:addAnchor(AnchorTop, 'TitleQuest', AnchorBottom)
11428 InfoQuest:setTextAlign(AlignLeft)
11429 InfoQuest:setPhantom(true)
11430 InfoQuest:setTextWrap(true)
11431 InfoQuest:setMarginTop(01)
11432 InfoQuest:setMarginLeft(50)
11433 --InfoQuest:setImageSource("/images/custom/UI/EXP")
11434 InfoQuest:setFont('lucida-11px-rounded')
11435 InfoQuest:setColor(modules.game_database.getQuestInfo(X, 13))
11436 InfoQuest:setText(tr(modules.game_database.getQuestInfo(X, 12)))
11437
11438 QuestCheck = QuestCheck + 1
11439 end
11440 end
11441 end
11442 elseif id == 02 then -- SOMENTE QUEST FINALIZADAS
11443 QuestFilter = 2
11444 for X = 01, modules.game_database.getMaxQuest() do
11445 Quest = menuBackground:recursiveGetChildById('Q_' ..X)
11446 if modules.game_database.getQuestInfo(X, 00) == 100 then
11447 local posQuest = X
11448 Quest = g_ui.createWidget('UIButton', QUEST_PANEL)
11449 Quest:setId('Q_' ..X)
11450 Quest:setFont('verdana-11px-antialised')
11451 Quest:setMarginTop(05)
11452 Quest:setImageSource("/images/custom/UI/quest_background_complete")
11453 TextQuest = g_ui.createWidget('UIButton', Quest)
11454 TextQuest:setSize({width = 175, height = 30})
11455 TextQuest:addAnchor(AnchorLeft, 'parent', AnchorLeft)
11456 TextQuest:addAnchor(AnchorTop, 'parent', AnchorTop)
11457 TextQuest:setTextAlign(AlignLeft)
11458 TextQuest:setPhantom(true)
11459 TextQuest:setTextWrap(true)
11460 TextQuest:setMarginTop(11)
11461 TextQuest:setMarginLeft(50)
11462 --TextQuest:setImageSource("/images/custom/UI/EXP")
11463 TextQuest:setFont('verdana-11px-antialised')
11464 TextQuest:setText(tr(modules.game_database.getQuestInfo(X, 01)))
11465 QuestCheck = QuestCheck + 1
11466 end
11467 end
11468 end
11469
11470 --[[ MENSAGEM SE NAO TIVER NENHUMA MISSAO ABERTA
11471 if QuestCheck == 0 then
11472 NoQuest:setText("Nenhuma missao\ndisponivel no momento.")
11473 NoQuest:show()
11474 else
11475 NoQuest:hide()
11476 end]]
11477end
11478function getQuestSelect()
11479 return QuestSelect
11480end
11481function onShowQuestDetalhes(questid)
11482 if questid > 0 then
11483 TituloQuest:setText(tr(modules.game_database.getQuestInfo(questid, 01)))
11484 DetalhesQuest:setText(tr(modules.game_database.getQuestInfo(questid, 02)))
11485 Texto_Recompensa:setText(tr(modules.game_database.getQuestInfo(questid, 03)))
11486 local TYPE = modules.game_database.getQuestInfo(questid, 11)
11487 if TYPE == "HUNT" or TYPE == "ITEMS" then
11488 local Atl = modules.game_database.getQuestInfo(questid, 06)
11489 local Max = modules.game_database.getQuestInfo(questid, 07)
11490 local QuestValue = modules.game_database.getQuestInfo(questid, 00)
11491 local BAR = modules.game_database.getQuestInfo(questid, 09, QuestValue)
11492 if BAR == "SHOW" then
11493 ProgressQuest:show()
11494 ProgressQuest:setText(Atl.. ' / ' ..Max)
11495 ProgressQuest:setValue(Atl, 0, Max)
11496 end
11497 else
11498 ProgressQuest:hide()
11499 end
11500 end
11501
11502 ListaQuest:hide()
11503 AbertasQuest:hide()
11504 ConcluidasQuest:hide()
11505 ScrollBarQuest:hide()
11506 TituloQuest:show()
11507 DetalhesQuest:show()
11508 RecompensaQuest:show()
11509 RastrearQuest:show()
11510 BackQuest:show()
11511 RastrearQuest:setPhantom(false)
11512
11513 RastrearQuest.onClick = function()
11514 RastrearQuest:setPhantom(true)
11515 local QuestValue = modules.game_database.getQuestInfo(questid, 00)
11516 local DESC = tr("Objetivo da Quest").. "\n[ " ..tr(modules.game_database.getQuestInfo(questid, 01)).. " ]"
11517 for X_POS = 01, modules.game_database.getQuestInfo(questid, 08, QuestValue) do
11518 local Qnt = X_POS
11519 local POS = modules.game_database.getQuestInfo(questid, 04, QuestValue, X_POS)
11520 modules.game_minimap.onRastrearQuest(POS, DESC, Qnt)
11521 end
11522
11523 if Novato == 04 then
11524 modules.game_alert.onShowTutor(05)
11525 Novato = 5
11526 end
11527 g_game.talk(g_game.talk("!inventario 27"))
11528 closedInventario()
11529 if g_settings.getString('fixeMenu') == "true" then
11530 INVENTARIO_BUTTON.onClick = function() end
11531 INVENTARIO_BUTTON:setImageSource("/images/custom/UI/menu_select")
11532 STATUS_BUTTON:setImageSource("/images/custom/UI/menu_option")
11533 QUEST_BUTTON:setImageSource("/images/custom/UI/menu_option")
11534 TASK_BUTTON:setImageSource("/images/custom/UI/menu_option")
11535 SHOP_BUTTON:setImageSource("/images/custom/UI/menu_option")
11536
11537 onHiderWindows()
11538
11539 INVENTARIO_WINDOW:show()
11540 end
11541 end
11542 BackQuest.onClick = function()
11543 ListaQuest:show()
11544 --AbertasQuest:show()
11545 --ConcluidasQuest:show()
11546 ScrollBarQuest:show()
11547 TituloQuest:hide()
11548 DetalhesQuest:hide()
11549 RecompensaQuest:hide()
11550 RastrearQuest:hide()
11551 ProgressQuest:hide()
11552 BackQuest:hide()
11553 end
11554 ReloadButtonMenu()
11555end
11556
11557function onSummonCooldown()
11558 if g_app.isMobile() then
11559 else
11560 if timer4 > 0 then
11561 scheduleEvent(function()
11562 if OverLogin > 0 then
11563 onSummonCooldown()
11564 OverLogin = -1
11565 return true
11566 else
11567 timer4 = timer4 - 1
11568 COLD_KARD:setText(timer4)
11569 onSummonCooldown()
11570 end
11571 end, 1000)
11572 else
11573 COLD_KARD:setText("")
11574 COLD_KARD:hide()
11575 end
11576 end
11577end
11578function onSpell1Cooldown()
11579 if g_app.isMobile() then
11580 local MobileSkill1 = modules.client_mobile.onMobileButton(08)
11581 if timer1 > 0 then
11582 MobileSkill1.onClick = function() end
11583 scheduleEvent(function()
11584 if OverLogin > 0 then
11585 onSpell1Cooldown()
11586 OverLogin = -1
11587 return true
11588 else
11589 timer1 = timer1 - 1
11590 MobileSkill1:setText(timer1)
11591 onSpell1Cooldown()
11592 end
11593 end, 1000)
11594 else
11595 MobileSkill1:setText("")
11596 MobileSkill1:setImageColor("white")
11597 reloadSpellBar()
11598 end
11599 else
11600 if timer1 > 0 then
11601 Spell01.onClick = function() end
11602 scheduleEvent(function()
11603 if OverLogin > 0 then
11604 onSpell1Cooldown()
11605 OverLogin = -1
11606 return true
11607 else
11608 timer1 = timer1 - 1
11609 Spell01:setText(timer1)
11610 onSpell1Cooldown()
11611 end
11612 end, 1000)
11613 else
11614 Spell01:setText("")
11615 Spell01:setImageColor("white")
11616 reloadSpellBar()
11617 end
11618 end
11619end
11620function onSpell2Cooldown()
11621 if g_app.isMobile() then
11622 local MobileSkill2 = modules.client_mobile.onMobileButton(09)
11623 if timer2 > 0 then
11624 MobileSkill2.onClick = function() end
11625 scheduleEvent(function()
11626 if OverLogin > 0 then
11627 onSpell2Cooldown()
11628 OverLogin = -1
11629 return true
11630 else
11631 timer2 = timer2 - 1
11632 MobileSkill2:setText(timer2)
11633 onSpell2Cooldown()
11634 end
11635 end, 1000)
11636 else
11637 MobileSkill2:setText("")
11638 MobileSkill2:setImageColor("white")
11639 reloadSpellBar()
11640 end
11641 else
11642 if timer2 > 0 then
11643 Spell02.onClick = function() end
11644 scheduleEvent(function()
11645 if OverLogin > 0 then
11646 onSpell2Cooldown()
11647 OverLogin = -1
11648 return true
11649 else
11650 timer2 = timer2 - 1
11651 Spell02:setText(timer2)
11652 onSpell2Cooldown()
11653 end
11654 end, 1000)
11655 else
11656 Spell02:setText("")
11657 Spell02:setImageColor("white")
11658 reloadSpellBar()
11659 end
11660 end
11661end
11662function onSpell3Cooldown()
11663 if g_app.isMobile() then
11664 local MobileSkill3 = modules.client_mobile.onMobileButton(10)
11665 if timer3 > 0 then
11666 MobileSkill3.onClick = function() end
11667 scheduleEvent(function()
11668 if OverLogin > 0 then
11669 onSpell3Cooldown()
11670 OverLogin = -1
11671 return true
11672 else
11673 timer3 = timer3 - 1
11674 MobileSkill3:setText(timer3)
11675 onSpell3Cooldown()
11676 end
11677 end, 1000)
11678 else
11679 MobileSkill3:setText("")
11680 MobileSkill3:setImageColor("white")
11681 reloadSpellBar()
11682 end
11683 else
11684 if timer3 > 0 then
11685 Spell03.onClick = function() end
11686 scheduleEvent(function()
11687 if OverLogin > 0 then
11688 onSpell3Cooldown()
11689 OverLogin = -1
11690 return true
11691 else
11692 timer3 = timer3 - 1
11693 Spell03:setText(timer3)
11694 onSpell3Cooldown()
11695 end
11696 end, 1000)
11697 else
11698 Spell03:setText("")
11699 Spell03:setImageColor("white")
11700 reloadSpellBar()
11701 end
11702 end
11703end
11704function onSpell4Cooldown(timer)
11705 if g_app.isMobile() then
11706 local MobileSkill4 = modules.client_mobile.onMobileButton(12)
11707 if timer > 0 then
11708 MobileSkill4.onClick = function() end
11709 scheduleEvent(function()
11710 if OverLogin > 0 then
11711 onSpell4Cooldown(0)
11712 OverLogin = -1
11713 return true
11714 else
11715 timer = timer - 1
11716 MobileSkill4:setText(timer)
11717 onSpell4Cooldown(timer)
11718 end
11719 end, 1000)
11720 else
11721 MobileSkill4:setText("")
11722 MobileSkill4:setImageColor("white")
11723 reloadSpellBar()
11724 end
11725 else
11726 if timer > 0 then
11727 Suport01.onClick = function() end
11728 scheduleEvent(function()
11729 if OverLogin > 0 then
11730 onSpell4Cooldown(0)
11731 OverLogin = -1
11732 return true
11733 else
11734 timer = timer - 1
11735 Suport01:setText(timer)
11736 onSpell4Cooldown(timer)
11737 end
11738 end, 1000)
11739 else
11740 Suport01:setText("")
11741 Suport01:setImageColor("white")
11742 reloadSpellBar()
11743 end
11744 end
11745end
11746function onSpell5Cooldown(timer)
11747 if g_app.isMobile() then
11748 local MobileSkill5 = modules.client_mobile.onMobileButton(11)
11749 if timer > 0 then
11750 MobileSkill5.onClick = function() end
11751 scheduleEvent(function()
11752 if OverLogin > 0 then
11753 onSpell5Cooldown(0)
11754 OverLogin = -1
11755 return true
11756 else
11757 timer = timer - 1
11758 MobileSkill5:setText(timer)
11759 onSpell5Cooldown(timer)
11760 end
11761 end, 1000)
11762 else
11763 MobileSkill5:setText("")
11764 MobileSkill5:setImageColor("white")
11765 reloadSpellBar()
11766 end
11767 else
11768 if timer > 0 then
11769 Suport02.onClick = function() end
11770 scheduleEvent(function()
11771 if OverLogin > 0 then
11772 onSpell5Cooldown(0)
11773 OverLogin = -1
11774 return true
11775 else
11776 timer = timer - 1
11777 Suport02:setText(timer)
11778 onSpell5Cooldown(timer)
11779 end
11780 end, 1000)
11781 else
11782 Suport02:setText("")
11783 Suport02:setImageColor("white")
11784 reloadSpellBar()
11785 end
11786 end
11787end
11788function onSpell6Cooldown(timer)
11789 if g_app.isMobile() then
11790 local MobileSkill6 = modules.client_mobile.onMobileButton(13)
11791 if timer > 0 then
11792 MobileSkill6.onClick = function() end
11793 scheduleEvent(function()
11794 if OverLogin > 0 then
11795 onSpell6Cooldown(0)
11796 OverLogin = -1
11797 return true
11798 else
11799 timer = timer - 1
11800 MobileSkill6:setText(timer)
11801 onSpell6Cooldown(timer)
11802 end
11803 end, 1000)
11804 else
11805 MobileSkill6:setText("")
11806 MobileSkill6:setImageColor("white")
11807 reloadSpellBar()
11808 end
11809 else
11810 if timer > 0 then
11811 Suport03.onClick = function() end
11812 scheduleEvent(function()
11813 if OverLogin > 0 then
11814 onSpell6Cooldown(0)
11815 OverLogin = -1
11816 return true
11817 else
11818 timer = timer - 1
11819 Suport03:setText(timer)
11820 onSpell6Cooldown(timer)
11821 end
11822 end, 1000)
11823 else
11824 Suport03:setText("")
11825 Suport03:setImageColor("white")
11826 reloadSpellBar()
11827 end
11828 end
11829end
11830function onLoadQntCure()
11831 Suport02:setImageSource("/images/custom/Spells/HUB/cura_" ..modules.game_database.onCureInfo(00))
11832 local QNT_SKILL = modules.game_database.onCureInfo(01)
11833 local MOBILE_QNT = modules.client_mobile.onMobileButton(14)
11834 if QNT_SKILL < 0 then QNT_SKILL = 0 MOBILE_QNT = 0 end
11835 if QNT_SKILL < 10 then
11836 SupQnt:setText('0' ..QNT_SKILL)
11837 if g_app.isMobile() then
11838 MOBILE_QNT:setText('0' ..QNT_SKILL)
11839 end
11840 else
11841 SupQnt:setText(QNT_SKILL)
11842 if g_app.isMobile() then
11843 MOBILE_QNT:setText(QNT_SKILL)
11844 end
11845 end
11846end
11847function onLoadAmmo()
11848 --gunChannel = g_sounds.getChannel(1)
11849 --local musicFilename = "/sounds/metr"
11850 local AMMO_COUNT = modules.game_database.getInventory(04, 10)
11851 local RANK_ID = modules.game_database.getTask(00) * 500
11852 ammohub:setTooltip('Sua municao maxima:\n' ..RANK_ID)
11853 if AMMO_COUNT < 0 then AMMO_COUNT = 0 end
11854 if AMMO_COUNT < 10 then
11855 ammohub:setText('Ammo: 00' ..AMMO_COUNT)
11856 --gunChannel:enqueue(musicFilename, 3)
11857 --scheduleEvent(function() gunChannel:stop() end, 500)
11858 if g_app.isMobile() then
11859 mobileAmmo = modules.client_mobile.onMobileButton(04)
11860 mobileAmmo:setText('00' ..AMMO_COUNT)
11861 end
11862 elseif AMMO_COUNT >= 10 and AMMO_COUNT <= 99 then
11863 ammohub:setText('Ammo: 0' ..AMMO_COUNT)
11864 --gunChannel:enqueue(musicFilename, 3)
11865 --scheduleEvent(function() gunChannel:stop() end, 500)
11866 if g_app.isMobile() then
11867 mobileAmmo = modules.client_mobile.onMobileButton(04)
11868 mobileAmmo:setText('0' ..AMMO_COUNT)
11869 end
11870 else
11871 ammohub:setText('Ammo: ' ..AMMO_COUNT)
11872 --gunChannel:enqueue(musicFilename, 3)
11873 --scheduleEvent(function() gunChannel:stop() end, 500)
11874 if g_app.isMobile() then
11875 mobileAmmo = modules.client_mobile.onMobileButton(04)
11876 mobileAmmo:setText('' ..AMMO_COUNT)
11877 end
11878 end
11879 if AMMO_COUNT < 01 then
11880 ammohub:setColor('red')
11881 ammohub:setText('Ammo: EMPTY')
11882 if g_app.isMobile() then
11883 mobileAmmo = modules.client_mobile.onMobileButton(04)
11884 mobileAmmo:setColor('red')
11885 mobileAmmo:setText('EMPTY')
11886 end
11887 else
11888 ammohub:setColor('white')
11889 if g_app.isMobile() then
11890 mobileAmmo = modules.client_mobile.onMobileButton(04)
11891 mobileAmmo:setColor('white')
11892 end
11893 end
11894
11895end
11896function reloadSpellBar()
11897 skill_01 = modules.game_database.getInventory(4, 4)
11898 skill_02 = modules.game_database.getInventory(4, 5)
11899 skill_03 = modules.game_database.getInventory(4, 6)
11900 maestria = modules.game_database.getMaestriaEsp(00)
11901 MobileSkill1 = modules.client_mobile.onMobileButton(12)
11902 MobileSkill2 = modules.client_mobile.onMobileButton(11)
11903 MobileSkill3 = modules.client_mobile.onMobileButton(13)
11904 MobileSkill4 = modules.client_mobile.onMobileButton(08)
11905 MobileSkill5 = modules.client_mobile.onMobileButton(09)
11906 MobileSkill6 = modules.client_mobile.onMobileButton(10)
11907
11908 if maestria < 0 then maestria = 0 end
11909
11910 modules.game_hotkeys.reset()
11911 if skill_01 > 0 then
11912 g_effects.fadeIn(Spell01, 250)
11913 Spell01:setImageSource("/images/custom/Spells/HUB/skill_" ..skill_01)
11914 if g_app.isMobile() then
11915 MobileSkill4:setImageSource("/images/custom/Spells/skill_" ..skill_01)
11916 MobileSkill4.onMouseRelease = function(widget, mousePos, mouseButton)
11917 if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then
11918 if OverLogin == 0 then
11919 g_game.talk("Skill " ..skill_01)
11920 end
11921 elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then
11922 backpackMenu(05, 01)
11923 end
11924 end
11925 end
11926 Spell01:setTooltip("@SKILL " ..skill_01.. " " ..HOT_K_1)
11927 HotKey_01 = skill_01
11928 Spell01.onMouseRelease = function(widget, mousePos, mouseButton)
11929 if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then
11930 if OverLogin == 0 then
11931 g_game.talk("Skill " ..skill_01)
11932 end
11933 elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then
11934 backpackMenu(05, 01)
11935 end
11936 end
11937 else
11938 Spell01:setImageSource("/images/custom/Spells/HUB/skill_0")
11939 if g_app.isMobile() then
11940 MobileSkill4:setImageSource("/images/custom/UI/spell_slot")
11941 MobileSkill4.onMouseRelease = function(widget, mousePos, mouseButton)
11942 if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then
11943 return
11944 elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then
11945 return
11946 end
11947 end
11948 end
11949 Spell01:setTooltip("")
11950 HotKey_01 = 0
11951 Spell01.onMouseRelease = function(widget, mousePos, mouseButton)
11952 if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then
11953 return
11954 elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then
11955 return
11956 end
11957 end
11958 end
11959
11960 if skill_02 > 0 then
11961 g_effects.fadeIn(Spell02, 250)
11962 Spell02:setImageSource("/images/custom/Spells/HUB/skill_" ..skill_02)
11963 if g_app.isMobile() then
11964 MobileSkill5:setImageSource("/images/custom/Spells/skill_" ..skill_02)
11965 MobileSkill5.onMouseRelease = function(widget, mousePos, mouseButton)
11966 if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then
11967 if OverLogin == 0 then
11968 g_game.talk("Skill " ..skill_02)
11969 end
11970 elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then
11971 backpackMenu(05, 02)
11972 end
11973 end
11974 end
11975 Spell02:setTooltip("@SKILL " ..skill_02.. " " ..HOT_K_2)
11976 HotKey_02 = skill_02
11977 Spell02.onMouseRelease = function(widget, mousePos, mouseButton)
11978 if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then
11979 if OverLogin == 0 then
11980 g_game.talk("Skill " ..skill_02)
11981 end
11982 elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then
11983 backpackMenu(05, 02)
11984 end
11985 end
11986 else
11987 HotKey_02 = 0
11988 Spell02:setImageSource("/images/custom/Spells/HUB/skill_0")
11989 if g_app.isMobile() then
11990 MobileSkill5:setImageSource("/images/custom/UI/spell_slot")
11991 MobileSkill5.onMouseRelease = function(widget, mousePos, mouseButton)
11992 if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then
11993 return
11994 elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then
11995 return
11996 end
11997 end
11998 end
11999 Spell02:setTooltip("")
12000 Spell02.onMouseRelease = function(widget, mousePos, mouseButton)
12001 if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then
12002 return
12003 elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then
12004 return
12005 end
12006 end
12007 end
12008
12009 if skill_03 > 0 then
12010 g_effects.fadeIn(Spell03, 250)
12011 Spell03:setImageSource("/images/custom/Spells/HUB/skill_" ..skill_03)
12012 if g_app.isMobile() then
12013 MobileSkill6:setImageSource("/images/custom/Spells/skill_" ..skill_03)
12014 MobileSkill6.onMouseRelease = function(widget, mousePos, mouseButton)
12015 if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then
12016 if OverLogin == 0 then
12017 g_game.talk("Skill " ..skill_03)
12018 end
12019 elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then
12020 backpackMenu(05, 03)
12021 end
12022 end
12023 end
12024 Spell03:setTooltip("@SKILL " ..skill_03.. " " ..HOT_K_3)
12025 HotKey_03 = skill_03
12026 Spell03.onMouseRelease = function(widget, mousePos, mouseButton)
12027 if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then
12028 if OverLogin == 0 then
12029 g_game.talk("Skill " ..skill_03)
12030 end
12031 elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then
12032 backpackMenu(05, 03)
12033 end
12034 end
12035 else
12036 HotKey_03 = 0
12037 Spell03:setTooltip("")
12038 Spell03:setImageSource("/images/custom/Spells/HUB/skill_0")
12039 if g_app.isMobile() then
12040 MobileSkill6:setImageSource("/images/custom/UI/spell_slot")
12041 MobileSkill6.onMouseRelease = function(widget, mousePos, mouseButton)
12042 if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then
12043 return
12044 elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then
12045 return
12046 end
12047 end
12048 end
12049 Spell03.onMouseRelease = function(widget, mousePos, mouseButton)
12050 if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then
12051 return
12052 elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then
12053 return
12054 end
12055 end
12056 end
12057
12058 Suport01:setTooltip("@SKILL 71 " ..HOT_K_4)
12059 if g_app.isMobile() then
12060 MobileSkill1:setImageSource("/images/custom/Spells/skill_71")
12061 MobileSkill2:setImageSource("/images/custom/Spells/cura_" ..modules.game_database.onCureInfo(00))
12062 MobileSkill3:setImageSource("/images/custom/Spells/maestria" ..maestria)
12063 MobileSkill1.onMouseRelease = function(widget, mousePos, mouseButton)
12064 if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then
12065 if OverLogin == 0 then
12066 g_game.talk("Skill 71")
12067 end
12068 elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then
12069 return
12070 end
12071 end
12072 MobileSkill2.onMouseRelease = function(widget, mousePos, mouseButton)
12073 if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then
12074 if OverLogin == 0 then
12075 g_game.talk("Skill 72")
12076 end
12077 elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then
12078 return
12079 end
12080 end
12081 end
12082 HotKey_04 = 71
12083 Suport02:setTooltip("@SKILL 72 " ..HOT_K_5)
12084 if g_app.isMobile() then
12085 Suport02:setImageSource("/images/custom/Spells/cura_" ..modules.game_database.onCureInfo(00))
12086 else
12087 Suport02:setImageSource("/images/custom/Spells/HUB/cura_" ..modules.game_database.onCureInfo(00))
12088 end
12089 onLoadQntCure()
12090 HotKey_05 = 72
12091 Suport01.onMouseRelease = function(widget, mousePos, mouseButton)
12092 if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then
12093 if OverLogin == 0 then
12094 g_game.talk("Skill 71")
12095 end
12096 elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then
12097 backpackMenu(05, 04)
12098 end
12099 end
12100 Suport02.onMouseRelease = function(widget, mousePos, mouseButton)
12101 if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then
12102 if OverLogin == 0 then
12103 modules.game_walking.setPressKeyAction(06)
12104 g_game.talk("Skill 72")
12105 end
12106 elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then
12107 backpackMenu(05, 05)
12108 end
12109 end
12110 if g_app.isMobile() then
12111 Suport03:setImageSource("/images/custom/Spells/maestria" ..maestria)
12112 else
12113 Suport03:setImageSource("/images/custom/Spells/HUB/maestria" ..maestria)
12114 end
12115 if maestria > 0 then
12116 if maestria == 01 then
12117 HotKey_06 = 73
12118 elseif maestria == 02 then
12119 HotKey_06 = 74
12120 elseif maestria == 03 then
12121 HotKey_06 = 75
12122 elseif maestria == 04 then
12123 HotKey_06 = 76
12124 else
12125 HotKey_06 = 77
12126 end
12127 Suport03:setTooltip("@SKILL " ..HotKey_06.. " " ..HOT_K_6)
12128 Suport03.onMouseRelease = function(widget, mousePos, mouseButton)
12129 if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then
12130 if OverLogin == 0 then
12131 g_game.talk("Skill 73")
12132 end
12133 elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then
12134 backpackMenu(05, 06)
12135 end
12136 end
12137 if g_app.isMobile() then
12138 MobileSkill3.onMouseRelease = function(widget, mousePos, mouseButton)
12139 if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then
12140 if OverLogin == 0 then
12141 g_game.talk("Skill 73")
12142 end
12143 elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then
12144 return
12145 end
12146 end
12147 end
12148 else
12149 HotKey_06 = 0
12150 Suport03:setTooltip("")
12151 Suport03.onMouseRelease = function(widget, mousePos, mouseButton)
12152 if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then
12153 return
12154 elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then
12155 return
12156 end
12157 end
12158 if g_app.isMobile() then
12159 MobileSkill3.onMouseRelease = function(widget, mousePos, mouseButton)
12160 if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then
12161 return
12162 elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then
12163 return
12164 end
12165 end
12166 end
12167 end
12168
12169 if g_app.isMobile() then
12170 modules.game_centralbox.onCentralBoxFocus()
12171 end
12172end
12173function setSortType(value)
12174 if value == "zero" then
12175 g_game.talk(g_game.talk("!inventario 22 01"))
12176 classSummon = 01
12177 elseif value == "um" then
12178 g_game.talk(g_game.talk("!inventario 22 02"))
12179 classSummon = 02
12180 elseif value == "dois" then
12181 g_game.talk(g_game.talk("!inventario 22 03"))
12182 classSummon = 03
12183 elseif value == "tres" then
12184 g_game.talk(g_game.talk("!inventario 22 04"))
12185 classSummon = 04
12186 elseif value == "quatro" then
12187 g_game.talk(g_game.talk("!inventario 22 05"))
12188 classSummon = 05
12189 elseif value == "cinco" then
12190 g_game.talk(g_game.talk("!inventario 22 06"))
12191 classSummon = 06
12192 elseif value == "seis" then
12193 g_game.talk(g_game.talk("!inventario 22 07"))
12194 classSummon = 07
12195 elseif value == "sete" then
12196 g_game.talk(g_game.talk("!inventario 22 08"))
12197 classSummon = 08
12198 elseif value == "oito" then
12199 g_game.talk(g_game.talk("!inventario 22 09"))
12200 classSummon = 09
12201 elseif value == "nove" then
12202 g_game.talk(g_game.talk("!inventario 22 10"))
12203 classSummon = 10
12204 elseif value == "dez" then
12205 g_game.talk(g_game.talk("!inventario 22 11"))
12206 classSummon = 11
12207 elseif value == "onze" then
12208 g_game.talk(g_game.talk("!inventario 22 12"))
12209 classSummon = 12
12210 end
12211end
12212function onChangeSortType(comboBox, option, value)
12213 setSortType(value:lower())
12214end
12215function OpenSite()
12216 os.execute("start https://opengamescommunity.com/openforge/rd-core.4/")
12217end
12218function openBetaTesters()
12219 if CLICK_DELAY then
12220 return
12221 else
12222 CLICK_DELAY = true
12223 onDelayClick(05)
12224 buttonText:hide()
12225 descText:hide()
12226 valorText:hide()
12227 valorLabel:hide()
12228 VipText:hide()
12229 VipTextLabel:hide()
12230 PersonagemText:hide()
12231 PersonagemLabel:hide()
12232 LevelText:hide()
12233 LevelLabel:hide()
12234 TotalLabel:hide()
12235 TotalText:hide()
12236
12237 LoadingPanel:show()
12238 betaWindow:show()
12239
12240 g_game.talk(g_game.talk("!donatesdev 00"))
12241 end
12242end
12243
12244function onSummonShow(x)
12245 if g_app.isMobile() then
12246 MOBILE_SELECT_NEWSUMMON = modules.game_interface.onMobileWindow(91)
12247 MOBILE_SELECT_NEWIMG = modules.game_interface.onMobileWindow(92)
12248 MOBILE_SELECT_NEWINFO = modules.game_interface.onMobileWindow(93)
12249 MOBILE_SELECT_PROGRESS = modules.game_interface.onMobileWindow(94)
12250 MOBILE_SELECT_LASTS = modules.game_interface.onMobileWindow(95)
12251 MOBILE_SELECT_COUNT = modules.game_interface.onMobileWindow(96)
12252 MOBILE_SELECT_NEXTS = modules.game_interface.onMobileWindow(97)
12253 MOBILE_SELECT_BT_EQUIP = modules.game_interface.onMobileWindow(98)
12254
12255 if x == 0 or x == nil then
12256 g_game.talk(g_game.talk("!inventario 22 01"))
12257 MOBILE_SUMMOM_FILT:setOption("Dragon", "zero")
12258 MOBILE_SUMMOM_FILT.onOptionChange = onChangeSortType
12259 classSummon = 01
12260 end
12261
12262 SummonShow = 1
12263 atual = 0
12264 MOBILE_SELECT_NEWIMG:setImageSource("/images/custom/Monster/0")
12265 MOBILE_SELECT_NEWSUMMON:setImageSource("/images/custom/UI/infoInv")
12266 MOBILE_SELECT_NEWINFO:setText(tr("Nenhum Kard"))
12267 MOBILE_SELECT_NEXTS:enable()
12268 MOBILE_SELECT_LASTS:disable()
12269 MOBILE_SELECT_PROGRESS:hide()
12270 MOBILE_SELECT_COUNT:setText(atual.. " / " ..modules.game_database.onKard(00, classSummon))
12271 MOBILE_SELECT_BT_EQUIP:hide()
12272
12273 local RareID = 0
12274 local max = modules.game_database.onKard(00, classSummon)
12275 MOBILE_SELECT_NEXTS.onClick = function()
12276 if atual < max then
12277 atual = atual + 1
12278 MOBILE_SELECT_LASTS:enable()
12279 MOBILE_SELECT_COUNT:setText(atual.. " / " ..max)
12280 local checkStorage = modules.game_database.onKard(03, classSummon, atual)
12281 local name = modules.game_database.onKard(01, classSummon, atual)
12282 local img_id = modules.game_database.onKard(02, classSummon, atual)
12283 local Lv = modules.game_database.onKard(06, classSummon, atual)
12284 if checkStorage > 00 then
12285 MOBILE_SELECT_NEWIMG:setImageSource("/images/custom/Monster/" ..img_id)
12286 MOBILE_SELECT_NEWIMG:setImageRect(modules.game_database.onKard(04, classSummon, atual))
12287
12288 local RareMax = modules.game_database.onKard(05, classSummon, atual, 05)
12289 local AtualStorage = 0
12290 local RARE_01 = modules.game_database.onKard(05, classSummon, atual, 01)
12291 local RARE_02 = modules.game_database.onKard(05, classSummon, atual, 02)
12292 local RARE_03 = modules.game_database.onKard(05, classSummon, atual, 03)
12293 local RARE_04 = modules.game_database.onKard(05, classSummon, atual, 04)
12294 local RARE_05 = modules.game_database.onKard(05, classSummon, atual, 05)
12295
12296 if checkStorage < RARE_01 then
12297 AtualStorage = checkStorage
12298 RareMax = modules.game_database.onKard(05, classSummon, atual, 01)
12299 MOBILE_SELECT_NEWSUMMON:setImageSource("/images/custom/UI/summon_view_0")
12300 MOBILE_SELECT_NEWINFO:setText(name.. "\nEXP: 10%\n\nNext Rare:")
12301 --MOBILE_SELECT_NEWINFO:setText(name.. "\nEXP: 10%\nInvocar: Lv." ..Lv.. "\nTempo: 05 minutos.")
12302 RareID = 0
12303 elseif checkStorage < (RARE_01 + RARE_02) then
12304 AtualStorage = checkStorage - RARE_01
12305 RareMax = modules.game_database.onKard(05, classSummon, atual, 02)
12306 MOBILE_SELECT_NEWSUMMON:setImageSource("/images/custom/UI/summon_view_1")
12307 MOBILE_SELECT_NEWINFO:setText(name.. "\nEXP: 20%\n\nNext Rare:")
12308 --MOBILE_SELECT_NEWINFO:setText(name.. "\nEXP: 20%\nInvocar: Lv." ..Lv.. "\nTempo: 10 minutos.")
12309 RareID = 1
12310 elseif checkStorage < (RARE_01 + RARE_02 + RARE_03) then
12311 AtualStorage = checkStorage - (RARE_01 + RARE_02)
12312 RareMax = modules.game_database.onKard(05, classSummon, atual, 03)
12313 MOBILE_SELECT_NEWSUMMON:setImageSource("/images/custom/UI/summon_view_2")
12314 MOBILE_SELECT_NEWINFO:setText(name.. "\nEXP: 30%\n\nNext Rare:")
12315 --MOBILE_SELECT_NEWINFO:setText(name.. "\nEXP: 30%\nInvocar: Lv." ..Lv.. "\nTempo: 15 minutos.")
12316 RareID = 2
12317 elseif checkStorage < (RARE_01 + RARE_02 + RARE_03 + RARE_04) then
12318 AtualStorage = checkStorage - (RARE_01 + RARE_02 + RARE_03)
12319 RareMax = modules.game_database.onKard(05, classSummon, atual, 04)
12320 MOBILE_SELECT_NEWSUMMON:setImageSource("/images/custom/UI/summon_view_3")
12321 MOBILE_SELECT_NEWINFO:setText(name.. "\nEXP: 40%\n\nNext Rare:")
12322 --MOBILE_SELECT_NEWINFO:setText(name.. "\nEXP: 40%\nInvocar: Lv." ..Lv.. "\nTempo: 20 minutos.")
12323 RareID = 3
12324 elseif checkStorage < (RARE_01 + RARE_02 + RARE_03 + RARE_04 + RARE_05) then
12325 AtualStorage = checkStorage - (RARE_01 + RARE_02 + RARE_03 + RARE_04)
12326 RareMax = modules.game_database.onKard(05, classSummon, atual, 05)
12327 MOBILE_SELECT_NEWSUMMON:setImageSource("/images/custom/UI/summon_view_4")
12328 MOBILE_SELECT_NEWINFO:setText(name.. "\nEXP: 50%\n\nNext Rare:")
12329 --MOBILE_SELECT_NEWINFO:setText(name.. "\nEXP: 50%\nInvocar: Lv." ..Lv.. "\nTempo: 25 minutos.")
12330 RareID = 4
12331 else
12332 AtualStorage = modules.game_database.onKard(05, classSummon, atual, 05)
12333 MOBILE_SELECT_NEWSUMMON:setImageSource("/images/custom/UI/summon_view_4")
12334 MOBILE_SELECT_NEWINFO:setText(name.. "\nEXP: 60%\n\nNext Rare:")
12335 --MOBILE_SELECT_NEWINFO:setText(name.. "\nEXP: 60%\nInvocar: Lv." ..Lv.. "\nTempo: 30 minutos.")
12336 RareID = 5
12337 end
12338
12339 MOBILE_SELECT_PROGRESS:setValue(AtualStorage, 0, RareMax)
12340 MOBILE_SELECT_PROGRESS:setTooltip(AtualStorage.. " / " ..RareMax)
12341 MOBILE_SELECT_PROGRESS:show()
12342
12343 local sum_atual = modules.game_database.getInventory(10, 1)
12344 if sum_atual == img_id then
12345 MOBILE_SELECT_BT_EQUIP:hide()
12346 else
12347 MOBILE_SELECT_BT_EQUIP:show()
12348 MOBILE_SELECT_BT_EQUIP.onClick = function()
12349 local KARD_IMG = modules.game_interface.onMobileWindow(85)
12350 local KARD_NAM = modules.game_interface.onMobileWindow(93)
12351 local KARD_SUM = modules.game_interface.onMobileWindow(82)
12352
12353 modules.game_database.onEquipKard(00, KARD_SUM, KARD_NAM, classSummon, KARD_IMG, SUMMON_STAR, atual, checkStorage, EQUIPSUMPRO)
12354 g_game.talk(g_game.talk("!inventario 23 " ..classSummon.. " " ..atual))
12355
12356 MOBILE_EQUIP_BAR = modules.game_interface.onMobileWindow(16)
12357 MOBILE_SUMMOM_BAR = modules.game_interface.onMobileWindow(99)
12358
12359 MOBILE_SUMMOM_BAR:setVisible(false)
12360 MOBILE_EQUIP_BAR:setVisible(true)
12361 end
12362 end
12363 else
12364 MOBILE_SELECT_NEWIMG:setImageSource("/images/custom/UI/block")
12365 MOBILE_SELECT_NEWIMG:setImageRect("00 00 64 64")
12366 MOBILE_SELECT_NEWSUMMON:setImageSource("/images/custom/UI/infoInv")
12367 MOBILE_SELECT_NEWINFO:setText(name.. "\n\n".. tr("Kard bloqueado\nCompre no Shop"))
12368 MOBILE_SELECT_BT_EQUIP:hide()
12369 MOBILE_SELECT_PROGRESS:hide()
12370 end
12371
12372 if atual == max then
12373 MOBILE_SELECT_NEXTS:disable()
12374 end
12375 end
12376 end
12377 MOBILE_SELECT_LASTS.onClick = function()
12378 if atual > 0 then
12379 atual = atual - 1
12380 MOBILE_SELECT_COUNT:setText(atual.. " / " ..max)
12381 if atual == 0 then
12382 MOBILE_SELECT_NEWIMG:setImageSource("/images/custom/Monster/0")
12383 MOBILE_SELECT_NEWSUMMON:setImageSource("/images/custom/UI/infoInv")
12384 MOBILE_SELECT_NEWINFO:setText(tr("Nenhum Kard\n selecionado"))
12385 MOBILE_SELECT_LASTS:disable()
12386 MOBILE_SELECT_BT_EQUIP:hide()
12387 MOBILE_SELECT_PROGRESS:hide()
12388 else
12389 MOBILE_SELECT_NEXTS:enable()
12390 local checkStorage = modules.game_database.onKard(03, classSummon, atual)
12391 local name = modules.game_database.onKard(01, classSummon, atual)
12392 local img_id = modules.game_database.onKard(02, classSummon, atual)
12393 local Lv = modules.game_database.onKard(06, classSummon, atual)
12394 if checkStorage > 00 then
12395 MOBILE_SELECT_NEWIMG:setImageSource("/images/custom/Monster/" ..img_id)
12396 MOBILE_SELECT_NEWIMG:setImageRect(modules.game_database.onKard(04, classSummon, atual))
12397
12398 local RareMax = modules.game_database.onKard(05, classSummon, atual, 05)
12399 local AtualStorage = 0
12400 local RARE_01 = modules.game_database.onKard(05, classSummon, atual, 01)
12401 local RARE_02 = modules.game_database.onKard(05, classSummon, atual, 02)
12402 local RARE_03 = modules.game_database.onKard(05, classSummon, atual, 03)
12403 local RARE_04 = modules.game_database.onKard(05, classSummon, atual, 04)
12404 local RARE_05 = modules.game_database.onKard(05, classSummon, atual, 05)
12405
12406 if checkStorage < RARE_01 then
12407 AtualStorage = checkStorage
12408 RareMax = modules.game_database.onKard(05, classSummon, atual, 01)
12409 MOBILE_SELECT_NEWSUMMON:setImageSource("/images/custom/UI/summon_view_0")
12410 MOBILE_SELECT_NEWINFO:setText(name.. "\nEXP: 10%\n\nNext Rare:")
12411 --MOBILE_SELECT_NEWINFO:setText(name.. "\nEXP: 10%\nInvocar: Lv." ..Lv.. "\nTempo: 05 minutos.")
12412 RareID = 0
12413 elseif checkStorage < (RARE_01 + RARE_02) then
12414 AtualStorage = checkStorage - RARE_01
12415 RareMax = modules.game_database.onKard(05, classSummon, atual, 02)
12416 MOBILE_SELECT_NEWSUMMON:setImageSource("/images/custom/UI/summon_view_1")
12417 MOBILE_SELECT_NEWINFO:setText(name.. "\nEXP: 20%\n\nNext Rare:")
12418 --MOBILE_SELECT_NEWINFO:setText(name.. "\nEXP: 20%\nInvocar: Lv." ..Lv.. "\nTempo: 10 minutos.")
12419 RareID = 1
12420 elseif checkStorage < (RARE_01 + RARE_02 + RARE_03) then
12421 AtualStorage = checkStorage - (RARE_01 + RARE_02)
12422 RareMax = modules.game_database.onKard(05, classSummon, atual, 03)
12423 MOBILE_SELECT_NEWSUMMON:setImageSource("/images/custom/UI/summon_view_2")
12424 MOBILE_SELECT_NEWINFO:setText(name.. "\nEXP: 30%\n\nNext Rare:")
12425 --MOBILE_SELECT_NEWINFO:setText(name.. "\nEXP: 30%\nInvocar: Lv." ..Lv.. "\nTempo: 15 minutos.")
12426 RareID = 2
12427 elseif checkStorage < (RARE_01 + RARE_02 + RARE_03 + RARE_04) then
12428 AtualStorage = checkStorage - (RARE_01 + RARE_02 + RARE_03)
12429 RareMax = modules.game_database.onKard(05, classSummon, atual, 04)
12430 MOBILE_SELECT_NEWSUMMON:setImageSource("/images/custom/UI/summon_view_3")
12431 MOBILE_SELECT_NEWINFO:setText(name.. "\nEXP: 40%\n\nNext Rare:")
12432 --MOBILE_SELECT_NEWINFO:setText(name.. "\nEXP: 40%\nInvocar: Lv." ..Lv.. "\nTempo: 20 minutos.")
12433 RareID = 3
12434 elseif checkStorage < (RARE_01 + RARE_02 + RARE_03 + RARE_04 + RARE_05) then
12435 AtualStorage = checkStorage - (RARE_01 + RARE_02 + RARE_03 + RARE_04)
12436 RareMax = modules.game_database.onKard(05, classSummon, atual, 05)
12437 MOBILE_SELECT_NEWSUMMON:setImageSource("/images/custom/UI/summon_view_4")
12438 MOBILE_SELECT_NEWINFO:setText(name.. "\nEXP: 50%\n\nNext Rare:")
12439 --MOBILE_SELECT_NEWINFO:setText(name.. "\nEXP: 50%\nInvocar: Lv." ..Lv.. "\nTempo: 25 minutos.")
12440 RareID = 4
12441 else
12442 AtualStorage = modules.game_database.onKard(05, classSummon, atual, 05)
12443 MOBILE_SELECT_NEWSUMMON:setImageSource("/images/custom/UI/summon_view_4")
12444 MOBILE_SELECT_NEWINFO:setText(name.. "\nEXP: 60%\n\nNext Rare:")
12445 --MOBILE_SELECT_NEWINFO:setText(name.. "\nEXP: 60%\nInvocar: Lv." ..Lv.. "\nTempo: 30 minutos.")
12446 RareID = 5
12447 end
12448
12449
12450 MOBILE_SELECT_PROGRESS:setValue(AtualStorage, 0, RareMax)
12451 MOBILE_SELECT_PROGRESS:setTooltip(AtualStorage.. " / " ..RareMax)
12452 MOBILE_SELECT_PROGRESS:show()
12453 local sum_atual = modules.game_database.getInventory(10, 1)
12454 if sum_atual == img_id then
12455 MOBILE_SELECT_BT_EQUIP:hide()
12456 else
12457 MOBILE_SELECT_BT_EQUIP:show()
12458 MOBILE_SELECT_BT_EQUIP.onClick = function()
12459 local KARD_IMG = modules.game_interface.onMobileWindow(85)
12460 local KARD_NAM = modules.game_interface.onMobileWindow(93)
12461 local KARD_SUM = modules.game_interface.onMobileWindow(82)
12462
12463 modules.game_database.onEquipKard(00, KARD_SUM, KARD_NAM, classSummon, KARD_IMG, SUMMON_STAR, atual, checkStorage, EQUIPSUMPRO)
12464 g_game.talk(g_game.talk("!inventario 23 " ..classSummon.. " " ..atual))
12465
12466 MOBILE_EQUIP_BAR = modules.game_interface.onMobileWindow(16)
12467 MOBILE_SUMMOM_BAR = modules.game_interface.onMobileWindow(99)
12468
12469 MOBILE_SUMMOM_BAR:setVisible(false)
12470 MOBILE_EQUIP_BAR:setVisible(true)
12471 end
12472 end
12473 else
12474 MOBILE_SELECT_NEWIMG:setImageSource("/images/custom/UI/block")
12475 MOBILE_SELECT_NEWIMG:setImageRect("00 00 64 64")
12476 MOBILE_SELECT_NEWSUMMON:setImageSource("/images/custom/UI/infoInv")
12477 MOBILE_SELECT_NEWINFO:setText(name.. "\n\n".. tr("Kard bloqueado\nCompre no Shop"))
12478 MOBILE_SELECT_BT_EQUIP:hide()
12479 MOBILE_SELECT_PROGRESS:hide()
12480 end
12481 end
12482 end
12483 end
12484
12485 else
12486 AMULET:hide() HELMET:hide() BACKPACK:hide()
12487 GUN:hide() ARMOR:hide() GLOVE:hide()
12488 RING:hide() LEGS:hide() BOOTS:hide()
12489 CloseBackpack()
12490
12491 VOLTAR:show() g_effects.fadeIn(VOLTAR, 50)
12492 INFO:show() g_effects.fadeIn(INFO, 50)
12493 INFOBOX:show() g_effects.fadeIn(INFOBOX, 50)
12494 TXTSTAR:show() g_effects.fadeIn(TXTSTAR, 50)
12495 COMBOBOXSTAR:show() g_effects.fadeIn(COMBOBOXSTAR, 50)
12496 NEWSUMMON:show() g_effects.fadeIn(NEWSUMMON, 50)
12497 EQUIPSUM:show() g_effects.fadeIn(EQUIPSUM, 50)
12498 NEWSUMINFO:show() g_effects.fadeIn(NEWSUMINFO, 50)
12499 LASTSUM:show() g_effects.fadeIn(LASTSUM, 50)
12500 SUMCOUNT:show() g_effects.fadeIn(SUMCOUNT, 50)
12501 NEXTSUM:show() g_effects.fadeIn(NEXTSUM, 50)
12502
12503 if x == 0 or x == nil then
12504 g_game.talk(g_game.talk("!inventario 22 01"))
12505 COMBOBOXSTAR:setOption("Dragon", "zero")
12506 COMBOBOXSTAR.onOptionChange = onChangeSortType
12507 classSummon = 01
12508 end
12509
12510 SummonShow = 1
12511 atual = 0
12512 NEWSUMMONIMG:setImageSource("/images/custom/Monster/0")
12513 NEWSUMMON:setImageSource("/images/custom/UI/infoInv")
12514 NEWSUMINFO:setText(tr("Nenhum Kard\n selecionado"))
12515 NEXTSUM:enable()
12516 LASTSUM:disable()
12517 NEWSUMPRO:hide()
12518 SUMCOUNT:setText(atual.. " / " ..modules.game_database.onKard(00, classSummon))
12519 EQUIPSUM:hide()
12520
12521 local RareID = 0
12522 local max = modules.game_database.onKard(00, classSummon)
12523 NEXTSUM.onClick = function()
12524 if atual < max then
12525 atual = atual + 1
12526 LASTSUM:enable()
12527 SUMCOUNT:setText(atual.. " / " ..max)
12528 local checkStorage = modules.game_database.onKard(03, classSummon, atual)
12529 local name = modules.game_database.onKard(01, classSummon, atual)
12530 local img_id = modules.game_database.onKard(02, classSummon, atual)
12531 local Lv = modules.game_database.onKard(06, classSummon, atual)
12532 if checkStorage > 00 then
12533 NEWSUMMONIMG:setImageSource("/images/custom/Monster/" ..img_id)
12534 NEWSUMMONIMG:setImageRect(modules.game_database.onKard(04, classSummon, atual))
12535
12536 local RareMax = modules.game_database.onKard(05, classSummon, atual, 05)
12537 local AtualStorage = 0
12538 local RARE_01 = modules.game_database.onKard(05, classSummon, atual, 01)
12539 local RARE_02 = modules.game_database.onKard(05, classSummon, atual, 02)
12540 local RARE_03 = modules.game_database.onKard(05, classSummon, atual, 03)
12541 local RARE_04 = modules.game_database.onKard(05, classSummon, atual, 04)
12542 local RARE_05 = modules.game_database.onKard(05, classSummon, atual, 05)
12543
12544 if checkStorage < RARE_01 then
12545 AtualStorage = checkStorage
12546 RareMax = modules.game_database.onKard(05, classSummon, atual, 01)
12547 NEWSUMMON:setImageSource("/images/custom/UI/summon_view_0")
12548 NEWSUMINFO:setText(name.. "\nEXP: 10%\n\nNext Rare:")
12549 --NEWSUMINFO:setText(name.. "\nEXP: 10%\nInvocar: Lv." ..Lv.. "\nTempo: 05 minutos.")
12550 RareID = 0
12551 elseif checkStorage < (RARE_01 + RARE_02) then
12552 AtualStorage = checkStorage - RARE_01
12553 RareMax = modules.game_database.onKard(05, classSummon, atual, 02)
12554 NEWSUMMON:setImageSource("/images/custom/UI/summon_view_1")
12555 NEWSUMINFO:setText(name.. "\nEXP: 20%\n\nNext Rare:")
12556 --NEWSUMINFO:setText(name.. "\nEXP: 20%\nInvocar: Lv." ..Lv.. "\nTempo: 10 minutos.")
12557 RareID = 1
12558 elseif checkStorage < (RARE_01 + RARE_02 + RARE_03) then
12559 AtualStorage = checkStorage - (RARE_01 + RARE_02)
12560 RareMax = modules.game_database.onKard(05, classSummon, atual, 03)
12561 NEWSUMMON:setImageSource("/images/custom/UI/summon_view_2")
12562 NEWSUMINFO:setText(name.. "\nEXP: 30%\n\nNext Rare:")
12563 --NEWSUMINFO:setText(name.. "\nEXP: 30%\nInvocar: Lv." ..Lv.. "\nTempo: 15 minutos.")
12564 RareID = 2
12565 elseif checkStorage < (RARE_01 + RARE_02 + RARE_03 + RARE_04) then
12566 AtualStorage = checkStorage - (RARE_01 + RARE_02 + RARE_03)
12567 RareMax = modules.game_database.onKard(05, classSummon, atual, 04)
12568 NEWSUMMON:setImageSource("/images/custom/UI/summon_view_3")
12569 NEWSUMINFO:setText(name.. "\nEXP: 40%\n\nNext Rare:")
12570 --NEWSUMINFO:setText(name.. "\nEXP: 40%\nInvocar: Lv." ..Lv.. "\nTempo: 20 minutos.")
12571 RareID = 3
12572 elseif checkStorage < (RARE_01 + RARE_02 + RARE_03 + RARE_04 + RARE_05) then
12573 AtualStorage = checkStorage - (RARE_01 + RARE_02 + RARE_03 + RARE_04)
12574 RareMax = modules.game_database.onKard(05, classSummon, atual, 05)
12575 NEWSUMMON:setImageSource("/images/custom/UI/summon_view_4")
12576 NEWSUMINFO:setText(name.. "\nEXP: 50%\n\nNext Rare:")
12577 --NEWSUMINFO:setText(name.. "\nEXP: 50%\nInvocar: Lv." ..Lv.. "\nTempo: 25 minutos.")
12578 RareID = 4
12579 else
12580 AtualStorage = modules.game_database.onKard(05, classSummon, atual, 05)
12581 NEWSUMMON:setImageSource("/images/custom/UI/summon_view_4")
12582 NEWSUMINFO:setText(name.. "\nEXP: 60%\n\nNext Rare:")
12583 --NEWSUMINFO:setText(name.. "\nEXP: 60%\nInvocar: Lv." ..Lv.. "\nTempo: 30 minutos.")
12584 RareID = 5
12585 end
12586
12587 NEWSUMPRO:setValue(AtualStorage, 0, RareMax)
12588 NEWSUMPRO:setTooltip(AtualStorage.. " / " ..RareMax)
12589 NEWSUMPRO:show()
12590
12591 local sum_atual = modules.game_database.getInventory(10, 1)
12592 if sum_atual == img_id then
12593 EQUIPSUM:hide()
12594 else
12595 EQUIPSUM:show()
12596 EQUIPSUM.onClick = function()
12597 modules.game_database.onEquipKard(00, SUMMON, INFOBOX, classSummon, SUMMON_IMAGE, SUMMON_STAR, atual, checkStorage, EQUIPSUMPRO)
12598 g_game.talk(g_game.talk("!inventario 23 " ..classSummon.. " " ..atual))
12599 end
12600 end
12601 else
12602 NEWSUMMONIMG:setImageSource("/images/custom/UI/block")
12603 NEWSUMMONIMG:setImageRect("00 00 64 64")
12604 NEWSUMMON:setImageSource("/images/custom/UI/infoInv")
12605 NEWSUMINFO:setText(name.. "\n\n".. tr("Kard nao desbloqueado\nCompre no Shop"))
12606 EQUIPSUM:hide()
12607 NEWSUMPRO:hide()
12608 end
12609
12610 if atual == max then
12611 NEXTSUM:disable()
12612 end
12613 end
12614 end
12615 LASTSUM.onClick = function()
12616 if atual > 0 then
12617 atual = atual - 1
12618 SUMCOUNT:setText(atual.. " / " ..max)
12619 if atual == 0 then
12620 NEWSUMMONIMG:setImageSource("/images/custom/Monster/0")
12621 NEWSUMMON:setImageSource("/images/custom/UI/infoInv")
12622 NEWSUMINFO:setText(tr("Nenhum Kard\n selecionado"))
12623 LASTSUM:disable()
12624 EQUIPSUM:hide()
12625 NEWSUMPRO:hide()
12626 else
12627 NEXTSUM:enable()
12628 local checkStorage = modules.game_database.onKard(03, classSummon, atual)
12629 local name = modules.game_database.onKard(01, classSummon, atual)
12630 local img_id = modules.game_database.onKard(02, classSummon, atual)
12631 local Lv = modules.game_database.onKard(06, classSummon, atual)
12632 if checkStorage > 00 then
12633 NEWSUMMONIMG:setImageSource("/images/custom/Monster/" ..img_id)
12634 NEWSUMMONIMG:setImageRect(modules.game_database.onKard(04, classSummon, atual))
12635
12636 local RareMax = modules.game_database.onKard(05, classSummon, atual, 05)
12637 local AtualStorage = 0
12638 local RARE_01 = modules.game_database.onKard(05, classSummon, atual, 01)
12639 local RARE_02 = modules.game_database.onKard(05, classSummon, atual, 02)
12640 local RARE_03 = modules.game_database.onKard(05, classSummon, atual, 03)
12641 local RARE_04 = modules.game_database.onKard(05, classSummon, atual, 04)
12642 local RARE_05 = modules.game_database.onKard(05, classSummon, atual, 05)
12643
12644 if checkStorage < RARE_01 then
12645 AtualStorage = checkStorage
12646 RareMax = modules.game_database.onKard(05, classSummon, atual, 01)
12647 NEWSUMMON:setImageSource("/images/custom/UI/summon_view_0")
12648 NEWSUMINFO:setText(name.. "\nEXP: 10%\n\nNext Rare:")
12649 --NEWSUMINFO:setText(name.. "\nEXP: 10%\nInvocar: Lv." ..Lv.. "\nTempo: 05 minutos.")
12650 RareID = 0
12651 elseif checkStorage < (RARE_01 + RARE_02) then
12652 AtualStorage = checkStorage - RARE_01
12653 RareMax = modules.game_database.onKard(05, classSummon, atual, 02)
12654 NEWSUMMON:setImageSource("/images/custom/UI/summon_view_1")
12655 NEWSUMINFO:setText(name.. "\nEXP: 20%\n\nNext Rare:")
12656 --NEWSUMINFO:setText(name.. "\nEXP: 20%\nInvocar: Lv." ..Lv.. "\nTempo: 10 minutos.")
12657 RareID = 1
12658 elseif checkStorage < (RARE_01 + RARE_02 + RARE_03) then
12659 AtualStorage = checkStorage - (RARE_01 + RARE_02)
12660 RareMax = modules.game_database.onKard(05, classSummon, atual, 03)
12661 NEWSUMMON:setImageSource("/images/custom/UI/summon_view_2")
12662 NEWSUMINFO:setText(name.. "\nEXP: 30%\n\nNext Rare:")
12663 --NEWSUMINFO:setText(name.. "\nEXP: 30%\nInvocar: Lv." ..Lv.. "\nTempo: 15 minutos.")
12664 RareID = 2
12665 elseif checkStorage < (RARE_01 + RARE_02 + RARE_03 + RARE_04) then
12666 AtualStorage = checkStorage - (RARE_01 + RARE_02 + RARE_03)
12667 RareMax = modules.game_database.onKard(05, classSummon, atual, 04)
12668 NEWSUMMON:setImageSource("/images/custom/UI/summon_view_3")
12669 NEWSUMINFO:setText(name.. "\nEXP: 40%\n\nNext Rare:")
12670 --NEWSUMINFO:setText(name.. "\nEXP: 40%\nInvocar: Lv." ..Lv.. "\nTempo: 20 minutos.")
12671 RareID = 3
12672 elseif checkStorage < (RARE_01 + RARE_02 + RARE_03 + RARE_04 + RARE_05) then
12673 AtualStorage = checkStorage - (RARE_01 + RARE_02 + RARE_03 + RARE_04)
12674 RareMax = modules.game_database.onKard(05, classSummon, atual, 05)
12675 NEWSUMMON:setImageSource("/images/custom/UI/summon_view_4")
12676 NEWSUMINFO:setText(name.. "\nEXP: 50%\n\nNext Rare:")
12677 --NEWSUMINFO:setText(name.. "\nEXP: 50%\nInvocar: Lv." ..Lv.. "\nTempo: 25 minutos.")
12678 RareID = 4
12679 else
12680 AtualStorage = modules.game_database.onKard(05, classSummon, atual, 05)
12681 NEWSUMMON:setImageSource("/images/custom/UI/summon_view_4")
12682 NEWSUMINFO:setText(name.. "\nEXP: 60%\n\nNext Rare:")
12683 --NEWSUMINFO:setText(name.. "\nEXP: 60%\nInvocar: Lv." ..Lv.. "\nTempo: 30 minutos.")
12684 RareID = 5
12685 end
12686
12687
12688 NEWSUMPRO:setValue(AtualStorage, 0, RareMax)
12689 NEWSUMPRO:setTooltip(AtualStorage.. " / " ..RareMax)
12690 NEWSUMPRO:show()
12691 local sum_atual = modules.game_database.getInventory(10, 1)
12692 if sum_atual == img_id then
12693 EQUIPSUM:hide()
12694 else
12695 EQUIPSUM:show()
12696 EQUIPSUM.onClick = function()
12697 modules.game_database.onEquipKard(00, SUMMON, INFOBOX, classSummon, SUMMON_IMAGE, SUMMON_STAR, atual, checkStorage, EQUIPSUMPRO)
12698 g_game.talk(g_game.talk("!inventario 23 " ..classSummon.. " " ..atual))
12699 end
12700 end
12701 else
12702 NEWSUMMONIMG:setImageSource("/images/custom/UI/block")
12703 NEWSUMMONIMG:setImageRect("00 00 64 64")
12704 NEWSUMMON:setImageSource("/images/custom/UI/infoInv")
12705 NEWSUMINFO:setText(name.. "\n\n".. tr("Kard nao desbloqueado\nCompre no Shop"))
12706 EQUIPSUM:hide()
12707 NEWSUMPRO:hide()
12708 end
12709 end
12710 end
12711 end
12712 VOLTAR.onClick = function() onSummonHide() end
12713 end
12714end
12715function onSummonHide()
12716 VOLTAR:hide() TXTSTAR:hide()
12717 INFO:hide() COMBOBOXSTAR:hide()
12718 INFOBOX:hide() NEWSUMMON:hide()
12719 NEWSUMINFO:hide() EQUIPSUM:hide()
12720 LASTSUM:hide() SUMCOUNT:hide()
12721 NEXTSUM:hide()
12722
12723 AMULET:show() g_effects.fadeIn(AMULET, 50)
12724 HELMET:show() g_effects.fadeIn(HELMET, 50)
12725 BACKPACK:show() g_effects.fadeIn(BACKPACK, 50)
12726 GUN:show() g_effects.fadeIn(GUN, 50)
12727 ARMOR:show() g_effects.fadeIn(ARMOR, 50)
12728 GLOVE:show() g_effects.fadeIn(GLOVE, 50)
12729 RING:show() g_effects.fadeIn(RING, 50)
12730 LEGS:show() g_effects.fadeIn(LEGS, 50)
12731 BOOTS:show() g_effects.fadeIn(BOOTS, 50)
12732 SummonShow = 0
12733end
12734
12735function onShowHub()
12736 local id = modules.game_database.getInventory(4, 1)
12737
12738 Spell01:hide() Sup01:hide()
12739 Spell02:hide() Sup02:hide() healthBar:show()
12740 Spell03:hide() Sup03:hide() SupQnt:hide() ammohub:hide() on_time:hide()
12741
12742 onPositionHub()
12743
12744 Spell01:setText("")
12745 Spell01:setImageColor("white")
12746 Spell02:setText("")
12747 Spell02:setImageColor("white")
12748 Spell03:setText("")
12749 Spell03:setImageColor("white")
12750 reloadSpellBar()
12751
12752 if id > 0 then
12753 itemView:setIcon("/images/custom/Items/" ..id)
12754 itemView:setImageSource("/images/custom/UI/view_item_" ..modules.game_database.getInventory(4, 2))
12755 else
12756 itemView:setIcon("/images/custom/Items/0")
12757 itemView:setImageSource("/images/custom/UI/view_item_-1")
12758 end
12759
12760 MenuView.onClick = function()
12761 MenuView:disable()
12762 if Novato == 02 then
12763 if g_settings.getString('fixeMenu') == "false" then
12764 modules.game_alert.onShowTutor(02)
12765 Novato = 3
12766 end
12767 end
12768 g_game.talk(g_game.talk("!inventario 28")) -- Gold Coins
12769 g_game.talk(g_game.talk("!inventario 21")) -- Aparencia Backpack
12770 OpenInventario()
12771 INVENTARIO_BUTTON:setImageSource("/images/custom/UI/menu_select")
12772 QUEST_BUTTON:setImageSource("/images/custom/UI/menu_option")
12773 STATUS_BUTTON:setImageSource("/images/custom/UI/menu_option")
12774 TASK_BUTTON:setImageSource("/images/custom/UI/menu_option")
12775 SHOP_BUTTON:setImageSource("/images/custom/UI/menu_option")
12776
12777 onHiderWindows()
12778 INVENTARIO_WINDOW:show()
12779 ReloadButtonMenu()
12780 end
12781 onTooltipInv()
12782 --g_game.talk(g_game.talk("!inventario 25")) -- Quests
12783 modules.game_minimap.onMiniMapaShow()
12784 hubBackground:show()
12785 g_effects.fadeIn(hubBackground, 250)
12786
12787 HudAnimated()
12788end
12789function onHideHub()
12790 Spell01:hide() Sup01:hide()
12791 Spell02:hide() Sup02:hide() healthBar:hide()
12792 Spell03:hide() Sup03:hide() SupQnt:hide() ammohub:hide() on_time:hide()
12793end
12794
12795function onItemViewMobile(slot, bagid)
12796 Nome = itemViewMobile:recursiveGetChildById('itemName')
12797 Desc = itemViewMobile:recursiveGetChildById('itemDesc')
12798 Price = itemViewMobile:recursiveGetChildById('itemPrice')
12799 Star = itemViewMobile:recursiveGetChildById('itemStar')
12800 Level = itemViewMobile:recursiveGetChildById('itemLevel')
12801 DefName = itemViewMobile:recursiveGetChildById('DefLabel')
12802 DEF = itemViewMobile:recursiveGetChildById('DEFValue')
12803 EsqName = itemViewMobile:recursiveGetChildById('EsqLabel')
12804 ESQ = itemViewMobile:recursiveGetChildById('ESQValue')
12805 MagName = itemViewMobile:recursiveGetChildById('MagLabel')
12806 MAG = itemViewMobile:recursiveGetChildById('MAGValue')
12807 ATR1 = itemViewMobile:recursiveGetChildById('ATR1')
12808 ATR1Name = itemViewMobile:recursiveGetChildById('ATR1Label')
12809 ATR2 = itemViewMobile:recursiveGetChildById('ATR2')
12810 ATR2Name = itemViewMobile:recursiveGetChildById('ATR2Label')
12811 MINIMO = itemViewMobile:recursiveGetChildById('MinValue')
12812 MinName = itemViewMobile:recursiveGetChildById('MinLabel')
12813 MAXIMO = itemViewMobile:recursiveGetChildById('MaxValue')
12814 MaxName = itemViewMobile:recursiveGetChildById('MaxLabel')
12815 iconType = itemViewMobile:recursiveGetChildById('IconType')
12816 TypeDMG = itemViewMobile:recursiveGetChildById('TypeDMG')
12817 SKILL01 = itemViewMobile:recursiveGetChildById('SKILL01')
12818 SKILL02 = itemViewMobile:recursiveGetChildById('SKILL02')
12819 SKILL03 = itemViewMobile:recursiveGetChildById('SKILL03')
12820 GIF = itemViewMobile:recursiveGetChildById('skillGIF')
12821 ELEM = itemViewMobile:recursiveGetChildById('elemSkill')
12822 SkillName = itemViewMobile:recursiveGetChildById('SkillName')
12823 SkillDMG = itemViewMobile:recursiveGetChildById('SkillDMG')
12824 SkillTarget = itemViewMobile:recursiveGetChildById('SkillTarget')
12825 SkillCooldown = itemViewMobile:recursiveGetChildById('SkillCooldown')
12826 Rary = itemViewMobile:recursiveGetChildById('itemRary')
12827 CompDefName = itemViewMobile:recursiveGetChildById('CompararDef')
12828 CompEsqName = itemViewMobile:recursiveGetChildById('CompararEsq')
12829 CompMagName = itemViewMobile:recursiveGetChildById('CompararMag')
12830 Lock = itemViewMobile:recursiveGetChildById('itemLock')
12831 PassiveI = itemViewMobile:recursiveGetChildById('PassiveImg')
12832 PassiveD = itemViewMobile:recursiveGetChildById('PassiveDesc')
12833
12834 Nome:hide() Desc:hide() Price:hide() Star:hide() Level:hide()
12835 DefName:hide() DEF:hide() EsqName:hide() ESQ:hide() MagName:hide()
12836 MAG:hide() ATR1:hide() ATR1Name:hide() ATR2:hide() ATR2Name:hide()
12837 MINIMO:hide() MinName:hide() MAXIMO:hide() MaxName:hide() iconType:hide()
12838 TypeDMG:hide() SKILL01:hide() SKILL02:hide() SKILL03:hide() GIF:hide()
12839 ELEM:hide() SkillName:hide() SkillDMG:hide() SkillTarget:hide() SkillCooldown:hide()
12840 Rary:hide() CompDefName:hide() CompEsqName:hide() CompMagName:hide() Lock:hide()
12841 PassiveI:hide() PassiveD:hide()
12842
12843 local itemCheck = false
12844 if slot == 01 or slot == 03 or slot == 00 or slot == 07 or slot == 11 then
12845 if bagid > 00 then
12846 if modules.game_database.getItemBagId(bagid) > 0 then
12847 itemCheck = true
12848 end
12849 else
12850 if modules.game_database.getInventory(slot, 1) > 0 then
12851 itemCheck = true
12852 end
12853 end
12854 if itemCheck then
12855 local id = 00
12856 local StarItem = 00
12857 local RareItem = 00
12858 local LevelItem = 00
12859 if bagid > 00 then
12860 if modules.game_database.getItemBagId(bagid) > 0 then
12861 id = modules.game_database.getPosBackpack(bagid, 1)
12862 StarItem = modules.game_database.getPosBackpack(bagid, 3)
12863 RareItem = modules.game_database.getPosBackpack(bagid, 2)
12864 LevelItem = modules.game_database.getPosBackpack(bagid, 5)
12865 end
12866 else
12867 if modules.game_database.getInventory(slot, 1) > 0 then
12868 id = modules.game_database.getInventory(slot, 1)
12869 StarItem = modules.game_database.getInventory(slot, 3)
12870 RareItem = modules.game_database.getInventory(slot, 2)
12871 LevelItem = modules.game_database.getInventory(slot, 5)
12872 end
12873 end
12874 local ChanceMode = {
12875 [00] = "Baixa";
12876 [01] = "Media";
12877 [02] = "Alta";
12878 [03] = "Muito Alta";
12879 [04] = "Altissima";
12880 }
12881
12882 itemViewMobile:resize(185, 179)
12883 itemViewMobile:setImageSource("/images/custom/UI/itemInfo")
12884 Nome:show()
12885 if LevelItem > 0 then
12886 Nome:setText(tr(modules.game_database.getItemInfo(id, 1)).. " +" ..LevelItem)
12887 else
12888 Nome:setText(tr(modules.game_database.getItemInfo(id, 1)))
12889 end
12890 Nome:setColor(modules.game_database.getRaridade(01, RareItem))
12891
12892 Desc:show()
12893 if StarItem < 0 then StarItem = 0 end
12894 if RareItem < 0 then RareItem = 0 end
12895 if LevelItem < 0 then LevelItem = 0 end
12896 if id >= 1000 and id <= 1026 then
12897 Desc:setText(tr(modules.game_database.getItemInfo(id, 8)).. "\n\n(".. tr("Chance").. ": "..tr(ChanceMode[RareItem]).." | " ..(LevelItem + (StarItem * 10) + 5).. " ".. tr("seg").. ".)")
12898 else
12899 Desc:setText(tr(modules.game_database.getItemInfo(id, 8)))
12900 end
12901 Price:show()
12902 Price:setText(modules.game_database.getItemInfo(id, 9))
12903 Rary:setColor(modules.game_database.getRaridade(01, RareItem))
12904 Rary:setText(tr(modules.game_database.getRaridade(00, RareItem)))
12905
12906 Level:show()
12907 Level:addAnchor(AnchorTop, 'itemStar', AnchorBottom)
12908 Level:addAnchor(AnchorLeft, 'parent', AnchorRight)
12909 Level:setMarginTop(15)
12910 Level:setMarginLeft(1)
12911
12912 Star:show()
12913 Star:addAnchor(AnchorTop, 'itemDesc', AnchorBottom)
12914 Star:addAnchor(AnchorLeft, 'parent', AnchorLeft)
12915 Star:setMarginTop(10)
12916 Star:setMarginLeft(77)
12917 if StarItem > 0 then
12918 Star:setImageSource("/images/custom/UI/star_" ..StarItem)
12919 else
12920 Star:setImageSource("/images/custom/UI/star_0")
12921 end
12922
12923 Rary:show()
12924 itemViewMobile:setParent(gameRootPanel)
12925 itemViewMobile:addAnchor(AnchorTop, 'gameMapPanel', AnchorTop)
12926 itemViewMobile:addAnchor(AnchorRight, 'gameMapPanel', AnchorRight)
12927 if g_app.isMobile() then
12928 itemViewMobile:setMarginTop(70)
12929 itemViewMobile:setMarginRight(250)
12930 else
12931 itemViewMobile:setMarginTop(200)
12932 itemViewMobile:setMarginRight(325)
12933 end
12934 itemViewMobile:show()
12935 end
12936 elseif slot == 02 or slot == 05 or slot == 06 or slot == 08 or slot == 09 then
12937 if bagid > 00 then
12938 if modules.game_database.getItemBagId(bagid) > 0 then
12939 itemCheck = true
12940 end
12941 else
12942 if modules.game_database.getInventory(slot, 1) > 0 then
12943 itemCheck = true
12944 end
12945 end
12946 if itemCheck then
12947 local id = 00
12948 local StarItem = 00
12949 local LevelItem = 00
12950 local Atrib1 = 00
12951 local Atrib2 = 00
12952 local RareItem = 00
12953 if bagid > 00 then
12954 if modules.game_database.getItemBagId(bagid) > 0 then
12955 id = modules.game_database.getPosBackpack(bagid, 1)
12956 StarItem = modules.game_database.getPosBackpack(bagid, 3)
12957 LevelItem = modules.game_database.getPosBackpack(bagid, 5)
12958 Atrib1 = modules.game_database.getPosBackpack(bagid, 6)
12959 Atrib2 = modules.game_database.getPosBackpack(bagid, 7)
12960 RareItem = modules.game_database.getPosBackpack(bagid, 2)
12961 end
12962 else
12963 if modules.game_database.getInventory(slot, 1) > 0 then
12964 id = modules.game_database.getInventory(slot, 1)
12965 StarItem = modules.game_database.getInventory(slot, 3)
12966 LevelItem = modules.game_database.getInventory(slot, 5)
12967 Atrib1 = modules.game_database.getInventory(slot, 6)
12968 Atrib2 = modules.game_database.getInventory(slot, 7)
12969 RareItem = modules.game_database.getInventory(slot, 2)
12970 end
12971 end
12972 local ProtectElement = modules.game_database.getItemInfo(id, 18)
12973
12974 itemViewMobile:resize(185, 270)
12975 itemViewMobile:setImageSource("/images/custom/UI/equipInfo")
12976 Nome:show()
12977 Nome:setColor(modules.game_database.getRaridade(01, RareItem))
12978 if LevelItem > 0 then
12979 Nome:setText(tr(modules.game_database.getItemInfo(id, 1)).. " +" ..LevelItem)
12980 else
12981 Nome:setText(tr(modules.game_database.getItemInfo(id, 1)))
12982 end
12983 Price:show()
12984 Price:setText(modules.game_database.getItemInfo(id, 9))
12985 DEF:show()
12986 DEF:setText(modules.game_database.onArmor(id, LevelItem, StarItem, "DEF", RareItem))
12987 ESQ:show()
12988 ESQ:setText(modules.game_database.onArmor(id, LevelItem, StarItem, "ESQ", RareItem))
12989 MAG:show()
12990 local ElemColor = {
12991 ["FIRE"] = {COLOR = '#e64747'};
12992 ["ICE"] = {COLOR = '#55d8f2'};
12993 ["ENERGY"] = {COLOR = '#d555f2'};
12994 ["DEATH"] = {COLOR = '#7d7c7d'};
12995 ["EARTH"] = {COLOR = 'green'};
12996 }
12997 MagName:setText(ProtectElement)
12998 MagName:setColor(ElemColor[ProtectElement].COLOR)
12999 MAG:setColor(ElemColor[ProtectElement].COLOR)
13000 MAG:setText(modules.game_database.onArmor(id, LevelItem, StarItem, "MAG", RareItem))
13001 Rary:setColor(modules.game_database.getRaridade(01, RareItem))
13002 Rary:setText(modules.game_database.getRaridade(00, RareItem))
13003
13004 local SlotItem = modules.game_database.getItemInfo(id, 2)
13005 local InventoryItemID = modules.game_database.getInventory(SlotItem, 1)
13006 if InventoryItemID > 0 then
13007 local INV_DEF = modules.game_database.onArmor(InventoryItemID, modules.game_database.getInventory(SlotItem, 5), modules.game_database.getInventory(SlotItem, 3), "DEF", modules.game_database.getInventory(SlotItem, 2))
13008 local BAG_DEF = modules.game_database.onArmor(id, LevelItem, StarItem, "DEF", RareItem)
13009 local DIFE_DEF = BAG_DEF - INV_DEF
13010 if DIFE_DEF < 0 then
13011 CompDefName:setColor('#AC0505')
13012 CompDefName:setText(DIFE_DEF)
13013 CompDefName:show()
13014 elseif DIFE_DEF > 0 then
13015 CompDefName:setColor('#05AC5E')
13016 CompDefName:setText("+" ..DIFE_DEF)
13017 CompDefName:show()
13018 end
13019
13020 local INV_ESQ = modules.game_database.onArmor(InventoryItemID, modules.game_database.getInventory(SlotItem, 5), modules.game_database.getInventory(SlotItem, 3), "ESQ", modules.game_database.getInventory(SlotItem, 2))
13021 local BAG_ESQ = modules.game_database.onArmor(id, LevelItem, StarItem, "ESQ", RareItem)
13022 local DIFE_ESQ = BAG_ESQ - INV_ESQ
13023 if DIFE_ESQ < 0 then
13024 CompEsqName:setColor('#AC0505')
13025 CompEsqName:setText(DIFE_ESQ)
13026 CompEsqName:show()
13027 elseif DIFE_ESQ > 0 then
13028 CompEsqName:setColor('#05AC5E')
13029 CompEsqName:setText("+" ..DIFE_ESQ)
13030 CompEsqName:show()
13031 end
13032
13033 local INV_MAG = modules.game_database.onArmor(InventoryItemID, modules.game_database.getInventory(SlotItem, 5), modules.game_database.getInventory(SlotItem, 3), "MAG", modules.game_database.getInventory(SlotItem, 2))
13034 local BAG_MAG = modules.game_database.onArmor(id, LevelItem, StarItem, "MAG", RareItem)
13035 local DIFE_MAG = BAG_MAG - INV_MAG
13036 if DIFE_MAG < 0 then
13037 CompMagName:setColor('#AC0505')
13038 CompMagName:setText(DIFE_MAG)
13039 CompMagName:show()
13040 elseif DIFE_MAG > 0 then
13041 CompMagName:setColor('#05AC5E')
13042 CompMagName:setText("+" ..DIFE_MAG)
13043 CompMagName:show()
13044 end
13045 end
13046
13047 if Atrib1 > 0 then
13048 local desc = modules.game_database.getAtrInfo(Atrib1, 07)
13049 local text = modules.game_database.getAtrInfo(Atrib1, 02)
13050 local percent = modules.game_database.getAtrInfo(Atrib1, 01)
13051 local txtper = modules.game_database.getAtrInfo(Atrib1, 08)
13052 ATR1:setImageSource("/images/custom/Spells/atr_" ..Atrib1)
13053 ATR1Name:setText(tr(desc).. " (" ..tr(text).. " " ..percent.."" ..txtper..")")
13054 else
13055 ATR1:setImageSource("/images/custom/Spells/atr_0")
13056 ATR1Name:setText(tr("<vazio>"))
13057 end
13058 if Atrib2 > 0 then
13059 local desc = modules.game_database.getAtrInfo(Atrib2, 07)
13060 local text = modules.game_database.getAtrInfo(Atrib2, 02)
13061 local percent = modules.game_database.getAtrInfo(Atrib2, 01)
13062 local txtper = modules.game_database.getAtrInfo(Atrib2, 08)
13063 ATR2:setImageSource("/images/custom/Spells/atr_" ..Atrib2)
13064 ATR2Name:setText(tr(desc).. " (" ..tr(text).. " " ..percent.."" ..txtper..")")
13065 else
13066 ATR2:setImageSource("/images/custom/Spells/atr_0")
13067 ATR2Name:setText(tr("<vazio>"))
13068 end
13069
13070 Rary:show()
13071 Desc:hide()
13072 DefName:show()
13073 EsqName:show()
13074 MagName:show()
13075 ATR1:show()
13076 ATR1Name:show()
13077 ATR2:show()
13078 ATR2Name:show()
13079 MagName:show()
13080
13081 Star:show()
13082 Star:addAnchor(AnchorTop, 'ESQValue', AnchorBottom)
13083 Star:addAnchor(AnchorLeft, 'DEFValue', AnchorRight)
13084 Star:setMarginTop(10)
13085 Star:setMarginLeft(20)
13086 if StarItem > 0 then
13087 Star:setImageSource("/images/custom/UI/star_" ..StarItem)
13088 else
13089 Star:setImageSource("/images/custom/UI/star_0")
13090 end
13091
13092 local localPlayer = g_game.getLocalPlayer()
13093 if LevelItem < 0 then LevelItem = 0 end
13094 if StarItem < 0 then StarItem = 0 end
13095 local itemRecLevel = (modules.game_database.getItemInfo(id, 3) + LevelItem + (StarItem * 10)) * 2
13096
13097 if localPlayer:getLevel() >= itemRecLevel then
13098 Level:setBackgroundColor('#05AC5E')
13099 else
13100 Level:setBackgroundColor('#AC0505')
13101 end
13102 Level:setText(tr('NIVEL REQUERIDO: LV.').. ' ' ..itemRecLevel)
13103 Level:show()
13104 Level:addAnchor(AnchorTop, 'ATR2Label', AnchorBottom)
13105 Level:addAnchor(AnchorLeft, 'parent', AnchorLeft)
13106 Level:setMarginTop(17)
13107 Level:setMarginLeft(0)
13108
13109 itemViewMobile:setParent(gameRootPanel)
13110 itemViewMobile:addAnchor(AnchorTop, 'gameMapPanel', AnchorTop)
13111 itemViewMobile:addAnchor(AnchorRight, 'gameMapPanel', AnchorRight)
13112 if g_app.isMobile() then
13113 itemViewMobile:setMarginTop(70)
13114 itemViewMobile:setMarginRight(250)
13115 else
13116 itemViewMobile:setMarginTop(200)
13117 itemViewMobile:setMarginRight(325)
13118 end
13119 itemViewMobile:show()
13120 end
13121 elseif slot == 04 then
13122 if bagid > 00 then
13123 if modules.game_database.getItemBagId(bagid) > 0 then
13124 itemCheck = true
13125 end
13126 else
13127 if modules.game_database.getInventory(slot, 1) > 0 then
13128 itemCheck = true
13129 end
13130 end
13131 if itemCheck then
13132 local id = 00
13133 local Slot1 = 00
13134 local Slot2 = 00
13135 local Slot3 = 00
13136 local LevelItem = 00
13137 local StarItem = 00
13138 local RareItem = 00
13139 local locked = 00
13140 local Bullet = 00
13141 if bagid > 00 then
13142 if modules.game_database.getItemBagId(bagid) > 0 then
13143 id = modules.game_database.getPosBackpack(bagid, 1)
13144 Slot1 = modules.game_database.getPosBackpack(bagid, 4)
13145 Slot2 = modules.game_database.getPosBackpack(bagid, 5)
13146 Slot3 = modules.game_database.getPosBackpack(bagid, 6)
13147 LevelItem = modules.game_database.getPosBackpack(bagid, 7)
13148 StarItem = modules.game_database.getPosBackpack(bagid, 3)
13149 RareItem = modules.game_database.getPosBackpack(bagid, 2)
13150 locked = modules.game_database.getPosBackpack(bagid, 9)
13151 Bullet = modules.game_database.getPosBackpack(bagid, 10)
13152 end
13153 else
13154 if modules.game_database.getInventory(slot, 1) > 0 then
13155 id = modules.game_database.getInventory(slot, 1)
13156 Slot1 = modules.game_database.getInventory(slot, 4)
13157 Slot2 = modules.game_database.getInventory(slot, 5)
13158 Slot3 = modules.game_database.getInventory(slot, 6)
13159 LevelItem = modules.game_database.getInventory(slot, 7)
13160 StarItem = modules.game_database.getInventory(slot, 3)
13161 RareItem = modules.game_database.getInventory(slot, 2)
13162 locked = modules.game_database.getInventory(slot, 9)
13163 Bullet = modules.game_database.getInventory(slot, 10)
13164 end
13165 end
13166
13167 itemViewMobile:resize(185, 270)
13168 itemViewMobile:setImageSource("/images/custom/UI/equipInfo")
13169 Nome:show()
13170 Nome:setColor(modules.game_database.getRaridade(01, RareItem))
13171 if LevelItem > 0 then
13172 Nome:setText(tr(modules.game_database.getItemInfo(id, 1)).. " +" ..LevelItem)
13173 else
13174 Nome:setText(tr(modules.game_database.getItemInfo(id, 1)))
13175 end
13176 MINIMO:show()
13177 MINIMO:setText(modules.game_database.onDamage(id, LevelItem, StarItem, "Min", RareItem))
13178 MAXIMO:show()
13179 MAXIMO:setText(modules.game_database.onDamage(id, LevelItem, StarItem, "Max", RareItem))
13180 SKILL01:show()
13181 SKILL02:show()
13182 SKILL03:show()
13183
13184 if Bullet < 10 then
13185 TypeDMG:setText('00' ..Bullet)
13186 elseif Bullet >= 10 and Bullet <= 99 then
13187 TypeDMG:setText('0' ..Bullet)
13188 else
13189 TypeDMG:setText(Bullet)
13190 end
13191 if Bullet < 01 then
13192 TypeDMG:setColor('red')
13193 TypeDMG:setText('EMPTY')
13194 else
13195 TypeDMG:setColor('white')
13196 end
13197 if Slot1 ~= nil then
13198 if Slot1 > 0 then
13199 SKILL01:setTooltip("@SKILL " ..Slot1.. " -- 0")
13200 SKILL01:setImageSource("/images/custom/Spells/skill_" ..Slot1)
13201 SKILL01:setOpacity("1.0")
13202 else
13203 SKILL01:setTooltip("")
13204 if RareItem > 0 then
13205 SKILL01:setImageSource("/images/custom/UI/insert_skill")
13206 SKILL01:setOpacity("1.0")
13207 else
13208 SKILL01:setImageSource("/images/custom/UI/lock_skill")
13209 SKILL01:setOpacity("0.4")
13210 end
13211 end
13212 else
13213 SKILL01:setImageSource("/images/custom/UI/insert_skill")
13214 end
13215 if Slot2 ~= nil then
13216 if Slot2 > 0 then
13217 SKILL02:setTooltip("@SKILL " ..Slot2.. " -- 0")
13218 SKILL02:setImageSource("/images/custom/Spells/skill_" ..Slot2)
13219 SKILL02:setOpacity("1.0")
13220 else
13221 SKILL02:setTooltip("")
13222 if RareItem > 1 then
13223 SKILL02:setImageSource("/images/custom/UI/insert_skill")
13224 SKILL02:setOpacity("1.0")
13225 else
13226 SKILL02:setImageSource("/images/custom/UI/lock_skill")
13227 SKILL02:setOpacity("0.4")
13228 end
13229 end
13230 else
13231 SKILL01:setImageSource("/images/custom/UI/insert_skill")
13232 end
13233 if Slot3 ~= nil then
13234 if Slot3 > 0 then
13235 SKILL03:setTooltip("@SKILL " ..Slot3.. " -- 0")
13236 SKILL03:setImageSource("/images/custom/Spells/skill_" ..Slot3)
13237 SKILL03:setOpacity("1.0")
13238 else
13239 SKILL03:setTooltip("")
13240 if RareItem > 2 then
13241 SKILL03:setImageSource("/images/custom/UI/insert_skill")
13242 SKILL03:setOpacity("1.0")
13243 else
13244 SKILL03:setImageSource("/images/custom/UI/lock_skill")
13245 SKILL03:setOpacity("0.4")
13246 end
13247 end
13248 else
13249 SKILL01:setImageSource("/images/custom/UI/insert_skill")
13250 end
13251
13252 local SlotItem = modules.game_database.getItemInfo(id, 2)
13253 local InventoryItemID = modules.game_database.getInventory(SlotItem, 1)
13254 if InventoryItemID > 0 then
13255 local INV_MIN = modules.game_database.onDamage(InventoryItemID, modules.game_database.getInventory(SlotItem, 7), modules.game_database.getInventory(SlotItem, 3), "Min", modules.game_database.getInventory(SlotItem, 2))
13256 local BAG_MIN = modules.game_database.onDamage(id, LevelItem, StarItem, "Min", RareItem)
13257 local DIFE_MIN = BAG_MIN - INV_MIN
13258 if DIFE_MIN < 0 then
13259 CompDefName:setColor('#AC0505')
13260 CompDefName:setText(DIFE_MIN)
13261 CompDefName:show()
13262 elseif DIFE_MIN > 0 then
13263 CompDefName:setColor('#05AC5E')
13264 CompDefName:setText("+" ..DIFE_MIN)
13265 CompDefName:show()
13266 end
13267
13268 local INV_MAX = modules.game_database.onDamage(InventoryItemID, modules.game_database.getInventory(SlotItem, 7), modules.game_database.getInventory(SlotItem, 3), "Max", modules.game_database.getInventory(SlotItem, 2))
13269 local BAG_MAX = modules.game_database.onDamage(id, LevelItem, StarItem, "Max", RareItem)
13270 local DIFE_MAX = BAG_MAX - INV_MAX
13271 if DIFE_MAX < 0 then
13272 CompMagName:setColor('#AC0505')
13273 CompMagName:setText(DIFE_MAX)
13274 CompMagName:show()
13275 elseif DIFE_MAX > 0 then
13276 CompMagName:setColor('#05AC5E')
13277 CompMagName:setText("+" ..DIFE_MAX)
13278 CompMagName:show()
13279 end
13280 end
13281
13282 Star:show()
13283 Star:addAnchor(AnchorTop, 'TypeDMG', AnchorBottom)
13284 Star:addAnchor(AnchorLeft, 'MinLabel', AnchorRight)
13285 Star:setMarginTop(02)
13286 Star:setMarginLeft(15)
13287 if StarItem > 0 then
13288 Star:setImageSource("/images/custom/UI/star_" ..StarItem)
13289 else
13290 Star:setImageSource("/images/custom/UI/star_0")
13291 end
13292
13293 local localPlayer = g_game.getLocalPlayer()
13294 local GUN_BASE_LEVEL = modules.game_database.getItemInfo(id, 19)
13295 local LEVEL_FOR_RARE = 05
13296 local LEVEL_FOR_LEVEL = 04
13297 if RareItem < 0 then RareItem = 0 end
13298 if LevelItem < 0 then LevelItem = 0 end
13299 if StarItem < 0 then StarItem = 0 end
13300
13301 REQUISITO_LEVEL = GUN_BASE_LEVEL + (RareItem * LEVEL_FOR_RARE) + (LevelItem * LEVEL_FOR_LEVEL) + ((StarItem * 10) * LEVEL_FOR_LEVEL)
13302 if localPlayer:getLevel() >= REQUISITO_LEVEL then
13303 Level:setBackgroundColor('#05AC5E')
13304 else
13305 Level:setBackgroundColor('#AC0505')
13306 end
13307 Level:setText(tr('NIVEL REQUERIDO: LV.').. ' ' ..REQUISITO_LEVEL)
13308 Level:show()
13309 Level:addAnchor(AnchorTop, 'SKILL02', AnchorBottom)
13310 Level:addAnchor(AnchorLeft, 'parent', AnchorLeft)
13311 Level:setMarginTop(33)
13312 Level:setMarginLeft(-0,5)
13313
13314 --PassiveI:setImageSource("/images/custom/Spells/Passiva/passive_" ..id)
13315 --PassiveI:show()
13316 --PassiveD:show()
13317 --PassiveD:setText('PASSIVA:\n' ..modules.game_database.getItemInfo(id, 8))
13318 Price:show()
13319 Lock:hide()
13320 Price:setText(modules.game_database.getItemInfo(id, 9))
13321 if locked then
13322 if locked > 0 then
13323 Lock:show()
13324 Price:setText(modules.game_database.getItemInfo(id, 9))
13325 end
13326 end
13327
13328 Rary:show()
13329 iconType:show()
13330 TypeDMG:show()
13331 MinName:show()
13332 MaxName:show()
13333 Rary:setColor(modules.game_database.getRaridade(01, RareItem))
13334 Rary:setText(tr(modules.game_database.getRaridade(00, RareItem)))
13335
13336 itemViewMobile:setParent(gameRootPanel)
13337 itemViewMobile:addAnchor(AnchorTop, 'gameMapPanel', AnchorTop)
13338 itemViewMobile:addAnchor(AnchorRight, 'gameMapPanel', AnchorRight)
13339 if g_app.isMobile() then
13340 itemViewMobile:setMarginTop(70)
13341 itemViewMobile:setMarginRight(250)
13342 else
13343 itemViewMobile:setMarginTop(200)
13344 itemViewMobile:setMarginRight(325)
13345 end
13346 itemViewMobile:show()
13347 end
13348 elseif slot == 10 then
13349 if bagid > 00 then
13350 if modules.game_database.getItemBagId(bagid) > 0 then
13351 itemCheck = true
13352 end
13353 else
13354 if modules.game_database.getInventory(slot, 1) > 0 then
13355 itemCheck = true
13356 end
13357 end
13358 if itemCheck then
13359 local QntItem = 00
13360 local StarItem = 00
13361 local RareItem = 00
13362 local locked = 00
13363 if bagid > 00 then
13364 if modules.game_database.getItemBagId(bagid) > 0 then
13365 QntItem = modules.game_database.getPosBackpack(bagid, 04)
13366 StarItem = modules.game_database.getPosBackpack(bagid, 3)
13367 RareItem = modules.game_database.getPosBackpack(bagid, 2)
13368 locked = modules.game_database.getPosBackpack(bagid, 9)
13369 end
13370 else
13371 if modules.game_database.getInventory(slot, 1) > 0 then
13372 QntItem = modules.game_database.getInventory(slot, 04)
13373 StarItem = modules.game_database.getInventory(slot, 3)
13374 RareItem = modules.game_database.getInventory(slot, 2)
13375 locked = modules.game_database.getInventory(slot, 9)
13376 end
13377 end
13378
13379 itemViewMobile:resize(185, 179)
13380 itemViewMobile:setImageSource("/images/custom/UI/itemInfo")
13381 Nome:show()
13382 Nome:setColor(modules.game_database.getRaridade(01, RareItem))
13383 Nome:setText(tr(modules.game_database.getItemInfo(id, 1)))
13384 Desc:show()
13385 Desc:setText(modules.game_database.getItemInfo(id, 8))
13386 Price:show()
13387 if QntItem ~= nil and QntItem > 1 then
13388 Price:setText(mask_number(modules.game_database.getItemInfo(id, 9)).. " (" ..mask_number((QntItem * modules.game_database.getItemInfo(id, 9))).. ")")
13389 else
13390 Price:setText(mask_number(modules.game_database.getItemInfo(id, 9)))
13391 end
13392 Level:hide()
13393 Rary:setColor(modules.game_database.getRaridade(01, RareItem))
13394 Rary:setText(tr(modules.game_database.getRaridade(00, RareItem)))
13395
13396 Rary:show()
13397 Star:show()
13398 Star:addAnchor(AnchorTop, 'itemDesc', AnchorBottom)
13399 Star:addAnchor(AnchorLeft, 'parent', AnchorLeft)
13400 Star:setMarginTop(10)
13401 Star:setMarginLeft(77)
13402 if StarItem > 0 then
13403 Star:setImageSource("/images/custom/UI/star_" ..StarItem)
13404 else
13405 Star:setImageSource("/images/custom/UI/star_0")
13406 end
13407
13408 itemViewMobile:setParent(gameRootPanel)
13409 itemViewMobile:addAnchor(AnchorTop, 'gameMapPanel', AnchorTop)
13410 itemViewMobile:addAnchor(AnchorRight, 'gameMapPanel', AnchorRight)
13411 if g_app.isMobile() then
13412 itemViewMobile:setMarginTop(70)
13413 itemViewMobile:setMarginRight(250)
13414 else
13415 itemViewMobile:setMarginTop(200)
13416 itemViewMobile:setMarginRight(325)
13417 end
13418 itemViewMobile:show()
13419 end
13420 elseif slot == 12 then
13421 local idSkill = modules.game_database.getItemInfo(modules.game_database.getPosBackpack(bagid, 01), 10)
13422 local skillLock = modules.game_database.getPosBackpack(bagid, 09)
13423 local HotKey = 00
13424
13425 itemViewMobile:resize(185, 270)
13426 itemViewMobile:setImageSource("/images/custom/UI/spell_tooltip")
13427
13428 Rary:hide()
13429 Price:hide()
13430 GIF:show()
13431 GIF:setImageSource("/images/custom/Spells/Animation/Skill_" ..idSkill)
13432 ELEM:show()
13433 if modules.game_database.getSpellInfo(idSkill, 03) == "ICE" then
13434 ELEM:setImageSource("/images/game/states/freezing")
13435 elseif modules.game_database.getSpellInfo(idSkill, 03) == "FIRE" then
13436 ELEM:setImageSource("/images/game/states/burning")
13437 elseif modules.game_database.getSpellInfo(idSkill, 03) == "DEATH" then
13438 ELEM:setImageSource("/images/game/states/cursed")
13439 elseif modules.game_database.getSpellInfo(idSkill, 03) == "PHYSICAL" then
13440 ELEM:setImageSource("/images/game/states/physical")
13441 elseif modules.game_database.getSpellInfo(idSkill, 03) == "HOLY" then
13442 ELEM:setImageSource("/images/game/states/dazzled")
13443 elseif modules.game_database.getSpellInfo(idSkill, 03) == "EARTH" then
13444 ELEM:setImageSource("/images/game/states/poisoned")
13445 elseif modules.game_database.getSpellInfo(idSkill, 03) == "ENERGY" then
13446 ELEM:setImageSource("/images/game/states/electrified")
13447 elseif modules.game_database.getSpellInfo(idSkill, 03) == "SUPORTE" then
13448 ELEM:setImageSource("/images/game/states/protection_zone")
13449 end
13450 SkillName:show()
13451 SkillName:setText(tr(modules.game_database.getSpellInfo(idSkill, 00)))
13452 SkillDMG:show()
13453 if modules.game_database.getSpellInfo(idSkill, 03) == "SUPORTE" then
13454 SkillDMG:setSize({width = 160, height = 150})
13455 SkillDMG:setMarginTop(-40)
13456 if idSkill == 72 then
13457 local CURA_ID = modules.game_database.onCureInfo(00)
13458 local CURE_DESC = {
13459 [01] = "Cura 12% a 15% de vida ao usar.";
13460 [02] = "Cura 15% a 18% de vida ao usar.";
13461 [03] = "Cura 17% a 22% de vida ao usar.";
13462 [04] = "Cura 20% a 25% de vida ao usar.";
13463 [05] = "Cura 23% a 28% de vida ao usar.";
13464 }
13465 SkillDMG:setText(tr(CURE_DESC[CURA_ID]))
13466 else
13467 SkillDMG:setText(tr(modules.game_database.getSpellInfo(idSkill, 06)))
13468 end
13469 else
13470 SkillDMG:setMarginTop(10)
13471 SkillDMG:setSize({width = 160, height = 20})
13472 SkillDMG:setText("Damage: " ..modules.game_database.getSpellInfo(idSkill, 04).. "%")
13473 SkillTarget:show()
13474 if modules.game_database.getSpellInfo(idSkill, 02) == 0 then
13475 SkillTarget:setText("Target: false")
13476 else
13477 SkillTarget:setText("Target: true")
13478 end
13479 SkillCooldown:show()
13480 SkillCooldown:setText("Cooldown: " ..modules.game_database.getSpellInfo(idSkill, 05).. " seg.")
13481 end
13482 SkillHotkey:show()
13483 SkillHotkey:setText(HotKey)
13484
13485 if skillLock then
13486 if skillLock > 0 then
13487 Lock:show()
13488 end
13489 end
13490
13491 itemViewMobile:setParent(gameRootPanel)
13492 itemViewMobile:addAnchor(AnchorTop, 'gameMapPanel', AnchorTop)
13493 itemViewMobile:addAnchor(AnchorRight, 'gameMapPanel', AnchorRight)
13494 if g_app.isMobile() then
13495 itemViewMobile:setMarginTop(70)
13496 itemViewMobile:setMarginRight(250)
13497 else
13498 itemViewMobile:setMarginTop(200)
13499 itemViewMobile:setMarginRight(325)
13500 end
13501 itemViewMobile:show()
13502 end
13503end
13504function onViewItems()
13505 MOBILE_VIEW_ITEMS = modules.game_interface.onMobileWindow(101)
13506 if ViewItems == true then
13507 ViewItems = false
13508 MOBILE_VIEW_ITEMS:setImageSource("/images/custom/UI/mobileEye_On")
13509 else
13510 ViewItems = true
13511 MOBILE_VIEW_ITEMS:setImageSource("/images/custom/UI/mobileEye_Off")
13512 end
13513end
13514function onResetMenuBar()
13515 CloseAllMobileWindow()
13516 modules.client_mobile.onHideUI(01)
13517 if modules.game_interface.getTrade() == 01 then
13518 modules.game_interface.onTradeClose()
13519 end
13520 MOBILE_MENU_BAR = modules.game_interface.onMobileWindow(19)
13521 MOBILE_SKILL_BAR = modules.client_mobile.onMobileButton(07)
13522 MOBILE_LEFT_BAR = modules.game_interface.onMobileWindow(38)
13523 MOBILE_ATTACKER = modules.client_mobile.onMobileButton(05)
13524 MOBILE_AMMO = modules.client_mobile.onMobileButton(04)
13525 MOBILE_EXIT_MENU = modules.game_interface.onMobileWindow(24)
13526 MOBILE_VIEW_ITEMS = modules.game_interface.onMobileWindow(101)
13527 MOBILE_BACKPACKS = modules.game_interface.onMobileWindow(20)
13528 MOBILE_QUEST_ID_DETALHES = modules.game_interface.onMobileWindow(51)
13529
13530 closedInventario()
13531 MOBILE_QUEST_ID_DETALHES:setVisible(false)
13532 MOBILE_EXIT_MENU:setVisible(false)
13533 MOBILE_EXIT_MENU:setVisible(false)
13534 MOBILE_MENU_BAR:setVisible(false)
13535 MOBILE_BACKPACKS:setVisible(false)
13536 MOBILE_LEFT_BAR:setVisible(true)
13537 MOBILE_ATTACKER:setVisible(true)
13538 MOBILE_AMMO:setVisible(true)
13539
13540 reloadSpellBar()
13541 ViewMenuID = 00
13542 modules.game_alert.onWarzoneWindow(01)
13543 MOBILE_SKILL_BAR:setVisible(true)
13544 MOBILE_SKILL_BAR:show()
13545
13546 g_keyboard.unbindKeyPress('Escape')
13547end
13548function mobileMenuBar()
13549 MOBILE_EXIT_MENU = modules.game_interface.onMobileWindow(24)
13550 MOBILE_VIEW_ITEMS = modules.game_interface.onMobileWindow(101)
13551 if MOBILE_EXIT_MENU:isVisible() then
13552 return
13553 end
13554
13555 if menuBarView == 01 then
13556 menuBarView = 00
13557 onResetMenuBar()
13558 else
13559 MOBILE_MENU_BAR = modules.game_interface.onMobileWindow(19)
13560 CloseAllMobileWindow()
13561
13562 menuBarView = 01
13563 ViewItems = false
13564 MOBILE_VIEW_ITEMS:setImageSource("/images/custom/UI/mobileEye_On")
13565 if Novato == 02 then
13566 modules.game_alert.onShowTutor(02)
13567 Novato = 3
13568 end
13569 MOBILE_MENU_BAR:setVisible(true)
13570 modules.game_alert.onWarzoneWindow(00)
13571 g_keyboard.bindKeyPress('Escape', function()
13572 menuBarView = 00
13573 onResetMenuBar()
13574
13575 g_keyboard.unbindKeyPress('Escape')
13576 end)
13577 end
13578end
13579function mobileShopShow()
13580 MOBILE_SKILL_BAR = modules.client_mobile.onMobileButton(07)
13581 MOBILE_LEFT_BAR = modules.game_interface.onMobileWindow(38)
13582 MOBILE_ATTACKER = modules.client_mobile.onMobileButton(05)
13583 MOBILE_AMMO = modules.client_mobile.onMobileButton(04)
13584 MOBILE_QUEST_LOAD = modules.game_interface.onMobileWindow(43)
13585 MOBILE_EXIT_MENU = modules.game_interface.onMobileWindow(24)
13586 --MOBILE_SHOP = modules.game_interface.onMobileWindow(61)
13587
13588 if ViewMenuID == 05 then
13589 ViewMenuID = 00
13590 onResetMenuBar()
13591 else
13592 ViewMenuID = 05
13593 CloseAllMobileWindow()
13594
13595 MOBILE_LEFT_BAR:setVisible(false)
13596 MOBILE_ATTACKER:setVisible(false)
13597 MOBILE_SKILL_BAR:setVisible(false)
13598 MOBILE_AMMO:setVisible(false)
13599 MOBILE_EXIT_MENU:setVisible(true)
13600 --MOBILE_SHOP:setVisible(true)
13601
13602 modules.game_interface.onMobileExecute(07)
13603 end
13604end
13605function mobileBlacklistShow()
13606 MOBILE_SKILL_BAR = modules.client_mobile.onMobileButton(07)
13607 MOBILE_LEFT_BAR = modules.game_interface.onMobileWindow(38)
13608 MOBILE_ATTACKER = modules.client_mobile.onMobileButton(05)
13609 MOBILE_AMMO = modules.client_mobile.onMobileButton(04)
13610 MOBILE_QUEST_LOAD = modules.game_interface.onMobileWindow(43)
13611 MOBILE_EXIT_MENU = modules.game_interface.onMobileWindow(24)
13612
13613 if ViewMenuID == 04 then
13614 ViewMenuID = 00
13615 onResetMenuBar()
13616 else
13617 ViewMenuID = 04
13618 CloseAllMobileWindow()
13619
13620 MOBILE_LEFT_BAR:setVisible(false)
13621 MOBILE_ATTACKER:setVisible(false)
13622 MOBILE_SKILL_BAR:setVisible(false)
13623 MOBILE_AMMO:setVisible(false)
13624
13625 MOBILE_EXIT_MENU:setVisible(true)
13626 modules.game_interface.onMobileExecute(04)
13627 end
13628end
13629function onMobileRank()
13630 MOBILE_SKILL_BAR = modules.client_mobile.onMobileButton(07)
13631 MOBILE_LEFT_BAR = modules.game_interface.onMobileWindow(38)
13632 MOBILE_ATTACKER = modules.client_mobile.onMobileButton(05)
13633 MOBILE_AMMO = modules.client_mobile.onMobileButton(04)
13634 MOBILE_QUEST_LOAD = modules.game_interface.onMobileWindow(43)
13635 MOBILE_EXIT_MENU = modules.game_interface.onMobileWindow(24)
13636 ACTIVE_MOBILE_FILTRO_RANK = modules.game_interface.onMobileWindow(126)
13637
13638 if ViewMenuID == 08 then
13639 ViewMenuID = 00
13640 onResetMenuBar()
13641 else
13642 ViewMenuID = 08
13643 CloseAllMobileWindow()
13644
13645 MOBILE_LEFT_BAR:setVisible(false)
13646 MOBILE_ATTACKER:setVisible(false)
13647 MOBILE_SKILL_BAR:setVisible(false)
13648 MOBILE_AMMO:setVisible(false)
13649 MOBILE_EXIT_MENU:setVisible(true)
13650
13651 g_game.talk(g_game.talk("!rank 00"))
13652 modules.game_interface.onMobileExecute(05)
13653 end
13654end
13655function onMobileFenda()
13656 MOBILE_SKILL_BAR = modules.client_mobile.onMobileButton(07)
13657 MOBILE_LEFT_BAR = modules.game_interface.onMobileWindow(38)
13658 MOBILE_ATTACKER = modules.client_mobile.onMobileButton(05)
13659 MOBILE_AMMO = modules.client_mobile.onMobileButton(04)
13660 MOBILE_QUEST_LOAD = modules.game_interface.onMobileWindow(43)
13661 MOBILE_EXIT_MENU = modules.game_interface.onMobileWindow(24)
13662 ACTIVE_MOBILE_FILTRO_RANK = modules.game_interface.onMobileWindow(126)
13663
13664 if ViewMenuID == 09 then
13665 ViewMenuID = 00
13666 onResetMenuBar()
13667 else
13668 ViewMenuID = 09
13669 CloseAllMobileWindow()
13670
13671 MOBILE_LEFT_BAR:setVisible(false)
13672 MOBILE_ATTACKER:setVisible(false)
13673 MOBILE_SKILL_BAR:setVisible(false)
13674 MOBILE_AMMO:setVisible(false)
13675 MOBILE_EXIT_MENU:setVisible(true)
13676
13677 g_game.talk(g_game.talk("!fendas 00"))
13678 modules.game_interface.onMobileExecute(06)
13679 end
13680end
13681function onMobileEventos()
13682 MOBILE_SKILL_BAR = modules.client_mobile.onMobileButton(07)
13683 MOBILE_LEFT_BAR = modules.game_interface.onMobileWindow(38)
13684 MOBILE_ATTACKER = modules.client_mobile.onMobileButton(05)
13685 MOBILE_AMMO = modules.client_mobile.onMobileButton(04)
13686 MOBILE_QUEST_LOAD = modules.game_interface.onMobileWindow(43)
13687 MOBILE_EXIT_MENU = modules.game_interface.onMobileWindow(24)
13688
13689 if ViewMenuID == 12 then
13690 ViewMenuID = 00
13691 onResetMenuBar()
13692 else
13693 ViewMenuID = 12
13694 CloseAllMobileWindow()
13695
13696 MOBILE_LEFT_BAR:setVisible(false)
13697 MOBILE_ATTACKER:setVisible(false)
13698 MOBILE_SKILL_BAR:setVisible(false)
13699 MOBILE_AMMO:setVisible(false)
13700 MOBILE_EXIT_MENU:setVisible(true)
13701 g_game.talk(g_game.talk("!inventario 40"))
13702 end
13703end
13704function onMobileOnlines()
13705 MOBILE_SKILL_BAR = modules.client_mobile.onMobileButton(07)
13706 MOBILE_LEFT_BAR = modules.game_interface.onMobileWindow(38)
13707 MOBILE_ATTACKER = modules.client_mobile.onMobileButton(05)
13708 MOBILE_AMMO = modules.client_mobile.onMobileButton(04)
13709 MOBILE_QUEST_LOAD = modules.game_interface.onMobileWindow(43)
13710 MOBILE_EXIT_MENU = modules.game_interface.onMobileWindow(24)
13711
13712 if ViewMenuID == 13 then
13713 ViewMenuID = 00
13714 onResetMenuBar()
13715 else
13716 ViewMenuID = 13
13717 CloseAllMobileWindow()
13718
13719 MOBILE_LEFT_BAR:setVisible(false)
13720 MOBILE_ATTACKER:setVisible(false)
13721 MOBILE_SKILL_BAR:setVisible(false)
13722 MOBILE_AMMO:setVisible(false)
13723 MOBILE_EXIT_MENU:setVisible(true)
13724 g_game.talk(g_game.talk("!online"))
13725 MOBILE_PLAY_ON:setVisible(true)
13726 end
13727end
13728function onMobileCriptomoedas()
13729 MOBILE_SKILL_BAR = modules.client_mobile.onMobileButton(07)
13730 MOBILE_LEFT_BAR = modules.game_interface.onMobileWindow(38)
13731 MOBILE_ATTACKER = modules.client_mobile.onMobileButton(05)
13732 MOBILE_AMMO = modules.client_mobile.onMobileButton(04)
13733 MOBILE_QUEST_LOAD = modules.game_interface.onMobileWindow(43)
13734 MOBILE_EXIT_MENU = modules.game_interface.onMobileWindow(24)
13735
13736 if ViewMenuID == 14 then
13737 ViewMenuID = 00
13738 onResetMenuBar()
13739 else
13740 ViewMenuID = 14
13741 CloseAllMobileWindow()
13742
13743 MOBILE_LEFT_BAR:setVisible(false)
13744 MOBILE_ATTACKER:setVisible(false)
13745 MOBILE_SKILL_BAR:setVisible(false)
13746 MOBILE_AMMO:setVisible(false)
13747 MOBILE_EXIT_MENU:setVisible(true)
13748 g_game.talk(g_game.talk("!inventario 37"))
13749 MOBILE_CRIPTOMOEDA:setVisible(true)
13750 end
13751end
13752function onMobileKards()
13753 MOBILE_SKILL_BAR = modules.client_mobile.onMobileButton(07)
13754 MOBILE_LEFT_BAR = modules.game_interface.onMobileWindow(38)
13755 MOBILE_ATTACKER = modules.client_mobile.onMobileButton(05)
13756 MOBILE_AMMO = modules.client_mobile.onMobileButton(04)
13757 MOBILE_QUEST_LOAD = modules.game_interface.onMobileWindow(43)
13758 MOBILE_EXIT_MENU = modules.game_interface.onMobileWindow(24)
13759 ACTIVE_MOBILE_FILTRO_RANK = modules.game_interface.onMobileWindow(126)
13760
13761 if ViewMenuID == 10 then
13762 ViewMenuID = 00
13763 onResetMenuBar()
13764 else
13765 ViewMenuID = 10
13766 CloseAllMobileWindow()
13767
13768 MOBILE_LEFT_BAR:setVisible(false)
13769 MOBILE_ATTACKER:setVisible(false)
13770 MOBILE_SKILL_BAR:setVisible(false)
13771 MOBILE_AMMO:setVisible(false)
13772 MOBILE_EXIT_MENU:setVisible(true)
13773
13774 g_game.talk(g_game.talk("!inventario 42 03"))
13775 end
13776end
13777function onMobileColiseu()
13778 MOBILE_SKILL_BAR = modules.client_mobile.onMobileButton(07)
13779 MOBILE_LEFT_BAR = modules.game_interface.onMobileWindow(38)
13780 MOBILE_ATTACKER = modules.client_mobile.onMobileButton(05)
13781 MOBILE_AMMO = modules.client_mobile.onMobileButton(04)
13782 MOBILE_QUEST_LOAD = modules.game_interface.onMobileWindow(43)
13783 MOBILE_EXIT_MENU = modules.game_interface.onMobileWindow(24)
13784 ACTIVE_MOBILE_FILTRO_RANK = modules.game_interface.onMobileWindow(126)
13785
13786 if ViewMenuID == 11 then
13787 ViewMenuID = 00
13788 onResetMenuBar()
13789 else
13790 ViewMenuID = 11
13791 CloseAllMobileWindow()
13792
13793 MOBILE_LEFT_BAR:setVisible(false)
13794 MOBILE_ATTACKER:setVisible(false)
13795 MOBILE_SKILL_BAR:setVisible(false)
13796 MOBILE_AMMO:setVisible(false)
13797 MOBILE_EXIT_MENU:setVisible(true)
13798
13799 g_game.talk(g_game.talk("!inventario 44 01"))
13800 end
13801end
13802function onMobileBlacklist()
13803 MOBILE_SKILL_BAR = modules.client_mobile.onMobileButton(07)
13804 MOBILE_LEFT_BAR = modules.game_interface.onMobileWindow(38)
13805 MOBILE_ATTACKER = modules.client_mobile.onMobileButton(05)
13806 MOBILE_AMMO = modules.client_mobile.onMobileButton(04)
13807 MOBILE_EXIT_MENU = modules.game_interface.onMobileWindow(24)
13808
13809 MOBILE_BLACKLIST = modules.game_interface.onMobileWindow(48)
13810 MOBILE_BLACKLIST_SCROL = modules.game_interface.onMobileWindow(49)
13811 MOBILE_BLACKLIST_LIST = modules.game_interface.onMobileWindow(50)
13812
13813 if ViewMenuID == 07 then
13814 ViewMenuID = 00
13815 onResetMenuBar()
13816 else
13817 ViewMenuID = 07
13818 CloseAllMobileWindow()
13819
13820 MOBILE_LEFT_BAR:setVisible(false)
13821 MOBILE_ATTACKER:setVisible(false)
13822 MOBILE_SKILL_BAR:setVisible(false)
13823 MOBILE_AMMO:setVisible(false)
13824
13825 MOBILE_EXIT_MENU:setVisible(true)
13826 MOBILE_BLACKLIST:setVisible(true)
13827 MOBILE_BLACKLIST_SCROL:setVisible(true)
13828 MOBILE_BLACKLIST_LIST:setVisible(true)
13829 StartTask()
13830 end
13831end
13832function mobileQuestShow()
13833 MOBILE_MENU_BAR = modules.game_interface.onMobileWindow(19)
13834 MOBILE_SKILL_BAR = modules.client_mobile.onMobileButton(07)
13835 MOBILE_LEFT_BAR = modules.game_interface.onMobileWindow(38)
13836 MOBILE_ATTACKER = modules.client_mobile.onMobileButton(05)
13837 MOBILE_AMMO = modules.client_mobile.onMobileButton(04)
13838 MOBILE_EXIT_MENU = modules.game_interface.onMobileWindow(24)
13839
13840 MOBILE_QUEST_BAR = modules.game_interface.onMobileWindow(39)
13841 MOBILE_QUEST_SCRO = modules.game_interface.onMobileWindow(40)
13842 MOBILE_QUEST_LIST = modules.game_interface.onMobileWindow(41)
13843 MOBILE_QUEST_LOAD = modules.game_interface.onMobileWindow(43)
13844 MOBILE_QUEST_ID_DETALHES = modules.game_interface.onMobileWindow(51)
13845
13846 if ViewMenuID == 02 then
13847 ViewMenuID = 00
13848 onResetMenuBar()
13849 else
13850 ViewMenuID = 02
13851 g_game.talk(g_game.talk("!inventario 25"))
13852 CloseAllMobileWindow()
13853
13854 MOBILE_LEFT_BAR:setVisible(false)
13855 MOBILE_ATTACKER:setVisible(false)
13856 MOBILE_AMMO:setVisible(false)
13857 MOBILE_SKILL_BAR:setVisible(false)
13858
13859 MOBILE_QUEST_BAR:setVisible(true)
13860 MOBILE_QUEST_LOAD:setVisible(true)
13861 MOBILE_EXIT_MENU:setVisible(true)
13862
13863 modules.game_interface.onMobileExecute(01)
13864 scheduleEvent(function()
13865 MOBILE_QUEST_BAR:setVisible(true)
13866 MOBILE_QUEST_SCRO:setVisible(true)
13867 MOBILE_QUEST_LIST:setVisible(true)
13868 MOBILE_QUEST_LOAD:setVisible(false)
13869 MOBILE_QUEST_ID_DETALHES:setVisible(false)
13870 end, 500)
13871 end
13872end
13873function mobileStatusShow()
13874 CloseAllMobileWindow()
13875 MOBILE_MENU_BAR = modules.game_interface.onMobileWindow(19)
13876 MOBILE_STATUS_BAR = modules.game_interface.onMobileWindow(25)
13877 MOBILE_STATUS_SCRO = modules.game_interface.onMobileWindow(26)
13878 MOBILE_STATUS_LIST = modules.game_interface.onMobileWindow(27)
13879 MOBILE_SKILL_BAR = modules.client_mobile.onMobileButton(07)
13880 MOBILE_AMMO = modules.client_mobile.onMobileButton(04)
13881 MOBILE_LEFT_BAR = modules.game_interface.onMobileWindow(38)
13882 MOBILE_ATTACKER = modules.client_mobile.onMobileButton(05)
13883 MOBILE_EXIT_MENU = modules.game_interface.onMobileWindow(24)
13884
13885 if ViewMenuID == 03 then
13886 ViewMenuID = 00
13887 onResetMenuBar()
13888 else
13889 ViewMenuID = 03
13890 CloseAllMobileWindow()
13891 MOBILE_LEFT_BAR:setVisible(false)
13892 MOBILE_ATTACKER:setVisible(false)
13893 MOBILE_SKILL_BAR:setVisible(false)
13894 MOBILE_AMMO:setVisible(false)
13895 MOBILE_STATUS_BAR:setVisible(true)
13896 MOBILE_STATUS_SCRO:setVisible(true)
13897 MOBILE_STATUS_LIST:setVisible(true)
13898 MOBILE_EXIT_MENU:setVisible(true)
13899
13900 g_game.talk(g_game.talk("!inventario 32"))
13901 modules.game_interface.onMobileExecute(03)
13902 end
13903end
13904function CloseAllMobileWindow()
13905 MOBILE_EVENT_0 = modules.game_interface.onMobileWindow(151)
13906 REQUEST_STEP_3 = modules.game_interface.onMobileWindow(150)
13907 REQUEST_STEP_2 = modules.game_interface.onMobileWindow(149)
13908 REQUEST_STEP_1 = modules.game_interface.onMobileWindow(148)
13909 REQUEST_PAY_PANEL = modules.game_interface.onMobileWindow(147)
13910 PAYMENT_METH_PANEL = modules.game_interface.onMobileWindow(146)
13911 MOBILE_CRIPTOMOEDA = modules.game_interface.onMobileWindow(145)
13912 MOBILE_PLAY_ON = modules.game_interface.onMobileWindow(144)
13913 MOBILE_EVENT_12 = modules.game_interface.onMobileWindow(143)
13914 MOBILE_EVENT_11 = modules.game_interface.onMobileWindow(142)
13915 MOBILE_EVENT_10 = modules.game_interface.onMobileWindow(141)
13916 MOBILE_EVENT_9 = modules.game_interface.onMobileWindow(140)
13917 MOBILE_EVENT_8 = modules.game_interface.onMobileWindow(139)
13918 MOBILE_EVENT_7 = modules.game_interface.onMobileWindow(138)
13919 MOBILE_EVENT_6 = modules.game_interface.onMobileWindow(137)
13920 MOBILE_EVENT_5 = modules.game_interface.onMobileWindow(136)
13921 MOBILE_EVENT_4 = modules.game_interface.onMobileWindow(135)
13922 MOBILE_EVENT_3 = modules.game_interface.onMobileWindow(134)
13923 MOBILE_EVENT_2 = modules.game_interface.onMobileWindow(133)
13924 MOBILE_EVENT_1 = modules.game_interface.onMobileWindow(132)
13925 COLISEU_MOBILE_PANEL_ON = modules.game_interface.onMobileWindow(131)
13926 COLISEU_MOBILE_PANEL_OFF = modules.game_interface.onMobileWindow(130)
13927 KARD_MOBILE_PANEL_OFF = modules.game_interface.onMobileWindow(128)
13928 KARD_MOBILE_PANEL_ON = modules.game_interface.onMobileWindow(129)
13929 FENDA_MOBILE_PANEL = modules.game_interface.onMobileWindow(127)
13930 ACTIVE_MOBILE_LIST = modules.game_interface.onMobileWindow(118)
13931 ACTIVE_MOBILE_RANK = modules.game_interface.onMobileWindow(125)
13932 MOBILE_EXIT_MENU = modules.game_interface.onMobileWindow(24)
13933 MOBILE_MENU_BAR = modules.game_interface.onMobileWindow(19)
13934 MOBILE_SKILL_BAR = modules.client_mobile.onMobileButton(07)
13935 MOBILE_EQUIP_BAR = modules.game_interface.onMobileWindow(16)
13936 MOBILE_BACKPACKS = modules.game_interface.onMobileWindow(20)
13937 MOBILE_BACK_SCRO = modules.game_interface.onMobileWindow(22)
13938 MOBILE_BACK_LIST = modules.game_interface.onMobileWindow(23)
13939 MOBILE_STATUS_BAR = modules.game_interface.onMobileWindow(25)
13940 MOBILE_STATUS_SCRO = modules.game_interface.onMobileWindow(26)
13941 MOBILE_STATUS_LIST = modules.game_interface.onMobileWindow(27)
13942 MOBILE_QUEST_BAR = modules.game_interface.onMobileWindow(39)
13943 MOBILE_QUEST_SCRO = modules.game_interface.onMobileWindow(40)
13944 MOBILE_QUEST_LIST = modules.game_interface.onMobileWindow(41)
13945 MOBILE_QUEST_LOAD = modules.game_interface.onMobileWindow(43)
13946 MOBILE_QUEST_TITLE = modules.game_interface.onMobileWindow(44)
13947 MOBILE_QUEST_RASTREAR = modules.game_interface.onMobileWindow(45)
13948 MOBILE_QUEST_DETALHES = modules.game_interface.onMobileWindow(46)
13949 MOBILE_QUEST_PROGRESS = modules.game_interface.onMobileWindow(47)
13950 MOBILE_QUEST_ID_DETALHES = modules.game_interface.onMobileWindow(51)
13951 MOBILE_BLACKLIST = modules.game_interface.onMobileWindow(48)
13952 MOBILE_BLACKLIST_SCROL = modules.game_interface.onMobileWindow(49)
13953 MOBILE_BLACKLIST_LIST = modules.game_interface.onMobileWindow(50)
13954 MOBILE_SHOP = modules.game_interface.onMobileWindow(61)
13955 MOBILE_SHOP_SELECT = modules.game_interface.onMobileWindow(62)
13956 MOBILE_EXT_BACKPACK = modules.game_interface.onMobileWindow(83)
13957 MOBILE_SUMMOM_BAR = modules.game_interface.onMobileWindow(99)
13958 MOBILE_VIEW_ITEMS = modules.game_interface.onMobileWindow(101)
13959
13960 ViewItems = false
13961 MOBILE_VIEW_ITEMS:setImageSource("/images/custom/UI/mobileEye_On")
13962 MOBILE_SHOP_SELECT:setVisible(false)
13963 REQUEST_STEP_3:setVisible(false)
13964 REQUEST_STEP_2:setVisible(false)
13965 REQUEST_STEP_1:setVisible(false)
13966 REQUEST_PAY_PANEL:setVisible(false)
13967 PAYMENT_METH_PANEL:setVisible(false)
13968 MOBILE_CRIPTOMOEDA:setVisible(false)
13969 MOBILE_PLAY_ON:setVisible(false)
13970 MOBILE_EVENT_12:setVisible(false)
13971 MOBILE_EVENT_11:setVisible(false)
13972 MOBILE_EVENT_10:setVisible(false)
13973 MOBILE_EVENT_9:setVisible(false)
13974 MOBILE_EVENT_8:setVisible(false)
13975 MOBILE_EVENT_7:setVisible(false)
13976 MOBILE_EVENT_6:setVisible(false)
13977 MOBILE_EVENT_5:setVisible(false)
13978 MOBILE_EVENT_4:setVisible(false)
13979 MOBILE_EVENT_3:setVisible(false)
13980 MOBILE_EVENT_2:setVisible(false)
13981 MOBILE_EVENT_1:setVisible(false)
13982 MOBILE_EVENT_0:setVisible(false)
13983 COLISEU_MOBILE_PANEL_ON:setVisible(false)
13984 COLISEU_MOBILE_PANEL_OFF:setVisible(false)
13985 KARD_MOBILE_PANEL_OFF:setVisible(false)
13986 KARD_MOBILE_PANEL_ON:setVisible(false)
13987 FENDA_MOBILE_PANEL:setVisible(false)
13988 ACTIVE_MOBILE_RANK:setVisible(false)
13989 ACTIVE_MOBILE_LIST:setVisible(false)
13990 MOBILE_VIEW_ITEMS:setVisible(false)
13991 MOBILE_SUMMOM_BAR:setVisible(false)
13992 MOBILE_EXT_BACKPACK:setVisible(false)
13993 MOBILE_EXIT_MENU:setVisible(false)
13994 MOBILE_MENU_BAR:setVisible(false)
13995 MOBILE_SHOP:setVisible(false)
13996 MOBILE_BLACKLIST:setVisible(false)
13997 MOBILE_BLACKLIST_SCROL:setVisible(false)
13998 MOBILE_BLACKLIST_LIST:setVisible(false)
13999 MOBILE_QUEST_TITLE:setVisible(false)
14000 MOBILE_QUEST_RASTREAR:setVisible(false)
14001 MOBILE_QUEST_DETALHES:setVisible(false)
14002 MOBILE_QUEST_PROGRESS:setVisible(false)
14003 MOBILE_QUEST_LOAD:setVisible(false)
14004 MOBILE_SKILL_BAR:setVisible(false)
14005 MOBILE_EQUIP_BAR:setVisible(false)
14006 MOBILE_BACK_SCRO:setVisible(false)
14007 MOBILE_BACK_LIST:setVisible(false)
14008 MOBILE_BACKPACKS:setVisible(false)
14009 MOBILE_BACK_SCRO:setVisible(false)
14010 MOBILE_BACK_LIST:setVisible(false)
14011 MOBILE_STATUS_BAR:setVisible(false)
14012 MOBILE_STATUS_SCRO:setVisible(false)
14013 MOBILE_STATUS_LIST:setVisible(false)
14014 MOBILE_QUEST_BAR:setVisible(false)
14015 MOBILE_QUEST_SCRO:setVisible(false)
14016 MOBILE_QUEST_LIST:setVisible(false)
14017
14018 modules.game_interface.hidenChat()
14019 menuBarView = 00
14020end
14021
14022function OptionsInventario()
14023 --g_game.talk(g_game.talk("!inventario 28")) -- Gold Coins
14024 --g_game.talk(g_game.talk("!inventario 21"))
14025
14026 if g_app.isMobile() then
14027 MOBILE_EQUIP_BAR = modules.game_interface.onMobileWindow(16)
14028 MOBILE_BACKPACKS = modules.game_interface.onMobileWindow(20)
14029 MOBILE_SKILL_BAR = modules.client_mobile.onMobileButton(07)
14030 MOBILE_AMMO = modules.client_mobile.onMobileButton(04)
14031 MOBILE_LEFT_BAR = modules.game_interface.onMobileWindow(38)
14032 MOBILE_ATTACKER = modules.client_mobile.onMobileButton(05)
14033 MOBILE_EXIT_MENU = modules.game_interface.onMobileWindow(24)
14034 MOBILE_VIEW_ITEMS = modules.game_interface.onMobileWindow(101)
14035
14036 if ViewMenuID == 01 then
14037 ViewMenuID = 00
14038 onResetMenuBar()
14039 else
14040 CloseAllMobileWindow()
14041 OpenInventario()
14042
14043 MOBILE_LEFT_BAR:setVisible(false)
14044 MOBILE_ATTACKER:setVisible(false)
14045 MOBILE_SKILL_BAR:setVisible(false)
14046 MOBILE_AMMO:setVisible(false)
14047 MOBILE_EXIT_MENU:setVisible(true)
14048 MOBILE_VIEW_ITEMS:setVisible(true)
14049 MOBILE_EQUIP_BAR:setVisible(true)
14050 end
14051
14052 return
14053 else
14054 if menuBackgroundShow == 1 then
14055 menuBackgroundShow = 0
14056 CloseBackpack()
14057 menuBackground:hide()
14058 ViewMenuID = 00
14059 end
14060 OpenInventario()
14061 menuBackground:setMarginRight(0)
14062 menuBackground:setSize({width = 280, height = 10})
14063 FECHAR_MENU:setText(tr("DESANCLAR MENU"))
14064 FECHAR_MENU:setMarginRight(5)
14065 FIXAR_MENU:hide()
14066 FIXAR_MENU.onClick = function()
14067 modules.client_options.toggleOption('fixeMenu')
14068 closedInventario()
14069 end
14070 FECHAR_MENU.onClick = function()
14071 modules.client_options.toggleOption('fixeMenu')
14072 closedInventario()
14073 end
14074 MenuView:disable()
14075 INVENTARIO_BUTTON:setImageSource("/images/custom/UI/menu_select")
14076 QUEST_BUTTON:setImageSource("/images/custom/UI/menu_option")
14077 STATUS_BUTTON:setImageSource("/images/custom/UI/menu_option")
14078 TASK_BUTTON:setImageSource("/images/custom/UI/menu_option")
14079 SHOP_BUTTON:setImageSource("/images/custom/UI/menu_option")
14080
14081 onHiderWindows()
14082 INVENTARIO_WINDOW:show()
14083 end
14084end
14085function onCLoseFixeInventario()
14086 menuBackgroundShow = 0
14087 CloseBackpack()
14088 menuBackground:hide()
14089 MenuView:enable()
14090end
14091-- This is the six-slot HUD bar; game_spellbar is a separate module.
14092function isHudActionBarEnabled()
14093 return not modules.client_options or modules.client_options.getOption('actionBar') ~= false
14094end
14095
14096function setHudActionBarEnabled(enabled)
14097 if not hubBackground then return end
14098 for _, widget in ipairs({Spell01, Spell02, Spell03, Sup01, Sup02, Sup03, SupQnt}) do
14099 widget:setVisible(enabled)
14100 end
14101end
14102
14103function layoutHudActionBar()
14104 if not hubBackground or not Spell01 then return end
14105 local available = math.max(38, hubBackground:getWidth() - 30)
14106 local columns = math.max(1, math.min(6, math.floor((available + 10) / 48)))
14107 local slots = {Spell01, Spell02, Spell03, Sup01, Sup02, Sup03}
14108 local rows = math.ceil(#slots / columns)
14109 for i, widget in ipairs(slots) do
14110 local row = math.floor((i - 1) / columns)
14111 local count = math.min(columns, #slots - row * columns)
14112 local width = count * 38 + (count - 1) * 10
14113 widget:breakAnchors()
14114 widget:addAnchor(AnchorBottom, 'parent', AnchorBottom)
14115 widget:addAnchor(AnchorLeft, 'parent', AnchorLeft)
14116 widget:setMarginLeft(math.floor((hubBackground:getWidth() - width) / 2) + ((i - 1) % columns) * 48)
14117 widget:setMarginBottom(70 + (rows - row - 1) * 48)
14118 end
14119 SupQnt:breakAnchors()
14120 SupQnt:addAnchor(AnchorTop, 'sup02', AnchorBottom)
14121 SupQnt:addAnchor(AnchorHorizontalCenter, 'sup02', AnchorHorizontalCenter)
14122 SupQnt:setMarginTop(-8)
14123 SupQnt:setMarginLeft(0)
14124 SupQnt:setMarginBottom(0)
14125 healthBar:breakAnchors()
14126 healthBar:addAnchor(AnchorBottom, 'parent', AnchorBottom)
14127 healthBar:addAnchor(AnchorHorizontalCenter, 'parent', AnchorHorizontalCenter)
14128 healthBar:setMarginLeft(0)
14129 healthBar:setMarginBottom(45)
14130 healthBar:setWidth(math.min(300, available))
14131end
14132
14133function onPositionHub()
14134 hubBackground:setParent(modules.game_interface.getRootPanel())
14135 hubBackground:addAnchor(AnchorBottom, 'gameMapPanel', AnchorBottom)
14136 hubBackground:addAnchor(AnchorLeft, 'gameMapPanel', AnchorLeft)
14137 hubBackground:addAnchor(AnchorRight, 'gameMapPanel', AnchorRight)
14138 hubBackground:setMarginBottom(-20)
14139 for _, widget in ipairs({Spell01, Spell02, Spell03, Sup01, Sup02, Sup03, SupQnt, healthBar}) do
14140 widget:setParent(hubBackground)
14141 end
14142 layoutHudActionBar()
14143end
14144function onReloadHub(window)
14145 if window == GUN or window == "GUN" then
14146 local id = modules.game_database.getInventory(4, 1)
14147 if id > 0 then
14148 rare = modules.game_database.getInventory(4, 2)
14149 star = modules.game_database.getInventory(4, 3)
14150 skill_01 = modules.game_database.getInventory(4, 4)
14151 skill_02 = modules.game_database.getInventory(4, 5)
14152 skill_03 = modules.game_database.getInventory(4, 6)
14153 level = modules.game_database.getInventory(4, 7)
14154 bonus = modules.game_database.getInventory(4, 8)
14155 lock = modules.game_database.getInventory(4, 9)
14156 ammo = modules.game_database.getInventory(4, 10)
14157
14158 itemView:setTooltip("@GUN " ..id.. " " ..rare.. " " ..star.. " " ..skill_01.. " " ..skill_02.. " " ..skill_03.. " " ..level.. " " ..bonus.. " " ..lock.. " " ..ammo)
14159 itemView:setIcon("/images/custom/Items/" ..id)
14160 itemView:setImageSource("/images/custom/UI/view_item_" ..modules.game_database.getInventory(4, 2))
14161 g_effects.fadeIn(itemView, 250)
14162
14163 timer1 = 0
14164 timer2 = 0
14165 timer3 = 0
14166 reloadSpellBar()
14167 end
14168 end
14169end
14170function OpenInventario()
14171 if menuBackgroundShow == 1 then
14172 closedInventario()
14173 ViewMenuID = 00
14174 else
14175 ViewMenuID = 01
14176 -- CARREGANDO INFORMAC�ES DO INVENTARIO
14177 for i = 1, 10 do
14178 local EmptySlot = "/images/game/slots/amulet"
14179 if i == 1 then
14180 BAG = AMULET
14181 INV_MOBILE = modules.game_interface.onMobileWindow(07)
14182 EmptySlot = "/images/game/slots/amulet"
14183 elseif i == 2 then
14184 BAG = HELMET
14185 INV_MOBILE = modules.game_interface.onMobileWindow(08)
14186 EmptySlot = "/images/game/slots/helmet"
14187 elseif i == 3 then
14188 BAG = BACKPACK
14189 INV_MOBILE = modules.game_interface.onMobileWindow(09)
14190 EmptySlot = "/images/game/slots/backpack"
14191 elseif i == 4 then
14192 BAG = GUN
14193 INV_MOBILE = modules.game_interface.onMobileWindow(10)
14194 EmptySlot = "/images/game/slots/gun"
14195 elseif i == 5 then
14196 BAG = ARMOR
14197 INV_MOBILE = modules.game_interface.onMobileWindow(11)
14198 EmptySlot = "/images/game/slots/armor"
14199 elseif i == 6 then
14200 BAG = GLOVE
14201 INV_MOBILE = modules.game_interface.onMobileWindow(12)
14202 EmptySlot = "/images/game/slots/glove"
14203 elseif i == 7 then
14204 BAG = RING
14205 INV_MOBILE = modules.game_interface.onMobileWindow(13)
14206 EmptySlot = "/images/game/slots/ring"
14207 elseif i == 8 then
14208 BAG = LEGS
14209 INV_MOBILE = modules.game_interface.onMobileWindow(14)
14210 EmptySlot = "/images/game/slots/leg"
14211 elseif i == 9 then
14212 BAG = BOOTS
14213 INV_MOBILE = modules.game_interface.onMobileWindow(15)
14214 EmptySlot = "/images/game/slots/boot"
14215 elseif i == 10 then
14216 BAG = SUMMON
14217 INV_MOBILE = modules.game_interface.onMobileWindow(82)
14218 EmptySlot = "/images/custom/UI/item_slot"
14219 if g_app.isMobile() then
14220 EmptySlot = "/images/game/slots/kards"
14221 end
14222 end
14223
14224 if i < 10 then
14225 if modules.game_database.getInventory(i, 1) > 0 then
14226 local id = modules.game_database.getInventory(i, 1)
14227 BAG:setIcon("/images/custom/Items/" ..id)
14228 BAG:setImageSource("/images/custom/UI/rare_" ..modules.game_database.getInventory(i, 2))
14229 INV_MOBILE:setIcon("/images/custom/Items/" ..id)
14230 INV_MOBILE:setImageSource("/images/custom/UI/rare_" ..modules.game_database.getInventory(i, 2))
14231
14232 local localPlayer = g_game.getLocalPlayer()
14233 local lvl = 0
14234 local sta = 0
14235 local itemRecLevel = 0
14236 if i ~= 1 or i ~= 3 or i ~= 7 then
14237 if i == 2 or i == 5 or i == 6 or i == 8 or i == 9 then
14238 lvl = modules.game_database.getInventory(i, 5)
14239 sta = modules.game_database.getInventory(i, 3)
14240
14241 if lvl < 0 then lvl = 0 end
14242 if sta < 0 then sta = 0 end
14243 itemRecLevel = (modules.game_database.getItemInfo(id, 3) + lvl + (sta * 10)) * 2
14244 elseif i == 4 then
14245 lvl = modules.game_database.getInventory(i, 7)
14246 sta = modules.game_database.getInventory(i, 3)
14247
14248 if lvl < 0 then lvl = 0 end
14249 if sta < 0 then sta = 0 end
14250 itemRecLevel = math.floor((modules.game_database.getItemInfo(id, 6) + lvl + (sta * 10)) / 3)
14251 end
14252
14253 if localPlayer:getLevel() >= itemRecLevel then
14254 BAG:setBorderWidth(0)
14255 BAG:setBorderColor("white")
14256 INV_MOBILE:setBorderWidth(0)
14257 INV_MOBILE:setBorderColor("white")
14258 else
14259 BAG:setBorderWidth(1)
14260 BAG:setBorderColor("red")
14261 INV_MOBILE:setBorderWidth(1)
14262 INV_MOBILE:setBorderColor("red")
14263 end
14264 else
14265 BAG:setBorderWidth(0)
14266 BAG:setBorderColor("white")
14267 INV_MOBILE:setBorderWidth(0)
14268 INV_MOBILE:setBorderColor("white")
14269 end
14270 else
14271 BAG:setIcon("/images/custom/UI/none")
14272 BAG:setImageSource(EmptySlot)
14273 BAG:setBorderWidth(0)
14274 BAG:setBorderColor("white")
14275 INV_MOBILE:setIcon("/images/custom/UI/none")
14276 INV_MOBILE:setImageSource(EmptySlot)
14277 INV_MOBILE:setBorderWidth(0)
14278 INV_MOBILE:setBorderColor("white")
14279 end
14280 else
14281 onProgressEquiKard(00)
14282 end
14283 end
14284
14285 if not g_app.isMobile() then
14286 menuBackground:setParent(modules.game_interface.getRootPanel())
14287 menuBackground:addAnchor(AnchorTop, 'gameMapPanel', AnchorTop)
14288 menuBackground:addAnchor(AnchorBottom, 'gameMapPanel', AnchorBottom)
14289 menuBackground:addAnchor(AnchorRight, 'gameMapPanel', AnchorRight)
14290 if g_settings.getString('fixeMenu') == "true" then
14291 menuBackground:setMarginRight(0)
14292 menuBackground:setSize({width = 280, height = 10})
14293 FECHAR_MENU:setMarginRight(5)
14294 FECHAR_MENU:setText(tr("DESANCLAR MENU"))
14295 FECHAR_MENU.onClick = function()
14296 modules.client_options.toggleOption('fixeMenu')
14297 closedInventario()
14298 end
14299 FIXAR_MENU:hide()
14300 MenuView:disable()
14301 else
14302 menuBackground:setMarginRight(20)
14303 menuBackground:setSize({width = 5, height = 10})
14304 FECHAR_MENU:setMarginRight(35)
14305 FECHAR_MENU:setText(tr("CERRAR"))
14306 FECHAR_MENU.onClick = function()
14307 closedInventario()
14308 end
14309 FIXAR_MENU.onClick = function()
14310 modules.client_options.toggleOption('fixeMenu')
14311 closedInventario()
14312 end
14313 FIXAR_MENU:show()
14314 MenuView:enable()
14315 end
14316 menuBackground:show()
14317 end
14318
14319 AMULET_MOBILE = modules.game_interface.onMobileWindow(07)
14320 AMULET_MOBILE.onMouseRelease = function(widget, mousePos, mouseButton)
14321 if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then
14322 if ViewItems == true then
14323 onItemViewMobile(01, 00)
14324 else
14325 onBackpackSelect = 00
14326 ORDER_BACKPACK_TYPE = 01
14327 AMULET:disable() inv_pos = AMULET_MOBILE LastClickSlot = 1 LOAD:show() g_game.talk(g_game.talk("!backpack 01 " ..onBackpackSelect))
14328 CloseBackpack()
14329 closedInventario()
14330 scheduleEvent(function() AMULET:enable() end, delayPro)
14331 end
14332 elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then
14333 if modules.game_database.getInventory(01, 01) > 0 then
14334 LastClickSlot = 1
14335 backpackMenu(02, 01)
14336 end
14337 end
14338 end
14339 AMULET.onMouseRelease = function(widget, mousePos, mouseButton)
14340 if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then
14341 onBackpackSelect = 00
14342 ORDER_BACKPACK_TYPE = 01
14343 AMULET:disable() inv_pos = AMULET LastClickSlot = 1 LOAD:show() g_game.talk(g_game.talk("!backpack 01 " ..onBackpackSelect))
14344 scheduleEvent(function() AMULET:enable() end, delayPro)
14345 elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then
14346 if modules.game_database.getInventory(01, 01) > 0 then
14347 LastClickSlot = 1
14348 backpackMenu(02, 01, 00)
14349 end
14350 end
14351 end
14352
14353 HELMET_MOBILE = modules.game_interface.onMobileWindow(08)
14354 HELMET_MOBILE.onMouseRelease = function(widget, mousePos, mouseButton)
14355 if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then
14356 if ViewItems == true then
14357 onItemViewMobile(02, 00)
14358 else
14359 onBackpackSelect = 00
14360 ORDER_BACKPACK_TYPE = 01
14361 HELMET:disable() inv_pos = HELMET_MOBILE LastClickSlot = 2 LOAD:show() g_game.talk(g_game.talk("!backpack 02 " ..onBackpackSelect))
14362
14363 CloseBackpack()
14364 closedInventario()
14365 scheduleEvent(function() HELMET:enable() end, delayPro)
14366 end
14367 elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then
14368 if modules.game_database.getInventory(02, 01) > 0 then
14369 LastClickSlot = 2
14370 backpackMenu(02, 02)
14371 end
14372 end
14373 end
14374 HELMET.onMouseRelease = function(widget, mousePos, mouseButton)
14375 if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then
14376 onBackpackSelect = 00
14377 ORDER_BACKPACK_TYPE = 01
14378 HELMET:disable() inv_pos = HELMET LastClickSlot = 2 LOAD:show() g_game.talk(g_game.talk("!backpack 02 " ..onBackpackSelect))
14379 scheduleEvent(function() HELMET:enable() end, delayPro)
14380 elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then
14381 if modules.game_database.getInventory(02, 01) > 0 then
14382 LastClickSlot = 2
14383 backpackMenu(02, 02, 00)
14384 end
14385 end
14386 end
14387
14388 BACKPACK_MOBILE = modules.game_interface.onMobileWindow(09)
14389 BACKPACK_MOBILE.onMouseRelease = function(widget, mousePos, mouseButton)
14390 if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then
14391 if ViewItems == true then
14392
14393 onItemViewMobile(03, 00)
14394 else
14395 onBackpackSelect = 00
14396 ORDER_BACKPACK_TYPE = 01
14397 LastClickSlot = 3
14398 BACKPACK:disable() inv_pos = BACKPACK_MOBILE LOAD:show() g_game.talk(g_game.talk("!backpack 03 " ..onBackpackSelect))
14399 CloseBackpack()
14400 scheduleEvent(function() BACKPACK:enable() end, delayPro)
14401 end
14402 elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then
14403 if modules.game_database.getInventory(03, 01) > 0 then
14404 backpackMenu(06)
14405 end
14406 end
14407 end
14408 BACKPACK.onMouseRelease = function(widget, mousePos, mouseButton)
14409 if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then
14410 onBackpackSelect = 00
14411 ORDER_BACKPACK_TYPE = 01
14412 LastClickSlot = 3
14413 BACKPACK:disable() inv_pos = BACKPACK LOAD:show() g_game.talk(g_game.talk("!backpack 03 " ..onBackpackSelect))
14414 scheduleEvent(function() BACKPACK:enable() end, delayPro)
14415 elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then
14416 if modules.game_database.getInventory(03, 01) > 0 then
14417 backpackMenu(06)
14418 end
14419 end
14420 end
14421
14422 GUN_MOBILE = modules.game_interface.onMobileWindow(10)
14423 GUN_MOBILE.onMouseRelease = function(widget, mousePos, mouseButton)
14424 if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then
14425 if ViewItems == true then
14426
14427 onItemViewMobile(04, 00)
14428 else
14429 onBackpackSelect = 00
14430 ORDER_BACKPACK_TYPE = 01
14431 GUN:disable() inv_pos = GUN_MOBILE LastClickSlot = 4 LOAD:show() g_game.talk(g_game.talk("!backpack 04 " ..onBackpackSelect))
14432 scheduleEvent(function() GUN:enable() end, delayPro)
14433 end
14434 elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then
14435 if modules.game_database.getInventory(04, 01) > 0 then
14436 LastClickSlot = 4
14437 backpackMenu(02, 04)
14438 end
14439 end
14440 end
14441 GUN.onMouseRelease = function(widget, mousePos, mouseButton)
14442 if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then
14443 onBackpackSelect = 00
14444 ORDER_BACKPACK_TYPE = 01
14445 GUN:disable() inv_pos = GUN LastClickSlot = 4 LOAD:show() g_game.talk(g_game.talk("!backpack 04 " ..onBackpackSelect))
14446 scheduleEvent(function() GUN:enable() end, delayPro)
14447 elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then
14448 if modules.game_database.getInventory(04, 01) > 0 then
14449 LastClickSlot = 4
14450 backpackMenu(02, 04, 00)
14451 end
14452 end
14453 end
14454
14455 ARMOR_MOBILE = modules.game_interface.onMobileWindow(11)
14456 ARMOR_MOBILE.onMouseRelease = function(widget, mousePos, mouseButton)
14457 if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then
14458 if ViewItems == true then
14459
14460 onItemViewMobile(05, 00)
14461 else
14462 onBackpackSelect = 00
14463 ORDER_BACKPACK_TYPE = 01
14464 ARMOR:disable() inv_pos = ARMOR_MOBILE LastClickSlot = 5 LOAD:show() g_game.talk(g_game.talk("!backpack 05 " ..onBackpackSelect))
14465 scheduleEvent(function() ARMOR:enable() end, delayPro)
14466 end
14467 elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then
14468 if modules.game_database.getInventory(05, 01) > 0 then
14469 LastClickSlot = 5
14470 backpackMenu(02, 05)
14471 end
14472 end
14473 end
14474 ARMOR.onMouseRelease = function(widget, mousePos, mouseButton)
14475 if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then
14476 onBackpackSelect = 00
14477 ORDER_BACKPACK_TYPE = 01
14478 ARMOR:disable() inv_pos = ARMOR LastClickSlot = 5 LOAD:show() g_game.talk(g_game.talk("!backpack 05 " ..onBackpackSelect))
14479 scheduleEvent(function() ARMOR:enable() end, delayPro)
14480 elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then
14481 if modules.game_database.getInventory(05, 01) > 0 then
14482 LastClickSlot = 5
14483 backpackMenu(02, 05, 00)
14484 end
14485 end
14486 end
14487
14488 GLOVE_MOBILE = modules.game_interface.onMobileWindow(12)
14489 GLOVE_MOBILE.onMouseRelease = function(widget, mousePos, mouseButton)
14490 if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then
14491 if ViewItems == true then
14492
14493 onItemViewMobile(06, 00)
14494 else
14495 onBackpackSelect = 00
14496 ORDER_BACKPACK_TYPE = 01
14497 GLOVE:disable() inv_pos = GLOVE_MOBILE LastClickSlot = 6 LOAD:show() g_game.talk(g_game.talk("!backpack 06 " ..onBackpackSelect))
14498 CloseBackpack()
14499 closedInventario()
14500 scheduleEvent(function() GLOVE:enable() end, delayPro)
14501 end
14502 elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then
14503 if modules.game_database.getInventory(06, 01) > 0 then
14504 LastClickSlot = 6
14505 backpackMenu(02, 06)
14506 end
14507 end
14508 end
14509 GLOVE.onMouseRelease = function(widget, mousePos, mouseButton)
14510 if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then
14511 onBackpackSelect = 00
14512 ORDER_BACKPACK_TYPE = 01
14513 GLOVE:disable() inv_pos = GLOVE LastClickSlot = 6 LOAD:show() g_game.talk(g_game.talk("!backpack 06 " ..onBackpackSelect))
14514 scheduleEvent(function() GLOVE:enable() end, delayPro)
14515 elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then
14516 if modules.game_database.getInventory(06, 01) > 0 then
14517 LastClickSlot = 6
14518 backpackMenu(02, 06, 00)
14519 end
14520 end
14521 end
14522
14523 RING_MOBILE = modules.game_interface.onMobileWindow(13)
14524 RING_MOBILE.onMouseRelease = function(widget, mousePos, mouseButton)
14525 if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then
14526 if ViewItems == true then
14527
14528 onItemViewMobile(07, 00)
14529 else
14530 onBackpackSelect = 00
14531 ORDER_BACKPACK_TYPE = 01
14532 RING:disable() inv_pos = RING_MOBILE LastClickSlot = 7 LOAD:show() g_game.talk(g_game.talk("!backpack 07 " ..onBackpackSelect))
14533 CloseBackpack()
14534 closedInventario()
14535 scheduleEvent(function() RING:enable() end, delayPro)
14536 end
14537 elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then
14538 if modules.game_database.getInventory(07, 01) > 0 then
14539 LastClickSlot = 7
14540 backpackMenu(02, 07)
14541 end
14542 end
14543 end
14544 RING.onMouseRelease = function(widget, mousePos, mouseButton)
14545 if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then
14546 onBackpackSelect = 00
14547 ORDER_BACKPACK_TYPE = 01
14548 RING:disable() inv_pos = RING LastClickSlot = 7 LOAD:show() g_game.talk(g_game.talk("!backpack 07 " ..onBackpackSelect))
14549 scheduleEvent(function() RING:enable() end, delayPro)
14550 elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then
14551 if modules.game_database.getInventory(07, 01) > 0 then
14552 LastClickSlot = 7
14553 backpackMenu(02, 07, 00)
14554 end
14555 end
14556 end
14557
14558 LEGS_MOBILE = modules.game_interface.onMobileWindow(14)
14559 LEGS_MOBILE.onMouseRelease = function(widget, mousePos, mouseButton)
14560 if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then
14561 if ViewItems == true then
14562
14563 onItemViewMobile(08, 00)
14564 else
14565 onBackpackSelect = 00
14566 ORDER_BACKPACK_TYPE = 01
14567 LEGS:disable() inv_pos = LEGS_MOBILE LastClickSlot = 8 LOAD:show() g_game.talk(g_game.talk("!backpack 08 " ..onBackpackSelect))
14568 CloseBackpack()
14569 closedInventario()
14570 scheduleEvent(function() LEGS:enable() end, delayPro)
14571 end
14572 elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then
14573 if modules.game_database.getInventory(08, 01) > 0 then
14574 LastClickSlot = 8
14575 backpackMenu(02, 08)
14576 end
14577 end
14578 end
14579 LEGS.onMouseRelease = function(widget, mousePos, mouseButton)
14580 if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then
14581 onBackpackSelect = 00
14582 ORDER_BACKPACK_TYPE = 01
14583 LEGS:disable() inv_pos = LEGS LastClickSlot = 8 LOAD:show() g_game.talk(g_game.talk("!backpack 08 " ..onBackpackSelect))
14584 scheduleEvent(function() LEGS:enable() end, delayPro)
14585 elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then
14586 if modules.game_database.getInventory(08, 01) > 0 then
14587 LastClickSlot = 8
14588 backpackMenu(02, 08, 00)
14589 end
14590 end
14591 end
14592
14593 BOOTS_MOBILE = modules.game_interface.onMobileWindow(15)
14594 BOOTS_MOBILE.onMouseRelease = function(widget, mousePos, mouseButton)
14595 if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then
14596 if ViewItems == true then
14597
14598 onItemViewMobile(09, 00)
14599 else
14600 onBackpackSelect = 00
14601 ORDER_BACKPACK_TYPE = 01
14602 BOOTS:disable() inv_pos = BOOTS_MOBILE LastClickSlot = 9 LOAD:show() g_game.talk(g_game.talk("!backpack 09 " ..onBackpackSelect))
14603 CloseBackpack()
14604 closedInventario()
14605 scheduleEvent(function() BOOTS:enable() end, delayPro)
14606 end
14607 elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then
14608 if modules.game_database.getInventory(09, 01) > 0 then
14609 LastClickSlot = 9
14610 backpackMenu(02, 09)
14611 end
14612 end
14613 end
14614 BOOTS.onMouseRelease = function(widget, mousePos, mouseButton)
14615 if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then
14616 onBackpackSelect = 00
14617 ORDER_BACKPACK_TYPE = 01
14618 BOOTS:disable() inv_pos = BOOTS LastClickSlot = 9 LOAD:show() g_game.talk(g_game.talk("!backpack 09 " ..onBackpackSelect))
14619 scheduleEvent(function() BOOTS:enable() end, delayPro)
14620 elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then
14621 if modules.game_database.getInventory(09, 01) > 0 then
14622 LastClickSlot = 9
14623 backpackMenu(02, 09, 00)
14624 end
14625 end
14626 end
14627
14628 SUMMON_MOBILE = modules.game_interface.onMobileWindow(82)
14629 SUMMON_MOBILE.onMouseRelease = function(widget, mousePos, mouseButton)
14630 if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then
14631 MOBILE_EQUIP_BAR = modules.game_interface.onMobileWindow(16)
14632 MOBILE_SUMMOM_BAR = modules.game_interface.onMobileWindow(99)
14633 MOBILE_SELECT_CLASS = modules.game_interface.onMobileWindow(89)
14634 MOBILE_SELECT_FILTR = modules.game_interface.onMobileWindow(90)
14635 MOBILE_SELECT_NEWSU = modules.game_interface.onMobileWindow(91)
14636 MOBILE_SELECT_NEWIM = modules.game_interface.onMobileWindow(92)
14637 MOBILE_SELECT_NEWIN = modules.game_interface.onMobileWindow(93)
14638 MOBILE_SELECT_PROGR = modules.game_interface.onMobileWindow(94)
14639 MOBILE_SELECT_LASTS = modules.game_interface.onMobileWindow(95)
14640 MOBILE_SELECT_COUNT = modules.game_interface.onMobileWindow(96)
14641 MOBILE_SELECT_NEXTS = modules.game_interface.onMobileWindow(97)
14642 MOBILE_SELECT_EQUIP = modules.game_interface.onMobileWindow(98)
14643 MOBILE_SKILL_BAR = modules.client_mobile.onMobileButton(07)
14644
14645 MOBILE_SUMMOM_BAR:setVisible(true)
14646 MOBILE_SELECT_CLASS:setVisible(true)
14647 MOBILE_SELECT_FILTR:setVisible(true)
14648 MOBILE_SELECT_NEWSU:setVisible(true)
14649 MOBILE_SELECT_NEWIM:setVisible(true)
14650 MOBILE_SELECT_NEWIN:setVisible(true)
14651 MOBILE_SELECT_PROGR:setVisible(true)
14652 MOBILE_SELECT_LASTS:setVisible(true)
14653 MOBILE_SELECT_COUNT:setVisible(true)
14654 MOBILE_SELECT_NEXTS:setVisible(true)
14655 MOBILE_SELECT_EQUIP:setVisible(true)
14656 MOBILE_EQUIP_BAR:setVisible(false)
14657
14658 onSummonShow()
14659 g_keyboard.unbindKeyPress('Escape')
14660 g_keyboard.bindKeyPress('Escape', function()
14661 MOBILE_SKILL_BAR:setVisible(false)
14662 MOBILE_SUMMOM_BAR:setVisible(false)
14663 MOBILE_SELECT_CLASS:setVisible(false)
14664 MOBILE_SELECT_FILTR:setVisible(false)
14665 MOBILE_SELECT_NEWSU:setVisible(false)
14666 MOBILE_SELECT_NEWIM:setVisible(false)
14667 MOBILE_SELECT_NEWIN:setVisible(false)
14668 MOBILE_SELECT_PROGR:setVisible(false)
14669 MOBILE_SELECT_LASTS:setVisible(false)
14670 MOBILE_SELECT_COUNT:setVisible(false)
14671 MOBILE_SELECT_NEXTS:setVisible(false)
14672 MOBILE_SELECT_EQUIP:setVisible(false)
14673 MOBILE_EQUIP_BAR:setVisible(true)
14674
14675 g_keyboard.unbindKeyPress('Escape')
14676 end)
14677 elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then
14678 end
14679 end
14680 SUMMON.onMouseRelease = function(widget, mousePos, mouseButton)
14681 if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then
14682 if SummonShow == 0 then
14683 onSummonShow()
14684 else
14685 onSummonHide()
14686 end
14687 elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then
14688 end
14689 end
14690
14691 onTooltipInv()
14692 ----------------------------------------
14693 A = 5 menuBackgroundShow = 1
14694 AnimaredInn()
14695 end
14696end
14697function OpenBackpack(x)
14698 Max = 20
14699 IS = x
14700 if IS == 1 then
14701 BAG = BAG_01
14702 elseif IS == 2 then
14703 BAG = BAG_02
14704 elseif IS == 3 then
14705 BAG = BAG_03
14706 elseif IS == 4 then
14707 BAG = BAG_04
14708 elseif IS == 5 then
14709 BAG = BAG_05
14710 elseif IS == 6 then
14711 BAG = BAG_06
14712 elseif IS == 7 then
14713 BAG = BAG_07
14714 elseif IS == 8 then
14715 BAG = BAG_08
14716 elseif IS == 9 then
14717 BAG = BAG_09
14718 elseif IS == 10 then
14719 BAG = BAG_10
14720 elseif IS == 11 then
14721 BAG = BAG_11
14722 elseif IS == 12 then
14723 BAG = BAG_12
14724 elseif IS == 13 then
14725 BAG = BAG_13
14726 elseif IS == 14 then
14727 BAG = BAG_14
14728 elseif IS == 15 then
14729 BAG = BAG_15
14730 elseif IS == 16 then
14731 BAG = BAG_16
14732 elseif IS == 17 then
14733 BAG = BAG_17
14734 elseif IS == 18 then
14735 BAG = BAG_18
14736 elseif IS == 19 then
14737 BAG = BAG_19
14738 elseif IS == 20 then
14739 BAG = BAG_20
14740 end
14741
14742 BAG_MOBILE = modules.game_interface.onMobileWindow(21, IS)
14743 Delay = 10
14744 scheduleEvent(function()
14745 if modules.game_database.getItemBagId(IS) > 0 then
14746 local _bag = IS
14747 local id = modules.game_database.getItemBagId(_bag)
14748 local slot_bag = modules.game_database.getItemInfo(id, 02)
14749 BAG:setText("")
14750 BAG:setImageSource("/images/custom/UI/rare_" ..modules.game_database.getRareBagId(_bag))
14751 BAG:setIcon("/images/custom/Items/" ..modules.game_database.getItemBagId(_bag))
14752 BAG_MOBILE:setText("")
14753 BAG_MOBILE:setImageSource("/images/custom/UI/rare_" ..modules.game_database.getRareBagId(_bag))
14754 BAG_MOBILE:setIcon("/images/custom/Items/" ..modules.game_database.getItemBagId(_bag))
14755 if slot_bag then
14756 if slot_bag == 3 or slot_bag == 0 or slot_bag > 10 then
14757 BAG.onMouseRelease = function(widget, mousePos, mouseButton)
14758 if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then
14759 return
14760 elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then
14761 backpackMenu(04, _bag, slot_bag)
14762 end
14763 end
14764 BAG_MOBILE.onMouseRelease = function(widget, mousePos, mouseButton)
14765 if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then
14766 if ViewItems == true then
14767
14768 onItemViewMobile(slot_bag, _bag)
14769 end
14770 elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then
14771 backpackMenu(04, _bag, slot_bag)
14772 end
14773 end
14774 end
14775 if slot_bag == 1 or slot_bag == 7 then
14776 local star = modules.game_database.getPosBackpack(_bag, 3)
14777 local rare = modules.game_database.getPosBackpack(_bag, 2)
14778 local level = modules.game_database.getPosBackpack(_bag, 5)
14779 local lock = modules.game_database.getPosBackpack(_bag, 9)
14780 BAG:setTooltip("@JOIAS " ..id.. " " ..rare.. " " ..star.. " 0 " ..level.. " 0 0 0 " ..lock.. "0")
14781 elseif slot_bag == 4 then
14782 local skill_01 = modules.game_database.getPosBackpack(_bag, 4)
14783 local skill_02 = modules.game_database.getPosBackpack(_bag, 5)
14784 local skill_03 = modules.game_database.getPosBackpack(_bag, 6)
14785 local level = modules.game_database.getPosBackpack(_bag, 7)
14786 local star = modules.game_database.getPosBackpack(_bag, 3)
14787 local rare = modules.game_database.getPosBackpack(_bag, 2)
14788 local ammo = modules.game_database.getPosBackpack(_bag, 10)
14789 local lock = modules.game_database.getPosBackpack(_bag, 9)
14790 local bonus = modules.game_database.getPosBackpack(_bag, 8)
14791 BAG:setTooltip("@GUN " ..id.. " " ..rare.. " " ..star.. " " ..skill_01.. " " ..skill_02.. " " ..skill_03.. " " ..level.. " " ..bonus.. " " ..lock.. " " ..ammo)
14792 elseif slot_bag == 0 or slot_bag == 11 then
14793 local qnt = modules.game_database.getPosBackpack(_bag, 04)
14794 local star = modules.game_database.getPosBackpack(_bag, 3)
14795 local rare = modules.game_database.getPosBackpack(_bag, 2)
14796 local lock = modules.game_database.getPosBackpack(_bag, 9)
14797 BAG:setTooltip("@BAG " ..id.. " " ..rare.. " " ..star.. " " ..qnt.. " 0 0 0 0 " ..lock.. " 0")
14798 if qnt > 0 then
14799 if qnt < 10 then
14800 BAG:setText("0" ..modules.game_database.getPosBackpack(_bag, 04))
14801 BAG_MOBILE:setText("0" ..modules.game_database.getPosBackpack(_bag, 04))
14802 else
14803 BAG:setText(modules.game_database.getPosBackpack(_bag, 04))
14804 BAG_MOBILE:setText(modules.game_database.getPosBackpack(_bag, 04))
14805 end
14806 else
14807 BAG:setText("")
14808 BAG_MOBILE:setText("")
14809 end
14810 elseif slot_bag == 12 then
14811 local skill_01 = modules.game_database.getItemInfo(id, 10)
14812 local qnt = modules.game_database.getPosBackpack(_bag, 04)
14813 local lock = modules.game_database.getPosBackpack(_bag, 09)
14814 BAG:setTooltip("@SKILL " ..skill_01.. " -- " ..lock)
14815 if qnt > 0 then
14816 if qnt < 10 then
14817 BAG:setText("0" ..modules.game_database.getPosBackpack(_bag, 04))
14818 BAG_MOBILE:setText("0" ..modules.game_database.getPosBackpack(_bag, 04))
14819 else
14820 BAG:setText(modules.game_database.getPosBackpack(_bag, 04))
14821 BAG_MOBILE:setText(modules.game_database.getPosBackpack(_bag, 04))
14822 end
14823 else
14824 BAG:setText("")
14825 BAG_MOBILE:setText("")
14826 end
14827 else
14828 local star = modules.game_database.getPosBackpack(_bag, 3)
14829 local level = modules.game_database.getPosBackpack(_bag, 5)
14830 local atr1 = modules.game_database.getPosBackpack(_bag, 6)
14831 local atr2 = modules.game_database.getPosBackpack(_bag, 7)
14832 local rare = modules.game_database.getPosBackpack(_bag, 2)
14833 local lock = modules.game_database.getPosBackpack(_bag, 9)
14834 local bonus = modules.game_database.getPosBackpack(_bag, 8)
14835 BAG:setTooltip("@EQUIP " ..id.. " " ..rare.. " " ..star.. " 0 " ..level.. " " ..atr1.. " " ..atr2.. " " ..bonus.. " " ..lock.. " 0")
14836 end
14837 if slot_bag > 0 and slot_bag < 11 then
14838 if slot_bag == 4 then
14839 local star = modules.game_database.getPosBackpack(_bag, 3)
14840 local level = modules.game_database.getPosBackpack(_bag, 7)
14841 local rare = modules.game_database.getPosBackpack(_bag, 2)
14842 local localPlayer = g_game.getLocalPlayer()
14843 local GUN_BASE_LEVEL = modules.game_database.getItemInfo(id, 19)
14844 local LEVEL_FOR_RARE = 05
14845 local LEVEL_FOR_LEVEL = 04
14846 if rare < 0 then rare = 0 end
14847 if level < 0 then level = 0 end
14848 if star < 0 then star = 0 end
14849
14850 REQUISITO_LEVEL = GUN_BASE_LEVEL + (rare * LEVEL_FOR_RARE) + (level * LEVEL_FOR_LEVEL) + ((star * 10) * LEVEL_FOR_LEVEL)
14851 if localPlayer:getLevel() >= REQUISITO_LEVEL then
14852 BAG.onMouseRelease = function(widget, mousePos, mouseButton)
14853 if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then
14854 if modules.game_interface.getTrade() == 00 then
14855 inv_pos:setBorderWidth(0)
14856 inv_pos:setBorderColor("white")
14857 modules.game_database.onEquipItem(_bag, inv_pos)
14858 g_game.talk(g_game.talk("!inventario " .._bag.. " " ..id.. " " ..onBackpackSelect))
14859 end
14860 elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then
14861 backpackMenu(03, _bag, slot_bag)
14862 end
14863 end
14864 BAG_MOBILE.onMouseRelease = function(widget, mousePos, mouseButton)
14865 if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then
14866 if ViewItems == true then
14867 onItemViewMobile(slot_bag, _bag)
14868 else
14869 if modules.game_interface.getTrade() == 00 then
14870 inv_pos:setBorderWidth(0)
14871 inv_pos:setBorderColor("white")
14872 modules.game_database.onEquipItem(_bag, inv_pos)
14873 g_game.talk(g_game.talk("!inventario " .._bag.. " " ..id.. " " ..onBackpackSelect))
14874
14875 MOBILE_BACKPACKS_BAR = modules.game_interface.onMobileWindow(20)
14876 MOBILE_BACKPACKS_SCR = modules.game_interface.onMobileWindow(22)
14877 MOBILE_BACKPACKS_LIS = modules.game_interface.onMobileWindow(23)
14878 MOBILE_EQUIP_BAR = modules.game_interface.onMobileWindow(16)
14879
14880 MOBILE_BACKPACKS_BAR:setVisible(false)
14881 MOBILE_BACKPACKS_SCR:setVisible(false)
14882 MOBILE_BACKPACKS_LIS:setVisible(false)
14883 MOBILE_EQUIP_BAR:setVisible(true)
14884 ViewMenuID = 00
14885 OptionsInventario()
14886 end
14887 end
14888 elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then
14889 backpackMenu(03, _bag)
14890 end
14891 end
14892 else
14893 BAG.onMouseRelease = function(widget, mousePos, mouseButton)
14894 if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then
14895 elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then
14896 backpackMenu(03, _bag)
14897 end
14898 end
14899 BAG_MOBILE.onMouseRelease = function(widget, mousePos, mouseButton)
14900 if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then
14901 if ViewItems == true then
14902
14903 onItemViewMobile(slot_bag, _bag)
14904 end
14905 elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then
14906 backpackMenu(03, _bag)
14907 end
14908 end
14909 end
14910 elseif slot_bag == 1 or slot_bag == 7 then
14911 BAG.onMouseRelease = function(widget, mousePos, mouseButton)
14912 if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then
14913 if modules.game_interface.getTrade() == 00 then
14914 inv_pos:setBorderWidth(0)
14915 inv_pos:setBorderColor("white")
14916 modules.game_database.onEquipItem(_bag, inv_pos)
14917 g_game.talk(g_game.talk("!inventario " .._bag.. " " ..id.. " " ..onBackpackSelect))
14918 end
14919 elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then
14920 backpackMenu(04, _bag, slot_bag)
14921 end
14922 end
14923 BAG_MOBILE.onMouseRelease = function(widget, mousePos, mouseButton)
14924 if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then
14925 if ViewItems == true then
14926
14927 onItemViewMobile(slot_bag, _bag)
14928 else
14929 if modules.game_interface.getTrade() == 00 then
14930 inv_pos:setBorderWidth(0)
14931 inv_pos:setBorderColor("white")
14932 modules.game_database.onEquipItem(_bag, inv_pos)
14933 g_game.talk(g_game.talk("!inventario " .._bag.. " " ..id.. " " ..onBackpackSelect))
14934
14935 MOBILE_BACKPACKS_BAR = modules.game_interface.onMobileWindow(20)
14936 MOBILE_BACKPACKS_SCR = modules.game_interface.onMobileWindow(22)
14937 MOBILE_BACKPACKS_LIS = modules.game_interface.onMobileWindow(23)
14938 MOBILE_EQUIP_BAR = modules.game_interface.onMobileWindow(16)
14939
14940 MOBILE_BACKPACKS_BAR:setVisible(false)
14941 MOBILE_BACKPACKS_SCR:setVisible(false)
14942 MOBILE_BACKPACKS_LIS:setVisible(false)
14943 MOBILE_EQUIP_BAR:setVisible(true)
14944 ViewMenuID = 00
14945 OptionsInventario()
14946 end
14947 end
14948 elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then
14949 backpackMenu(04, _bag, slot_bag)
14950 end
14951 end
14952 else
14953 local star = modules.game_database.getPosBackpack(_bag, 3)
14954 local level = modules.game_database.getPosBackpack(_bag, 5)
14955 local localPlayer = g_game.getLocalPlayer()
14956 local itemRecLevel = (modules.game_database.getItemInfo(id, 3) + level + (star * 10)) * 2
14957
14958 if localPlayer:getLevel() >= itemRecLevel then
14959 BAG.onMouseRelease = function(widget, mousePos, mouseButton)
14960 if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then
14961 if modules.game_interface.getTrade() == 00 then
14962 inv_pos:setBorderWidth(0)
14963 inv_pos:setBorderColor("white")
14964 modules.game_database.onEquipItem(_bag, inv_pos)
14965 g_game.talk(g_game.talk("!inventario " .._bag.. " " ..id.. " " ..onBackpackSelect))
14966 end
14967 elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then
14968 backpackMenu(04, _bag, slot_bag)
14969 end
14970 end
14971 BAG_MOBILE.onMouseRelease = function(widget, mousePos, mouseButton)
14972 if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then
14973 if ViewItems == true then
14974
14975 onItemViewMobile(slot_bag, _bag)
14976 else
14977 if modules.game_interface.getTrade() == 00 then
14978 inv_pos:setBorderWidth(0)
14979 inv_pos:setBorderColor("white")
14980 modules.game_database.onEquipItem(_bag, inv_pos)
14981 g_game.talk(g_game.talk("!inventario " .._bag.. " " ..id.. " " ..onBackpackSelect))
14982
14983 MOBILE_BACKPACKS_BAR = modules.game_interface.onMobileWindow(20)
14984 MOBILE_BACKPACKS_SCR = modules.game_interface.onMobileWindow(22)
14985 MOBILE_BACKPACKS_LIS = modules.game_interface.onMobileWindow(23)
14986 MOBILE_EQUIP_BAR = modules.game_interface.onMobileWindow(16)
14987
14988 MOBILE_BACKPACKS_BAR:setVisible(false)
14989 MOBILE_BACKPACKS_SCR:setVisible(false)
14990 MOBILE_BACKPACKS_LIS:setVisible(false)
14991 MOBILE_EQUIP_BAR:setVisible(true)
14992 ViewMenuID = 00
14993 OptionsInventario()
14994 end
14995 end
14996 elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then
14997 backpackMenu(04, _bag, slot_bag)
14998 end
14999 end
15000 else
15001 BAG.onMouseRelease = function(widget, mousePos, mouseButton)
15002 if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then
15003 elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then
15004 backpackMenu(04, _bag, slot_bag)
15005 end
15006 end
15007 BAG_MOBILE.onMouseRelease = function(widget, mousePos, mouseButton)
15008 if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then
15009 if ViewItems == true then
15010
15011 onItemViewMobile(slot_bag, _bag)
15012 end
15013 elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then
15014 backpackMenu(04, _bag, slot_bag)
15015 end
15016 end
15017 end
15018 end
15019 end
15020 end
15021 else
15022 BAG:setIcon("/images/custom/UI/none")
15023 BAG:setImageSource("/images/custom/UI/item_slot")
15024 BAG:setTooltip("")
15025 BAG:setText("")
15026 BAG.onMouseRelease = function(widget, mousePos, mouseButton)
15027 if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then
15028 elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then
15029 end
15030 end
15031 BAG_MOBILE:setIcon("/images/custom/UI/none")
15032 BAG_MOBILE:setImageSource("/images/custom/UI/item_slot")
15033 BAG_MOBILE:setTooltip("")
15034 BAG_MOBILE:setText("")
15035 BAG_MOBILE.onMouseRelease = function(widget, mousePos, mouseButton)
15036 if (widget:containsPoint(mousePos) and mouseButton == MouseLeftButton) then
15037 elseif (widget:containsPoint(mousePos) and mouseButton == MouseRightButton) then
15038 end
15039 end
15040 end
15041 if OnlyRefreshBag then BAG:show() BAG_MOBILE:show() end
15042 if BackpackEffect then g_effects.fadeIn(BAG, 50) end
15043
15044 if IS < Max then
15045 IS = IS + 1
15046 OpenBackpack(IS)
15047 else
15048 BACKPACK_01:setTooltip("Backpack 01")
15049 if OnlyRefreshBag then BACKPACK_01:show() end
15050 if BackpackEffect then g_effects.fadeIn(BACKPACK_01, 250) end
15051 if g_app.isMobile() then
15052 MOBILE_EXT_BACKPACK_01 = modules.game_interface.onMobileWindow(84, 01)
15053 MOBILE_EXT_BACKPACK_01.onClick = function()
15054 if LastClickSlot == 1 then
15055 BACKPACK_SLOT = AMULET
15056 elseif LastClickSlot == 2 then
15057 BACKPACK_SLOT = HELMET
15058 elseif LastClickSlot == 3 then
15059 BACKPACK_SLOT = BACKPACK
15060 elseif LastClickSlot == 4 then
15061 BACKPACK_SLOT = GUN
15062 elseif LastClickSlot == 5 then
15063 BACKPACK_SLOT = ARMOR
15064 elseif LastClickSlot == 6 then
15065 BACKPACK_SLOT = GLOVE
15066 elseif LastClickSlot == 7 then
15067 BACKPACK_SLOT = RING
15068 elseif LastClickSlot == 8 then
15069 BACKPACK_SLOT = LEGS
15070 elseif LastClickSlot == 9 then
15071 BACKPACK_SLOT = BOOTS
15072 end
15073
15074 onBackpackSelect = 00
15075 MOBILE_EXT_BACKPACK_01:disable() inv_pos = BACKPACK_SLOT LOAD:show() g_game.talk(g_game.talk("!backpack "..LastClickSlot.. " " ..onBackpackSelect))
15076 scheduleEvent(function() MOBILE_EXT_BACKPACK_01:enable() end, delayPro)
15077 end
15078 end
15079 BACKPACK_01.onClick = function()
15080 if LastClickSlot == 1 then
15081 BACKPACK_SLOT = AMULET
15082 elseif LastClickSlot == 2 then
15083 BACKPACK_SLOT = HELMET
15084 elseif LastClickSlot == 3 then
15085 BACKPACK_SLOT = BACKPACK
15086 elseif LastClickSlot == 4 then
15087 BACKPACK_SLOT = GUN
15088 elseif LastClickSlot == 5 then
15089 BACKPACK_SLOT = ARMOR
15090 elseif LastClickSlot == 6 then
15091 BACKPACK_SLOT = GLOVE
15092 elseif LastClickSlot == 7 then
15093 BACKPACK_SLOT = RING
15094 elseif LastClickSlot == 8 then
15095 BACKPACK_SLOT = LEGS
15096 elseif LastClickSlot == 9 then
15097 BACKPACK_SLOT = BOOTS
15098 end
15099
15100 onBackpackSelect = 00
15101 BACKPACK_01:disable() inv_pos = BACKPACK_SLOT LOAD:show() g_game.talk(g_game.talk("!backpack "..LastClickSlot.. " " ..onBackpackSelect))
15102 scheduleEvent(function() BACKPACK_01:enable() end, delayPro)
15103 end
15104
15105 if modules.game_database.getExtension(LastClickSlot) >= 01 then
15106 if OnlyRefreshBag then BACKPACK_02:show() end
15107 BACKPACK_02:setImageSource("/images/custom/UI/backpack_slot")
15108 BACKPACK_02:setTooltip("Backpack 02")
15109 if BackpackEffect then g_effects.fadeIn(BACKPACK_02, 250) end
15110 if g_app.isMobile() then
15111 MOBILE_EXT_BACKPACK_02 = modules.game_interface.onMobileWindow(84, 02)
15112 MOBILE_EXT_BACKPACK_02:setImageSource("/images/custom/UI/backpack_slot")
15113 MOBILE_EXT_BACKPACK_02.onClick = function()
15114 if LastClickSlot == 1 then
15115 BACKPACK_SLOT = AMULET
15116 elseif LastClickSlot == 2 then
15117 BACKPACK_SLOT = HELMET
15118 elseif LastClickSlot == 3 then
15119 BACKPACK_SLOT = BACKPACK
15120 elseif LastClickSlot == 4 then
15121 BACKPACK_SLOT = GUN
15122 elseif LastClickSlot == 5 then
15123 BACKPACK_SLOT = ARMOR
15124 elseif LastClickSlot == 6 then
15125 BACKPACK_SLOT = GLOVE
15126 elseif LastClickSlot == 7 then
15127 BACKPACK_SLOT = RING
15128 elseif LastClickSlot == 8 then
15129 BACKPACK_SLOT = LEGS
15130 elseif LastClickSlot == 9 then
15131 BACKPACK_SLOT = BOOTS
15132 end
15133
15134 onBackpackSelect = 01
15135 MOBILE_EXT_BACKPACK_02:disable() inv_pos = BACKPACK_SLOT LOAD:show() g_game.talk(g_game.talk("!backpack "..LastClickSlot.. " 01"))
15136 scheduleEvent(function() MOBILE_EXT_BACKPACK_02:enable() end, delayPro)
15137 end
15138 end
15139 BACKPACK_02.onClick = function()
15140 if LastClickSlot == 1 then
15141 BACKPACK_SLOT = AMULET
15142 elseif LastClickSlot == 2 then
15143 BACKPACK_SLOT = HELMET
15144 elseif LastClickSlot == 3 then
15145 BACKPACK_SLOT = BACKPACK
15146 elseif LastClickSlot == 4 then
15147 BACKPACK_SLOT = GUN
15148 elseif LastClickSlot == 5 then
15149 BACKPACK_SLOT = ARMOR
15150 elseif LastClickSlot == 6 then
15151 BACKPACK_SLOT = GLOVE
15152 elseif LastClickSlot == 7 then
15153 BACKPACK_SLOT = RING
15154 elseif LastClickSlot == 8 then
15155 BACKPACK_SLOT = LEGS
15156 elseif LastClickSlot == 9 then
15157 BACKPACK_SLOT = BOOTS
15158 end
15159
15160 onBackpackSelect = 01
15161 BACKPACK_02:disable() inv_pos = BACKPACK_SLOT LOAD:show() g_game.talk(g_game.talk("!backpack "..LastClickSlot.. " 01"))
15162 scheduleEvent(function() BACKPACK_02:enable() end, delayPro)
15163 end
15164 else
15165 if OnlyRefreshBag then BACKPACK_02:show() end
15166 if BackpackEffect then g_effects.fadeIn(BACKPACK_02, 250) end
15167 BACKPACK_02:setImageSource("/images/custom/UI/backpack_slot_lock")
15168 BACKPACK_02:setTooltip(tr("Compre um novo Slot no Shop"))
15169 BACKPACK_02.onClick = function() end
15170 if g_app.isMobile() then
15171 MOBILE_EXT_BACKPACK_02 = modules.game_interface.onMobileWindow(84, 02)
15172 MOBILE_EXT_BACKPACK_02:setImageSource("/images/custom/UI/backpack_slot_lock")
15173 MOBILE_EXT_BACKPACK_02.onClick = function() end
15174 end
15175 end
15176
15177 if modules.game_database.getExtension(LastClickSlot) >= 02 then
15178 if OnlyRefreshBag then BACKPACK_03:show() end
15179 BACKPACK_03:setImageSource("/images/custom/UI/backpack_slot")
15180 BACKPACK_03:setTooltip("Backpack 03")
15181 if BackpackEffect then g_effects.fadeIn(BACKPACK_03, 250) end
15182 if g_app.isMobile() then
15183 MOBILE_EXT_BACKPACK_03 = modules.game_interface.onMobileWindow(84, 02)
15184 MOBILE_EXT_BACKPACK_03:setImageSource("/images/custom/UI/backpack_slot")
15185 MOBILE_EXT_BACKPACK_03.onClick = function()
15186 if LastClickSlot == 1 then
15187 BACKPACK_SLOT = AMULET
15188 elseif LastClickSlot == 2 then
15189 BACKPACK_SLOT = HELMET
15190 elseif LastClickSlot == 3 then
15191 BACKPACK_SLOT = BACKPACK
15192 elseif LastClickSlot == 4 then
15193 BACKPACK_SLOT = GUN
15194 elseif LastClickSlot == 5 then
15195 BACKPACK_SLOT = ARMOR
15196 elseif LastClickSlot == 6 then
15197 BACKPACK_SLOT = GLOVE
15198 elseif LastClickSlot == 7 then
15199 BACKPACK_SLOT = RING
15200 elseif LastClickSlot == 8 then
15201 BACKPACK_SLOT = LEGS
15202 elseif LastClickSlot == 9 then
15203 BACKPACK_SLOT = BOOTS
15204 end
15205
15206 onBackpackSelect = 01
15207 MOBILE_EXT_BACKPACK_03:disable() inv_pos = BACKPACK_SLOT LOAD:show() g_game.talk(g_game.talk("!backpack "..LastClickSlot.. " 02"))
15208 scheduleEvent(function() MOBILE_EXT_BACKPACK_03:enable() end, delayPro)
15209 end
15210 end
15211 BACKPACK_03.onClick = function()
15212 if LastClickSlot == 1 then
15213 BACKPACK_SLOT = AMULET
15214 elseif LastClickSlot == 2 then
15215 BACKPACK_SLOT = HELMET
15216 elseif LastClickSlot == 3 then
15217 BACKPACK_SLOT = BACKPACK
15218 elseif LastClickSlot == 4 then
15219 BACKPACK_SLOT = GUN
15220 elseif LastClickSlot == 5 then
15221 BACKPACK_SLOT = ARMOR
15222 elseif LastClickSlot == 6 then
15223 BACKPACK_SLOT = GLOVE
15224 elseif LastClickSlot == 7 then
15225 BACKPACK_SLOT = RING
15226 elseif LastClickSlot == 8 then
15227 BACKPACK_SLOT = LEGS
15228 elseif LastClickSlot == 9 then
15229 BACKPACK_SLOT = BOOTS
15230 end
15231
15232 onBackpackSelect = 02
15233 BACKPACK_03:disable() inv_pos = BACKPACK_SLOT LOAD:show() g_game.talk(g_game.talk("!backpack "..LastClickSlot.. " 02"))
15234 scheduleEvent(function() BACKPACK_03:enable() end, delayPro)
15235 end
15236 else
15237 if OnlyRefreshBag then BACKPACK_03:show() end
15238 if BackpackEffect then g_effects.fadeIn(BACKPACK_03, 250) end
15239 BACKPACK_03:setImageSource("/images/custom/UI/backpack_slot_lock")
15240 BACKPACK_03:setTooltip(tr("Compre um novo Slot no Shop"))
15241 BACKPACK_03.onClick = function() end
15242 if g_app.isMobile() then
15243 MOBILE_EXT_BACKPACK_03 = modules.game_interface.onMobileWindow(84, 03)
15244 MOBILE_EXT_BACKPACK_03:setImageSource("/images/custom/UI/backpack_slot_lock")
15245 MOBILE_EXT_BACKPACK_03.onClick = function() end
15246 end
15247 end
15248
15249 if modules.game_database.getExtension(LastClickSlot) >= 03 then
15250 if OnlyRefreshBag then BACKPACK_04:show() end
15251 BACKPACK_04:setImageSource("/images/custom/UI/backpack_slot")
15252 BACKPACK_04:setTooltip("Backpack 04")
15253 if BackpackEffect then g_effects.fadeIn(BACKPACK_04, 250) end
15254 if g_app.isMobile() then
15255 MOBILE_EXT_BACKPACK_04 = modules.game_interface.onMobileWindow(84, 04)
15256 MOBILE_EXT_BACKPACK_04:setImageSource("/images/custom/UI/backpack_slot")
15257 MOBILE_EXT_BACKPACK_04.onClick = function()
15258 if LastClickSlot == 1 then
15259 BACKPACK_SLOT = AMULET
15260 elseif LastClickSlot == 2 then
15261 BACKPACK_SLOT = HELMET
15262 elseif LastClickSlot == 3 then
15263 BACKPACK_SLOT = BACKPACK
15264 elseif LastClickSlot == 4 then
15265 BACKPACK_SLOT = GUN
15266 elseif LastClickSlot == 5 then
15267 BACKPACK_SLOT = ARMOR
15268 elseif LastClickSlot == 6 then
15269 BACKPACK_SLOT = GLOVE
15270 elseif LastClickSlot == 7 then
15271 BACKPACK_SLOT = RING
15272 elseif LastClickSlot == 8 then
15273 BACKPACK_SLOT = LEGS
15274 elseif LastClickSlot == 9 then
15275 BACKPACK_SLOT = BOOTS
15276 end
15277
15278 onBackpackSelect = 01
15279 MOBILE_EXT_BACKPACK_04:disable() inv_pos = BACKPACK_SLOT LOAD:show() g_game.talk(g_game.talk("!backpack "..LastClickSlot.. " 03"))
15280 scheduleEvent(function() MOBILE_EXT_BACKPACK_04:enable() end, delayPro)
15281 end
15282 end
15283 BACKPACK_04.onClick = function()
15284 if LastClickSlot == 1 then
15285 BACKPACK_SLOT = AMULET
15286 elseif LastClickSlot == 2 then
15287 BACKPACK_SLOT = HELMET
15288 elseif LastClickSlot == 3 then
15289 BACKPACK_SLOT = BACKPACK
15290 elseif LastClickSlot == 4 then
15291 BACKPACK_SLOT = GUN
15292 elseif LastClickSlot == 5 then
15293 BACKPACK_SLOT = ARMOR
15294 elseif LastClickSlot == 6 then
15295 BACKPACK_SLOT = GLOVE
15296 elseif LastClickSlot == 7 then
15297 BACKPACK_SLOT = RING
15298 elseif LastClickSlot == 8 then
15299 BACKPACK_SLOT = LEGS
15300 elseif LastClickSlot == 9 then
15301 BACKPACK_SLOT = BOOTS
15302 end
15303
15304 onBackpackSelect = 03
15305 BACKPACK_04:disable() inv_pos = BACKPACK_SLOT LOAD:show() g_game.talk(g_game.talk("!backpack "..LastClickSlot.. " 03"))
15306 scheduleEvent(function() BACKPACK_04:enable() end, delayPro)
15307 end
15308 else
15309 if OnlyRefreshBag then BACKPACK_04:show() end
15310 if BackpackEffect then g_effects.fadeIn(BACKPACK_04, 250) end
15311
15312 BACKPACK_04:setImageSource("/images/custom/UI/backpack_slot_lock")
15313 BACKPACK_04:setTooltip(tr("Compre um novo Slot no Shop"))
15314 BACKPACK_04.onClick = function() end
15315 if g_app.isMobile() then
15316 MOBILE_EXT_BACKPACK_04 = modules.game_interface.onMobileWindow(84, 04)
15317 MOBILE_EXT_BACKPACK_04:setImageSource("/images/custom/UI/backpack_slot_lock")
15318 MOBILE_EXT_BACKPACK_04.onClick = function() end
15319 end
15320 end
15321
15322 ORDER_BAG:show()
15323 if ORDER_BACKPACK_TYPE == 01 then -- ORGANIZAR POR RARIDADE
15324 ORDER_BAG:setTooltip(tr("Organizar por Level"))
15325 elseif ORDER_BACKPACK_TYPE == 02 then -- ORGANIZAR POR LEVEL
15326 ORDER_BAG:setTooltip(tr("Organizar por Preco"))
15327 elseif ORDER_BACKPACK_TYPE == 03 then -- ORGANIZAR POR PRECO
15328 ORDER_BAG:setTooltip(tr("Organizar por Raridade"))
15329 end
15330 ORDER_BAG:setImageSource("/images/custom/UI/order_" ..ORDER_BACKPACK_TYPE)
15331 ORDER_BAG.onClick = function() onOrderBackpack() end
15332 g_effects.fadeIn(ORDER_BAG, 250)
15333 BackpackEffect = true
15334 if g_app.isMobile() then
15335 MOBILE_SKILL_BAR = modules.client_mobile.onMobileButton(07)
15336 MOBILE_EQUIP_BAR = modules.game_interface.onMobileWindow(16)
15337 MOBILE_BACKPACKS = modules.game_interface.onMobileWindow(20)
15338 MOBILE_BACK_SCRO = modules.game_interface.onMobileWindow(22)
15339 MOBILE_BACK_LIST = modules.game_interface.onMobileWindow(23)
15340 MOBILE_EXT_BACKPACK = modules.game_interface.onMobileWindow(83)
15341 MOBILE_SKILL_BAR = modules.client_mobile.onMobileButton(07)
15342
15343 MOBILE_SKILL_BAR:setVisible(false)
15344 MOBILE_EQUIP_BAR:setVisible(false)
15345 MOBILE_BACKPACKS:setVisible(true)
15346 MOBILE_BACK_SCRO:setVisible(true)
15347 MOBILE_BACK_LIST:setVisible(true)
15348 MOBILE_EXT_BACKPACK:setVisible(true)
15349
15350 g_keyboard.unbindKeyPress('Escape')
15351 g_keyboard.bindKeyPress('Escape', function()
15352 MOBILE_SKILL_BAR:setVisible(false)
15353 MOBILE_BACKPACKS:setVisible(false)
15354 MOBILE_BACK_SCRO:setVisible(false)
15355 MOBILE_BACK_LIST:setVisible(false)
15356 MOBILE_EXT_BACKPACK:setVisible(false)
15357 MOBILE_EQUIP_BAR:setVisible(true)
15358
15359 g_keyboard.unbindKeyPress('Escape')
15360 end)
15361 end
15362 end
15363 end, Delay)
15364end
15365function onOrderBackpack()
15366 if CLICK_DELAY then
15367 return
15368 end
15369 if ORDER_BACKPACK_TYPE == 01 then -- ORGANIZAR POR RARIDADE
15370 ORDER_BACKPACK_TYPE = 02
15371 elseif ORDER_BACKPACK_TYPE == 02 then -- ORGANIZAR POR LEVEL
15372 ORDER_BACKPACK_TYPE = 03
15373 elseif ORDER_BACKPACK_TYPE == 03 then -- ORGANIZAR POR PRECO
15374 ORDER_BACKPACK_TYPE = 01
15375 end
15376
15377 CLICK_DELAY = true
15378 g_game.talk(g_game.talk("!inventario 51 " ..LastClickSlot.. " " ..ORDER_BACKPACK_TYPE))
15379 onDelayClick(02)
15380end
15381function backpackMenu(thing, id, slot)
15382 local menu = g_ui.createWidget('PopupMenu')
15383 if thing == 01 then
15384 elseif thing == 03 then
15385 menu:addOption(tr("Visualizar"), function() onItemViewMobile(slot, id) end)
15386 if modules.game_interface.getTrade() == 01 then
15387 local _ID_9 = modules.game_database.getPosBackpack(id, 9)
15388 if _ID_9 == nil or _ID_9 < 1 then
15389 menu:addOption(tr("Adicionar ao Trade"), function()
15390 local _ID_1 = modules.game_database.getItemBagId(id)
15391 local _ID_2 = modules.game_database.getPosBackpack(id, 2)
15392 local _ID_3 = modules.game_database.getPosBackpack(id, 3)
15393 local _ID_4 = modules.game_database.getPosBackpack(id, 4)
15394 local _ID_5 = modules.game_database.getPosBackpack(id, 5)
15395 local _ID_6 = modules.game_database.getPosBackpack(id, 6)
15396 local _ID_7 = modules.game_database.getPosBackpack(id, 7)
15397 local _ID_8 = modules.game_database.getPosBackpack(id, 8)
15398 local _ID_9 = modules.game_database.getPosBackpack(id, 9)
15399 local _ID_10 = modules.game_database.getPosBackpack(id, 10)
15400
15401 if LastClickSlot == 03 then
15402 if _ID_4 > 01 then
15403 local count = _ID_4
15404 local Quantity = _ID_4
15405
15406 if countWindow ~= nil then
15407 countWindow:destroy()
15408 countWindow = nil
15409 end
15410 countWindow = g_ui.createWidget('CountWindow', rootWidget)
15411 countWindow:setText(tr("Selecione a quantidade"))
15412 local itembox = countWindow:getChildById('item')
15413 local scrollbar = countWindow:getChildById('countScrollBar')
15414 itembox:setIcon("/images/custom/Items/" ..modules.game_database.getItemBagId(id))
15415 itembox:setImageSource("/images/custom/UI/rare_" ..modules.game_database.getRareBagId(id))
15416 itembox:setSize({width = 42, height = 50})
15417 itembox:setMarginTop(-07)
15418 itembox:setTextOffset('00 30')
15419 itembox:setText(count)
15420 countWindow:focus()
15421 scrollbar:setMaximum(count)
15422 scrollbar:setMinimum(1)
15423 scrollbar:setMarginTop(10)
15424 scrollbar:setValue(count)
15425
15426 local spinbox = countWindow:getChildById('spinBox')
15427 spinbox:setMaximum(count)
15428 spinbox:setMinimum(0)
15429 spinbox:setValue(0)
15430 spinbox:hideButtons()
15431 spinbox:focus()
15432 spinbox.firstEdit = true
15433
15434 local spinBoxValueChange = function(self, value)
15435 spinbox.firstEdit = false
15436 scrollbar:setValue(value)
15437 end
15438 spinbox.onValueChange = spinBoxValueChange
15439 local check = function()
15440 if spinbox.firstEdit then
15441 spinbox:setValue(spinbox:getMaximum())
15442 spinbox.firstEdit = false
15443 end
15444 end
15445 scrollbar.onValueChange = function(self, value)
15446 Quantity = value
15447 itembox:setText(value)
15448 spinbox.onValueChange = nil
15449 spinbox:setValue(value)
15450 spinbox.onValueChange = spinBoxValueChange
15451 end
15452
15453 local okButton = countWindow:getChildById('buttonOk')
15454 okButton.onClick = function()
15455 countWindow:destroy()
15456 countWindow = nil
15457 modules.game_interface.onInsertTrade("Player", _ID_1, _ID_2, _ID_3, Quantity, _ID_5, _ID_6, _ID_7, _ID_8, _ID_9, _ID_10, LastClickSlot, onBackpackSelect, id, 00)
15458 end
15459 local cancelButton = countWindow:getChildById('buttonCancel')
15460 cancelButton.onClick = function()
15461 countWindow:destroy()
15462 countWindow = nil
15463 end
15464 else
15465 modules.game_interface.onInsertTrade("Player", _ID_1, _ID_2, _ID_3, _ID_4, _ID_5, _ID_6, _ID_7, _ID_8, _ID_9, _ID_10, LastClickSlot, onBackpackSelect, id, 00)
15466 end
15467 else
15468 modules.game_interface.onInsertTrade("Player", _ID_1, _ID_2, _ID_3, _ID_4, _ID_5, _ID_6, _ID_7, _ID_8, _ID_9, _ID_10, LastClickSlot, onBackpackSelect, id, 00)
15469 end
15470 end)
15471 else
15472 menu:addOption(tr("Impossivel dar Trade"), function() end)
15473 end
15474 end
15475 if modules.game_interface.getTrade() == 00 then
15476 if modules.game_notice.onGetAnexoMessage() then
15477 menu:addOption(tr("Anexar ao Email"), function()
15478 local _ID_1 = modules.game_database.getItemBagId(id)
15479 local _ID_2 = modules.game_database.getPosBackpack(id, 2)
15480 local _ID_3 = modules.game_database.getPosBackpack(id, 3)
15481 local _ID_4 = modules.game_database.getPosBackpack(id, 4)
15482 local _ID_5 = modules.game_database.getPosBackpack(id, 5)
15483 local _ID_6 = modules.game_database.getPosBackpack(id, 6)
15484 local _ID_7 = modules.game_database.getPosBackpack(id, 7)
15485 local _ID_8 = modules.game_database.getPosBackpack(id, 8)
15486 local _ID_9 = modules.game_database.getPosBackpack(id, 9)
15487 local _ID_10 = modules.game_database.getPosBackpack(id, 10)
15488
15489 modules.game_notice.onNoticeConfig(05, _ID_1.. "-" .._ID_2.. "-" .._ID_3.. "-" .._ID_4.. "-" .._ID_5.. "-" .._ID_6.. "-" .._ID_7.. "-" .._ID_8.. "-" .._ID_9.. "-" .._ID_10.. "-" ..LastClickSlot.. "-" ..onBackpackSelect.. "-" ..id)
15490 end)
15491 else
15492 if DESCONTRUIR_EVENT == 00 then
15493 menu:addOption(tr("Destruir"), function()
15494 local yesChoose = function()
15495 modules.game_database.setEquipItem(id, inv_pos)
15496 g_game.talk(g_game.talk("!inventario 43 " ..onBackpackSelect.. " " ..id.. " " ..LastClickSlot))
15497 exitWindow:destroy()
15498 end
15499 local noChoose = function() exitWindow:destroy() end
15500 exitWindow = displayGeneralBox(tr('Destruir'), tr("Deseja realmente destruir este item?"),
15501 { { text=tr('Yes'), callback=yesChoose },
15502 { text=tr('No'), callback=noChoose },
15503 anchor=AnchorHorizontalCenter }, yesChoose, noChoose)
15504 end)
15505 else
15506 menu:addOption(tr("Descontruir"), function() onDescontruir(id) end)
15507 end
15508 end
15509 end
15510 elseif thing == 04 then
15511 if modules.game_interface.getTrade() == 00 then
15512 if modules.game_notice.onGetAnexoMessage() then
15513 local _ID_9 = modules.game_database.getPosBackpack(id, 9)
15514 if _ID_9 == nil or _ID_9 < 1 then
15515 menu:addOption(tr("Anexar ao Email"), function()
15516 local _ID_1 = modules.game_database.getItemBagId(id)
15517 local _ID_2 = modules.game_database.getPosBackpack(id, 2)
15518 local _ID_3 = modules.game_database.getPosBackpack(id, 3)
15519 local _ID_4 = modules.game_database.getPosBackpack(id, 4)
15520 local _ID_5 = modules.game_database.getPosBackpack(id, 5)
15521 local _ID_6 = modules.game_database.getPosBackpack(id, 6)
15522 local _ID_7 = modules.game_database.getPosBackpack(id, 7)
15523 local _ID_8 = modules.game_database.getPosBackpack(id, 8)
15524 local _ID_9 = modules.game_database.getPosBackpack(id, 9)
15525 local _ID_10 = modules.game_database.getPosBackpack(id, 10)
15526
15527 if LastClickSlot == 03 then
15528 if _ID_4 > 01 then
15529 local count = _ID_4
15530 local Quantity = _ID_4
15531
15532 if countWindow ~= nil then
15533 countWindow:destroy()
15534 countWindow = nil
15535 end
15536 countWindow = g_ui.createWidget('CountWindow', rootWidget)
15537 countWindow:setText(tr("Selecione a quantidade"))
15538 local itembox = countWindow:getChildById('item')
15539 local scrollbar = countWindow:getChildById('countScrollBar')
15540 itembox:setIcon("/images/custom/Items/" ..modules.game_database.getItemBagId(id))
15541 itembox:setImageSource("/images/custom/UI/rare_" ..modules.game_database.getRareBagId(id))
15542 itembox:setSize({width = 42, height = 50})
15543 itembox:setMarginTop(-07)
15544 itembox:setTextOffset('00 30')
15545 itembox:setText(count)
15546 countWindow:focus()
15547 scrollbar:setMaximum(count)
15548 scrollbar:setMinimum(1)
15549 scrollbar:setMarginTop(10)
15550 scrollbar:setValue(count)
15551
15552 local spinbox = countWindow:getChildById('spinBox')
15553 spinbox:setMaximum(count)
15554 spinbox:setMinimum(0)
15555 spinbox:setValue(0)
15556 spinbox:hideButtons()
15557 spinbox:focus()
15558 spinbox.firstEdit = true
15559
15560 local spinBoxValueChange = function(self, value)
15561 spinbox.firstEdit = false
15562 scrollbar:setValue(value)
15563 end
15564 spinbox.onValueChange = spinBoxValueChange
15565 local check = function()
15566 if spinbox.firstEdit then
15567 spinbox:setValue(spinbox:getMaximum())
15568 spinbox.firstEdit = false
15569 end
15570 end
15571 scrollbar.onValueChange = function(self, value)
15572 Quantity = value
15573 itembox:setText(value)
15574 spinbox.onValueChange = nil
15575 spinbox:setValue(value)
15576 spinbox.onValueChange = spinBoxValueChange
15577 end
15578
15579 local okButton = countWindow:getChildById('buttonOk')
15580 okButton.onClick = function()
15581 countWindow:destroy()
15582 countWindow = nil
15583 modules.game_notice.onNoticeConfig(05, _ID_1.. "-" .._ID_2.. "-" .._ID_3.. "-" ..Quantity.. "-" .._ID_5.. "-" .._ID_6.. "-" .._ID_7.. "-" .._ID_8.. "-" .._ID_9.. "-" .._ID_10.. "-" ..LastClickSlot.. "-" ..onBackpackSelect.. "-" ..id)
15584 end
15585 local cancelButton = countWindow:getChildById('buttonCancel')
15586 cancelButton.onClick = function()
15587 countWindow:destroy()
15588 countWindow = nil
15589 end
15590 else
15591 modules.game_notice.onNoticeConfig(05, _ID_1.. "-" .._ID_2.. "-" .._ID_3.. "-" .._ID_4.. "-" .._ID_5.. "-" .._ID_6.. "-" .._ID_7.. "-" .._ID_8.. "-" .._ID_9.. "-" .._ID_10.. "-" ..LastClickSlot.. "-" ..onBackpackSelect.. "-" ..id)
15592 end
15593 else
15594 modules.game_notice.onNoticeConfig(05, _ID_1.. "-" .._ID_2.. "-" .._ID_3.. "-" .._ID_4.. "-" .._ID_5.. "-" .._ID_6.. "-" .._ID_7.. "-" .._ID_8.. "-" .._ID_9.. "-" .._ID_10.. "-" ..LastClickSlot.. "-" ..onBackpackSelect.. "-" ..id)
15595 end
15596 end)
15597 else
15598 menu:addOption(tr("Impossivel Anexar"), function() end)
15599 end
15600 else
15601 if DESCONTRUIR_EVENT > 00 and LastClickSlot ~= 03 and LastClickSlot ~= 07 then
15602 menu:addOption(tr("Descontruir"), function() onDescontruir(id) end)
15603 else
15604 menu:addOption(tr("Destruir"), function()
15605 local yesChoose = function()
15606 modules.game_database.setEquipItem(id, inv_pos)
15607 g_game.talk(g_game.talk("!inventario 43 " ..onBackpackSelect.. " " ..id.. " " ..LastClickSlot))
15608 exitWindow:destroy()
15609 end
15610 local noChoose = function() exitWindow:destroy() end
15611 exitWindow = displayGeneralBox(tr('Destruir'), tr("Deseja realmente destruir este item?"),
15612 { { text=tr('Yes'), callback=yesChoose },
15613 { text=tr('No'), callback=noChoose },
15614 anchor=AnchorHorizontalCenter }, yesChoose, noChoose)
15615 end)
15616 end
15617 end
15618 end
15619 if modules.game_interface.getTrade() == 01 then
15620 local _ID_9 = modules.game_database.getPosBackpack(id, 9)
15621 if _ID_9 == nil or _ID_9 < 1 then
15622 menu:addOption(tr("Adicionar ao Trade"), function()
15623 local _ID_1 = modules.game_database.getItemBagId(id)
15624 local _ID_2 = modules.game_database.getPosBackpack(id, 2)
15625 local _ID_3 = modules.game_database.getPosBackpack(id, 3)
15626 local _ID_4 = modules.game_database.getPosBackpack(id, 4)
15627 local _ID_5 = modules.game_database.getPosBackpack(id, 5)
15628 local _ID_6 = modules.game_database.getPosBackpack(id, 6)
15629 local _ID_7 = modules.game_database.getPosBackpack(id, 7)
15630 local _ID_8 = modules.game_database.getPosBackpack(id, 8)
15631 local _ID_10 = modules.game_database.getPosBackpack(id, 10)
15632
15633 if LastClickSlot == 03 then
15634 if _ID_4 > 01 then
15635 local count = _ID_4
15636 local Quantity = _ID_4
15637
15638 if countWindow ~= nil then
15639 countWindow:destroy()
15640 countWindow = nil
15641 end
15642 countWindow = g_ui.createWidget('CountWindow', rootWidget)
15643 countWindow:setText(tr("Selecione a quantidade"))
15644 local itembox = countWindow:getChildById('item')
15645 local scrollbar = countWindow:getChildById('countScrollBar')
15646 itembox:setIcon("/images/custom/Items/" ..modules.game_database.getItemBagId(id))
15647 itembox:setImageSource("/images/custom/UI/rare_" ..modules.game_database.getRareBagId(id))
15648 itembox:setSize({width = 42, height = 50})
15649 itembox:setMarginTop(-07)
15650 itembox:setTextOffset('00 30')
15651 itembox:setText(count)
15652 countWindow:focus()
15653 scrollbar:setMaximum(count)
15654 scrollbar:setMinimum(1)
15655 scrollbar:setMarginTop(10)
15656 scrollbar:setValue(count)
15657
15658 local spinbox = countWindow:getChildById('spinBox')
15659 spinbox:setMaximum(count)
15660 spinbox:setMinimum(0)
15661 spinbox:setValue(0)
15662 spinbox:hideButtons()
15663 spinbox:focus()
15664 spinbox.firstEdit = true
15665
15666 local spinBoxValueChange = function(self, value)
15667 spinbox.firstEdit = false
15668 scrollbar:setValue(value)
15669 end
15670 spinbox.onValueChange = spinBoxValueChange
15671 local check = function()
15672 if spinbox.firstEdit then
15673 spinbox:setValue(spinbox:getMaximum())
15674 spinbox.firstEdit = false
15675 end
15676 end
15677 scrollbar.onValueChange = function(self, value)
15678 Quantity = value
15679 itembox:setText(value)
15680 spinbox.onValueChange = nil
15681 spinbox:setValue(value)
15682 spinbox.onValueChange = spinBoxValueChange
15683 end
15684
15685 local okButton = countWindow:getChildById('buttonOk')
15686 okButton.onClick = function()
15687 countWindow:destroy()
15688 countWindow = nil
15689 modules.game_interface.onInsertTrade("Player", _ID_1, _ID_2, _ID_3, Quantity, _ID_5, _ID_6, _ID_7, _ID_8, _ID_9, _ID_10, LastClickSlot, onBackpackSelect, id, 00)
15690 end
15691 local cancelButton = countWindow:getChildById('buttonCancel')
15692 cancelButton.onClick = function()
15693 countWindow:destroy()
15694 countWindow = nil
15695 end
15696 else
15697 modules.game_interface.onInsertTrade("Player", _ID_1, _ID_2, _ID_3, _ID_4, _ID_5, _ID_6, _ID_7, _ID_8, _ID_9, _ID_10, LastClickSlot, onBackpackSelect, id, 00)
15698 end
15699 else
15700 modules.game_interface.onInsertTrade("Player", _ID_1, _ID_2, _ID_3, _ID_4, _ID_5, _ID_6, _ID_7, _ID_8, _ID_9, _ID_10, LastClickSlot, onBackpackSelect, id, 00)
15701 end
15702 end)
15703 else
15704 menu:addOption(tr("Impossivel dar Trade"), function() end)
15705 end
15706 end
15707 elseif thing == 05 then
15708 menu:addOption(tr("Mudar Hotkey"), function()
15709 SetHotkeySlot = id
15710 onShowSetHotkey()
15711 end)
15712 elseif thing == 06 then
15713 menu:addOption(tr("Aparencia"), function()
15714 for S = 01, 50 do
15715 SUMNUMBER = summonWindowBox:recursiveGetChildById('Monter' ..S)
15716 SUMNUMBER:setTooltip("")
15717 SUMNUMBER:hide()
15718 end
15719 for B = 00, modules.game_database.onGetBackpack(00) do
15720 if modules.game_database.onGetBackpack(01, B) > 0 then
15721 local index = B
15722 local LootID = modules.game_database.onGetBackpack(01, B)
15723 B = B + 1
15724 SUMNUMBER = summonWindowBox:recursiveGetChildById('Monter' ..B)
15725 IMG = summonWindowBox:recursiveGetChildById('IMGSUM_' ..B)
15726 DET = summonWindowBox:recursiveGetChildById('TEXT_' ..B)
15727 STA = summonWindowBox:recursiveGetChildById('STARSUM_' ..B)
15728 IMG:setImageSource("/images/custom/Items/" ..LootID)
15729 IMG:setImageRect('15 15 32 32')
15730
15731 local ItemName = modules.game_database.getItemInfo(LootID, 01)
15732 local RareType = modules.game_database.getItemInfo(LootID, 13)
15733
15734 SUMNUMBER:setImageSource("/images/custom/UI/loot_" ..RareType)
15735 ITEMDETALHES = summonWindowBox:recursiveGetChildById('itemDetalhes')
15736 ITEMDETALHES:setText(tr('Clique na backpack'))
15737 DET:setText(ItemName)
15738 --DET:setTooltip("@BAG " ..LootID.. " 0 " ..RareType.. " 1")
15739 DET:setTooltip("")
15740 DET:setTextWrap(true)
15741 STA:setImageSource("/images/custom/UI/star_0")
15742 IMG.onClick = function()
15743 g_game.talk(g_game.talk("!inventario 33 " ..LootID.. " " ..index))
15744 summonWindowBox:hide()
15745 end
15746 SUMNUMBER:show()
15747 else
15748 break
15749 end
15750 end
15751
15752 GoldPrice = summonWindowBox:recursiveGetChildById('paymentVip')
15753 OnliPrice = summonWindowBox:recursiveGetChildById('paymentOnline')
15754 GoldPrice:setVisible(false)
15755 OnliPrice:setVisible(false)
15756 NameItem = summonWindowBox:recursiveGetChildById('itemName')
15757 NameItem:setText(tr('Selecione uma Backpack'))
15758 summonWindowBox:setParent(gameRootPanel)
15759 summonWindowBox:addAnchor(AnchorTop, 'gameMapPanel', AnchorTop)
15760 summonWindowBox:addAnchor(AnchorRight, 'gameMapPanel', AnchorRight)
15761 if g_app.isMobile() then
15762 summonWindowBox:setMarginTop(25)
15763 summonWindowBox:setMarginRight(190)
15764 else
15765 summonWindowBox:setMarginTop(200)
15766 summonWindowBox:setMarginRight(310)
15767 end
15768 summonWindowBox:show()
15769 end)
15770 elseif thing == 07 then
15771 local localPlayer = g_game.getLocalPlayer()
15772 if modules.game_nexusbox.onGetLastTask(00) then
15773 local NexusID = modules.game_nexusbox.onGetLastTask(01)
15774 local NexusPos = modules.game_nexusbox.onGetLastTask(02)
15775 menu:addOption(tr("Reiniciar Task").. " (" ..modules.game_database.getTask(17, NexusID, NexusPos).. ")", function()
15776 local yesChoose = function()
15777 g_game.talk(g_game.talk("!nexusremote 00 " ..NexusID.. " " ..NexusPos))
15778 buyVipWindow:destroy()
15779 buyVipWindow = nil
15780 end
15781 local noChoose = function() buyVipWindow:destroy() buyVipWindow = nil end
15782
15783 if buyVipWindow == nil then
15784 buyVipWindow = displayGeneralBox(tr('Reiniciar Task'), tr("Iniciar outra Task ira cancelar qualquer task ainda em aberto. Deseja continuar?"),
15785 { { text=tr('Yes'), callback=yesChoose },
15786 { text=tr('No'), callback=noChoose },
15787 anchor=AnchorHorizontalCenter }, yesChoose, noChoose)
15788 else
15789 buyVipWindow:focus()
15790 buyVipWindow:raise()
15791 end
15792 end)
15793 menu:addSeparator()
15794 end
15795 menu:addOption("KAZEMIR", function() g_game.talk(g_game.talk("!nexusremote 01")) end)
15796 menu:addOption("SUNSET", function() g_game.talk(g_game.talk("!nexusremote 02")) end)
15797 menu:addOption("BONEBROOK", function() g_game.talk(g_game.talk("!nexusremote 03")) end)
15798 menu:addOption("KIMBOLTON", function() g_game.talk(g_game.talk("!nexusremote 04")) end)
15799 menu:addOption("HUAMPALI", function() g_game.talk(g_game.talk("!nexusremote 05")) end)
15800 menu:addOption("RIVERMINE", function() g_game.talk(g_game.talk("!nexusremote 06")) end)
15801
15802 if localPlayer:isPremium() then
15803 menu:addSeparator()
15804 menu:addOption("KOPEC", function() g_game.talk(g_game.talk("!nexusremote 08")) end)
15805 menu:addOption("HANVA", function() g_game.talk(g_game.talk("!nexusremote 09")) end)
15806 menu:addOption("SODON", function() g_game.talk(g_game.talk("!nexusremote 10")) end)
15807 end
15808 else
15809 menu:addOption(tr("Visualizar"), function() onItemViewMobile(id, slot) end)
15810 if modules.game_interface.getTrade() == 00 then
15811 menu:addOption(tr("Remover Equipamento"), function()
15812 g_game.talk(g_game.talk("!inventario 00 " ..onBackpackSelect.. " " ..LastClickSlot .. " " ..id))
15813 end)
15814 end
15815 end
15816
15817 -- menu:addSeparator()
15818 menu:display()
15819end
15820
15821function onDescontruir(pos)
15822 local itemid = modules.game_database.getItemBagId(pos)
15823 local rareid = modules.game_database.getRareBagId(pos)
15824
15825 for X = 01, 04 do
15826 local itemUpgrade = modules.game_database.getItemInfo(itemid, 16, X, 01)
15827 local itemQnt = math.floor(modules.game_database.getItemInfo(itemid, 16, X, 02) / (06 - rareid))
15828 DESC_ITEM = descBox:recursiveGetChildById('DescItem_' ..X)
15829 if itemUpgrade > 00 then
15830 local rareItem = modules.game_database.getItemInfo(itemUpgrade, 13)
15831 DESC_ITEM:setImageSource('/images/custom/UI/rare_' ..rareItem)
15832 DESC_ITEM:setIcon('/images/custom/Items/' ..itemUpgrade)
15833 DESC_ITEM:setTooltip("@BAG " ..itemUpgrade.. " " ..rareItem.. " 0 " ..itemQnt.. " 0 0 0 0 0 0")
15834 if itemQnt <= 00 then
15835 itemQnt = 01
15836 end
15837 if itemQnt < 10 then
15838 DESC_ITEM:setText('0' ..itemQnt)
15839 else
15840 DESC_ITEM:setText(itemQnt)
15841 end
15842 else
15843 DESC_ITEM:setTooltip("")
15844 DESC_ITEM:setImageSource('/images/custom/UI/item_slot')
15845 DESC_ITEM:setIcon('/images/custom/Items/0')
15846 DESC_ITEM:setText('')
15847 end
15848 end
15849
15850 DESC_START_BUTTON.onClick = function()
15851 g_game.talk(g_game.talk("!inventario 41 08 " ..pos.. " " ..LastClickSlot.. " " ..onBackpackSelect.. " " ..itemid.. " " ..rareid))
15852 onSpyClose()
15853 end
15854 descBox:show()
15855end
15856function OptionsHud()
15857 local menu = g_ui.createWidget('PopupMenu')
15858 menu:addOption(tr("Salir del juego"), function() modules.game_interface.tryLogout(true) end)
15859 menu:addSeparator()
15860 menu:addOption(tr("Ajustes"), function() modules.client_options.show() end)
15861 --menu:addOption("Aumentar Zoom", function() modules.game_interface.ZoomScreen(01) end)
15862 --menu:addOption("Diminuir Zoom", function() modules.game_interface.ZoomScreen(02) end)
15863 menu:addOption(tr("Lista de batalla"), function() modules.game_battle.toggle() end)
15864 menu:addOption(tr("Lista VIP"), function() modules.game_viplist.toggle() end)
15865 --menu:addOption("Jogadores Online", function() g_game.talk(g_game.talk("!online")) end)
15866 --menu:addOption("Janela de Skull", function() modules.game_unjustifiedpoints.toggle() end)
15867
15868 -- menu:addSeparator()
15869 menu:display()
15870end
15871function onTooltipInv()
15872 if modules.game_database.getInventory(1, 1) > 0 then
15873 id = modules.game_database.getInventory(1, 1)
15874 star = modules.game_database.getInventory(1, 3)
15875 rare = modules.game_database.getInventory(1, 2)
15876 level = modules.game_database.getInventory(1, 5)
15877 lock = modules.game_database.getInventory(1, 9)
15878 AMULET:setTooltip("@JOIAS " ..id.. " " ..rare.. " " ..star.. " 0 " ..level.. " 0 0 0 " ..lock.. "0")
15879 else
15880 AMULET:setTooltip(tr("Clique para abrir sua\nbackpack desta categoria"))
15881 end
15882 if modules.game_database.getInventory(2, 1) > 0 then
15883 id = modules.game_database.getInventory(2, 1)
15884 star = modules.game_database.getInventory(2, 3)
15885 level = modules.game_database.getInventory(2, 5)
15886 atr1 = modules.game_database.getInventory(2, 6)
15887 atr2 = modules.game_database.getInventory(2, 7)
15888 rare = modules.game_database.getInventory(2, 2)
15889 lock = modules.game_database.getInventory(2, 9)
15890 bonus = modules.game_database.getInventory(2, 8)
15891 HELMET:setTooltip("@EQUIP " ..id.. " " ..rare.. " " ..star.. " 0 " ..level.. " " ..atr1.. " " ..atr2.. " " ..bonus.. " " ..lock.. " 0")
15892 else
15893 HELMET:setTooltip(tr("Clique para abrir sua\nbackpack desta categoria"))
15894 end
15895 if modules.game_database.getInventory(3, 1) > 0 then
15896 id = modules.game_database.getInventory(3, 1)
15897 star = modules.game_database.getInventory(3, 3)
15898 rare = modules.game_database.getInventory(3, 2)
15899 level = modules.game_database.getInventory(3, 5)
15900 lock = modules.game_database.getInventory(3, 9)
15901 BACKPACK:setTooltip("@JOIAS " ..id.. " " ..rare.. " " ..star.. " 0 " ..level.. " 0 0 0 " ..lock.. "0")
15902 else
15903 BACKPACK:setTooltip(tr("Clique para abrir sua\nbackpack desta categoria"))
15904 end
15905 if modules.game_database.getInventory(4, 1) > 0 then
15906 id = modules.game_database.getInventory(4, 1)
15907 skill_01 = modules.game_database.getInventory(4, 4)
15908 skill_02 = modules.game_database.getInventory(4, 5)
15909 skill_03 = modules.game_database.getInventory(4, 6)
15910 Level = modules.game_database.getInventory(4, 7)
15911 Star = modules.game_database.getInventory(4, 3)
15912 Rare = modules.game_database.getInventory(4, 2)
15913 lock = modules.game_database.getInventory(4, 9)
15914 bonus = modules.game_database.getInventory(4, 8)
15915
15916 GUN:setTooltip("@INVGUN " ..id.. " " ..Rare.. " " ..Star.. " " ..skill_01.. " " ..skill_02.. " " ..skill_03.. " " ..Level.. " " ..bonus.. " " ..lock.. " 0")
15917 itemView:setTooltip("@GUN " ..id.. " " ..Rare.. " " ..Star.. " " ..skill_01.. " " ..skill_02.. " " ..skill_03.. " " ..Level.. " " ..bonus.. " " ..lock.. " 0")
15918 onLoadAmmo()
15919 else
15920 GUN:setTooltip(tr("Clique para abrir sua\nbackpack desta categoria"))
15921 itemView:setTooltip("")
15922 Spell01:setTooltip("")
15923 Spell02:setTooltip("")
15924 Spell03:setTooltip("")
15925 itemView:setIcon("/images/custom/Items/0")
15926 itemView:setImageSource("/images/custom/UI/view_item")
15927 Spell01:setImageSource("/images/custom/Spells/HUB/skill_0")
15928 Spell02:setImageSource("/images/custom/Spells/HUB/skill_0")
15929 Spell03:setImageSource("/images/custom/Spells/HUB/skill_0")
15930 end
15931 if modules.game_database.getInventory(5, 1) > 0 then
15932 id = modules.game_database.getInventory(5, 1)
15933 star = modules.game_database.getInventory(5, 3)
15934 level = modules.game_database.getInventory(5, 5)
15935 atr1 = modules.game_database.getInventory(5, 6)
15936 atr2 = modules.game_database.getInventory(5, 7)
15937 rare = modules.game_database.getInventory(5, 2)
15938 lock = modules.game_database.getInventory(5, 9)
15939 bonus = modules.game_database.getInventory(5, 8)
15940 ARMOR:setTooltip("@EQUIP " ..id.. " " ..rare.. " " ..star.. " 0 " ..level.. " " ..atr1.. " " ..atr2.. " " ..bonus.. " " ..lock.. " 0")
15941 else
15942 ARMOR:setTooltip(tr("Clique para abrir sua\nbackpack desta categoria"))
15943 end
15944 if modules.game_database.getInventory(6, 1) > 0 then
15945 id = modules.game_database.getInventory(6, 1)
15946 star = modules.game_database.getInventory(6, 3)
15947 level = modules.game_database.getInventory(6, 5)
15948 atr1 = modules.game_database.getInventory(6, 6)
15949 atr2 = modules.game_database.getInventory(6, 7)
15950 rare = modules.game_database.getInventory(6, 2)
15951 lock = modules.game_database.getInventory(6, 9)
15952 bonus = modules.game_database.getInventory(6, 8)
15953 GLOVE:setTooltip("@EQUIP " ..id.. " " ..rare.. " " ..star.. " 0 " ..level.. " " ..atr1.. " " ..atr2.. " " ..bonus.. " " ..lock.. " 0")
15954 else
15955 GLOVE:setTooltip(tr("Clique para abrir sua\nbackpack desta categoria"))
15956 end
15957 if modules.game_database.getInventory(7, 1) > 0 then
15958 id = modules.game_database.getInventory(7, 1)
15959 star = modules.game_database.getInventory(7, 3)
15960 rare = modules.game_database.getInventory(7, 2)
15961 level = modules.game_database.getInventory(7, 5)
15962 lock = modules.game_database.getInventory(7, 9)
15963 RING:setTooltip("@JOIAS " ..id.. " " ..rare.. " " ..star.. " 0 " ..level.. " 0 0 0 " ..lock.. "0")
15964 else
15965 RING:setTooltip(tr("Clique para abrir sua\nbackpack desta categoria"))
15966 end
15967 if modules.game_database.getInventory(8, 1) > 0 then
15968 id = modules.game_database.getInventory(8, 1)
15969 star = modules.game_database.getInventory(8, 3)
15970 level = modules.game_database.getInventory(8, 5)
15971 atr1 = modules.game_database.getInventory(8, 6)
15972 atr2 = modules.game_database.getInventory(8, 7)
15973 rare = modules.game_database.getInventory(8, 2)
15974 lock = modules.game_database.getInventory(8, 9)
15975 bonus = modules.game_database.getInventory(8, 8)
15976 LEGS:setTooltip("@EQUIP " ..id.. " " ..rare.. " " ..star.. " 0 " ..level.. " " ..atr1.. " " ..atr2.. " " ..bonus.. " " ..lock.. " 0")
15977 else
15978 LEGS:setTooltip(tr("Clique para abrir sua\nbackpack desta categoria"))
15979 end
15980 if modules.game_database.getInventory(9, 1) > 0 then
15981 id = modules.game_database.getInventory(9, 1)
15982 star = modules.game_database.getInventory(9, 3)
15983 level = modules.game_database.getInventory(9, 5)
15984 atr1 = modules.game_database.getInventory(9, 6)
15985 atr2 = modules.game_database.getInventory(9, 7)
15986 rare = modules.game_database.getInventory(9, 2)
15987 lock = modules.game_database.getInventory(9, 9)
15988 bonus = modules.game_database.getInventory(9, 8)
15989 BOOTS:setTooltip("@EQUIP " ..id.. " " ..rare.. " " ..star.. " 0 " ..level.. " " ..atr1.. " " ..atr2.. " " ..bonus.. " " ..lock.. " 0")
15990 else
15991 BOOTS:setTooltip(tr("Clique para abrir sua\nbackpack desta categoria"))
15992 end
15993end
15994function CloseBackpack()
15995 MOBILE_BACKPACK = modules.game_interface.onMobileWindow(20)
15996 MOBILE_BACK_SCRO = modules.game_interface.onMobileWindow(22)
15997 MOBILE_BACK_LIST = modules.game_interface.onMobileWindow(23)
15998 MOBILE_BACKPACK:hide() MOBILE_BACKPACK:setVisible(false)
15999 MOBILE_BACK_SCRO:hide() MOBILE_BACK_SCRO:setVisible(false)
16000 MOBILE_BACK_LIST:hide() MOBILE_BACK_LIST:setVisible(false)
16001
16002 BAG_01:hide() BAG_02:hide() BAG_03:hide()
16003 BAG_04:hide() BAG_05:hide() BAG_06:hide()
16004 BAG_07:hide() BAG_08:hide() BAG_09:hide()
16005 BAG_10:hide() BAG_11:hide() BAG_12:hide()
16006 BAG_13:hide() BAG_14:hide() BAG_15:hide()
16007 BAG_16:hide() BAG_17:hide() BAG_18:hide()
16008 BAG_19:hide() BAG_20:hide() LOAD:hide()
16009 BACKPACK_01:hide() BACKPACK_02:hide() BACKPACK_03:hide()
16010 BACKPACK_04:hide() ORDER_BAG:hide()
16011
16012 ORDER_BACKPACK_TYPE = 01
16013 BAG_01:setIcon("/images/custom/UI/none") BAG_02:setIcon("/images/custom/UI/none") BAG_03:setIcon("/images/custom/UI/none")
16014 BAG_04:setIcon("/images/custom/UI/none") BAG_05:setIcon("/images/custom/UI/none") BAG_06:setIcon("/images/custom/UI/none")
16015 BAG_07:setIcon("/images/custom/UI/none") BAG_08:setIcon("/images/custom/UI/none") BAG_09:setIcon("/images/custom/UI/none")
16016 BAG_10:setIcon("/images/custom/UI/none") BAG_11:setIcon("/images/custom/UI/none") BAG_12:setIcon("/images/custom/UI/none")
16017 BAG_13:setIcon("/images/custom/UI/none") BAG_14:setIcon("/images/custom/UI/none") BAG_15:setIcon("/images/custom/UI/none")
16018 BAG_16:setIcon("/images/custom/UI/none") BAG_17:setIcon("/images/custom/UI/none") BAG_18:setIcon("/images/custom/UI/none")
16019 BAG_19:setIcon("/images/custom/UI/none") BAG_20:setIcon("/images/custom/UI/none")
16020end
16021function getSlotInventario(slot)
16022 if slot == 1 then
16023 inv_pos = AMULET
16024 elseif slot == 2 then
16025 inv_pos = HELMET
16026 elseif slot == 3 then
16027 inv_pos = BACKPACK
16028 elseif slot == 4 then
16029 inv_pos = GUN
16030 elseif slot == 5 then
16031 inv_pos = ARMOR
16032 elseif slot == 6 then
16033 inv_pos = GLOVE
16034 elseif slot == 7 then
16035 inv_pos = RING
16036 elseif slot == 8 then
16037 inv_pos = LEGS
16038 elseif slot == 9 then
16039 inv_pos = BOOTS
16040 end
16041
16042 return inv_pos
16043end
16044function HudAnimated()
16045 scheduleEvent(function()
16046 Spell01:setVisible(isHudActionBarEnabled())
16047 g_effects.fadeIn(Spell01, 250)
16048 scheduleEvent(function()
16049 Spell02:setVisible(isHudActionBarEnabled())
16050 g_effects.fadeIn(Spell02, 250)
16051 scheduleEvent(function()
16052 Spell03:setVisible(isHudActionBarEnabled())
16053 g_effects.fadeIn(Spell03, 250)
16054 scheduleEvent(function()
16055 Sup01:setVisible(isHudActionBarEnabled())
16056 g_effects.fadeIn(Sup01, 250)
16057 scheduleEvent(function()
16058 Sup02:setVisible(isHudActionBarEnabled())
16059 g_effects.fadeIn(Sup02, 250)
16060 scheduleEvent(function()
16061 Sup03:setVisible(isHudActionBarEnabled())
16062 SupQnt:setVisible(isHudActionBarEnabled())
16063 ammohub:show()
16064 on_time:show()
16065 onLoadAmmo()
16066 g_effects.fadeIn(Sup03, 250)
16067 g_effects.fadeIn(SupQnt, 250)
16068 g_effects.fadeIn(ammohub, 250)
16069 g_effects.fadeIn(on_time, 250)
16070 OverLogin = 0
16071 end, 150)
16072 end, 150)
16073 end, 150)
16074 end, 150)
16075 end, 150)
16076 end, 150)
16077end
16078function closedHUD()
16079 hubBackground:hide()
16080end
16081
16082function AnimaredInn()
16083 MenuView:disable()
16084 if A < 280 then
16085 A = A + 1
16086 menuBackground:setSize({width = A, height = 10})
16087 scheduleEvent(function()
16088 AnimaredInn()
16089 end, -10)
16090 else
16091 scheduleEvent(function()
16092 MenuView:enable()
16093 end, 1000)
16094 onSummonHide()
16095 end
16096end
16097function AnimaredOff()
16098 MenuView:disable()
16099 if A > 5 then
16100 A = A - 1
16101 menuBackground:setSize({width = A, height = 10})
16102 scheduleEvent(function()
16103 AnimaredOff()
16104 end, -10)
16105 else
16106 scheduleEvent(function()
16107 MenuView:enable()
16108 end, 1000)
16109 menuBackgroundShow = 0
16110 CloseBackpack()
16111 menuBackground:hide()
16112
16113 end
16114end
16115function closedInventario()
16116 if g_settings.getString('fixeMenu') == "false" then
16117 A = 280
16118 AnimaredOff()
16119 end
16120 if g_app.isMobile() then
16121 MOBILE_EQUIP_BAR = modules.game_interface.onMobileWindow(16)
16122
16123 MOBILE_EQUIP_BAR:hide() MOBILE_EQUIP_BAR:setVisible(false)
16124 end
16125end
16126
16127function expForLevel(level)
16128 return math.floor((50*level*level*level)/3 - 100*level*level + (850*level)/3 - 200)
16129end
16130function expToAdvance(currentLevel, currentExp)
16131 return expForLevel(currentLevel+1) - currentExp
16132end
16133function onLevelChange(localPlayer, value, percent)
16134 local restPrecentBar = (100 - percent)
16135 experienceTooltip = tr('Sua barra de EXP esta').. ' ' ..percent.. '% '
16136 experienceTooltip = experienceTooltip.. tr('completo. Ainda resta')
16137 experienceTooltip = experienceTooltip.. ' ' ..(100 - percent).. '% '
16138 experienceTooltip = experienceTooltip.. tr('para completar.\nVoce tem atualmente')
16139 experienceTooltip = experienceTooltip.. ' ' ..mask_number(localPlayer:getExperience())
16140 experienceTooltip = experienceTooltip.. ' '.. tr('de EXP.\nVoce precisa de')
16141 experienceTooltip = experienceTooltip.. ' ' ..mask_number(expToAdvance(localPlayer:getLevel(), localPlayer:getExperience()))
16142 experienceTooltip = experienceTooltip.. ' '.. tr('de EXP para avancar para o level').. ' ' ..(localPlayer:getLevel() + 01).. '.'
16143
16144 experienceBar:setBackgroundColor('white')
16145 if manaCircleFront then manaCircleFront:setImageColor("white") end
16146 experienceBar:setTooltip(experienceTooltip, percent, value+1)
16147 expStatus:setTooltip(experienceTooltip, percent, value+1)
16148
16149 experienceBar:setPercent(percent)
16150 if g_app.isMobile() then
16151 mobileEXPBar = modules.client_mobile.onMobileButton(02)
16152 mobileEXPBar:setPercent(percent)
16153
16154 local localPlayer = g_game.getLocalPlayer()
16155 mobileLevelInfo = modules.client_mobile.onMobileButton(03)
16156 mobileLevelInfo:setText("Lv." ..localPlayer:getLevel())
16157 end
16158
16159 local localPlayer = g_game.getLocalPlayer()
16160 LevelInfo:setText("Lv." ..localPlayer:getLevel())
16161 local Ymppc = math.floor(208 * (1 - localPlayer:getLevelPercent() / 100))
16162 local rect = { x = 0, y = Ymppc, width = 63, height = 208 - Ymppc + 1 }
16163 if manaCircleFront then
16164 manaCircleFront:setImageClip(rect)
16165 manaCircleFront:setImageRect(rect)
16166 manaCircleFront:setText(percent)
16167 manaCircleFront:setFont('verdana-9px-bold')
16168 manaCircleFront:setTextOffset('-20 160')
16169end
16170end
16171function onExperienceChange()
16172 local localPlayer = g_game.getLocalPlayer()
16173 onLevelChange(localPlayer, localPlayer:getLevel(), localPlayer:getLevelPercent())
16174end
16175function setExperienceTooltip(tooltip)
16176 experienceTooltip = tooltip
16177
16178 local localPlayer = g_game.getLocalPlayer()
16179 if localPlayer then
16180 experienceBar:setTooltip(experienceTooltip, localPlayer:getLevelPercent(), localPlayer:getLevel()+1)
16181 expStatus:setTooltip(experienceTooltip, localPlayer:getLevelPercent(), localPlayer:getLevel()+1)
16182 LevelInfo:setText("Lv." ..localPlayer:getLevel())
16183 local Ymppc = math.floor(208 * (1 - localPlayer:getLevelPercent() / 100))
16184 local rect = { x = 0, y = Ymppc, width = 63, height = 208 - Ymppc + 1 }
16185 manaCircleFront:setImageClip(rect)
16186 manaCircleFront:setImageRect(rect)
16187 end
16188end
16189function onHealthChange(localPlayer, health, maxHealth)
16190 if health > maxHealth then
16191 maxHealth = health
16192 end
16193
16194 if lastHealth < health then
16195 modules.game_walking.onCheckAutoCura()
16196 end
16197 healthBar:setText(comma_value(health) .. ' / ' .. comma_value(maxHealth))
16198 healthBar:setTooltip(tr(healthTooltip, health, maxHealth))
16199 healthBar:setValue(health, 0, maxHealth)
16200 lastHealth = health
16201
16202 if g_app.isMobile() then
16203 mobileHPBar = modules.client_mobile.onMobileButton(01)
16204 mobileHPBar:setText(comma_value(health) .. ' / ' .. comma_value(maxHealth))
16205 mobileHPBar:setValue(health, 0, maxHealth)
16206 end
16207
16208 local healthPercent = math.floor(g_game.getLocalPlayer():getHealthPercent())
16209 local Yhppc = math.floor(208 * (1 - (healthPercent / 100)))
16210 local rect = { x = 0, y = Yhppc, width = 63, height = 208 - Yhppc + 1 }
16211 if healthCircleFront then
16212 healthCircleFront:setImageClip(rect)
16213 healthCircleFront:setImageRect(rect)
16214 healthCircleFront:setText(healthPercent)
16215 healthCircleFront:setFont('verdana-9px-bold')
16216 healthCircleFront:setTextOffset('20 160')
16217 end
16218
16219 if healthPercent > 92 then
16220 healthCircleFront:setImageColor("#00BC00FF")
16221 healthBar:setBackgroundColor("#00BC00FF")
16222 healthStatus:setBackgroundColor("#00BC00FF")
16223 elseif healthPercent > 60 then
16224 healthCircleFront:setImageColor("#50A150FF")
16225 healthBar:setBackgroundColor("#50A150FF")
16226 healthStatus:setBackgroundColor("#50A150FF")
16227 elseif healthPercent > 30 then
16228 healthCircleFront:setImageColor("#A1A100FF")
16229 healthBar:setBackgroundColor("#A1A100FF")
16230 healthStatus:setBackgroundColor("#A1A100FF")
16231 elseif healthPercent > 8 then
16232 healthCircleFront:setImageColor("#BF0A0AFF")
16233 healthBar:setBackgroundColor("#BF0A0AFF")
16234 healthStatus:setBackgroundColor("#BF0A0AFF")
16235 elseif healthPercent > 3 then
16236 healthCircleFront:setImageColor("#910F0FFF")
16237 healthBar:setBackgroundColor("#910F0FFF")
16238 healthStatus:setBackgroundColor("#910F0FFF")
16239 else
16240 healthCircleFront:setImageColor("#850C0CFF")
16241 healthBar:setBackgroundColor("#850C0CFF")
16242 healthStatus:setBackgroundColor("#850C0CFF")
16243 end
16244 if ViewMenuID == 03 then
16245 onStatusCheck()
16246 end
16247end
16248function onManaChange(localPlayer, mana, maxMana)
16249 if mana > maxMana then
16250 maxMana = mana
16251 end
16252
16253 manaBar:setText(comma_value(mana) .. ' / ' .. comma_value(maxMana))
16254 manaBar:setTooltip(tr(manaTooltip, mana, maxMana))
16255 manaBar:setValue(mana, 0, maxMana)
16256
16257 topManaBar:setText(comma_value(mana) .. ' / ' .. comma_value(maxMana))
16258 topManaBar:setTooltip(tr(manaTooltip, mana, maxMana))
16259 topManaBar:setValue(mana, 0, maxMana)
16260
16261 local localPlayer = g_game.getLocalPlayer()
16262 local Ymppc = math.floor(208 * (1 - localPlayer:getLevelPercent() / 100))
16263 local rect = { x = 0, y = Ymppc, width = 63, height = 208 - Ymppc + 1 }
16264end
16265function setManaTooltip(tooltip)
16266 manaTooltip = tooltip
16267
16268 local localPlayer = g_game.getLocalPlayer()
16269 if localPlayer then
16270 manaBar:setTooltip(tr(manaTooltip, localPlayer:getMana(), localPlayer:getMaxMana()))
16271 end
16272end
16273function setHealthTooltip(tooltip)
16274 healthTooltip = tooltip
16275
16276 local localPlayer = g_game.getLocalPlayer()
16277 if localPlayer then
16278 healthBar:setTooltip(tr(healthTooltip, localPlayer:getHealth(), localPlayer:getMaxHealth()))
16279 end
16280end
16281
16282local baseSkill = 0
16283function setSkillBase(id, value, baseValue)
16284 if baseValue <= 0 or value < 0 then
16285 return
16286 end
16287 if g_app.isMobile() then
16288 local skill = nil
16289 if mobileid == 01 then
16290 skill = modules.game_interface.onMobileWindow(113)
16291 elseif mobileid == 02 then
16292 skill = modules.game_interface.onMobileWindow(114)
16293 elseif mobileid == 03 then
16294 skill = modules.game_interface.onMobileWindow(115)
16295 elseif mobileid == 00 then
16296 skill = modules.game_interface.onMobileWindow(116)
16297 end
16298
16299 if skill then
16300 if value > baseValue then
16301 skill:setColor('#008b00') -- green
16302 skill:setTooltip(baseValue .. ' + ' .. (value - baseValue))
16303 elseif value < baseValue then
16304 skill:setColor('#b22222') -- red
16305 skill:setTooltip(baseValue .. ' ' .. (value - baseValue))
16306 else
16307 skill:setColor('#bbbbbb') -- default
16308 skill:removeTooltip()
16309 end
16310 end
16311 else
16312 local skill = menuBackground:recursiveGetChildById(id)
16313 if skill then
16314 if value > baseValue then
16315 skill:setColor('#008b00') -- green
16316 skill:setTooltip(baseValue .. ' + ' .. (value - baseValue))
16317 elseif value < baseValue then
16318 skill:setColor('#b22222') -- red
16319 skill:setTooltip(baseValue .. ' ' .. (value - baseValue))
16320 else
16321 skill:setColor('#bbbbbb') -- default
16322 skill:removeTooltip()
16323 end
16324 end
16325 end
16326 onStatusCheck()
16327end
16328function setSkillValue(id, value, mobileid)
16329 local skill = menuBackground:recursiveGetChildById(id)
16330 local mobile_skill = nil
16331 if g_app.isMobile() then
16332 if mobileid == 01 then
16333 mobile_skill = modules.game_interface.onMobileWindow(113)
16334 elseif mobileid == 02 then
16335 mobile_skill = modules.game_interface.onMobileWindow(114)
16336 elseif mobileid == 03 then
16337 mobile_skill = modules.game_interface.onMobileWindow(115)
16338 elseif mobileid == 00 then
16339 mobile_skill = modules.game_interface.onMobileWindow(116)
16340 end
16341
16342 if mobile_skill then
16343 mobile_skill:setText(value)
16344 end
16345 end
16346 if skill then
16347 skill:setText(value)
16348 end
16349end
16350function setSkillPercent(id, percent, tooltip, color)
16351 local skill = menuBackground:recursiveGetChildById(id)
16352 if skill then
16353 skill:setPercent(math.floor(percent))
16354
16355 if tooltip then
16356 skill:setTooltip(tooltip)
16357 end
16358
16359 if color then
16360 skill:setBackgroundColor(color)
16361 end
16362 end
16363end
16364function onSkillChange(localPlayer, id, level, percent)
16365 baseSkill = localPlayer:getSkillLevel(id)
16366
16367 setSkillValue('valueSkill' .. id, baseSkill, id)
16368 setSkillPercent('skillId' .. id, percent, tr('You have %s percent to go', 100 - percent))
16369
16370 onBaseSkillChange(localPlayer, id, localPlayer:getSkillBaseLevel(id))
16371end
16372function onBaseSkillChange(localPlayer, id, baseLevel)
16373 setSkillBase('valueSkill'..id, baseSkill, baseLevel)
16374end
16375
16376-- status
16377function toggleIcon(bitChanged)
16378 local content = hubBackground:recursiveGetChildById('conditionPanel')
16379 if g_app.isMobile() then
16380 content = modules.client_mobile.onMobileButton(06)
16381 end
16382 local icon = content:getChildById(Icons[bitChanged].id)
16383 if icon then
16384 icon:destroy()
16385 else
16386 icon = loadIcon(bitChanged)
16387 icon:setParent(content)
16388 end
16389end
16390function offline()
16391 menuBackground:hide()
16392 hubBackground:hide()
16393 betaWindow:hide()
16394 spyWindowBox:hide()
16395 descBox:hide()
16396 hotkeyWindowBox:hide()
16397 hubBackground:recursiveGetChildById('conditionPanel'):destroyChildren()
16398 if g_app.isMobile() then
16399 PanelIcon = modules.client_mobile.onMobileButton(06)
16400 PanelIcon:destroyChildren()
16401 end
16402end
16403function loadIcon(bitChanged)
16404 local icon = g_ui.createWidget('ConditionWidget', content)
16405 icon:setId(Icons[bitChanged].id)
16406 icon:setImageSource(Icons[bitChanged].path)
16407 icon:setTooltip(Icons[bitChanged].tooltip)
16408 return icon
16409end
16410function onStatesChange(localPlayer, now, old)
16411 if now == old then return end
16412
16413 local bitsChanged = bit32.bxor(now, old)
16414 for i = 1, 32 do
16415 local pow = math.pow(2, i-1)
16416 if pow > bitsChanged then break end
16417 local bitChanged = bit32.band(bitsChanged, pow)
16418 if bitChanged ~= 0 then
16419 toggleIcon(bitChanged)
16420 end
16421end
16422end
16423if modules.game_console then
16424 modules.game_console.manageButton('settingsButton', false)
16425end
16426
16427function terminate()
16428 if hubBackground then
16429 disconnect(hubBackground, { onGeometryChange = layoutHudActionBar })
16430 end
16431 disconnect(g_game, {
16432 disconnect(g_game, 'onTextMessage', onUserInterface),
16433 })
16434
16435 disconnect(g_game, { onGameEnd = offline })
16436 ProtocolGame.unregisterExtendedOpcode(Opcode_Hotkey)
16437 ProtocolGame.unregisterExtendedOpcode(Opcode_Pix)
16438 ProtocolGame.unregisterExtendedOpcode(Opcode_cripto)
16439 disconnect(LocalPlayer, { onHealthChange = onHealthChange,
16440 --onManaChange = onManaChange,
16441 onLevelChange = onLevelChange,
16442 onExperienceChange = onExperienceChange,
16443 onStatesChange = onStatesChange })
16444end
Top