CONFIG.MONSTERS = { { name = 'Zombie', health = 100, image = 'gfx/minecraft_npc/zombie.png', scalex = 2, scaley = 2, r = 136, g = 224, b = 32, atk = 1.9, def = 2.1, spd = 6, atkspd = 8, x = 0, y = 0, ang = 0, imgang = 0, runat = 10, spawnchance = {['rpg_mapb'] = {5}}, spawn = { ['rpg_mineraft'] = {SPAWNS.BOTTOMHALF} }, exp = 25, money = 67, loot = {{chance = 5000, id = 102}, {chance = 250, id = 221}}, }, { name = 'Spider', health = 100, image = 'gfx/minecraft_npc/spider.png', scalex = 2, scaley = 2, atk = 2.2, def = 1.8, spd = 6, atkspd = 8, x = 0, y = 0, ang = 0, imgang = 0, runat = 10, spawnchance = {['rpg_mapb'] = {5}}, spawn = { ['rpg_mapb'] = {SPAWNS.BOTTOMMAP} }, exp = 34, money = 24, loot = {{chance = 5000, id = 100}, {chance = 250, id = 222}}, }, { name = 'Creeper', health = 100, image = 'gfx/minecraft_npc/creeper.png', scalex = 2, scaley = 2, atk = 1.9, def = 2.3, spd = 6, atkspd = 8, x = 0, y = 0, ang = 0, imgang = 0, runat = 10, spawnchance = {['rpg_minecraft'] = {5}}, spawn = { ['rpg_mapb'] = {SPAWNS.FULLMAP} }, exp = 45, money = 78, loot = {{chance = 5000, id = 101}, {chance = 250, id = 223}}, spc = {1000, function(self) if self.health < 20 then radiusmsg("Creeper uses selfdestruct!", self.x, self.y) parse('explosion ' .. self.x .. ' ' .. self.y .. ' 128 80') parse('effect "colorsmoke" ' .. self.x .. ' ' .. self.y .. ' 100 128 255 128 0') parse('effect "colorsmoke" ' .. self.x .. ' ' .. self.y .. ' 100 128 255 255 0') self:destroy() end end}, }, { name = 'Zombie Pigman', health = 100, image = 'gfx/minecraft_npc/zombie pigman.png', scalex = 1.5, scaley = 1.5, r = 104, g = 152, b = 40, atk = 3.1, def = 2.2, spd = 7, atkspd = 10, x = 0, y = 0, ang = 0, imgang = 0, runat = 20, spawnchance = {['rpg_minecraft'] = {32}}, spawn = { ['rpg_mapb'] = {SPAWNS.FULLMAP} }, exp = 5, money = 30, loot = {{chance = 8000, id = 1}}, spc = {750, function(self, id, dist) if dist <= 96 then radiusmsg("Zombie Pigman uses horn attack!", self.x, self.y) self:hit(id, 20) end end}, }, { name = 'Skeleton', health = 100, image = 'gfx/minecraft_npc/skeleton.png', scalex = 1.5, scaley = 1.5, r = 104, g = 152, b = 40, atk = 2.2, def = 1.1, spd = 7, atkspd = 10, x = 0, y = 0, ang = 0, imgang = 0, runat = 20, spawnchance = {['rpg_mapb'] = {100}}, spawn = { ['rpg_minecraft'] = {SPAWNS.FULLMAP} }, exp = 100, money = 100, loot = {{chance = 8000, id = 1}}, spc = {750, function(self, id, dist) radiusmsg("Skeleton uses arrow!", self.x, self.y) parse('explosion ' .. self.x .. ' ' .. self.y .. ' 96 40') parse('effect "colorsmoke" ' .. self.x .. ' ' .. self.y .. ' 100 96 255 255 255') parse('effect "colorsmoke" ' .. self.x .. ' ' .. self.y .. ' 75 96 128 128 255') end}, }, }