- 0
AJuda aqui
-
Quem Está Navegando 0 membros estão online
- Nenhum usuário registrado visualizando esta página.
-
Conteúdo Similar
-
script alguém pode me ajudar nessa spells aqui, queira que colocassem pro meu personagem ficar inatingível por 6 segundos e podendo atacar livremente
Por lazaroszz,
- 0 respostas
- 1105 visualizações
-
- 3 respostas
- 4451 visualizações
-
- 2 respostas
- 2007 visualizações
-
- 1 resposta
- 1681 visualizações
-
- 1 resposta
- 1837 visualizações
-

Pergunta
garep 14
Gente to com esse script e a Opcodes Instaladas no server se alguem poder ajuda como fazer pra funcionar
InventorySlotStyles = { [InventorySlotHead] = "HeadSlot", [InventorySlotNeck] = "NeckSlot", [InventorySlotBack] = "BackSlot", [InventorySlotBody] = "BodySlot", [InventorySlotRight] = "RightSlot", [InventorySlotLeft] = "LeftSlot", [InventorySlotLeg] = "LegSlot", [InventorySlotFeet] = "FeetSlot", [InventorySlotFinger] = "FingerSlot", [InventorySlotAmmo] = "AmmoSlot" } Backgrounds = { [0] = { path = '/images/inventory/Anbu_INV.png', id = 'background_anbu'}, [1] = { path = '/images/inventory/Uchiha_INV.png', id = 'background_uchiha'}, [2] = { path = '/images/inventory/Hyuuga_INV.png', id = 'background_hyuuga'}, [3] = { path = '/images/inventory/Aburame_INV.png', id = 'background_aburame'}, [4] = { path = '/images/inventory/Nara_INV.png', id = 'background_nara'}, [5] = { path = '/images/inventory/Inuzuka_INV.png', id = 'background_inuzuka'}, [6] = { path = '/images/inventory/Akimichi_INV.png', id = 'background_akimichi'}, [7] = { path = '/images/inventory/Maito_INV.png', id = 'background_maito'}, [8] = { path = '/images/inventory/Uchiha_INV.png', id = 'background_uchiha'}, } inventoryWindow = nil inventoryPanel = nil inventoryButton = nil function init() connect(LocalPlayer, { onInventoryChange = onInventoryChange }) connect(g_game, { onGameStart = refresh }) g_keyboard.bindKeyDown('Ctrl+I', toggle) inventoryButton = modules.client_topmenu.addRightGameToggleButton('inventoryButton', tr('Inventory') .. ' (Ctrl+I)', '/images/topbuttons/inventory', toggle) inventoryButton:setOn(true) inventoryWindow = g_ui.loadUI('inventory', modules.game_interface.getRightPanel()) inventoryWindow:disableResize() inventoryPanel = inventoryWindow:getChildById('contentsPanel') local itemWidget = inventoryPanel:getChildById('slot9') itemWidget:setVisible(false) local itemWidget = inventoryPanel:getChildById('slot10') itemWidget:setVisible(false) refresh() inventoryWindow:setup() inventoryWindow:close() inventoryButton:setOn(false) end ProtocolGame.registerExtendedOpcode(26, function (protocol, opcode, buffer) local bg = Backgrounds[tonumber(vocation)] or Backgrounds[0] vocation = bg print(vocation) end ) function terminate() disconnect(LocalPlayer, { onInventoryChange = onInventoryChange }) disconnect(g_game, { onGameStart = refresh }) g_keyboard.unbindKeyDown('Ctrl+I') inventoryWindow:destroy() inventoryButton:destroy() end function refresh() local player = g_game.getLocalPlayer() for i=InventorySlotFirst,InventorySlotLast do if g_game.isOnline() then onInventoryChange(player, i, player:getInventoryItem(i)) else onInventoryChange(player, i, nil) end end end function toggle() refresh() if inventoryButton:isOn() then inventoryWindow:close() inventoryButton:setOn(false) else inventoryWindow:open() inventoryButton:setOn(true) end end function onMiniWindowClose() inventoryButton:setOn(false) end -- hooked events function onInventoryChange(player, slot, item, oldItem) local player = g_game.getLocalPlayer() if(player) then local vocation = player:getVocation() if(vocation ~= 0) then inventoryWindow:setImageSource(Backgrounds[vocation].path) end end if slot >= InventorySlotPurse then return end local itemWidget = inventoryPanel:getChildById('slot' .. slot) if item then itemWidget:setStyle('Item') itemWidget:setItem(item) else itemWidget:setStyle(InventorySlotStyles[slot]) itemWidget:setItem(nil) end endtentei usar esse e ñ foi
function onExtendedOpcode(cid, opcode, buffer) if opcode == 25 then doSendPlayerExtendedOpcode(cid, 26, getPlayerVocation(cid)) end return true endquero so a oque precisar no servidor, pois ja tentei varios cods e n vai ;x
Editado por garepLink para o comentário
https://xtibia.com/forum/topic/219874-ajuda-aqui/Compartilhar em outros sites
0 respostass a esta questão
Posts Recomendados