Advertisement
alexdubovyck

MH(16) OH(17) id(s) item:50730:3789:0:0:0:0

Dec 30th, 2015
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.62 KB | None | 0 0
  1. --Макросом
  2. /run local function id(s) return string.match(GetInventoryItemLink("player",s) or "","(item:.+:%d+)") end ChatFrame1:AddMessage("MH:"..id(16).."\nOH:"..id(17))
  3.  
  4. --Функцией
  5. local function id(s)
  6. return
  7.     string.match(GetInventoryItemLink("player",s)
  8. or
  9.     "","(item:.+:%d+)")
  10. end
  11. print("MH 16 слот:"..id(16).."\nOH 17 слот:"..id(17).."\nЛУК 18 слот:"..id(18).."")
  12.  
  13. --Как одеть нужное оружие с определённой зачаркой макросом
  14. /equipslot 17 item:50730:2673:3525:3518:3518:0:0:0:80
  15. /equipslot 17 item:50730:3789:3525:3518:3518:0:0:0:80
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement