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 test value",
- "a black rat",
- "a young rat",
- "a rat"}
- 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
- for _, value in ipairs(rampart.tracking.allowedMobList) do
- 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