Auto Arrow


Show Show

Recommended Posts

Descrição: Equipa arrow com BP fechada e troca o tipo de arrow ao apertar a fecla "V".

Vídeo:

rmb7vUX.gif (1376×712) (imgur.com)

image.png.052b18312c33ca057b712f65f9e8171d.png

Spoiler


function sendEquipItem(id)
  local protocol = g_game.getProtocolGame()
  local msg = OutputMessage.create()
  msg:addU8(119)    
  msg:addU16(id)
  protocol:send(msg)


end

local ammo = InventorySlotAmmo
iArrow = 1


macro(1000,"Equip Arrow",function()

local arrow= storage.sortItems1[iArrow] 
arrowId = arrow.id


if player:getInventoryItem(ammo) == nil then
  sendEquipItem(arrowId)

else

  local arrowEquip = player:getInventoryItem(ammo)
  
  if arrowEquip:getId() == arrowId then
    return
  else
    sendEquipItem(arrowId)
  end

end


end)

local sortItems1 = UI.Container(function(widget, items)
  storage.sortItems1 = items
end, true)
sortItems1:setHeight(140)
sortItems1:setItems(storage.sortItems1)

local raiderHotkey = hotkey("V", "Change Arrow", function()
if storage.sortItems1[iArrow + 1] == nil then
  iArrow = 1
else
  iArrow = iArrow + 1
end
end)

 

 

  • Like 2
Link to comment
Share on other sites

  • 10 months later...
6 horas atrás, Kiedis disse:

Boa tarde

Depois da ultima atualização do server esse macro parou de funcionar, ou melhor, ta funcionando errado, jogando as arrow pra mão e nao pro lugar das arrows.

Mais alguém teve esse problema? Conseguiu resolver?

Isso ta acontecendo tbm no bbot, ta bugado, puxa todo torto, só puxa certo se a bp tiver aberta

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...