daily pastebin goal
67%
SHARE
TWEET

Untitled

a guest Sep 21st, 2017 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top