Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Table containing our allowed mobs to attack. Feel free to add your own
- rampart.tracking.allowedMobList = {"a statue of Archon",
- "a test value"}
- rampart = rampart or {}
- rampart.tracking = rampart.tracking or {}
- rampart.tracking.mobsToKill = rampart.tracking.mobsToKill or {}
- function populateMobTable()
- rampart.tracking.mobsToKill = {}
- local mobList = gmcp.Char.Items.List
- if mobList.location == "room" then
- for _, v in ipairs(mobList.items) do
- display(v)
- for _, value in ipairs(rampart.tracking.allowedMobList) do
- if tonumber(v.id) == value then
- --if v.name == value then
- rampart.tracking.mobsToKill = {}
- table.insert(rampart.tracking.mobsToKill, v.id)
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement