Advertisement
Guest User

Untitled

a guest
Dec 19th, 2014
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.58 KB | None | 0 0
  1. _addon = {}
  2. _addon.name = 'itemdropper'
  3. _addon.version = '1.000'
  4.  
  5. require 'sets'
  6.  
  7. windower.register_event('load',function ()
  8. items = S{
  9. '2150', --colibri feather
  10. '2171', --colibri beak
  11. '868', --pugil scales
  12. '3928', --velk necklace
  13. '3929', --velk mask
  14. '858', --wolf hide
  15. '940', --revival root
  16. '4102', --light crystal
  17. '4096', --fire crystal
  18. '4098', --wind crystal
  19. '4101', --water crystal
  20. '843', --giant bird plume
  21. '842', --giant bird feather
  22. '6227', -- pshard i
  23. '926', --lizard tail
  24. '852', --lizard skin
  25. '4362', --lizard egg
  26. '853', --raptor skin
  27. '3930', --twitherym wing
  28. '3931', --twitherym scale
  29. '4370', --honey
  30. '846', --insect wing
  31. '912', --beehive chip
  32.  
  33.  
  34. '3297', --flame geode
  35. '3298', --snow geode
  36. '3299', --breeze geode
  37. '3300', --soil geode
  38. '3301', --thunder geode
  39. '3302', --aqua geode
  40. '3303', --light geode
  41. '3304', --shadow geode
  42.  
  43. --'3520', --ifrite
  44. --'3521', --shivite
  45. --'3522', --garudaite
  46. --'3523', --titanite
  47. --'3524', --ramuite
  48. --'3525', --leviatite
  49. --'3526', --carbite
  50. --'3527', --fenrite
  51. }
  52. checkinventory()
  53. end)
  54.  
  55. function checkinventory()
  56. for _,item in pairs(windower.ffxi.get_items().inventory) do
  57. if items[tostring(item.id)] then
  58. windower.packets.inject_outgoing(0x28,string.char(0x28,6,0,0,item.count,0,0,0,0,item.slot,0,0))
  59. end
  60. end
  61. end
  62. windower.register_event('incoming chunk',function(id,original,modified,is_injected,is_blocked)
  63. if id == 0x020 or id == 0x01E then
  64. checkinventory()
  65. end
  66. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement