special_mobs.lua 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. mobs:register_mob("lottmobs:elf_trader", {
  2. type = "npc",
  3. race = "GAMEelf",
  4. hp_min = 20,
  5. hp_max = 50,
  6. collisionbox = {-0.3,-1.1,-0.3, 0.3,0.91,0.3},
  7. textures = {
  8. {"lottmobs_elf_trader.png", "lottarmor_trans.png", "lottarmor_trans.png", "lottarmor_trans.png"},
  9. },
  10. visual = "mesh",
  11. visual_size = {x=0.95, y=1.15},
  12. mesh = "lottarmor_character.b3d",
  13. view_range = 20,
  14. makes_footstep_sound = true,
  15. walk_velocity = 1.5,
  16. run_velocity = 5,
  17. damage = 6,
  18. armor = 200,
  19. drops = { },
  20. light_resistant = true,
  21. drawtype = "front",
  22. water_damage = 1,
  23. lava_damage = 10,
  24. light_damage = 0,
  25. attack_type = "dogfight",
  26. follow = "lottother:narya",
  27. animation = {
  28. speed_normal = 15,
  29. speed_run = 20,
  30. stand_start = 0,
  31. stand_end = 79,
  32. walk_start = 168,
  33. walk_end = 187,
  34. run_start = 168,
  35. run_end = 187,
  36. punch_start = 189,
  37. punch_end = 198,
  38. },
  39. sounds = {
  40. war_cry = "mobs_die_yell",
  41. death = "default_death",
  42. attack = "mobs_slash_attack",
  43. },
  44. attacks_monsters = true,
  45. peaceful = true,
  46. group_attack = true,
  47. step = 1,
  48. on_rightclick = function(self, clicker)
  49. lottmobs_trader(self, clicker, entity, lottmobs.elf, "gui_elfbg.png", "GAMEelf")
  50. end,
  51. })
  52. mobs:register_spawn("lottmobs:elf_trader", {"lottmapgen:lorien_grass"}, 20, 0, 60000, 3, 31000)
  53. mobs:register_mob("lottmobs:human_trader", {
  54. type = "npc",
  55. race = "GAMEman",
  56. hp_min = 15,
  57. hp_max = 35,
  58. collisionbox = {-0.3,-1.0,-0.3, 0.3,0.8,0.3},
  59. textures = {
  60. {"lottmobs_human_trader.png", "lottarmor_trans.png", "lottarmor_trans.png", "lottarmor_trans.png"},
  61. },
  62. visual = "mesh",
  63. mesh = "lottarmor_character.b3d",
  64. makes_footstep_sound = true,
  65. view_range = 12,
  66. walk_velocity = 1,
  67. run_velocity = 3,
  68. armor = 100,
  69. damage = 5,
  70. drops = { },
  71. light_resistant = true,
  72. drawtype = "front",
  73. water_damage = 1,
  74. lava_damage = 10,
  75. light_damage = 0,
  76. attack_type = "dogfight",
  77. follow = "lottother:narya",
  78. animation = {
  79. speed_normal = 15,
  80. speed_run = 15,
  81. stand_start = 0,
  82. stand_end = 79,
  83. walk_start = 168,
  84. walk_end = 187,
  85. run_start = 168,
  86. run_end = 187,
  87. punch_start = 189,
  88. punch_end = 198,
  89. },
  90. jump = true,
  91. sounds = {
  92. war_cry = "mobs_die_yell",
  93. death = "default_death",
  94. attack = "default_punch2",
  95. },
  96. attacks_monsters = true,
  97. peaceful = true,
  98. group_attack = true,
  99. step = 1,
  100. on_rightclick = function(self, clicker)
  101. lottmobs_trader(self, clicker, entity, lottmobs.human, "gui_gondorbg.png", "GAMEman")
  102. end,
  103. })
  104. mobs:register_spawn("lottmobs:human_trader", {"lottmapgen:rohan_grass"}, 20, -1, 60000, 3, 31000)
  105. mobs:register_spawn("lottmobs:human_trader", {"lottmapgen:gondor_grass"}, 20, -1, 60000, 3, 31000)
  106. mobs:register_mob("lottmobs:hobbit_trader", {
  107. type = "npc",
  108. race = "GAMEman",
  109. hp_min = 5,
  110. hp_max = 15,
  111. collisionbox = {-0.3,-0.75,-0.3, 0.3,0.7,0.3},
  112. textures = {
  113. {"lottmobs_hobbit_trader.png", "lottarmor_trans.png", "lottarmor_trans.png", "lottarmor_trans.png"},
  114. },
  115. visual = "mesh",
  116. visual_size = {x=1.1, y=0.75},
  117. mesh = "lottarmor_character.b3d",
  118. makes_footstep_sound = true,
  119. walk_velocity = 1,
  120. armor = 300,
  121. drops = { },
  122. light_resistant = true,
  123. drawtype = "front",
  124. water_damage = 1,
  125. lava_damage = 5,
  126. light_damage = 0,
  127. animation = {
  128. speed_normal = 15,
  129. speed_run = 15,
  130. stand_start = 0,
  131. stand_end = 79,
  132. walk_start = 168,
  133. walk_end = 187,
  134. run_start = 168,
  135. run_end = 187,
  136. punch_start = 189,
  137. punch_end = 198,
  138. },
  139. jump = true,
  140. step=1,
  141. passive = true,
  142. sounds = {
  143. },
  144. on_rightclick = function(self, clicker)
  145. lottmobs_trader(self, clicker, entity, lottmobs.hobbit, "gui_hobbitbg.png", "GAMEhobbit")
  146. end,
  147. })
  148. mobs:register_spawn("lottmobs:hobbit_trader", {"lottmapgen:shire_grass"}, 20, -1, 60000, 3, 31000)
  149. mobs:register_mob("lottmobs:dwarf_trader", {
  150. type = "npc",
  151. race = "GAMEdwarf",
  152. hp_min = 20,
  153. hp_max = 30,
  154. collisionbox = {-0.3,-.85,-0.3, 0.3,0.68,0.3},
  155. textures = {
  156. {"lottmobs_dwarf_trader.png", "lottarmor_trans.png", "lottarmor_trans.png", "lottarmor_trans.png"},
  157. },
  158. visual = "mesh",
  159. visual_size = {x=1.1, y=0.85},
  160. mesh = "lottarmor_character.b3d",
  161. view_range = 10,
  162. makes_footstep_sound = true,
  163. walk_velocity = 1,
  164. run_velocity = 2,
  165. armor = 200,
  166. damage = 4,
  167. drops = {},
  168. light_resistant = true,
  169. drawtype = "front",
  170. water_damage = 0,
  171. lava_damage = 10,
  172. light_damage = 0,
  173. attack_type = "dogfight",
  174. follow = "lottother:narya",
  175. animation = {
  176. speed_normal = 15,
  177. speed_run = 15,
  178. stand_start = 0,
  179. stand_end = 79,
  180. walk_start = 168,
  181. walk_end = 187,
  182. run_start = 168,
  183. run_end = 187,
  184. punch_start = 189,
  185. punch_end = 198,
  186. },
  187. jump = true,
  188. sounds = {
  189. war_cry = "mobs_die_yell",
  190. death = "default_death",
  191. attack = "default_punch2",
  192. },
  193. attacks_monsters = true,
  194. peaceful = true,
  195. group_attack = true,
  196. step = 1,
  197. on_rightclick = function(self, clicker)
  198. lottmobs_trader(self, clicker, entity, lottmobs.dwarf, "gui_angmarbg.png", "GAMEdwarf")
  199. end,
  200. })
  201. mobs:register_spawn("lottmobs:dwarf_trader", {"lottmapgen:ironhill_grass"}, 20, -1, 60000, 3, 31000)