Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.74 KB | None | 0 0
  1.  
  2. -- Table containing our allowed mobs to attack. Feel free to add your own
  3.  
  4. rampart.tracking.allowedMobList = {"a statue of Archon",
  5.                                         "a test value"}
  6.  
  7.  
  8. rampart = rampart or {}
  9. rampart.tracking = rampart.tracking or {}
  10. rampart.tracking.mobsToKill = rampart.tracking.mobsToKill or {}
  11.  
  12. function populateMobTable()
  13.     rampart.tracking.mobsToKill = {}
  14.     local mobList = gmcp.Char.Items.List
  15.     if mobList.location == "room" then
  16.         for _, v in ipairs(mobList.items) do
  17.             display(v)
  18.             for _, value in ipairs(rampart.tracking.allowedMobList) do
  19.                 if tonumber(v.id) == value then
  20.                 --if v.name == value then
  21.                 rampart.tracking.mobsToKill = {}
  22.                 table.insert(rampart.tracking.mobsToKill, v.id)
  23.                 end
  24.             end
  25.         end
  26.     end
  27. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement