diff --git a/data-crystal/monster/aquatics/quara_looter.lua b/data-crystal/monster/aquatics/quara_looter.lua index d28956ea..aef7335d 100644 --- a/data-crystal/monster/aquatics/quara_looter.lua +++ b/data-crystal/monster/aquatics/quara_looter.lua @@ -76,34 +76,34 @@ monster.voices = { } monster.loot = { - { name = "Amber Souvenir", chance = 7040 }, - { name = "Resinous Fish Fin", chance = 6460 }, - { id = 3039, chance = 4340 }, -- red gem - { id = 3041, chance = 2700 }, -- blue gem - { name = "Glacier Kilt", chance = 940 }, - { name = "Necklace of the Deep", chance = 820 }, - { name = "Crystal Crossbow", chance = 470 }, - { name = "Rift Lance", chance = 350 }, - { name = "Mantassin Tail", chance = 230 }, - { name = "platinum coin", chance = 10000, maxCount = 25 }, - { name = "Glacier Robe", chance = 1000 }, - { name = "Preserved Light Blue Seed", chance = 110 }, - { name = "Preserved Purple Seed", chance = 110 }, - { name = "Preserved Violet Seed", chance = 110 }, + { name = "Amber Souvenir", chance = 7040 }, + { name = "Resinous Fish Fin", chance = 6460 }, + { id = 3039, chance = 4340 }, -- red gem + { id = 3041, chance = 2700 }, -- blue gem + { name = "Glacier Kilt", chance = 940 }, + { name = "Necklace of the Deep", chance = 820 }, + { name = "Crystal Crossbow", chance = 470 }, + { name = "Rift Lance", chance = 350 }, + { name = "Mantassin Tail", chance = 230 }, + { name = "platinum coin", chance = 10000, maxCount = 25 }, + { name = "Glacier Robe", chance = 1000 }, + { name = "Preserved Light Blue Seed", chance = 110 }, + { name = "Preserved Purple Seed", chance = 110 }, + { name = "Preserved Violet Seed", chance = 110 }, } monster.attacks = { - {name ="melee", interval = 2000, chance = 100, type = COMBAT_DEATHDAMAGE, minDamage = -150, maxDamage = -450 }, - {name ="combat", interval = 2000, chance = 35, type = COMBAT_ICEDAMAGE, minDamage = -400, maxDamage = -750, range = 7, shootEffect = CONST_ANI_SHIVERARROW, effect = CONST_ME_ICEATTACK, target = true }, - {name ="quarasmallicering", interval = 2000, chance = 16 }, - {name ="podzillaphyschain", interval = 2000, chance = 15 }, + { name = "melee", interval = 2000, chance = 100, type = COMBAT_DEATHDAMAGE, minDamage = -150, maxDamage = -450 }, + { name = "combat", interval = 2000, chance = 35, type = COMBAT_ICEDAMAGE, minDamage = -400, maxDamage = -750, range = 7, shootEffect = CONST_ANI_SHIVERARROW, effect = CONST_ME_ICEATTACK, target = true }, + { name = "quarasmallicering", interval = 2000, chance = 16 }, + { name = "podzillaphyschain", interval = 2000, chance = 15 }, } monster.defenses = { defense = 95, armor = 95, mitigation = 2.75, - { name = "combat", interval = 2000, chance = 7, type = COMBAT_HEALING, minDamage = 600, maxDamage = 800, effect = CONST_ME_MAGIC_BLUE, target = false }, + { name = "combat", interval = 2000, chance = 7, type = COMBAT_HEALING, minDamage = 600, maxDamage = 800, effect = CONST_ME_MAGIC_BLUE, target = false }, } monster.elements = { @@ -119,7 +119,6 @@ monster.elements = { { type = COMBAT_DEATHDAMAGE, percent = 5 }, } - monster.immunities = { { type = "paralyze", condition = true }, { type = "outfit", condition = false }, @@ -127,4 +126,4 @@ monster.immunities = { { type = "bleed", condition = false }, } -mType:register(monster) \ No newline at end of file +mType:register(monster) diff --git a/data-crystal/monster/aquatics/quara_plunderer.lua b/data-crystal/monster/aquatics/quara_plunderer.lua index c05a360d..4402aeed 100644 --- a/data-crystal/monster/aquatics/quara_plunderer.lua +++ b/data-crystal/monster/aquatics/quara_plunderer.lua @@ -76,19 +76,19 @@ monster.voices = { } monster.loot = { - { name = "Amber Souvenir", chance = 7040 }, - { name = "Resinous Fish Fin", chance = 6460 }, - { id = 3039, chance = 4940 }, -- red gem - { id = 3041, chance = 4900 }, -- blue gem - { name = "Haunted Blade", chance = 350 }, - { name = "platinum coin", chance = 10000, maxCount = 25 }, + { name = "Amber Souvenir", chance = 7040 }, + { name = "Resinous Fish Fin", chance = 6460 }, + { id = 3039, chance = 4940 }, -- red gem + { id = 3041, chance = 4900 }, -- blue gem + { name = "Haunted Blade", chance = 350 }, + { name = "platinum coin", chance = 10000, maxCount = 25 }, } monster.attacks = { - {name ="melee", interval = 2000, chance = 100, type = COMBAT_PHYSICALDAMAGE, minDamage = -350, maxDamage = -500}, - {name ="combat", interval = 2000, chance = 25, type = COMBAT_ICEDAMAGE, minDamage = -800, maxDamage = -1100, range = 7, radius = 4, shootEffect = CONST_ANI_ICE, effect = CONST_ME_ICEAREA, target = false}, - {name = "quaracrossdeath", interval = 2000, chance = 20, minDamage = -1100, maxDamage = -1700, target = false }, - {name = "quarasmokedeath", interval = 2000, chance = 20, minDamage = -850, maxDamage = -1150, target = false }, + { name = "melee", interval = 2000, chance = 100, type = COMBAT_PHYSICALDAMAGE, minDamage = -350, maxDamage = -500 }, + { name = "combat", interval = 2000, chance = 25, type = COMBAT_ICEDAMAGE, minDamage = -800, maxDamage = -1100, range = 7, radius = 4, shootEffect = CONST_ANI_ICE, effect = CONST_ME_ICEAREA, target = false }, + { name = "quaracrossdeath", interval = 2000, chance = 20, minDamage = -1100, maxDamage = -1700, target = false }, + { name = "quarasmokedeath", interval = 2000, chance = 20, minDamage = -850, maxDamage = -1150, target = false }, } monster.defenses = { @@ -117,4 +117,4 @@ monster.immunities = { { type = "bleed", condition = false }, } -mType:register(monster) \ No newline at end of file +mType:register(monster) diff --git a/data-crystal/monster/aquatics/quara_raider.lua b/data-crystal/monster/aquatics/quara_raider.lua index d7f91412..d6eaeeec 100644 --- a/data-crystal/monster/aquatics/quara_raider.lua +++ b/data-crystal/monster/aquatics/quara_raider.lua @@ -76,34 +76,33 @@ monster.voices = { } monster.loot = { - { name = "Amber Souvenir", chance = 7330 }, - { id = 3039, chance = 5340 }, -- red gem - { name = "Resinous Fish Fin", chance = 4090 }, - { name = "Skull Staff", chance = 1480 }, - { id = 3041, chance = 1140 }, -- blue gem - { name = "Glacier Robe", chance = 910 }, - { name = "Crystalline Armor", chance = 510 }, - { name = "Quara Pincers", chance = 510 }, - { name = "Abyss Hammer", chance = 170 }, - { name = "Preserved Light Blue Seed", chance = 110 }, - { name = "Preserved Purple Seed", chance = 110 }, - { name = "platinum coin", chance = 10000, maxCount = 25 }, + { name = "Amber Souvenir", chance = 7330 }, + { id = 3039, chance = 5340 }, -- red gem + { name = "Resinous Fish Fin", chance = 4090 }, + { name = "Skull Staff", chance = 1480 }, + { id = 3041, chance = 1140 }, -- blue gem + { name = "Glacier Robe", chance = 910 }, + { name = "Crystalline Armor", chance = 510 }, + { name = "Quara Pincers", chance = 510 }, + { name = "Abyss Hammer", chance = 170 }, + { name = "Preserved Light Blue Seed", chance = 110 }, + { name = "Preserved Purple Seed", chance = 110 }, + { name = "platinum coin", chance = 10000, maxCount = 25 }, } monster.attacks = { - {name ="melee", interval = 2000, chance = 100, type= COMBAT_PHYSICALDAMAGE, minDamage = -250, maxDamage = -320}, - {name ="quaralargeicering", interval = 2000, chance = 20, minDamage = -1250, maxDamage = -1400, target = false }, - {name ="quararaidershoot", interval = 2000, chance = 35, minDamage = -650, maxDamage = -900, range = 7, target = true }, - {name= "quarawatersplash", interval = 2000, chance = 18, minDamage = -1350, maxDamage = -1600, target = false}, - {name ="quaraseamonster", interval = 2000, chance = 18, minDamage = -1350, maxDamage = -1600, target = false}, + { name = "melee", interval = 2000, chance = 100, type = COMBAT_PHYSICALDAMAGE, minDamage = -250, maxDamage = -320 }, + { name = "quaralargeicering", interval = 2000, chance = 20, minDamage = -1250, maxDamage = -1400, target = false }, + { name = "quararaidershoot", interval = 2000, chance = 35, minDamage = -650, maxDamage = -900, range = 7, target = true }, + { name = "quarawatersplash", interval = 2000, chance = 18, minDamage = -1350, maxDamage = -1600, target = false }, + { name = "quaraseamonster", interval = 2000, chance = 18, minDamage = -1350, maxDamage = -1600, target = false }, } - monster.defenses = { defense = 95, armor = 95, mitigation = 2.75, - { name = "combat", interval = 2000, chance = 7, type = COMBAT_HEALING, minDamage = 800, maxDamage = 1000, effect = CONST_ME_MAGIC_BLUE, target = false }, + { name = "combat", interval = 2000, chance = 7, type = COMBAT_HEALING, minDamage = 800, maxDamage = 1000, effect = CONST_ME_MAGIC_BLUE, target = false }, } monster.elements = { @@ -126,4 +125,4 @@ monster.immunities = { { type = "bleed", condition = false }, } -mType:register(monster) \ No newline at end of file +mType:register(monster) diff --git a/data-crystal/monster/bosses/sugar_daddy.lua b/data-crystal/monster/bosses/sugar_daddy.lua index e9420a5b..dbbdf99d 100644 --- a/data-crystal/monster/bosses/sugar_daddy.lua +++ b/data-crystal/monster/bosses/sugar_daddy.lua @@ -13,8 +13,6 @@ monster.outfit = { lookMount = 0, } - - monster.bosstiary = { bossRaceId = 2562, bossRace = RARITY_BANE, @@ -131,4 +129,4 @@ monster.immunities = { { type = "bleed", condition = false }, } -mType:register(monster) \ No newline at end of file +mType:register(monster) diff --git a/data-crystal/monster/bosses/sugar_mommy.lua b/data-crystal/monster/bosses/sugar_mommy.lua index aa840852..9c484b60 100644 --- a/data-crystal/monster/bosses/sugar_mommy.lua +++ b/data-crystal/monster/bosses/sugar_mommy.lua @@ -13,8 +13,6 @@ monster.outfit = { lookMount = 0, } - - monster.bosstiary = { bossRaceId = 2580, bossRace = RARITY_BANE, @@ -70,7 +68,7 @@ monster.voices = { { text = "SUGAR!!!", yell = false }, } -monster.loot = { +monster.loot = { { name = "platinum coin", chance = 100000, maxCount = 11 }, { name = "cherry", chance = 100000, maxCount = 2 }, { id = 3039, chance = 11465, maxCount = 1 }, -- red gem @@ -79,7 +77,6 @@ monster.loot = { { id = 48250, chance = 28555, maxCount = 11 }, -- dark chocolate coin { id = 48249, chance = 26465, maxCount = 12 }, -- milk chocolate coin { id = 48273, chance = 16465, maxCount = 1 }, -- taiyaki ice cream - } monster.attacks = { @@ -116,4 +113,4 @@ monster.immunities = { { type = "bleed", condition = false }, } -mType:register(monster) \ No newline at end of file +mType:register(monster) diff --git a/data-crystal/monster/bosses/the_rootkraken.lua b/data-crystal/monster/bosses/the_rootkraken.lua index bc7e0602..eadd0e33 100644 --- a/data-crystal/monster/bosses/the_rootkraken.lua +++ b/data-crystal/monster/bosses/the_rootkraken.lua @@ -12,8 +12,7 @@ monster.outfit = { lookAddons = 0, lookMount = 0, } -monster.events = { -} +monster.events = {} monster.bosstiary = { bossRaceId = 2528, @@ -71,28 +70,28 @@ monster.voices = { } monster.loot = { - { name = "crystal coin", chance = 100000, maxCount = 3 }, - { name = "platinum coin", chance = 100000, maxCount = 93 }, - { name = "ultimate health potion", chance = 42590, maxCount = 19 }, - { name = "great spirit potion", chance = 42590, maxCount = 7 }, - { name = "great mana potion", chance = 31480, maxCount = 14 }, - { name = "supreme health potion", chance = 31480, maxCount = 4 }, - { name = "ultimate spirit potion", chance = 25930, maxCount = 14 }, - { id = 3037, chance = 24070 }, -- yellow gem - { name = "amber with a bug", chance = 18520 }, - { name = "giant topaz", chance = 7410 }, - { name = "amber crusher", chance = 1850 }, - { id = 47375, chance = 300 }, -- amber axe - { id = 47369, chance = 200 }, -- amber greataxe - { id = 47368, chance = 200 }, -- amber slayer - { id = 47374, chance = 300 }, -- amber sabre - { id = 47376, chance = 300 }, -- amber cudgel - { id = 47370, chance = 200 }, -- amber bludgeon - { id = 47371, chance = 200 }, -- amber bow - { id = 47377, chance = 300 }, -- amber crossbow - { id = 47372, chance = 300 }, -- amber wand - { id = 47373, chance = 300 }, -- amber rod - { id = 48514, chance = 250 }, -- strange inedible fruit + { name = "crystal coin", chance = 100000, maxCount = 3 }, + { name = "platinum coin", chance = 100000, maxCount = 93 }, + { name = "ultimate health potion", chance = 42590, maxCount = 19 }, + { name = "great spirit potion", chance = 42590, maxCount = 7 }, + { name = "great mana potion", chance = 31480, maxCount = 14 }, + { name = "supreme health potion", chance = 31480, maxCount = 4 }, + { name = "ultimate spirit potion", chance = 25930, maxCount = 14 }, + { id = 3037, chance = 24070 }, -- yellow gem + { name = "amber with a bug", chance = 18520 }, + { name = "giant topaz", chance = 7410 }, + { name = "amber crusher", chance = 1850 }, + { id = 47375, chance = 300 }, -- amber axe + { id = 47369, chance = 200 }, -- amber greataxe + { id = 47368, chance = 200 }, -- amber slayer + { id = 47374, chance = 300 }, -- amber sabre + { id = 47376, chance = 300 }, -- amber cudgel + { id = 47370, chance = 200 }, -- amber bludgeon + { id = 47371, chance = 200 }, -- amber bow + { id = 47377, chance = 300 }, -- amber crossbow + { id = 47372, chance = 300 }, -- amber wand + { id = 47373, chance = 300 }, -- amber rod + { id = 48514, chance = 250 }, -- strange inedible fruit } monster.attacks = { @@ -128,4 +127,4 @@ monster.immunities = { { type = "bleed", condition = false }, } -mType:register(monster) \ No newline at end of file +mType:register(monster) diff --git a/data-crystal/monster/constructs/gingerbread_men.lua b/data-crystal/monster/constructs/gingerbread_men.lua index de9e4876..71a34ad2 100644 --- a/data-crystal/monster/constructs/gingerbread_men.lua +++ b/data-crystal/monster/constructs/gingerbread_men.lua @@ -75,8 +75,7 @@ monster.voices = { { text = "Have you seen my truffle baker?", yell = false }, { text = "I should visit the Candy Carnival.", yell = false }, } -monster.loot = { -} +monster.loot = {} monster.attacks = { { name = "melee", interval = 2000, chance = 100, minDamage = 0, maxDamage = -1 }, @@ -108,4 +107,4 @@ monster.immunities = { { type = "bleed", condition = false }, } -mType:register(monster) \ No newline at end of file +mType:register(monster) diff --git a/data-crystal/monster/constructs/goggle_cake.lua b/data-crystal/monster/constructs/goggle_cake.lua index 6c4f418a..0bd153b5 100644 --- a/data-crystal/monster/constructs/goggle_cake.lua +++ b/data-crystal/monster/constructs/goggle_cake.lua @@ -4,7 +4,7 @@ local monster = {} monster.description = "a goggle cake" monster.experience = 2700 monster.outfit = { - lookType = 1740, + lookType = 1740, lookHead = 0, lookBody = 10, lookLegs = 115, @@ -29,7 +29,7 @@ monster.Bestiary = { monster.health = 2700 monster.maxHealth = 2700 monster.race = "undead" -monster.corpse = 48271 +monster.corpse = 48271 monster.speed = 122 monster.manaCost = 0 @@ -114,16 +114,16 @@ monster.defenses = { } monster.elements = { - { type = COMBAT_PHYSICALDAMAGE, percent = -5 }, - { type = COMBAT_ENERGYDAMAGE, percent = -15 }, - { type = COMBAT_EARTHDAMAGE, percent = 105 }, - { type = COMBAT_FIREDAMAGE, percent = 110 }, - { type = COMBAT_LIFEDRAIN, percent = 100 }, - { type = COMBAT_MANADRAIN, percent = 100 }, - { type = COMBAT_DROWNDAMAGE, percent = 100 }, - { type = COMBAT_ICEDAMAGE, percent = -15 }, - { type = COMBAT_HOLYDAMAGE, percent = -5 }, - { type = COMBAT_DEATHDAMAGE, percent = -15 }, + { type = COMBAT_PHYSICALDAMAGE, percent = -5 }, + { type = COMBAT_ENERGYDAMAGE, percent = -15 }, + { type = COMBAT_EARTHDAMAGE, percent = 105 }, + { type = COMBAT_FIREDAMAGE, percent = 110 }, + { type = COMBAT_LIFEDRAIN, percent = 100 }, + { type = COMBAT_MANADRAIN, percent = 100 }, + { type = COMBAT_DROWNDAMAGE, percent = 100 }, + { type = COMBAT_ICEDAMAGE, percent = -15 }, + { type = COMBAT_HOLYDAMAGE, percent = -5 }, + { type = COMBAT_DEATHDAMAGE, percent = -15 }, } monster.immunities = { @@ -133,4 +133,4 @@ monster.immunities = { { type = "bleed", condition = false }, } -mType:register(monster) \ No newline at end of file +mType:register(monster) diff --git a/data-crystal/monster/elementals/candy_floss_elemental.lua b/data-crystal/monster/elementals/candy_floss_elemental.lua index 214b28b6..8d7593a8 100644 --- a/data-crystal/monster/elementals/candy_floss_elemental.lua +++ b/data-crystal/monster/elementals/candy_floss_elemental.lua @@ -4,7 +4,7 @@ local monster = {} monster.description = "a candy floss elemental" monster.experience = 3850 monster.outfit = { - lookType = 1749, + lookType = 1749, lookHead = 0, lookBody = 0, lookLegs = 0, @@ -29,7 +29,7 @@ monster.Bestiary = { monster.health = 3700 monster.maxHealth = 3700 monster.race = "undead" -monster.corpse = 48345 +monster.corpse = 48345 monster.speed = 105 monster.manaCost = 0 @@ -109,16 +109,16 @@ monster.defenses = { } monster.elements = { - { type = COMBAT_PHYSICALDAMAGE, percent = 40 }, - { type = COMBAT_ENERGYDAMAGE, percent = 15 }, - { type = COMBAT_EARTHDAMAGE, percent = -10 }, - { type = COMBAT_FIREDAMAGE, percent = -15 }, - { type = COMBAT_LIFEDRAIN, percent = 0 }, - { type = COMBAT_MANADRAIN, percent = 0 }, - { type = COMBAT_DROWNDAMAGE, percent = 0 }, - { type = COMBAT_ICEDAMAGE, percent = 15 }, - { type = COMBAT_HOLYDAMAGE, percent = 0 }, - { type = COMBAT_DEATHDAMAGE, percent = 20 }, + { type = COMBAT_PHYSICALDAMAGE, percent = 40 }, + { type = COMBAT_ENERGYDAMAGE, percent = 15 }, + { type = COMBAT_EARTHDAMAGE, percent = -10 }, + { type = COMBAT_FIREDAMAGE, percent = -15 }, + { type = COMBAT_LIFEDRAIN, percent = 0 }, + { type = COMBAT_MANADRAIN, percent = 0 }, + { type = COMBAT_DROWNDAMAGE, percent = 0 }, + { type = COMBAT_ICEDAMAGE, percent = 15 }, + { type = COMBAT_HOLYDAMAGE, percent = 0 }, + { type = COMBAT_DEATHDAMAGE, percent = 20 }, } monster.immunities = { @@ -128,4 +128,4 @@ monster.immunities = { { type = "bleed", condition = false }, } -mType:register(monster) \ No newline at end of file +mType:register(monster) diff --git a/data-crystal/monster/elementals/honey_elemental.lua b/data-crystal/monster/elementals/honey_elemental.lua index 8e1e449b..a243efe9 100644 --- a/data-crystal/monster/elementals/honey_elemental.lua +++ b/data-crystal/monster/elementals/honey_elemental.lua @@ -95,7 +95,6 @@ monster.loot = { monster.attacks = { { name = "melee", interval = 2000, chance = 100, minDamage = 0, maxDamage = -260 }, { name = "combat", interval = 2000, chance = 20, type = COMBAT_FIREDAMAGE, minDamage = -125, maxDamage = -235, radius = 4, effect = CONST_ME_YELLOW_RINGS, target = false }, - } monster.defenses = { @@ -124,4 +123,4 @@ monster.immunities = { { type = "bleed", condition = false }, } -mType:register(monster) \ No newline at end of file +mType:register(monster) diff --git a/data-crystal/monster/fey/angry_sugar_fairy.lua b/data-crystal/monster/fey/angry_sugar_fairy.lua index 38eb7ac7..5d02043f 100644 --- a/data-crystal/monster/fey/angry_sugar_fairy.lua +++ b/data-crystal/monster/fey/angry_sugar_fairy.lua @@ -101,7 +101,7 @@ monster.loot = { monster.attacks = { { name = "melee", interval = 2000, chance = 100, minDamage = 0, maxDamage = -110 }, - { name = "combat", interval = 2000, chance = 20, minDamage = -100, maxDamage = -230, range = 6, shootEffect = CONST_ANI_SMALLICE, effect = CONST_ME_ICEATTACK, target = true }, + { name = "combat", interval = 2000, chance = 20, minDamage = -100, maxDamage = -230, range = 6, shootEffect = CONST_ANI_SMALLICE, effect = CONST_ME_ICEATTACK, target = true }, { name = "combat", interval = 2000, chance = 20, minDamage = -130, maxDamage = -280, range = 5, radius = 3, shootEffect = CONST_ANI_ENERGY, effect = CONST_ME_ELECTRICALSPARK, target = true }, } @@ -132,4 +132,4 @@ monster.immunities = { { type = "bleed", condition = false }, } -mType:register(monster) \ No newline at end of file +mType:register(monster) diff --git a/data-crystal/monster/fey/cream_blob.lua b/data-crystal/monster/fey/cream_blob.lua index 75096794..e59d8dae 100644 --- a/data-crystal/monster/fey/cream_blob.lua +++ b/data-crystal/monster/fey/cream_blob.lua @@ -75,8 +75,7 @@ monster.voices = { { text = "Work in the Chocolate Mines? No, no, leave it to the sugar cubes.", yell = false }, { text = "Nothing better than to lie on the vanilla sugar beach on a sunny day.", yell = false }, } -monster.loot = { -} +monster.loot = {} monster.attacks = { { name = "melee", interval = 2000, chance = 100, minDamage = 0, maxDamage = -1 }, @@ -108,4 +107,4 @@ monster.immunities = { { type = "bleed", condition = false }, } -mType:register(monster) \ No newline at end of file +mType:register(monster) diff --git a/data-crystal/monster/fey/fruit_drop.lua b/data-crystal/monster/fey/fruit_drop.lua index 93aa61a7..f62758df 100644 --- a/data-crystal/monster/fey/fruit_drop.lua +++ b/data-crystal/monster/fey/fruit_drop.lua @@ -75,8 +75,7 @@ monster.voices = { { text = "Have you ever seen the Big Ice Cream Machine?", yell = false }, { text = "Hello, sweetie!", yell = false }, } -monster.loot = { -} +monster.loot = {} monster.attacks = { { name = "melee", interval = 2000, chance = 100, minDamage = 0, maxDamage = -1 }, @@ -108,4 +107,4 @@ monster.immunities = { { type = "bleed", condition = false }, } -mType:register(monster) \ No newline at end of file +mType:register(monster) diff --git a/data-crystal/monster/fey/sugar_cube.lua b/data-crystal/monster/fey/sugar_cube.lua index e8042f9c..d426c053 100644 --- a/data-crystal/monster/fey/sugar_cube.lua +++ b/data-crystal/monster/fey/sugar_cube.lua @@ -75,8 +75,7 @@ monster.voices = { { text = "Catch me if you can!", yell = false }, { text = "No touching please.", yell = false }, } -monster.loot = { -} +monster.loot = {} monster.attacks = { { name = "melee", interval = 2000, chance = 100, minDamage = 0, maxDamage = -1 }, @@ -108,4 +107,4 @@ monster.immunities = { { type = "bleed", condition = false }, } -mType:register(monster) \ No newline at end of file +mType:register(monster) diff --git a/data-crystal/monster/fey/sugar_cube_worker.lua b/data-crystal/monster/fey/sugar_cube_worker.lua index f0e6395f..58510148 100644 --- a/data-crystal/monster/fey/sugar_cube_worker.lua +++ b/data-crystal/monster/fey/sugar_cube_worker.lua @@ -75,8 +75,7 @@ monster.voices = { { text = "So much work in the Chocolate Mines!", yell = false }, { text = "Petulant sugar balls ...", yell = false }, } -monster.loot = { -} +monster.loot = {} monster.attacks = { { name = "melee", interval = 2000, chance = 100, minDamage = 0, maxDamage = -1 }, @@ -108,4 +107,4 @@ monster.immunities = { { type = "bleed", condition = false }, } -mType:register(monster) \ No newline at end of file +mType:register(monster) diff --git a/data-crystal/monster/fey/truffle.lua b/data-crystal/monster/fey/truffle.lua index 9ec1b3a2..a77d9b36 100644 --- a/data-crystal/monster/fey/truffle.lua +++ b/data-crystal/monster/fey/truffle.lua @@ -76,8 +76,7 @@ monster.voices = { { text = "What should I bake next?", yell = false }, } -monster.loot = { -} +monster.loot = {} monster.attacks = { { name = "melee", interval = 2000, chance = 100, minDamage = 0, maxDamage = -1 }, @@ -109,4 +108,4 @@ monster.immunities = { { type = "bleed", condition = false }, } -mType:register(monster) \ No newline at end of file +mType:register(monster) diff --git a/data-crystal/monster/fey/truffle_cook.lua b/data-crystal/monster/fey/truffle_cook.lua index 41d8aeb4..77b1cbc2 100644 --- a/data-crystal/monster/fey/truffle_cook.lua +++ b/data-crystal/monster/fey/truffle_cook.lua @@ -76,8 +76,7 @@ monster.voices = { { text = "Delicious!", yell = false }, } -monster.loot = { -} +monster.loot = {} monster.attacks = { { name = "melee", interval = 2000, chance = 100, minDamage = 0, maxDamage = -1 }, @@ -109,4 +108,4 @@ monster.immunities = { { type = "bleed", condition = false }, } -mType:register(monster) \ No newline at end of file +mType:register(monster) diff --git a/data-crystal/monster/magicals/candy_horror.lua b/data-crystal/monster/magicals/candy_horror.lua index c471e758..ea60e5ba 100644 --- a/data-crystal/monster/magicals/candy_horror.lua +++ b/data-crystal/monster/magicals/candy_horror.lua @@ -94,22 +94,19 @@ monster.loot = { { id = 7419, chance = 502 }, -- dreaded cleaver { id = 3072, chance = 1840 }, -- wand of decay { id = 3429, chance = 2830 }, -- black shield - } monster.attacks = { { name = "melee", interval = 2000, chance = 100, minDamage = 0, maxDamage = -200 }, { name = "combat", interval = 2000, chance = 20, type = COMBAT_EARTHDAMAGE, minDamage = -120, maxDamage = -300, range = 6, radius = 3, effect = CONST_ME_CAKE, target = true }, - { name = "combat", interval = 2000, chance = 15, type = COMBAT_DEATHDAMAGE, minDamage = -120, maxDamage = -350, radius = 6 , effect = CONST_ME_CACAO, target = false }, + { name = "combat", interval = 2000, chance = 15, type = COMBAT_DEATHDAMAGE, minDamage = -120, maxDamage = -350, radius = 6, effect = CONST_ME_CACAO, target = false }, { name = "combat", interval = 2000, chance = 15, type = COMBAT_PHYSICALDAMAGE, minDamage = -120, maxDamage = -350, effect = CONST_ME_BIG_SCRATCH, target = false }, - } monster.defenses = { defense = 24, armor = 43, mitigation = 1.21, - } monster.elements = { @@ -132,4 +129,4 @@ monster.immunities = { { type = "bleed", condition = false }, } -mType:register(monster) \ No newline at end of file +mType:register(monster) diff --git a/data-crystal/monster/magicals/nibblemaw.lua b/data-crystal/monster/magicals/nibblemaw.lua index 17f89b13..051240c9 100644 --- a/data-crystal/monster/magicals/nibblemaw.lua +++ b/data-crystal/monster/magicals/nibblemaw.lua @@ -130,4 +130,4 @@ monster.immunities = { { type = "bleed", condition = false }, } -mType:register(monster) \ No newline at end of file +mType:register(monster) diff --git a/data-crystal/monster/plants/rootthing_amber_shaper.lua b/data-crystal/monster/plants/rootthing_amber_shaper.lua index ab04d589..fba1a58c 100644 --- a/data-crystal/monster/plants/rootthing_amber_shaper.lua +++ b/data-crystal/monster/plants/rootthing_amber_shaper.lua @@ -4,133 +4,133 @@ local monster = {} monster.description = "a rootthing amber shaper" monster.experience = 12400 monster.outfit = { - lookType = 1762, - lookHead = 0, - lookBody = 0, - lookLegs = 0, - lookFeet = 0, - lookAddons = 0, - lookMount = 0, + lookType = 1762, + lookHead = 0, + lookBody = 0, + lookLegs = 0, + lookFeet = 0, + lookAddons = 0, + lookMount = 0, } monster.raceId = 2539 monster.Bestiary = { - class = "Plant", - race = BESTY_RACE_PLANT, - toKill = 2500, - FirstUnlock = 100, - SecondUnlock = 1000, - CharmsPoints = 50, - Stars = 4, - Occurrence = 0, - Locations = "Podzilla Stalk.", + class = "Plant", + race = BESTY_RACE_PLANT, + toKill = 2500, + FirstUnlock = 100, + SecondUnlock = 1000, + CharmsPoints = 50, + Stars = 4, + Occurrence = 0, + Locations = "Podzilla Stalk.", } monster.health = 15000 monster.maxHealth = 15000 monster.race = "venom" -monster.corpse = 48401 +monster.corpse = 48401 monster.speed = 185 monster.manaCost = 0 monster.changeTarget = { - interval = 4000, - chance = 10, + interval = 4000, + chance = 10, } monster.strategiesTarget = { - nearest = 70, - health = 10, - damage = 10, - random = 10, + nearest = 70, + health = 10, + damage = 10, + random = 10, } monster.flags = { - summonable = false, - attackable = true, - hostile = true, - convinceable = false, - pushable = false, - rewardBoss = false, - illusionable = false, - canPushItems = true, - canPushCreatures = false, - staticAttackChance = 90, - targetDistance = 1, - runHealth = 0, - healthHidden = false, - isBlockable = false, - canWalkOnEnergy = true, - canWalkOnFire = true, - canWalkOnPoison = true, + summonable = false, + attackable = true, + hostile = true, + convinceable = false, + pushable = false, + rewardBoss = false, + illusionable = false, + canPushItems = true, + canPushCreatures = false, + staticAttackChance = 90, + targetDistance = 1, + runHealth = 0, + healthHidden = false, + isBlockable = false, + canWalkOnEnergy = true, + canWalkOnFire = true, + canWalkOnPoison = true, } monster.light = { - level = 0, - color = 0, + level = 0, + color = 0, } monster.voices = { - interval = 5000, - chance = 10, - { text = "KNARR!", yell = false }, - { text = "RATTLE!", yell = false }, - { text = "CROAK!", yell = false }, + interval = 5000, + chance = 10, + { text = "KNARR!", yell = false }, + { text = "RATTLE!", yell = false }, + { text = "CROAK!", yell = false }, } monster.loot = { - { name = "gold coin", chance = 100000, maxCount = 200 }, - { name = "platinum coin", chance = 88010, maxCount = 37 }, - { name = "demon root", chance = 6840 }, - { name = "amber sickle", chance = 5980 }, - { name = "resin parasite", chance = 5980 }, - { name = "crystal coin", chance = 2560 }, - { name = "wooden spellbook", chance = 2560 }, - { name = "amber", chance = 1710 }, - { name = "amber staff", chance = 850 }, - { name = "jade hammer", chance = 850 }, - { name = "skull helmet", chance = 1310 }, - { name = "amber with a bug", chance = 1110 }, - { name = "amber with a dragonfly", chance = 1110 }, - { name = "Preserved Pink Seed", chance = 110 }, - { name = "Preserved Red Seed", chance = 110 }, - { name = "Preserved Yellow Seed", chance = 110 }, - { name = "Preserved Dark Seed", chance = 110 } + { name = "gold coin", chance = 100000, maxCount = 200 }, + { name = "platinum coin", chance = 88010, maxCount = 37 }, + { name = "demon root", chance = 6840 }, + { name = "amber sickle", chance = 5980 }, + { name = "resin parasite", chance = 5980 }, + { name = "crystal coin", chance = 2560 }, + { name = "wooden spellbook", chance = 2560 }, + { name = "amber", chance = 1710 }, + { name = "amber staff", chance = 850 }, + { name = "jade hammer", chance = 850 }, + { name = "skull helmet", chance = 1310 }, + { name = "amber with a bug", chance = 1110 }, + { name = "amber with a dragonfly", chance = 1110 }, + { name = "Preserved Pink Seed", chance = 110 }, + { name = "Preserved Red Seed", chance = 110 }, + { name = "Preserved Yellow Seed", chance = 110 }, + { name = "Preserved Dark Seed", chance = 110 }, } monster.attacks = { - { name = "melee", interval = 2000, chance = 100, minDamage = 0, maxDamage = -450 }, - { name = "combat", interval = 2000, chance = 20, type = COMBAT_EARTHDAMAGE, minDamage = -550, maxDamage = -750, effect = CONST_ME_SMALLPLANTS, target = true }, - { name = "combat", interval = 2500, chance = 17, type = COMBAT_PHYSICALDAMAGE, minDamage = -600, maxDamage = -800, radius = 2, effect = CONST_ME_STONES, target = true }, - { name = "rotthingshaper", interval = 2000, chance = 18, target = false }, - { name = "poison chain", interval = 2000, chance = 15, minDamage = -600, maxDamage = -900 }, + { name = "melee", interval = 2000, chance = 100, minDamage = 0, maxDamage = -450 }, + { name = "combat", interval = 2000, chance = 20, type = COMBAT_EARTHDAMAGE, minDamage = -550, maxDamage = -750, effect = CONST_ME_SMALLPLANTS, target = true }, + { name = "combat", interval = 2500, chance = 17, type = COMBAT_PHYSICALDAMAGE, minDamage = -600, maxDamage = -800, radius = 2, effect = CONST_ME_STONES, target = true }, + { name = "rotthingshaper", interval = 2000, chance = 18, target = false }, + { name = "poison chain", interval = 2000, chance = 15, minDamage = -600, maxDamage = -900 }, } monster.defenses = { - defense = 100, - armor = 100, - mitigation = 2.75, - { name = "combat", interval = 2000, chance = 15, type = COMBAT_HEALING, minDamage = 500, maxDamage = 800, effect = CONST_ME_MAGIC_GREEN, target = false }, + defense = 100, + armor = 100, + mitigation = 2.75, + { name = "combat", interval = 2000, chance = 15, type = COMBAT_HEALING, minDamage = 500, maxDamage = 800, effect = CONST_ME_MAGIC_GREEN, target = false }, } monster.elements = { - { type = COMBAT_PHYSICALDAMAGE, percent = 5 }, - { type = COMBAT_ENERGYDAMAGE, percent = 25 }, - { type = COMBAT_EARTHDAMAGE, percent = 100 }, - { type = COMBAT_FIREDAMAGE, percent = -5 }, - { type = COMBAT_LIFEDRAIN, percent = 0 }, - { type = COMBAT_MANADRAIN, percent = 0 }, - { type = COMBAT_DROWNDAMAGE, percent = 0 }, - { type = COMBAT_ICEDAMAGE, percent = -5 }, - { type = COMBAT_HOLYDAMAGE, percent = -5 }, - { type = COMBAT_DEATHDAMAGE, percent = 0 }, + { type = COMBAT_PHYSICALDAMAGE, percent = 5 }, + { type = COMBAT_ENERGYDAMAGE, percent = 25 }, + { type = COMBAT_EARTHDAMAGE, percent = 100 }, + { type = COMBAT_FIREDAMAGE, percent = -5 }, + { type = COMBAT_LIFEDRAIN, percent = 0 }, + { type = COMBAT_MANADRAIN, percent = 0 }, + { type = COMBAT_DROWNDAMAGE, percent = 0 }, + { type = COMBAT_ICEDAMAGE, percent = -5 }, + { type = COMBAT_HOLYDAMAGE, percent = -5 }, + { type = COMBAT_DEATHDAMAGE, percent = 0 }, } monster.immunities = { - { type = "paralyze", condition = true }, - { type = "outfit", condition = false }, - { type = "invisible", condition = true }, - { type = "bleed", condition = false }, + { type = "paralyze", condition = true }, + { type = "outfit", condition = false }, + { type = "invisible", condition = true }, + { type = "bleed", condition = false }, } -mType:register(monster) \ No newline at end of file +mType:register(monster) diff --git a/data-crystal/monster/plants/rootthing_bug_tracker.lua b/data-crystal/monster/plants/rootthing_bug_tracker.lua index 1f922ab7..826c0e98 100644 --- a/data-crystal/monster/plants/rootthing_bug_tracker.lua +++ b/data-crystal/monster/plants/rootthing_bug_tracker.lua @@ -1,131 +1,131 @@ - local mType = Game.createMonsterType("Rootthing Bug Tracker") +local mType = Game.createMonsterType("Rootthing Bug Tracker") local monster = {} monster.description = "a rootthing bug tracker" monster.experience = 9650 monster.outfit = { - lookType = 1763, - lookHead = 0, - lookBody = 0, - lookLegs = 0, - lookFeet = 0, - lookAddons = 0, - lookMount = 0, + lookType = 1763, + lookHead = 0, + lookBody = 0, + lookLegs = 0, + lookFeet = 0, + lookAddons = 0, + lookMount = 0, } monster.raceId = 2538 monster.Bestiary = { - class = "Plant", - race = BESTY_RACE_PLANT, - toKill = 2500, - FirstUnlock = 100, - SecondUnlock = 1000, - CharmsPoints = 50, - Stars = 4, - Occurrence = 0, - Locations = "Podzilla Stalk.", + class = "Plant", + race = BESTY_RACE_PLANT, + toKill = 2500, + FirstUnlock = 100, + SecondUnlock = 1000, + CharmsPoints = 50, + Stars = 4, + Occurrence = 0, + Locations = "Podzilla Stalk.", } monster.health = 12500 monster.maxHealth = 12500 monster.race = "venom" -monster.corpse = 48405 +monster.corpse = 48405 monster.speed = 195 monster.manaCost = 0 monster.changeTarget = { - interval = 4000, - chance = 10, + interval = 4000, + chance = 10, } monster.strategiesTarget = { - nearest = 70, - health = 10, - damage = 10, - random = 10, + nearest = 70, + health = 10, + damage = 10, + random = 10, } monster.flags = { - summonable = false, - attackable = true, - hostile = true, - convinceable = false, - pushable = false, - rewardBoss = false, - illusionable = false, - canPushItems = true, - canPushCreatures = false, - staticAttackChance = 90, - targetDistance = 4, - runHealth = 0, - healthHidden = false, - isBlockable = false, - canWalkOnEnergy = true, - canWalkOnFire = true, - canWalkOnPoison = true, + summonable = false, + attackable = true, + hostile = true, + convinceable = false, + pushable = false, + rewardBoss = false, + illusionable = false, + canPushItems = true, + canPushCreatures = false, + staticAttackChance = 90, + targetDistance = 4, + runHealth = 0, + healthHidden = false, + isBlockable = false, + canWalkOnEnergy = true, + canWalkOnFire = true, + canWalkOnPoison = true, } monster.light = { - level = 0, - color = 0, + level = 0, + color = 0, } monster.voices = { - interval = 5000, - chance = 10, - { text = "Ktsktskts!", yell = false }, - { text = "BRRRRN!!!", yell = true }, - { text = "FRRRRR!!!", yell = true }, + interval = 5000, + chance = 10, + { text = "Ktsktskts!", yell = false }, + { text = "BRRRRN!!!", yell = true }, + { text = "FRRRRR!!!", yell = true }, } monster.loot = { - { name = "platinum coin", chance = 74620, maxCount = 44 }, - { name = "small emerald", chance = 6180 }, - { name = "resin parasite", chance = 4840 }, - { name = "demon root", chance = 4510 }, - { name = "springsprout rod", chance = 3170 }, - { name = "wood cape", chance = 1170 }, - { name = "green gem", chance = 1170 }, - { name = "golden legs", chance = 170 }, - { name = "composite hornbow", chance = 170 }, - { name = "Preserved Pink Seed", chance = 110 }, - { name = "Preserved Red Seed", chance = 110 }, - { name = "Preserved Yellow Seed", chance = 110 }, + { name = "platinum coin", chance = 74620, maxCount = 44 }, + { name = "small emerald", chance = 6180 }, + { name = "resin parasite", chance = 4840 }, + { name = "demon root", chance = 4510 }, + { name = "springsprout rod", chance = 3170 }, + { name = "wood cape", chance = 1170 }, + { name = "green gem", chance = 1170 }, + { name = "golden legs", chance = 170 }, + { name = "composite hornbow", chance = 170 }, + { name = "Preserved Pink Seed", chance = 110 }, + { name = "Preserved Red Seed", chance = 110 }, + { name = "Preserved Yellow Seed", chance = 110 }, } monster.attacks = { - { name = "melee", interval = 2000, chance = 100, minDamage = 0, maxDamage = -300 }, - { name = "rotthligholyulus", interval = 2000, chance = 14, minDamage = -630, maxDamage = -840 }, - { name = "combat", interval = 2000, chance = 20, type = COMBAT_PHYSICALDAMAGE, minDamage = -530, maxDamage = -720, radius = 4, effect = CONST_ME_EXPLOSIONHIT, target = true }, - { name = "combat", interval = 2000, chance = 20, type = COMBAT_EARTHDAMAGE, minDamage = -460, maxDamage = - 740, range = 6, radius = 2, shootEffect = CONST_ANI_POISON, effect = CONST_ME_POISONAREA, target = true }, - { name = "podzillaphyschain", interval = 2000, chance = 16 }, - { name = "rotthligexplo", interval = 2000, chance = 18, minDamage = -400, maxDamage = -625 }, + { name = "melee", interval = 2000, chance = 100, minDamage = 0, maxDamage = -300 }, + { name = "rotthligholyulus", interval = 2000, chance = 14, minDamage = -630, maxDamage = -840 }, + { name = "combat", interval = 2000, chance = 20, type = COMBAT_PHYSICALDAMAGE, minDamage = -530, maxDamage = -720, radius = 4, effect = CONST_ME_EXPLOSIONHIT, target = true }, + { name = "combat", interval = 2000, chance = 20, type = COMBAT_EARTHDAMAGE, minDamage = -460, maxDamage = -740, range = 6, radius = 2, shootEffect = CONST_ANI_POISON, effect = CONST_ME_POISONAREA, target = true }, + { name = "podzillaphyschain", interval = 2000, chance = 16 }, + { name = "rotthligexplo", interval = 2000, chance = 18, minDamage = -400, maxDamage = -625 }, } monster.defenses = { - defense = 92, - armor = 92, - mitigation = 2.51, + defense = 92, + armor = 92, + mitigation = 2.51, } monster.elements = { - { type = COMBAT_PHYSICALDAMAGE, percent = 15 }, - { type = COMBAT_ENERGYDAMAGE, percent = 25 }, - { type = COMBAT_EARTHDAMAGE, percent = 100 }, - { type = COMBAT_FIREDAMAGE, percent = -15 }, - { type = COMBAT_LIFEDRAIN, percent = 0 }, - { type = COMBAT_MANADRAIN, percent = 0 }, - { type = COMBAT_DROWNDAMAGE, percent = 0 }, - { type = COMBAT_ICEDAMAGE, percent = -5 }, - { type = COMBAT_HOLYDAMAGE, percent = 0 }, - { type = COMBAT_DEATHDAMAGE, percent = -5 }, + { type = COMBAT_PHYSICALDAMAGE, percent = 15 }, + { type = COMBAT_ENERGYDAMAGE, percent = 25 }, + { type = COMBAT_EARTHDAMAGE, percent = 100 }, + { type = COMBAT_FIREDAMAGE, percent = -15 }, + { type = COMBAT_LIFEDRAIN, percent = 0 }, + { type = COMBAT_MANADRAIN, percent = 0 }, + { type = COMBAT_DROWNDAMAGE, percent = 0 }, + { type = COMBAT_ICEDAMAGE, percent = -5 }, + { type = COMBAT_HOLYDAMAGE, percent = 0 }, + { type = COMBAT_DEATHDAMAGE, percent = -5 }, } monster.immunities = { - { type = "paralyze", condition = true }, - { type = "outfit", condition = false }, - { type = "invisible", condition = true }, - { type = "bleed", condition = false }, + { type = "paralyze", condition = true }, + { type = "outfit", condition = false }, + { type = "invisible", condition = true }, + { type = "bleed", condition = false }, } -mType:register(monster) \ No newline at end of file +mType:register(monster) diff --git a/data-crystal/monster/plants/rootthing_nutshell.lua b/data-crystal/monster/plants/rootthing_nutshell.lua index 01878cf3..d6ba10be 100644 --- a/data-crystal/monster/plants/rootthing_nutshell.lua +++ b/data-crystal/monster/plants/rootthing_nutshell.lua @@ -4,126 +4,126 @@ local monster = {} monster.description = "a rootthing nutshell" monster.experience = 9200 monster.outfit = { - lookType = 1760, - lookHead = 0, - lookBody = 0, - lookLegs = 0, - lookFeet = 0, - lookAddons = 0, - lookMount = 0, + lookType = 1760, + lookHead = 0, + lookBody = 0, + lookLegs = 0, + lookFeet = 0, + lookAddons = 0, + lookMount = 0, } monster.raceId = 2540 monster.Bestiary = { - class = "Plant", - race = BESTY_RACE_PLANT, - toKill = 2500, - FirstUnlock = 100, - SecondUnlock = 1000, - CharmsPoints = 50, - Stars = 4, - Occurrence = 0, - Locations = "Podzilla Stalk.", + class = "Plant", + race = BESTY_RACE_PLANT, + toKill = 2500, + FirstUnlock = 100, + SecondUnlock = 1000, + CharmsPoints = 50, + Stars = 4, + Occurrence = 0, + Locations = "Podzilla Stalk.", } monster.health = 13500 monster.maxHealth = 13500 monster.race = "venom" -monster.corpse = 48396 +monster.corpse = 48396 monster.speed = 190 monster.manaCost = 0 monster.changeTarget = { - interval = 4000, - chance = 10, + interval = 4000, + chance = 10, } monster.strategiesTarget = { - nearest = 70, - health = 10, - damage = 10, - random = 10, + nearest = 70, + health = 10, + damage = 10, + random = 10, } monster.flags = { - summonable = false, - attackable = true, - hostile = true, - convinceable = false, - pushable = false, - rewardBoss = false, - illusionable = false, - canPushItems = true, - canPushCreatures = false, - staticAttackChance = 90, - targetDistance = 1, - runHealth = 0, - healthHidden = false, - isBlockable = false, - canWalkOnEnergy = true, - canWalkOnFire = true, - canWalkOnPoison = true, + summonable = false, + attackable = true, + hostile = true, + convinceable = false, + pushable = false, + rewardBoss = false, + illusionable = false, + canPushItems = true, + canPushCreatures = false, + staticAttackChance = 90, + targetDistance = 1, + runHealth = 0, + healthHidden = false, + isBlockable = false, + canWalkOnEnergy = true, + canWalkOnFire = true, + canWalkOnPoison = true, } monster.light = { - level = 0, - color = 0, + level = 0, + color = 0, } monster.voices = { - interval = 5000, - chance = 10, - { text = "", yell = true }, - { text = "", yell = true }, - { text = "", yell = true }, + interval = 5000, + chance = 10, + { text = "", yell = true }, + { text = "", yell = true }, + { text = "", yell = true }, } monster.loot = { - { name = "platinum coin", chance = 88000, maxCount = 41 }, - { name = "demon root", chance = 7160 }, - { name = "resin parasite", chance = 3940 }, - { name = "small emerald", chance = 3030 }, - { name = "epee", chance = 830 }, - { name = "green gem", chance = 730 }, - { name = "swamplair armor", chance = 550 }, - { name = "ruthless axe", chance = 90 }, - { name = "terra helmet", chance = 30 }, - { name = "Preserved Pink Seed", chance = 110 }, - { name = "Preserved Red Seed", chance = 110 }, - { name = "Preserved Yellow Seed", chance = 110 }, + { name = "platinum coin", chance = 88000, maxCount = 41 }, + { name = "demon root", chance = 7160 }, + { name = "resin parasite", chance = 3940 }, + { name = "small emerald", chance = 3030 }, + { name = "epee", chance = 830 }, + { name = "green gem", chance = 730 }, + { name = "swamplair armor", chance = 550 }, + { name = "ruthless axe", chance = 90 }, + { name = "terra helmet", chance = 30 }, + { name = "Preserved Pink Seed", chance = 110 }, + { name = "Preserved Red Seed", chance = 110 }, + { name = "Preserved Yellow Seed", chance = 110 }, } monster.attacks = { - { name = "melee", interval = 2000, chance = 100, minDamage = -150, maxDamage = -670 }, - { name = "rotthligulus", interval = 2000, chance = 20, minDamage = -750, maxDamage = -1100 }, - { name = "rotthingwave", interval = 2000, chance = 20 }, - { name = "combat", interval = 2000, chance = 17, type = COMBAT_PHYSICALDAMAGE, minDamage = -400, maxDamage = -700, range = 6, effect = CONST_ME_BITE, target = true }, + { name = "melee", interval = 2000, chance = 100, minDamage = -150, maxDamage = -670 }, + { name = "rotthligulus", interval = 2000, chance = 20, minDamage = -750, maxDamage = -1100 }, + { name = "rotthingwave", interval = 2000, chance = 20 }, + { name = "combat", interval = 2000, chance = 17, type = COMBAT_PHYSICALDAMAGE, minDamage = -400, maxDamage = -700, range = 6, effect = CONST_ME_BITE, target = true }, } monster.defenses = { - defense = 85, - armor = 85, - mitigation = 2.31, + defense = 85, + armor = 85, + mitigation = 2.31, } monster.elements = { - { type = COMBAT_PHYSICALDAMAGE, percent = 25 }, - { type = COMBAT_ENERGYDAMAGE, percent = 15 }, - { type = COMBAT_EARTHDAMAGE, percent = 100 }, - { type = COMBAT_FIREDAMAGE, percent = -15 }, - { type = COMBAT_LIFEDRAIN, percent = 0 }, - { type = COMBAT_MANADRAIN, percent = 0 }, - { type = COMBAT_DROWNDAMAGE, percent = 0 }, - { type = COMBAT_ICEDAMAGE, percent = -5 }, - { type = COMBAT_HOLYDAMAGE, percent = 5 }, - { type = COMBAT_DEATHDAMAGE, percent = -10 }, + { type = COMBAT_PHYSICALDAMAGE, percent = 25 }, + { type = COMBAT_ENERGYDAMAGE, percent = 15 }, + { type = COMBAT_EARTHDAMAGE, percent = 100 }, + { type = COMBAT_FIREDAMAGE, percent = -15 }, + { type = COMBAT_LIFEDRAIN, percent = 0 }, + { type = COMBAT_MANADRAIN, percent = 0 }, + { type = COMBAT_DROWNDAMAGE, percent = 0 }, + { type = COMBAT_ICEDAMAGE, percent = -5 }, + { type = COMBAT_HOLYDAMAGE, percent = 5 }, + { type = COMBAT_DEATHDAMAGE, percent = -10 }, } monster.immunities = { - { type = "paralyze", condition = true }, - { type = "outfit", condition = false }, - { type = "invisible", condition = true }, - { type = "bleed", condition = false }, + { type = "paralyze", condition = true }, + { type = "outfit", condition = false }, + { type = "invisible", condition = true }, + { type = "bleed", condition = false }, } -mType:register(monster) \ No newline at end of file +mType:register(monster) diff --git a/data-crystal/scripts/spells/monster/podzillaphys_chain.lua b/data-crystal/scripts/spells/monster/podzillaphys_chain.lua index 96e28650..44264be8 100644 --- a/data-crystal/scripts/spells/monster/podzillaphys_chain.lua +++ b/data-crystal/scripts/spells/monster/podzillaphys_chain.lua @@ -8,16 +8,15 @@ function getChainValue(creature) end function canChain(creature, target) - if target:isPlayer() then - if target:getPosition():isProtectionZoneTile() then - return false - end - return true - end - return false + if target:isPlayer() then + if target:getPosition():isProtectionZoneTile() then + return false + end + return true + end + return false end - combat:setCallback(CALLBACK_PARAM_CHAINVALUE, "getChainValue") combat:setCallback(CALLBACK_PARAM_CHAINPICKER, "canChain") diff --git a/data-crystal/scripts/spells/monster/quara_looter_small_icering.lua b/data-crystal/scripts/spells/monster/quara_looter_small_icering.lua index 2bedcd75..0d0ec42e 100644 --- a/data-crystal/scripts/spells/monster/quara_looter_small_icering.lua +++ b/data-crystal/scripts/spells/monster/quara_looter_small_icering.lua @@ -19,7 +19,6 @@ combatLargeRing:setParameter(COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE) combatLargeRing:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_ICEAREA) combatLargeRing:setArea(createCombatArea(aLarge)) - local combats = { combatLargeRing } function spell.onCastSpell(creature, var) @@ -31,4 +30,4 @@ spell:name("quarasmallicering") spell:words("###quara_small_ice_ring") spell:needLearn(true) spell:isSelfTarget(true) -spell:register() \ No newline at end of file +spell:register() diff --git a/data-crystal/scripts/spells/monster/quara_plunderer_cross.lua b/data-crystal/scripts/spells/monster/quara_plunderer_cross.lua index 4483d555..6a2eee0b 100644 --- a/data-crystal/scripts/spells/monster/quara_plunderer_cross.lua +++ b/data-crystal/scripts/spells/monster/quara_plunderer_cross.lua @@ -24,4 +24,4 @@ spell:name("quaracrossdeath") spell:words("###quara_cross_death") spell:needLearn(true) spell:isSelfTarget(true) -spell:register() \ No newline at end of file +spell:register() diff --git a/data-crystal/scripts/spells/monster/quara_plunderer_smoke.lua b/data-crystal/scripts/spells/monster/quara_plunderer_smoke.lua index 01957b60..7659a230 100644 --- a/data-crystal/scripts/spells/monster/quara_plunderer_smoke.lua +++ b/data-crystal/scripts/spells/monster/quara_plunderer_smoke.lua @@ -24,4 +24,4 @@ spell:name("quarasmokedeath") spell:words("###quara_smoke_death") spell:needLearn(true) spell:isSelfTarget(true) -spell:register() \ No newline at end of file +spell:register() diff --git a/data-crystal/scripts/spells/monster/quara_raider_icering.lua b/data-crystal/scripts/spells/monster/quara_raider_icering.lua index 58f342d9..4cd59875 100644 --- a/data-crystal/scripts/spells/monster/quara_raider_icering.lua +++ b/data-crystal/scripts/spells/monster/quara_raider_icering.lua @@ -21,7 +21,6 @@ combatLargeRing:setParameter(COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE) combatLargeRing:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_ICEAREA) combatLargeRing:setArea(createCombatArea(aLarge)) - local combats = { combatLargeRing } function spell.onCastSpell(creature, var) @@ -33,4 +32,4 @@ spell:name("quaralargeicering") spell:words("###quara_large_ice_ring") spell:needLearn(true) spell:isSelfTarget(true) -spell:register() \ No newline at end of file +spell:register() diff --git a/data-crystal/scripts/spells/monster/quara_raider_shoot.lua b/data-crystal/scripts/spells/monster/quara_raider_shoot.lua index ef60a19b..53a06b4f 100644 --- a/data-crystal/scripts/spells/monster/quara_raider_shoot.lua +++ b/data-crystal/scripts/spells/monster/quara_raider_shoot.lua @@ -4,7 +4,6 @@ combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA) combat:setParameter(COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SNOWBALL) combat:setArea(createCombatArea(AREA_CIRCLE1X1)) - local spell = Spell("instant") function spell.onCastSpell(creature, var) diff --git a/data-crystal/scripts/spells/monster/quara_raider_watercreature.lua b/data-crystal/scripts/spells/monster/quara_raider_watercreature.lua index bc47ba6e..36bfda02 100644 --- a/data-crystal/scripts/spells/monster/quara_raider_watercreature.lua +++ b/data-crystal/scripts/spells/monster/quara_raider_watercreature.lua @@ -2,10 +2,10 @@ local combat = Combat() combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE) combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_WATERCREATURE) arr = { - { 1, 0, 1, }, - { 0, 0, 0, }, - { 0, 1, 0, }, - { 0, 2, 0, }, + { 1, 0, 1 }, + { 0, 0, 0 }, + { 0, 1, 0 }, + { 0, 2, 0 }, } local area = createCombatArea(arr) @@ -21,4 +21,4 @@ spell:name("quaraseamonster") spell:words("###quara_sea_monster") spell:needLearn(true) spell:isSelfTarget(false) -spell:register() \ No newline at end of file +spell:register() diff --git a/data-crystal/scripts/spells/monster/quara_raider_watersplash.lua b/data-crystal/scripts/spells/monster/quara_raider_watersplash.lua index 5cdc09ae..ef1233a3 100644 --- a/data-crystal/scripts/spells/monster/quara_raider_watersplash.lua +++ b/data-crystal/scripts/spells/monster/quara_raider_watersplash.lua @@ -2,10 +2,10 @@ local combat = Combat() combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE) combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_WATERSPLASH) arr = { - { 0, 0, 1, 0, }, - { 1, 0, 2, 0, }, - { 0, 0, 0, 1, }, - { 0, 1, 0, 0, }, + { 0, 0, 1, 0 }, + { 1, 0, 2, 0 }, + { 0, 0, 0, 1 }, + { 0, 1, 0, 0 }, } local area = createCombatArea(arr) @@ -21,4 +21,4 @@ spell:name("quarawatersplash") spell:words("###quara_water_splash") spell:needLearn(true) spell:isSelfTarget(false) -spell:register() \ No newline at end of file +spell:register() diff --git a/data-crystal/scripts/spells/monster/rootkraken_deathholy.lua b/data-crystal/scripts/spells/monster/rootkraken_deathholy.lua index 373db99c..2d71d964 100644 --- a/data-crystal/scripts/spells/monster/rootkraken_deathholy.lua +++ b/data-crystal/scripts/spells/monster/rootkraken_deathholy.lua @@ -9,59 +9,58 @@ combat2:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_HOLYDAMAGE) combat2:setFormula(COMBAT_FORMULA_DAMAGE, 0, 2500, 4500, 0) arr = { - { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }, - { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }, - { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }, - { 0,0,0,1,0,0,0,0,0,0,0,1,0,0,0 }, - { 0,0,0,0,1,0,0,0,0,0,1,0,0,0,0 }, - { 0,0,0,0,0,1,0,0,0,1,0,0,0,0,0 }, - { 0,0,0,0,0,0,1,1,1,0,0,0,0,0,0 }, - { 0,0,0,0,0,0,1,3,1,0,0,0,0,0,0 }, - { 0,0,0,0,0,0,1,1,1,0,0,0,0,0,0 }, - { 0,0,0,0,0,1,0,0,0,1,0,0,0,0,0 }, - { 0,0,0,0,1,0,0,0,0,0,1,0,0,0,0 }, - { 0,0,0,1,0,0,0,0,0,0,0,1,0,0,0 }, - { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }, - { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }, - { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }, + { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0 }, + { 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 1, 3, 1, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0 }, + { 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, } arr1 = { - { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }, - { 0,0,0,0,0,0,0,1,0,0,0,0,0,0,0 }, - { 0,0,0,0,0,0,1,1,1,0,0,0,0,0,0 }, - { 0,0,0,0,1,0,0,1,0,0,1,0,0,0,0 }, - { 0,0,0,1,0,1,0,0,0,1,0,1,0,0,0 }, - { 0,0,0,0,1,0,0,0,0,0,1,0,0,0,0 }, - { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }, - { 0,0,0,0,0,0,0,3,0,0,0,0,0,0,0 }, - { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }, - { 0,0,0,0,1,0,0,0,0,0,1,0,0,0,0 }, - { 0,0,0,1,0,1,0,0,0,1,0,1,0,0,0 }, - { 0,0,0,0,1,0,0,1,0,0,1,0,0,0,0 }, - { 0,0,0,0,0,0,1,1,1,0,0,0,0,0,0 }, - { 0,0,0,0,0,0,0,1,0,0,0,0,0,0,0 }, - { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }, + { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0 }, + { 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0 }, + { 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0 }, + { 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0 }, + { 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, } local area = createCombatArea(arr) combat1:setArea(createCombatArea(arr)) combat2:setArea(createCombatArea(arr1)) - local spell = Spell("instant") local combats = { combat1, combat2 } function spell.onCastSpell(creature, var) - for _, combat in pairs(combats) do - combat:execute(creature, var) - end - return true + for _, combat in pairs(combats) do + combat:execute(creature, var) + end + return true end spell:name("rootkraken") spell:words("#773333") spell:needLearn(true) spell:isSelfTarget(true) -spell:register() \ No newline at end of file +spell:register() diff --git a/data-crystal/scripts/spells/monster/rootkraken_rootearth.lua b/data-crystal/scripts/spells/monster/rootkraken_rootearth.lua index c662e8a4..3d094d5a 100644 --- a/data-crystal/scripts/spells/monster/rootkraken_rootearth.lua +++ b/data-crystal/scripts/spells/monster/rootkraken_rootearth.lua @@ -5,46 +5,44 @@ condition:setParameter(CONDITION_PARAM_TICKS, 3000) combatRoot:addCondition(condition) arr = { - { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }, - { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }, - { 0,0,0,0,0,0,0,1,0,0,0,0,0,0,0 }, - { 0,0,0,0,0,0,0,1,0,0,0,0,0,0,0 }, - { 0,0,0,0,0,0,0,1,0,0,0,0,0,0,0 }, - { 0,0,0,0,0,0,0,1,0,0,0,0,0,0,0 }, - { 0,0,0,0,0,0,0,1,0,0,0,0,0,0,0 }, - { 0,0,1,1,1,1,1,2,1,1,1,1,1,0,0 }, - { 0,0,0,0,0,0,0,1,0,0,0,0,0,0,0 }, - { 0,0,0,0,0,0,0,1,0,0,0,0,0,0,0 }, - { 0,0,0,0,0,0,0,1,0,0,0,0,0,0,0 }, - { 0,0,0,0,0,0,0,1,0,0,0,0,0,0,0 }, - { 0,0,0,0,0,0,0,1,0,0,0,0,0,0,0 }, - { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }, - { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }, + { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, } - local combat1 = Combat() combat1:setParameter(COMBAT_PARAM_TYPE, COMBAT_EARTHDAMAGE) combat1:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_PLANTATTACK) combat1:setFormula(COMBAT_FORMULA_DAMAGE, 0, 2500, 3500, 0) - arr1 = { - { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }, - { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }, - { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }, - { 0,0,0,0,0,0,1,0,1,0,0,0,0,0,0 }, - { 0,0,0,0,0,0,1,0,1,0,0,0,0,0,0 }, - { 0,0,0,0,0,0,1,0,1,0,0,0,0,0,0 }, - { 0,0,0,1,1,1,1,0,1,1,1,1,0,0,0 }, - { 0,0,0,0,0,0,0,2,0,0,0,0,0,0,0 }, - { 0,0,0,1,1,1,1,0,1,1,1,1,0,0,0 }, - { 0,0,0,0,0,0,1,0,1,0,0,0,0,0,0 }, - { 0,0,0,0,0,0,1,0,1,0,0,0,0,0,0 }, - { 0,0,0,0,0,0,1,0,1,0,0,0,0,0,0 }, - { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }, - { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }, - { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }, + { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, } local area = createCombatArea(arr) @@ -56,16 +54,15 @@ local spell = Spell("instant") local combats = { combatRoot, combat1 } function spell.onCastSpell(creature, var) - for _, combat in pairs(combats) do - combat:execute(creature, var) - end + for _, combat in pairs(combats) do + combat:execute(creature, var) + end - return true + return true end - spell:name("rootkrakentwo") spell:words("#773334") spell:needLearn(true) spell:isSelfTarget(true) -spell:register() \ No newline at end of file +spell:register() diff --git a/data-crystal/scripts/spells/monster/rotthing_explo.lua b/data-crystal/scripts/spells/monster/rotthing_explo.lua index 5b98e494..892c54ed 100644 --- a/data-crystal/scripts/spells/monster/rotthing_explo.lua +++ b/data-crystal/scripts/spells/monster/rotthing_explo.lua @@ -1,6 +1,5 @@ local spell = Spell("instant") - local arr = { { 0, 0, 0, 0, 0 }, { 0, 1, 1, 1, 0 }, @@ -9,20 +8,17 @@ local arr = { { 0, 0, 0, 0, 0 }, } - local combat = Combat() -combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) -combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_EXPLOSIONAREA) -combat:setArea(createCombatArea(arr)) - +combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) +combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_EXPLOSIONAREA) +combat:setArea(createCombatArea(arr)) function spell.onCastSpell(creature, var) return combat:execute(creature, var) end - spell:name("rotthligexplo") spell:words("###rotth_explo") spell:needLearn(true) spell:isSelfTarget(true) -spell:register() \ No newline at end of file +spell:register() diff --git a/data-crystal/scripts/spells/monster/rotthing_shaper.lua b/data-crystal/scripts/spells/monster/rotthing_shaper.lua index 3de9536b..d81aa32e 100644 --- a/data-crystal/scripts/spells/monster/rotthing_shaper.lua +++ b/data-crystal/scripts/spells/monster/rotthing_shaper.lua @@ -38,19 +38,18 @@ local area = createCombatArea(arr) combat1:setArea(createCombatArea(arr)) combat2:setArea(createCombatArea(arr1)) - local spell = Spell("instant") local combats = { combat1, combat2 } function spell.onCastSpell(creature, var) - for _, combat in pairs(combats) do - combat:execute(creature, var) - end - return true + for _, combat in pairs(combats) do + combat:execute(creature, var) + end + return true end spell:name("rotthingshaper") spell:words("#773373") spell:needLearn(true) -spell:register() \ No newline at end of file +spell:register() diff --git a/data-crystal/scripts/spells/monster/rotthing_ulus.lua b/data-crystal/scripts/spells/monster/rotthing_ulus.lua index cbd67983..6861ccee 100644 --- a/data-crystal/scripts/spells/monster/rotthing_ulus.lua +++ b/data-crystal/scripts/spells/monster/rotthing_ulus.lua @@ -1,6 +1,5 @@ local spell = Spell("instant") - local aLarge = { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, @@ -17,20 +16,17 @@ local aLarge = { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, } - local combat = Combat() -combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) -combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_BLOCKHIT) -combat:setArea(createCombatArea(aLarge)) - +combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) +combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_BLOCKHIT) +combat:setArea(createCombatArea(aLarge)) function spell.onCastSpell(creature, var) return combat:execute(creature, var) end - spell:name("rotthligulus") spell:words("###rotth_ulus") spell:needLearn(true) spell:isSelfTarget(true) -spell:register() \ No newline at end of file +spell:register() diff --git a/data-crystal/scripts/spells/monster/rotthing_wave.lua b/data-crystal/scripts/spells/monster/rotthing_wave.lua index 6e50a9e3..59b61ea2 100644 --- a/data-crystal/scripts/spells/monster/rotthing_wave.lua +++ b/data-crystal/scripts/spells/monster/rotthing_wave.lua @@ -32,20 +32,19 @@ local area = createCombatArea(arr) combat1:setArea(createCombatArea(arr)) combat2:setArea(createCombatArea(arr1)) - local spell = Spell("instant") local combats = { combat1, combat2 } function spell.onCastSpell(creature, var) - for _, combat in pairs(combats) do - combat:execute(creature, var) - end - return true + for _, combat in pairs(combats) do + combat:execute(creature, var) + end + return true end spell:name("rotthingwave") spell:words("#776373") spell:needLearn(true) spell:needDirection(true) -spell:register() \ No newline at end of file +spell:register() diff --git a/data-crystal/scripts/spells/monster/rotthingholy_ulus.lua b/data-crystal/scripts/spells/monster/rotthingholy_ulus.lua index 066f8ceb..78c3909d 100644 --- a/data-crystal/scripts/spells/monster/rotthingholy_ulus.lua +++ b/data-crystal/scripts/spells/monster/rotthingholy_ulus.lua @@ -1,6 +1,5 @@ local spell = Spell("instant") - local aLarge = { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, { 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0 }, @@ -17,20 +16,17 @@ local aLarge = { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, } - local combat = Combat() -combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE) -combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_HOLYAREA) -combat:setArea(createCombatArea(aLarge)) - +combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE) +combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_HOLYAREA) +combat:setArea(createCombatArea(aLarge)) function spell.onCastSpell(creature, var) return combat:execute(creature, var) end - spell:name("rotthligholyulus") spell:words("###rotth_holy_ulus") spell:needLearn(true) spell:isSelfTarget(true) -spell:register() \ No newline at end of file +spell:register() diff --git a/data-global/monster/1330/bosses/mitmah_vanguard.lua b/data-global/monster/1330/bosses/mitmah_vanguard.lua index 9c0b1308..540bc195 100644 --- a/data-global/monster/1330/bosses/mitmah_vanguard.lua +++ b/data-global/monster/1330/bosses/mitmah_vanguard.lua @@ -142,4 +142,4 @@ monster.immunities = { { type = "bleed", condition = false }, } -mType:register(monster) \ No newline at end of file +mType:register(monster) diff --git a/data-global/monster/aquatics/quara_looter.lua b/data-global/monster/aquatics/quara_looter.lua index d28956ea..aef7335d 100644 --- a/data-global/monster/aquatics/quara_looter.lua +++ b/data-global/monster/aquatics/quara_looter.lua @@ -76,34 +76,34 @@ monster.voices = { } monster.loot = { - { name = "Amber Souvenir", chance = 7040 }, - { name = "Resinous Fish Fin", chance = 6460 }, - { id = 3039, chance = 4340 }, -- red gem - { id = 3041, chance = 2700 }, -- blue gem - { name = "Glacier Kilt", chance = 940 }, - { name = "Necklace of the Deep", chance = 820 }, - { name = "Crystal Crossbow", chance = 470 }, - { name = "Rift Lance", chance = 350 }, - { name = "Mantassin Tail", chance = 230 }, - { name = "platinum coin", chance = 10000, maxCount = 25 }, - { name = "Glacier Robe", chance = 1000 }, - { name = "Preserved Light Blue Seed", chance = 110 }, - { name = "Preserved Purple Seed", chance = 110 }, - { name = "Preserved Violet Seed", chance = 110 }, + { name = "Amber Souvenir", chance = 7040 }, + { name = "Resinous Fish Fin", chance = 6460 }, + { id = 3039, chance = 4340 }, -- red gem + { id = 3041, chance = 2700 }, -- blue gem + { name = "Glacier Kilt", chance = 940 }, + { name = "Necklace of the Deep", chance = 820 }, + { name = "Crystal Crossbow", chance = 470 }, + { name = "Rift Lance", chance = 350 }, + { name = "Mantassin Tail", chance = 230 }, + { name = "platinum coin", chance = 10000, maxCount = 25 }, + { name = "Glacier Robe", chance = 1000 }, + { name = "Preserved Light Blue Seed", chance = 110 }, + { name = "Preserved Purple Seed", chance = 110 }, + { name = "Preserved Violet Seed", chance = 110 }, } monster.attacks = { - {name ="melee", interval = 2000, chance = 100, type = COMBAT_DEATHDAMAGE, minDamage = -150, maxDamage = -450 }, - {name ="combat", interval = 2000, chance = 35, type = COMBAT_ICEDAMAGE, minDamage = -400, maxDamage = -750, range = 7, shootEffect = CONST_ANI_SHIVERARROW, effect = CONST_ME_ICEATTACK, target = true }, - {name ="quarasmallicering", interval = 2000, chance = 16 }, - {name ="podzillaphyschain", interval = 2000, chance = 15 }, + { name = "melee", interval = 2000, chance = 100, type = COMBAT_DEATHDAMAGE, minDamage = -150, maxDamage = -450 }, + { name = "combat", interval = 2000, chance = 35, type = COMBAT_ICEDAMAGE, minDamage = -400, maxDamage = -750, range = 7, shootEffect = CONST_ANI_SHIVERARROW, effect = CONST_ME_ICEATTACK, target = true }, + { name = "quarasmallicering", interval = 2000, chance = 16 }, + { name = "podzillaphyschain", interval = 2000, chance = 15 }, } monster.defenses = { defense = 95, armor = 95, mitigation = 2.75, - { name = "combat", interval = 2000, chance = 7, type = COMBAT_HEALING, minDamage = 600, maxDamage = 800, effect = CONST_ME_MAGIC_BLUE, target = false }, + { name = "combat", interval = 2000, chance = 7, type = COMBAT_HEALING, minDamage = 600, maxDamage = 800, effect = CONST_ME_MAGIC_BLUE, target = false }, } monster.elements = { @@ -119,7 +119,6 @@ monster.elements = { { type = COMBAT_DEATHDAMAGE, percent = 5 }, } - monster.immunities = { { type = "paralyze", condition = true }, { type = "outfit", condition = false }, @@ -127,4 +126,4 @@ monster.immunities = { { type = "bleed", condition = false }, } -mType:register(monster) \ No newline at end of file +mType:register(monster) diff --git a/data-global/monster/aquatics/quara_plunderer.lua b/data-global/monster/aquatics/quara_plunderer.lua index c05a360d..4402aeed 100644 --- a/data-global/monster/aquatics/quara_plunderer.lua +++ b/data-global/monster/aquatics/quara_plunderer.lua @@ -76,19 +76,19 @@ monster.voices = { } monster.loot = { - { name = "Amber Souvenir", chance = 7040 }, - { name = "Resinous Fish Fin", chance = 6460 }, - { id = 3039, chance = 4940 }, -- red gem - { id = 3041, chance = 4900 }, -- blue gem - { name = "Haunted Blade", chance = 350 }, - { name = "platinum coin", chance = 10000, maxCount = 25 }, + { name = "Amber Souvenir", chance = 7040 }, + { name = "Resinous Fish Fin", chance = 6460 }, + { id = 3039, chance = 4940 }, -- red gem + { id = 3041, chance = 4900 }, -- blue gem + { name = "Haunted Blade", chance = 350 }, + { name = "platinum coin", chance = 10000, maxCount = 25 }, } monster.attacks = { - {name ="melee", interval = 2000, chance = 100, type = COMBAT_PHYSICALDAMAGE, minDamage = -350, maxDamage = -500}, - {name ="combat", interval = 2000, chance = 25, type = COMBAT_ICEDAMAGE, minDamage = -800, maxDamage = -1100, range = 7, radius = 4, shootEffect = CONST_ANI_ICE, effect = CONST_ME_ICEAREA, target = false}, - {name = "quaracrossdeath", interval = 2000, chance = 20, minDamage = -1100, maxDamage = -1700, target = false }, - {name = "quarasmokedeath", interval = 2000, chance = 20, minDamage = -850, maxDamage = -1150, target = false }, + { name = "melee", interval = 2000, chance = 100, type = COMBAT_PHYSICALDAMAGE, minDamage = -350, maxDamage = -500 }, + { name = "combat", interval = 2000, chance = 25, type = COMBAT_ICEDAMAGE, minDamage = -800, maxDamage = -1100, range = 7, radius = 4, shootEffect = CONST_ANI_ICE, effect = CONST_ME_ICEAREA, target = false }, + { name = "quaracrossdeath", interval = 2000, chance = 20, minDamage = -1100, maxDamage = -1700, target = false }, + { name = "quarasmokedeath", interval = 2000, chance = 20, minDamage = -850, maxDamage = -1150, target = false }, } monster.defenses = { @@ -117,4 +117,4 @@ monster.immunities = { { type = "bleed", condition = false }, } -mType:register(monster) \ No newline at end of file +mType:register(monster) diff --git a/data-global/monster/aquatics/quara_raider.lua b/data-global/monster/aquatics/quara_raider.lua index d7f91412..d6eaeeec 100644 --- a/data-global/monster/aquatics/quara_raider.lua +++ b/data-global/monster/aquatics/quara_raider.lua @@ -76,34 +76,33 @@ monster.voices = { } monster.loot = { - { name = "Amber Souvenir", chance = 7330 }, - { id = 3039, chance = 5340 }, -- red gem - { name = "Resinous Fish Fin", chance = 4090 }, - { name = "Skull Staff", chance = 1480 }, - { id = 3041, chance = 1140 }, -- blue gem - { name = "Glacier Robe", chance = 910 }, - { name = "Crystalline Armor", chance = 510 }, - { name = "Quara Pincers", chance = 510 }, - { name = "Abyss Hammer", chance = 170 }, - { name = "Preserved Light Blue Seed", chance = 110 }, - { name = "Preserved Purple Seed", chance = 110 }, - { name = "platinum coin", chance = 10000, maxCount = 25 }, + { name = "Amber Souvenir", chance = 7330 }, + { id = 3039, chance = 5340 }, -- red gem + { name = "Resinous Fish Fin", chance = 4090 }, + { name = "Skull Staff", chance = 1480 }, + { id = 3041, chance = 1140 }, -- blue gem + { name = "Glacier Robe", chance = 910 }, + { name = "Crystalline Armor", chance = 510 }, + { name = "Quara Pincers", chance = 510 }, + { name = "Abyss Hammer", chance = 170 }, + { name = "Preserved Light Blue Seed", chance = 110 }, + { name = "Preserved Purple Seed", chance = 110 }, + { name = "platinum coin", chance = 10000, maxCount = 25 }, } monster.attacks = { - {name ="melee", interval = 2000, chance = 100, type= COMBAT_PHYSICALDAMAGE, minDamage = -250, maxDamage = -320}, - {name ="quaralargeicering", interval = 2000, chance = 20, minDamage = -1250, maxDamage = -1400, target = false }, - {name ="quararaidershoot", interval = 2000, chance = 35, minDamage = -650, maxDamage = -900, range = 7, target = true }, - {name= "quarawatersplash", interval = 2000, chance = 18, minDamage = -1350, maxDamage = -1600, target = false}, - {name ="quaraseamonster", interval = 2000, chance = 18, minDamage = -1350, maxDamage = -1600, target = false}, + { name = "melee", interval = 2000, chance = 100, type = COMBAT_PHYSICALDAMAGE, minDamage = -250, maxDamage = -320 }, + { name = "quaralargeicering", interval = 2000, chance = 20, minDamage = -1250, maxDamage = -1400, target = false }, + { name = "quararaidershoot", interval = 2000, chance = 35, minDamage = -650, maxDamage = -900, range = 7, target = true }, + { name = "quarawatersplash", interval = 2000, chance = 18, minDamage = -1350, maxDamage = -1600, target = false }, + { name = "quaraseamonster", interval = 2000, chance = 18, minDamage = -1350, maxDamage = -1600, target = false }, } - monster.defenses = { defense = 95, armor = 95, mitigation = 2.75, - { name = "combat", interval = 2000, chance = 7, type = COMBAT_HEALING, minDamage = 800, maxDamage = 1000, effect = CONST_ME_MAGIC_BLUE, target = false }, + { name = "combat", interval = 2000, chance = 7, type = COMBAT_HEALING, minDamage = 800, maxDamage = 1000, effect = CONST_ME_MAGIC_BLUE, target = false }, } monster.elements = { @@ -126,4 +125,4 @@ monster.immunities = { { type = "bleed", condition = false }, } -mType:register(monster) \ No newline at end of file +mType:register(monster) diff --git a/data-global/monster/bosses/sugar_daddy.lua b/data-global/monster/bosses/sugar_daddy.lua index e9420a5b..dbbdf99d 100644 --- a/data-global/monster/bosses/sugar_daddy.lua +++ b/data-global/monster/bosses/sugar_daddy.lua @@ -13,8 +13,6 @@ monster.outfit = { lookMount = 0, } - - monster.bosstiary = { bossRaceId = 2562, bossRace = RARITY_BANE, @@ -131,4 +129,4 @@ monster.immunities = { { type = "bleed", condition = false }, } -mType:register(monster) \ No newline at end of file +mType:register(monster) diff --git a/data-global/monster/bosses/sugar_mommy.lua b/data-global/monster/bosses/sugar_mommy.lua index aa840852..9c484b60 100644 --- a/data-global/monster/bosses/sugar_mommy.lua +++ b/data-global/monster/bosses/sugar_mommy.lua @@ -13,8 +13,6 @@ monster.outfit = { lookMount = 0, } - - monster.bosstiary = { bossRaceId = 2580, bossRace = RARITY_BANE, @@ -70,7 +68,7 @@ monster.voices = { { text = "SUGAR!!!", yell = false }, } -monster.loot = { +monster.loot = { { name = "platinum coin", chance = 100000, maxCount = 11 }, { name = "cherry", chance = 100000, maxCount = 2 }, { id = 3039, chance = 11465, maxCount = 1 }, -- red gem @@ -79,7 +77,6 @@ monster.loot = { { id = 48250, chance = 28555, maxCount = 11 }, -- dark chocolate coin { id = 48249, chance = 26465, maxCount = 12 }, -- milk chocolate coin { id = 48273, chance = 16465, maxCount = 1 }, -- taiyaki ice cream - } monster.attacks = { @@ -116,4 +113,4 @@ monster.immunities = { { type = "bleed", condition = false }, } -mType:register(monster) \ No newline at end of file +mType:register(monster) diff --git a/data-global/monster/bosses/the_rootkraken.lua b/data-global/monster/bosses/the_rootkraken.lua index bc7e0602..eadd0e33 100644 --- a/data-global/monster/bosses/the_rootkraken.lua +++ b/data-global/monster/bosses/the_rootkraken.lua @@ -12,8 +12,7 @@ monster.outfit = { lookAddons = 0, lookMount = 0, } -monster.events = { -} +monster.events = {} monster.bosstiary = { bossRaceId = 2528, @@ -71,28 +70,28 @@ monster.voices = { } monster.loot = { - { name = "crystal coin", chance = 100000, maxCount = 3 }, - { name = "platinum coin", chance = 100000, maxCount = 93 }, - { name = "ultimate health potion", chance = 42590, maxCount = 19 }, - { name = "great spirit potion", chance = 42590, maxCount = 7 }, - { name = "great mana potion", chance = 31480, maxCount = 14 }, - { name = "supreme health potion", chance = 31480, maxCount = 4 }, - { name = "ultimate spirit potion", chance = 25930, maxCount = 14 }, - { id = 3037, chance = 24070 }, -- yellow gem - { name = "amber with a bug", chance = 18520 }, - { name = "giant topaz", chance = 7410 }, - { name = "amber crusher", chance = 1850 }, - { id = 47375, chance = 300 }, -- amber axe - { id = 47369, chance = 200 }, -- amber greataxe - { id = 47368, chance = 200 }, -- amber slayer - { id = 47374, chance = 300 }, -- amber sabre - { id = 47376, chance = 300 }, -- amber cudgel - { id = 47370, chance = 200 }, -- amber bludgeon - { id = 47371, chance = 200 }, -- amber bow - { id = 47377, chance = 300 }, -- amber crossbow - { id = 47372, chance = 300 }, -- amber wand - { id = 47373, chance = 300 }, -- amber rod - { id = 48514, chance = 250 }, -- strange inedible fruit + { name = "crystal coin", chance = 100000, maxCount = 3 }, + { name = "platinum coin", chance = 100000, maxCount = 93 }, + { name = "ultimate health potion", chance = 42590, maxCount = 19 }, + { name = "great spirit potion", chance = 42590, maxCount = 7 }, + { name = "great mana potion", chance = 31480, maxCount = 14 }, + { name = "supreme health potion", chance = 31480, maxCount = 4 }, + { name = "ultimate spirit potion", chance = 25930, maxCount = 14 }, + { id = 3037, chance = 24070 }, -- yellow gem + { name = "amber with a bug", chance = 18520 }, + { name = "giant topaz", chance = 7410 }, + { name = "amber crusher", chance = 1850 }, + { id = 47375, chance = 300 }, -- amber axe + { id = 47369, chance = 200 }, -- amber greataxe + { id = 47368, chance = 200 }, -- amber slayer + { id = 47374, chance = 300 }, -- amber sabre + { id = 47376, chance = 300 }, -- amber cudgel + { id = 47370, chance = 200 }, -- amber bludgeon + { id = 47371, chance = 200 }, -- amber bow + { id = 47377, chance = 300 }, -- amber crossbow + { id = 47372, chance = 300 }, -- amber wand + { id = 47373, chance = 300 }, -- amber rod + { id = 48514, chance = 250 }, -- strange inedible fruit } monster.attacks = { @@ -128,4 +127,4 @@ monster.immunities = { { type = "bleed", condition = false }, } -mType:register(monster) \ No newline at end of file +mType:register(monster) diff --git a/data-global/monster/constructs/gingerbread_men.lua b/data-global/monster/constructs/gingerbread_men.lua index de9e4876..71a34ad2 100644 --- a/data-global/monster/constructs/gingerbread_men.lua +++ b/data-global/monster/constructs/gingerbread_men.lua @@ -75,8 +75,7 @@ monster.voices = { { text = "Have you seen my truffle baker?", yell = false }, { text = "I should visit the Candy Carnival.", yell = false }, } -monster.loot = { -} +monster.loot = {} monster.attacks = { { name = "melee", interval = 2000, chance = 100, minDamage = 0, maxDamage = -1 }, @@ -108,4 +107,4 @@ monster.immunities = { { type = "bleed", condition = false }, } -mType:register(monster) \ No newline at end of file +mType:register(monster) diff --git a/data-global/monster/constructs/goggle_cake.lua b/data-global/monster/constructs/goggle_cake.lua index 6c4f418a..0bd153b5 100644 --- a/data-global/monster/constructs/goggle_cake.lua +++ b/data-global/monster/constructs/goggle_cake.lua @@ -4,7 +4,7 @@ local monster = {} monster.description = "a goggle cake" monster.experience = 2700 monster.outfit = { - lookType = 1740, + lookType = 1740, lookHead = 0, lookBody = 10, lookLegs = 115, @@ -29,7 +29,7 @@ monster.Bestiary = { monster.health = 2700 monster.maxHealth = 2700 monster.race = "undead" -monster.corpse = 48271 +monster.corpse = 48271 monster.speed = 122 monster.manaCost = 0 @@ -114,16 +114,16 @@ monster.defenses = { } monster.elements = { - { type = COMBAT_PHYSICALDAMAGE, percent = -5 }, - { type = COMBAT_ENERGYDAMAGE, percent = -15 }, - { type = COMBAT_EARTHDAMAGE, percent = 105 }, - { type = COMBAT_FIREDAMAGE, percent = 110 }, - { type = COMBAT_LIFEDRAIN, percent = 100 }, - { type = COMBAT_MANADRAIN, percent = 100 }, - { type = COMBAT_DROWNDAMAGE, percent = 100 }, - { type = COMBAT_ICEDAMAGE, percent = -15 }, - { type = COMBAT_HOLYDAMAGE, percent = -5 }, - { type = COMBAT_DEATHDAMAGE, percent = -15 }, + { type = COMBAT_PHYSICALDAMAGE, percent = -5 }, + { type = COMBAT_ENERGYDAMAGE, percent = -15 }, + { type = COMBAT_EARTHDAMAGE, percent = 105 }, + { type = COMBAT_FIREDAMAGE, percent = 110 }, + { type = COMBAT_LIFEDRAIN, percent = 100 }, + { type = COMBAT_MANADRAIN, percent = 100 }, + { type = COMBAT_DROWNDAMAGE, percent = 100 }, + { type = COMBAT_ICEDAMAGE, percent = -15 }, + { type = COMBAT_HOLYDAMAGE, percent = -5 }, + { type = COMBAT_DEATHDAMAGE, percent = -15 }, } monster.immunities = { @@ -133,4 +133,4 @@ monster.immunities = { { type = "bleed", condition = false }, } -mType:register(monster) \ No newline at end of file +mType:register(monster) diff --git a/data-global/monster/elementals/candy_floss_elemental.lua b/data-global/monster/elementals/candy_floss_elemental.lua index 214b28b6..8d7593a8 100644 --- a/data-global/monster/elementals/candy_floss_elemental.lua +++ b/data-global/monster/elementals/candy_floss_elemental.lua @@ -4,7 +4,7 @@ local monster = {} monster.description = "a candy floss elemental" monster.experience = 3850 monster.outfit = { - lookType = 1749, + lookType = 1749, lookHead = 0, lookBody = 0, lookLegs = 0, @@ -29,7 +29,7 @@ monster.Bestiary = { monster.health = 3700 monster.maxHealth = 3700 monster.race = "undead" -monster.corpse = 48345 +monster.corpse = 48345 monster.speed = 105 monster.manaCost = 0 @@ -109,16 +109,16 @@ monster.defenses = { } monster.elements = { - { type = COMBAT_PHYSICALDAMAGE, percent = 40 }, - { type = COMBAT_ENERGYDAMAGE, percent = 15 }, - { type = COMBAT_EARTHDAMAGE, percent = -10 }, - { type = COMBAT_FIREDAMAGE, percent = -15 }, - { type = COMBAT_LIFEDRAIN, percent = 0 }, - { type = COMBAT_MANADRAIN, percent = 0 }, - { type = COMBAT_DROWNDAMAGE, percent = 0 }, - { type = COMBAT_ICEDAMAGE, percent = 15 }, - { type = COMBAT_HOLYDAMAGE, percent = 0 }, - { type = COMBAT_DEATHDAMAGE, percent = 20 }, + { type = COMBAT_PHYSICALDAMAGE, percent = 40 }, + { type = COMBAT_ENERGYDAMAGE, percent = 15 }, + { type = COMBAT_EARTHDAMAGE, percent = -10 }, + { type = COMBAT_FIREDAMAGE, percent = -15 }, + { type = COMBAT_LIFEDRAIN, percent = 0 }, + { type = COMBAT_MANADRAIN, percent = 0 }, + { type = COMBAT_DROWNDAMAGE, percent = 0 }, + { type = COMBAT_ICEDAMAGE, percent = 15 }, + { type = COMBAT_HOLYDAMAGE, percent = 0 }, + { type = COMBAT_DEATHDAMAGE, percent = 20 }, } monster.immunities = { @@ -128,4 +128,4 @@ monster.immunities = { { type = "bleed", condition = false }, } -mType:register(monster) \ No newline at end of file +mType:register(monster) diff --git a/data-global/monster/elementals/honey_elemental.lua b/data-global/monster/elementals/honey_elemental.lua index 8e1e449b..a243efe9 100644 --- a/data-global/monster/elementals/honey_elemental.lua +++ b/data-global/monster/elementals/honey_elemental.lua @@ -95,7 +95,6 @@ monster.loot = { monster.attacks = { { name = "melee", interval = 2000, chance = 100, minDamage = 0, maxDamage = -260 }, { name = "combat", interval = 2000, chance = 20, type = COMBAT_FIREDAMAGE, minDamage = -125, maxDamage = -235, radius = 4, effect = CONST_ME_YELLOW_RINGS, target = false }, - } monster.defenses = { @@ -124,4 +123,4 @@ monster.immunities = { { type = "bleed", condition = false }, } -mType:register(monster) \ No newline at end of file +mType:register(monster) diff --git a/data-global/monster/fey/angry_sugar_fairy.lua b/data-global/monster/fey/angry_sugar_fairy.lua index 38eb7ac7..5d02043f 100644 --- a/data-global/monster/fey/angry_sugar_fairy.lua +++ b/data-global/monster/fey/angry_sugar_fairy.lua @@ -101,7 +101,7 @@ monster.loot = { monster.attacks = { { name = "melee", interval = 2000, chance = 100, minDamage = 0, maxDamage = -110 }, - { name = "combat", interval = 2000, chance = 20, minDamage = -100, maxDamage = -230, range = 6, shootEffect = CONST_ANI_SMALLICE, effect = CONST_ME_ICEATTACK, target = true }, + { name = "combat", interval = 2000, chance = 20, minDamage = -100, maxDamage = -230, range = 6, shootEffect = CONST_ANI_SMALLICE, effect = CONST_ME_ICEATTACK, target = true }, { name = "combat", interval = 2000, chance = 20, minDamage = -130, maxDamage = -280, range = 5, radius = 3, shootEffect = CONST_ANI_ENERGY, effect = CONST_ME_ELECTRICALSPARK, target = true }, } @@ -132,4 +132,4 @@ monster.immunities = { { type = "bleed", condition = false }, } -mType:register(monster) \ No newline at end of file +mType:register(monster) diff --git a/data-global/monster/fey/cream_blob.lua b/data-global/monster/fey/cream_blob.lua index 75096794..e59d8dae 100644 --- a/data-global/monster/fey/cream_blob.lua +++ b/data-global/monster/fey/cream_blob.lua @@ -75,8 +75,7 @@ monster.voices = { { text = "Work in the Chocolate Mines? No, no, leave it to the sugar cubes.", yell = false }, { text = "Nothing better than to lie on the vanilla sugar beach on a sunny day.", yell = false }, } -monster.loot = { -} +monster.loot = {} monster.attacks = { { name = "melee", interval = 2000, chance = 100, minDamage = 0, maxDamage = -1 }, @@ -108,4 +107,4 @@ monster.immunities = { { type = "bleed", condition = false }, } -mType:register(monster) \ No newline at end of file +mType:register(monster) diff --git a/data-global/monster/fey/fruit_drop.lua b/data-global/monster/fey/fruit_drop.lua index 93aa61a7..f62758df 100644 --- a/data-global/monster/fey/fruit_drop.lua +++ b/data-global/monster/fey/fruit_drop.lua @@ -75,8 +75,7 @@ monster.voices = { { text = "Have you ever seen the Big Ice Cream Machine?", yell = false }, { text = "Hello, sweetie!", yell = false }, } -monster.loot = { -} +monster.loot = {} monster.attacks = { { name = "melee", interval = 2000, chance = 100, minDamage = 0, maxDamage = -1 }, @@ -108,4 +107,4 @@ monster.immunities = { { type = "bleed", condition = false }, } -mType:register(monster) \ No newline at end of file +mType:register(monster) diff --git a/data-global/monster/fey/sugar_cube.lua b/data-global/monster/fey/sugar_cube.lua index e8042f9c..d426c053 100644 --- a/data-global/monster/fey/sugar_cube.lua +++ b/data-global/monster/fey/sugar_cube.lua @@ -75,8 +75,7 @@ monster.voices = { { text = "Catch me if you can!", yell = false }, { text = "No touching please.", yell = false }, } -monster.loot = { -} +monster.loot = {} monster.attacks = { { name = "melee", interval = 2000, chance = 100, minDamage = 0, maxDamage = -1 }, @@ -108,4 +107,4 @@ monster.immunities = { { type = "bleed", condition = false }, } -mType:register(monster) \ No newline at end of file +mType:register(monster) diff --git a/data-global/monster/fey/sugar_cube_worker.lua b/data-global/monster/fey/sugar_cube_worker.lua index f0e6395f..58510148 100644 --- a/data-global/monster/fey/sugar_cube_worker.lua +++ b/data-global/monster/fey/sugar_cube_worker.lua @@ -75,8 +75,7 @@ monster.voices = { { text = "So much work in the Chocolate Mines!", yell = false }, { text = "Petulant sugar balls ...", yell = false }, } -monster.loot = { -} +monster.loot = {} monster.attacks = { { name = "melee", interval = 2000, chance = 100, minDamage = 0, maxDamage = -1 }, @@ -108,4 +107,4 @@ monster.immunities = { { type = "bleed", condition = false }, } -mType:register(monster) \ No newline at end of file +mType:register(monster) diff --git a/data-global/monster/fey/truffle.lua b/data-global/monster/fey/truffle.lua index 9ec1b3a2..a77d9b36 100644 --- a/data-global/monster/fey/truffle.lua +++ b/data-global/monster/fey/truffle.lua @@ -76,8 +76,7 @@ monster.voices = { { text = "What should I bake next?", yell = false }, } -monster.loot = { -} +monster.loot = {} monster.attacks = { { name = "melee", interval = 2000, chance = 100, minDamage = 0, maxDamage = -1 }, @@ -109,4 +108,4 @@ monster.immunities = { { type = "bleed", condition = false }, } -mType:register(monster) \ No newline at end of file +mType:register(monster) diff --git a/data-global/monster/fey/truffle_cook.lua b/data-global/monster/fey/truffle_cook.lua index 41d8aeb4..77b1cbc2 100644 --- a/data-global/monster/fey/truffle_cook.lua +++ b/data-global/monster/fey/truffle_cook.lua @@ -76,8 +76,7 @@ monster.voices = { { text = "Delicious!", yell = false }, } -monster.loot = { -} +monster.loot = {} monster.attacks = { { name = "melee", interval = 2000, chance = 100, minDamage = 0, maxDamage = -1 }, @@ -109,4 +108,4 @@ monster.immunities = { { type = "bleed", condition = false }, } -mType:register(monster) \ No newline at end of file +mType:register(monster) diff --git a/data-global/monster/magicals/candy_horror.lua b/data-global/monster/magicals/candy_horror.lua index c471e758..ea60e5ba 100644 --- a/data-global/monster/magicals/candy_horror.lua +++ b/data-global/monster/magicals/candy_horror.lua @@ -94,22 +94,19 @@ monster.loot = { { id = 7419, chance = 502 }, -- dreaded cleaver { id = 3072, chance = 1840 }, -- wand of decay { id = 3429, chance = 2830 }, -- black shield - } monster.attacks = { { name = "melee", interval = 2000, chance = 100, minDamage = 0, maxDamage = -200 }, { name = "combat", interval = 2000, chance = 20, type = COMBAT_EARTHDAMAGE, minDamage = -120, maxDamage = -300, range = 6, radius = 3, effect = CONST_ME_CAKE, target = true }, - { name = "combat", interval = 2000, chance = 15, type = COMBAT_DEATHDAMAGE, minDamage = -120, maxDamage = -350, radius = 6 , effect = CONST_ME_CACAO, target = false }, + { name = "combat", interval = 2000, chance = 15, type = COMBAT_DEATHDAMAGE, minDamage = -120, maxDamage = -350, radius = 6, effect = CONST_ME_CACAO, target = false }, { name = "combat", interval = 2000, chance = 15, type = COMBAT_PHYSICALDAMAGE, minDamage = -120, maxDamage = -350, effect = CONST_ME_BIG_SCRATCH, target = false }, - } monster.defenses = { defense = 24, armor = 43, mitigation = 1.21, - } monster.elements = { @@ -132,4 +129,4 @@ monster.immunities = { { type = "bleed", condition = false }, } -mType:register(monster) \ No newline at end of file +mType:register(monster) diff --git a/data-global/monster/magicals/nibblemaw.lua b/data-global/monster/magicals/nibblemaw.lua index 17f89b13..051240c9 100644 --- a/data-global/monster/magicals/nibblemaw.lua +++ b/data-global/monster/magicals/nibblemaw.lua @@ -130,4 +130,4 @@ monster.immunities = { { type = "bleed", condition = false }, } -mType:register(monster) \ No newline at end of file +mType:register(monster) diff --git a/data-global/monster/plants/rootthing_amber_shaper.lua b/data-global/monster/plants/rootthing_amber_shaper.lua index ab04d589..fba1a58c 100644 --- a/data-global/monster/plants/rootthing_amber_shaper.lua +++ b/data-global/monster/plants/rootthing_amber_shaper.lua @@ -4,133 +4,133 @@ local monster = {} monster.description = "a rootthing amber shaper" monster.experience = 12400 monster.outfit = { - lookType = 1762, - lookHead = 0, - lookBody = 0, - lookLegs = 0, - lookFeet = 0, - lookAddons = 0, - lookMount = 0, + lookType = 1762, + lookHead = 0, + lookBody = 0, + lookLegs = 0, + lookFeet = 0, + lookAddons = 0, + lookMount = 0, } monster.raceId = 2539 monster.Bestiary = { - class = "Plant", - race = BESTY_RACE_PLANT, - toKill = 2500, - FirstUnlock = 100, - SecondUnlock = 1000, - CharmsPoints = 50, - Stars = 4, - Occurrence = 0, - Locations = "Podzilla Stalk.", + class = "Plant", + race = BESTY_RACE_PLANT, + toKill = 2500, + FirstUnlock = 100, + SecondUnlock = 1000, + CharmsPoints = 50, + Stars = 4, + Occurrence = 0, + Locations = "Podzilla Stalk.", } monster.health = 15000 monster.maxHealth = 15000 monster.race = "venom" -monster.corpse = 48401 +monster.corpse = 48401 monster.speed = 185 monster.manaCost = 0 monster.changeTarget = { - interval = 4000, - chance = 10, + interval = 4000, + chance = 10, } monster.strategiesTarget = { - nearest = 70, - health = 10, - damage = 10, - random = 10, + nearest = 70, + health = 10, + damage = 10, + random = 10, } monster.flags = { - summonable = false, - attackable = true, - hostile = true, - convinceable = false, - pushable = false, - rewardBoss = false, - illusionable = false, - canPushItems = true, - canPushCreatures = false, - staticAttackChance = 90, - targetDistance = 1, - runHealth = 0, - healthHidden = false, - isBlockable = false, - canWalkOnEnergy = true, - canWalkOnFire = true, - canWalkOnPoison = true, + summonable = false, + attackable = true, + hostile = true, + convinceable = false, + pushable = false, + rewardBoss = false, + illusionable = false, + canPushItems = true, + canPushCreatures = false, + staticAttackChance = 90, + targetDistance = 1, + runHealth = 0, + healthHidden = false, + isBlockable = false, + canWalkOnEnergy = true, + canWalkOnFire = true, + canWalkOnPoison = true, } monster.light = { - level = 0, - color = 0, + level = 0, + color = 0, } monster.voices = { - interval = 5000, - chance = 10, - { text = "KNARR!", yell = false }, - { text = "RATTLE!", yell = false }, - { text = "CROAK!", yell = false }, + interval = 5000, + chance = 10, + { text = "KNARR!", yell = false }, + { text = "RATTLE!", yell = false }, + { text = "CROAK!", yell = false }, } monster.loot = { - { name = "gold coin", chance = 100000, maxCount = 200 }, - { name = "platinum coin", chance = 88010, maxCount = 37 }, - { name = "demon root", chance = 6840 }, - { name = "amber sickle", chance = 5980 }, - { name = "resin parasite", chance = 5980 }, - { name = "crystal coin", chance = 2560 }, - { name = "wooden spellbook", chance = 2560 }, - { name = "amber", chance = 1710 }, - { name = "amber staff", chance = 850 }, - { name = "jade hammer", chance = 850 }, - { name = "skull helmet", chance = 1310 }, - { name = "amber with a bug", chance = 1110 }, - { name = "amber with a dragonfly", chance = 1110 }, - { name = "Preserved Pink Seed", chance = 110 }, - { name = "Preserved Red Seed", chance = 110 }, - { name = "Preserved Yellow Seed", chance = 110 }, - { name = "Preserved Dark Seed", chance = 110 } + { name = "gold coin", chance = 100000, maxCount = 200 }, + { name = "platinum coin", chance = 88010, maxCount = 37 }, + { name = "demon root", chance = 6840 }, + { name = "amber sickle", chance = 5980 }, + { name = "resin parasite", chance = 5980 }, + { name = "crystal coin", chance = 2560 }, + { name = "wooden spellbook", chance = 2560 }, + { name = "amber", chance = 1710 }, + { name = "amber staff", chance = 850 }, + { name = "jade hammer", chance = 850 }, + { name = "skull helmet", chance = 1310 }, + { name = "amber with a bug", chance = 1110 }, + { name = "amber with a dragonfly", chance = 1110 }, + { name = "Preserved Pink Seed", chance = 110 }, + { name = "Preserved Red Seed", chance = 110 }, + { name = "Preserved Yellow Seed", chance = 110 }, + { name = "Preserved Dark Seed", chance = 110 }, } monster.attacks = { - { name = "melee", interval = 2000, chance = 100, minDamage = 0, maxDamage = -450 }, - { name = "combat", interval = 2000, chance = 20, type = COMBAT_EARTHDAMAGE, minDamage = -550, maxDamage = -750, effect = CONST_ME_SMALLPLANTS, target = true }, - { name = "combat", interval = 2500, chance = 17, type = COMBAT_PHYSICALDAMAGE, minDamage = -600, maxDamage = -800, radius = 2, effect = CONST_ME_STONES, target = true }, - { name = "rotthingshaper", interval = 2000, chance = 18, target = false }, - { name = "poison chain", interval = 2000, chance = 15, minDamage = -600, maxDamage = -900 }, + { name = "melee", interval = 2000, chance = 100, minDamage = 0, maxDamage = -450 }, + { name = "combat", interval = 2000, chance = 20, type = COMBAT_EARTHDAMAGE, minDamage = -550, maxDamage = -750, effect = CONST_ME_SMALLPLANTS, target = true }, + { name = "combat", interval = 2500, chance = 17, type = COMBAT_PHYSICALDAMAGE, minDamage = -600, maxDamage = -800, radius = 2, effect = CONST_ME_STONES, target = true }, + { name = "rotthingshaper", interval = 2000, chance = 18, target = false }, + { name = "poison chain", interval = 2000, chance = 15, minDamage = -600, maxDamage = -900 }, } monster.defenses = { - defense = 100, - armor = 100, - mitigation = 2.75, - { name = "combat", interval = 2000, chance = 15, type = COMBAT_HEALING, minDamage = 500, maxDamage = 800, effect = CONST_ME_MAGIC_GREEN, target = false }, + defense = 100, + armor = 100, + mitigation = 2.75, + { name = "combat", interval = 2000, chance = 15, type = COMBAT_HEALING, minDamage = 500, maxDamage = 800, effect = CONST_ME_MAGIC_GREEN, target = false }, } monster.elements = { - { type = COMBAT_PHYSICALDAMAGE, percent = 5 }, - { type = COMBAT_ENERGYDAMAGE, percent = 25 }, - { type = COMBAT_EARTHDAMAGE, percent = 100 }, - { type = COMBAT_FIREDAMAGE, percent = -5 }, - { type = COMBAT_LIFEDRAIN, percent = 0 }, - { type = COMBAT_MANADRAIN, percent = 0 }, - { type = COMBAT_DROWNDAMAGE, percent = 0 }, - { type = COMBAT_ICEDAMAGE, percent = -5 }, - { type = COMBAT_HOLYDAMAGE, percent = -5 }, - { type = COMBAT_DEATHDAMAGE, percent = 0 }, + { type = COMBAT_PHYSICALDAMAGE, percent = 5 }, + { type = COMBAT_ENERGYDAMAGE, percent = 25 }, + { type = COMBAT_EARTHDAMAGE, percent = 100 }, + { type = COMBAT_FIREDAMAGE, percent = -5 }, + { type = COMBAT_LIFEDRAIN, percent = 0 }, + { type = COMBAT_MANADRAIN, percent = 0 }, + { type = COMBAT_DROWNDAMAGE, percent = 0 }, + { type = COMBAT_ICEDAMAGE, percent = -5 }, + { type = COMBAT_HOLYDAMAGE, percent = -5 }, + { type = COMBAT_DEATHDAMAGE, percent = 0 }, } monster.immunities = { - { type = "paralyze", condition = true }, - { type = "outfit", condition = false }, - { type = "invisible", condition = true }, - { type = "bleed", condition = false }, + { type = "paralyze", condition = true }, + { type = "outfit", condition = false }, + { type = "invisible", condition = true }, + { type = "bleed", condition = false }, } -mType:register(monster) \ No newline at end of file +mType:register(monster) diff --git a/data-global/monster/plants/rootthing_bug_tracker.lua b/data-global/monster/plants/rootthing_bug_tracker.lua index 1f922ab7..826c0e98 100644 --- a/data-global/monster/plants/rootthing_bug_tracker.lua +++ b/data-global/monster/plants/rootthing_bug_tracker.lua @@ -1,131 +1,131 @@ - local mType = Game.createMonsterType("Rootthing Bug Tracker") +local mType = Game.createMonsterType("Rootthing Bug Tracker") local monster = {} monster.description = "a rootthing bug tracker" monster.experience = 9650 monster.outfit = { - lookType = 1763, - lookHead = 0, - lookBody = 0, - lookLegs = 0, - lookFeet = 0, - lookAddons = 0, - lookMount = 0, + lookType = 1763, + lookHead = 0, + lookBody = 0, + lookLegs = 0, + lookFeet = 0, + lookAddons = 0, + lookMount = 0, } monster.raceId = 2538 monster.Bestiary = { - class = "Plant", - race = BESTY_RACE_PLANT, - toKill = 2500, - FirstUnlock = 100, - SecondUnlock = 1000, - CharmsPoints = 50, - Stars = 4, - Occurrence = 0, - Locations = "Podzilla Stalk.", + class = "Plant", + race = BESTY_RACE_PLANT, + toKill = 2500, + FirstUnlock = 100, + SecondUnlock = 1000, + CharmsPoints = 50, + Stars = 4, + Occurrence = 0, + Locations = "Podzilla Stalk.", } monster.health = 12500 monster.maxHealth = 12500 monster.race = "venom" -monster.corpse = 48405 +monster.corpse = 48405 monster.speed = 195 monster.manaCost = 0 monster.changeTarget = { - interval = 4000, - chance = 10, + interval = 4000, + chance = 10, } monster.strategiesTarget = { - nearest = 70, - health = 10, - damage = 10, - random = 10, + nearest = 70, + health = 10, + damage = 10, + random = 10, } monster.flags = { - summonable = false, - attackable = true, - hostile = true, - convinceable = false, - pushable = false, - rewardBoss = false, - illusionable = false, - canPushItems = true, - canPushCreatures = false, - staticAttackChance = 90, - targetDistance = 4, - runHealth = 0, - healthHidden = false, - isBlockable = false, - canWalkOnEnergy = true, - canWalkOnFire = true, - canWalkOnPoison = true, + summonable = false, + attackable = true, + hostile = true, + convinceable = false, + pushable = false, + rewardBoss = false, + illusionable = false, + canPushItems = true, + canPushCreatures = false, + staticAttackChance = 90, + targetDistance = 4, + runHealth = 0, + healthHidden = false, + isBlockable = false, + canWalkOnEnergy = true, + canWalkOnFire = true, + canWalkOnPoison = true, } monster.light = { - level = 0, - color = 0, + level = 0, + color = 0, } monster.voices = { - interval = 5000, - chance = 10, - { text = "Ktsktskts!", yell = false }, - { text = "BRRRRN!!!", yell = true }, - { text = "FRRRRR!!!", yell = true }, + interval = 5000, + chance = 10, + { text = "Ktsktskts!", yell = false }, + { text = "BRRRRN!!!", yell = true }, + { text = "FRRRRR!!!", yell = true }, } monster.loot = { - { name = "platinum coin", chance = 74620, maxCount = 44 }, - { name = "small emerald", chance = 6180 }, - { name = "resin parasite", chance = 4840 }, - { name = "demon root", chance = 4510 }, - { name = "springsprout rod", chance = 3170 }, - { name = "wood cape", chance = 1170 }, - { name = "green gem", chance = 1170 }, - { name = "golden legs", chance = 170 }, - { name = "composite hornbow", chance = 170 }, - { name = "Preserved Pink Seed", chance = 110 }, - { name = "Preserved Red Seed", chance = 110 }, - { name = "Preserved Yellow Seed", chance = 110 }, + { name = "platinum coin", chance = 74620, maxCount = 44 }, + { name = "small emerald", chance = 6180 }, + { name = "resin parasite", chance = 4840 }, + { name = "demon root", chance = 4510 }, + { name = "springsprout rod", chance = 3170 }, + { name = "wood cape", chance = 1170 }, + { name = "green gem", chance = 1170 }, + { name = "golden legs", chance = 170 }, + { name = "composite hornbow", chance = 170 }, + { name = "Preserved Pink Seed", chance = 110 }, + { name = "Preserved Red Seed", chance = 110 }, + { name = "Preserved Yellow Seed", chance = 110 }, } monster.attacks = { - { name = "melee", interval = 2000, chance = 100, minDamage = 0, maxDamage = -300 }, - { name = "rotthligholyulus", interval = 2000, chance = 14, minDamage = -630, maxDamage = -840 }, - { name = "combat", interval = 2000, chance = 20, type = COMBAT_PHYSICALDAMAGE, minDamage = -530, maxDamage = -720, radius = 4, effect = CONST_ME_EXPLOSIONHIT, target = true }, - { name = "combat", interval = 2000, chance = 20, type = COMBAT_EARTHDAMAGE, minDamage = -460, maxDamage = - 740, range = 6, radius = 2, shootEffect = CONST_ANI_POISON, effect = CONST_ME_POISONAREA, target = true }, - { name = "podzillaphyschain", interval = 2000, chance = 16 }, - { name = "rotthligexplo", interval = 2000, chance = 18, minDamage = -400, maxDamage = -625 }, + { name = "melee", interval = 2000, chance = 100, minDamage = 0, maxDamage = -300 }, + { name = "rotthligholyulus", interval = 2000, chance = 14, minDamage = -630, maxDamage = -840 }, + { name = "combat", interval = 2000, chance = 20, type = COMBAT_PHYSICALDAMAGE, minDamage = -530, maxDamage = -720, radius = 4, effect = CONST_ME_EXPLOSIONHIT, target = true }, + { name = "combat", interval = 2000, chance = 20, type = COMBAT_EARTHDAMAGE, minDamage = -460, maxDamage = -740, range = 6, radius = 2, shootEffect = CONST_ANI_POISON, effect = CONST_ME_POISONAREA, target = true }, + { name = "podzillaphyschain", interval = 2000, chance = 16 }, + { name = "rotthligexplo", interval = 2000, chance = 18, minDamage = -400, maxDamage = -625 }, } monster.defenses = { - defense = 92, - armor = 92, - mitigation = 2.51, + defense = 92, + armor = 92, + mitigation = 2.51, } monster.elements = { - { type = COMBAT_PHYSICALDAMAGE, percent = 15 }, - { type = COMBAT_ENERGYDAMAGE, percent = 25 }, - { type = COMBAT_EARTHDAMAGE, percent = 100 }, - { type = COMBAT_FIREDAMAGE, percent = -15 }, - { type = COMBAT_LIFEDRAIN, percent = 0 }, - { type = COMBAT_MANADRAIN, percent = 0 }, - { type = COMBAT_DROWNDAMAGE, percent = 0 }, - { type = COMBAT_ICEDAMAGE, percent = -5 }, - { type = COMBAT_HOLYDAMAGE, percent = 0 }, - { type = COMBAT_DEATHDAMAGE, percent = -5 }, + { type = COMBAT_PHYSICALDAMAGE, percent = 15 }, + { type = COMBAT_ENERGYDAMAGE, percent = 25 }, + { type = COMBAT_EARTHDAMAGE, percent = 100 }, + { type = COMBAT_FIREDAMAGE, percent = -15 }, + { type = COMBAT_LIFEDRAIN, percent = 0 }, + { type = COMBAT_MANADRAIN, percent = 0 }, + { type = COMBAT_DROWNDAMAGE, percent = 0 }, + { type = COMBAT_ICEDAMAGE, percent = -5 }, + { type = COMBAT_HOLYDAMAGE, percent = 0 }, + { type = COMBAT_DEATHDAMAGE, percent = -5 }, } monster.immunities = { - { type = "paralyze", condition = true }, - { type = "outfit", condition = false }, - { type = "invisible", condition = true }, - { type = "bleed", condition = false }, + { type = "paralyze", condition = true }, + { type = "outfit", condition = false }, + { type = "invisible", condition = true }, + { type = "bleed", condition = false }, } -mType:register(monster) \ No newline at end of file +mType:register(monster) diff --git a/data-global/monster/plants/rootthing_nutshell.lua b/data-global/monster/plants/rootthing_nutshell.lua index 01878cf3..d6ba10be 100644 --- a/data-global/monster/plants/rootthing_nutshell.lua +++ b/data-global/monster/plants/rootthing_nutshell.lua @@ -4,126 +4,126 @@ local monster = {} monster.description = "a rootthing nutshell" monster.experience = 9200 monster.outfit = { - lookType = 1760, - lookHead = 0, - lookBody = 0, - lookLegs = 0, - lookFeet = 0, - lookAddons = 0, - lookMount = 0, + lookType = 1760, + lookHead = 0, + lookBody = 0, + lookLegs = 0, + lookFeet = 0, + lookAddons = 0, + lookMount = 0, } monster.raceId = 2540 monster.Bestiary = { - class = "Plant", - race = BESTY_RACE_PLANT, - toKill = 2500, - FirstUnlock = 100, - SecondUnlock = 1000, - CharmsPoints = 50, - Stars = 4, - Occurrence = 0, - Locations = "Podzilla Stalk.", + class = "Plant", + race = BESTY_RACE_PLANT, + toKill = 2500, + FirstUnlock = 100, + SecondUnlock = 1000, + CharmsPoints = 50, + Stars = 4, + Occurrence = 0, + Locations = "Podzilla Stalk.", } monster.health = 13500 monster.maxHealth = 13500 monster.race = "venom" -monster.corpse = 48396 +monster.corpse = 48396 monster.speed = 190 monster.manaCost = 0 monster.changeTarget = { - interval = 4000, - chance = 10, + interval = 4000, + chance = 10, } monster.strategiesTarget = { - nearest = 70, - health = 10, - damage = 10, - random = 10, + nearest = 70, + health = 10, + damage = 10, + random = 10, } monster.flags = { - summonable = false, - attackable = true, - hostile = true, - convinceable = false, - pushable = false, - rewardBoss = false, - illusionable = false, - canPushItems = true, - canPushCreatures = false, - staticAttackChance = 90, - targetDistance = 1, - runHealth = 0, - healthHidden = false, - isBlockable = false, - canWalkOnEnergy = true, - canWalkOnFire = true, - canWalkOnPoison = true, + summonable = false, + attackable = true, + hostile = true, + convinceable = false, + pushable = false, + rewardBoss = false, + illusionable = false, + canPushItems = true, + canPushCreatures = false, + staticAttackChance = 90, + targetDistance = 1, + runHealth = 0, + healthHidden = false, + isBlockable = false, + canWalkOnEnergy = true, + canWalkOnFire = true, + canWalkOnPoison = true, } monster.light = { - level = 0, - color = 0, + level = 0, + color = 0, } monster.voices = { - interval = 5000, - chance = 10, - { text = "", yell = true }, - { text = "", yell = true }, - { text = "", yell = true }, + interval = 5000, + chance = 10, + { text = "", yell = true }, + { text = "", yell = true }, + { text = "", yell = true }, } monster.loot = { - { name = "platinum coin", chance = 88000, maxCount = 41 }, - { name = "demon root", chance = 7160 }, - { name = "resin parasite", chance = 3940 }, - { name = "small emerald", chance = 3030 }, - { name = "epee", chance = 830 }, - { name = "green gem", chance = 730 }, - { name = "swamplair armor", chance = 550 }, - { name = "ruthless axe", chance = 90 }, - { name = "terra helmet", chance = 30 }, - { name = "Preserved Pink Seed", chance = 110 }, - { name = "Preserved Red Seed", chance = 110 }, - { name = "Preserved Yellow Seed", chance = 110 }, + { name = "platinum coin", chance = 88000, maxCount = 41 }, + { name = "demon root", chance = 7160 }, + { name = "resin parasite", chance = 3940 }, + { name = "small emerald", chance = 3030 }, + { name = "epee", chance = 830 }, + { name = "green gem", chance = 730 }, + { name = "swamplair armor", chance = 550 }, + { name = "ruthless axe", chance = 90 }, + { name = "terra helmet", chance = 30 }, + { name = "Preserved Pink Seed", chance = 110 }, + { name = "Preserved Red Seed", chance = 110 }, + { name = "Preserved Yellow Seed", chance = 110 }, } monster.attacks = { - { name = "melee", interval = 2000, chance = 100, minDamage = -150, maxDamage = -670 }, - { name = "rotthligulus", interval = 2000, chance = 20, minDamage = -750, maxDamage = -1100 }, - { name = "rotthingwave", interval = 2000, chance = 20 }, - { name = "combat", interval = 2000, chance = 17, type = COMBAT_PHYSICALDAMAGE, minDamage = -400, maxDamage = -700, range = 6, effect = CONST_ME_BITE, target = true }, + { name = "melee", interval = 2000, chance = 100, minDamage = -150, maxDamage = -670 }, + { name = "rotthligulus", interval = 2000, chance = 20, minDamage = -750, maxDamage = -1100 }, + { name = "rotthingwave", interval = 2000, chance = 20 }, + { name = "combat", interval = 2000, chance = 17, type = COMBAT_PHYSICALDAMAGE, minDamage = -400, maxDamage = -700, range = 6, effect = CONST_ME_BITE, target = true }, } monster.defenses = { - defense = 85, - armor = 85, - mitigation = 2.31, + defense = 85, + armor = 85, + mitigation = 2.31, } monster.elements = { - { type = COMBAT_PHYSICALDAMAGE, percent = 25 }, - { type = COMBAT_ENERGYDAMAGE, percent = 15 }, - { type = COMBAT_EARTHDAMAGE, percent = 100 }, - { type = COMBAT_FIREDAMAGE, percent = -15 }, - { type = COMBAT_LIFEDRAIN, percent = 0 }, - { type = COMBAT_MANADRAIN, percent = 0 }, - { type = COMBAT_DROWNDAMAGE, percent = 0 }, - { type = COMBAT_ICEDAMAGE, percent = -5 }, - { type = COMBAT_HOLYDAMAGE, percent = 5 }, - { type = COMBAT_DEATHDAMAGE, percent = -10 }, + { type = COMBAT_PHYSICALDAMAGE, percent = 25 }, + { type = COMBAT_ENERGYDAMAGE, percent = 15 }, + { type = COMBAT_EARTHDAMAGE, percent = 100 }, + { type = COMBAT_FIREDAMAGE, percent = -15 }, + { type = COMBAT_LIFEDRAIN, percent = 0 }, + { type = COMBAT_MANADRAIN, percent = 0 }, + { type = COMBAT_DROWNDAMAGE, percent = 0 }, + { type = COMBAT_ICEDAMAGE, percent = -5 }, + { type = COMBAT_HOLYDAMAGE, percent = 5 }, + { type = COMBAT_DEATHDAMAGE, percent = -10 }, } monster.immunities = { - { type = "paralyze", condition = true }, - { type = "outfit", condition = false }, - { type = "invisible", condition = true }, - { type = "bleed", condition = false }, + { type = "paralyze", condition = true }, + { type = "outfit", condition = false }, + { type = "invisible", condition = true }, + { type = "bleed", condition = false }, } -mType:register(monster) \ No newline at end of file +mType:register(monster) diff --git a/data-global/scripts/quests/adventures_of_galthen/actions_mitmah_vanguard.lua b/data-global/scripts/quests/adventures_of_galthen/actions_mitmah_vanguard.lua index c85a9103..abc8f387 100644 --- a/data-global/scripts/quests/adventures_of_galthen/actions_mitmah_vanguard.lua +++ b/data-global/scripts/quests/adventures_of_galthen/actions_mitmah_vanguard.lua @@ -20,4 +20,4 @@ local config = { local lever = BossLever(config) lever:position(Position(34047, 31431, 11)) -lever:register() \ No newline at end of file +lever:register() diff --git a/data-global/scripts/spells/monster/mitmah_vanguard_hugeblackring.lua b/data-global/scripts/spells/monster/mitmah_vanguard_hugeblackring.lua index 2bbabed1..e698797c 100644 --- a/data-global/scripts/spells/monster/mitmah_vanguard_hugeblackring.lua +++ b/data-global/scripts/spells/monster/mitmah_vanguard_hugeblackring.lua @@ -1,23 +1,23 @@ local spell = Spell("instant") local aLarge = { - { 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0 }, - { 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0 }, - { 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0 }, - { 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0 }, - { 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0 }, - { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }, - { 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0 }, - { 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0 }, - { 1, 1, 1, 1, 1, 1, 0, 0, 3, 0, 0, 1, 1, 1, 1, 1, 1 }, - { 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0 }, - { 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0 }, - { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }, - { 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0 }, - { 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0 }, - { 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0 }, - { 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0 }, - { 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0 }, + { 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0 }, + { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }, + { 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0 }, + { 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0 }, + { 1, 1, 1, 1, 1, 1, 0, 0, 3, 0, 0, 1, 1, 1, 1, 1, 1 }, + { 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0 }, + { 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0 }, + { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 }, + { 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0 }, + { 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0 }, } local combatLargeRing = Combat() @@ -26,7 +26,7 @@ combatLargeRing:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA) combatLargeRing:setArea(createCombatArea(aLarge)) function spell.onCastSpell(creature, var) - return combatLargeRing:execute(creature, var) + return combatLargeRing:execute(creature, var) end spell:name("hugeblackring") diff --git a/data-global/scripts/spells/monster/podzillaphys_chain.lua b/data-global/scripts/spells/monster/podzillaphys_chain.lua index 96e28650..44264be8 100644 --- a/data-global/scripts/spells/monster/podzillaphys_chain.lua +++ b/data-global/scripts/spells/monster/podzillaphys_chain.lua @@ -8,16 +8,15 @@ function getChainValue(creature) end function canChain(creature, target) - if target:isPlayer() then - if target:getPosition():isProtectionZoneTile() then - return false - end - return true - end - return false + if target:isPlayer() then + if target:getPosition():isProtectionZoneTile() then + return false + end + return true + end + return false end - combat:setCallback(CALLBACK_PARAM_CHAINVALUE, "getChainValue") combat:setCallback(CALLBACK_PARAM_CHAINPICKER, "canChain") diff --git a/data-global/scripts/spells/monster/quara_looter_small_icering.lua b/data-global/scripts/spells/monster/quara_looter_small_icering.lua index 2bedcd75..0d0ec42e 100644 --- a/data-global/scripts/spells/monster/quara_looter_small_icering.lua +++ b/data-global/scripts/spells/monster/quara_looter_small_icering.lua @@ -19,7 +19,6 @@ combatLargeRing:setParameter(COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE) combatLargeRing:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_ICEAREA) combatLargeRing:setArea(createCombatArea(aLarge)) - local combats = { combatLargeRing } function spell.onCastSpell(creature, var) @@ -31,4 +30,4 @@ spell:name("quarasmallicering") spell:words("###quara_small_ice_ring") spell:needLearn(true) spell:isSelfTarget(true) -spell:register() \ No newline at end of file +spell:register() diff --git a/data-global/scripts/spells/monster/quara_plunderer_cross.lua b/data-global/scripts/spells/monster/quara_plunderer_cross.lua index 4483d555..6a2eee0b 100644 --- a/data-global/scripts/spells/monster/quara_plunderer_cross.lua +++ b/data-global/scripts/spells/monster/quara_plunderer_cross.lua @@ -24,4 +24,4 @@ spell:name("quaracrossdeath") spell:words("###quara_cross_death") spell:needLearn(true) spell:isSelfTarget(true) -spell:register() \ No newline at end of file +spell:register() diff --git a/data-global/scripts/spells/monster/quara_plunderer_smoke.lua b/data-global/scripts/spells/monster/quara_plunderer_smoke.lua index 01957b60..7659a230 100644 --- a/data-global/scripts/spells/monster/quara_plunderer_smoke.lua +++ b/data-global/scripts/spells/monster/quara_plunderer_smoke.lua @@ -24,4 +24,4 @@ spell:name("quarasmokedeath") spell:words("###quara_smoke_death") spell:needLearn(true) spell:isSelfTarget(true) -spell:register() \ No newline at end of file +spell:register() diff --git a/data-global/scripts/spells/monster/quara_raider_icering.lua b/data-global/scripts/spells/monster/quara_raider_icering.lua index 58f342d9..4cd59875 100644 --- a/data-global/scripts/spells/monster/quara_raider_icering.lua +++ b/data-global/scripts/spells/monster/quara_raider_icering.lua @@ -21,7 +21,6 @@ combatLargeRing:setParameter(COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE) combatLargeRing:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_ICEAREA) combatLargeRing:setArea(createCombatArea(aLarge)) - local combats = { combatLargeRing } function spell.onCastSpell(creature, var) @@ -33,4 +32,4 @@ spell:name("quaralargeicering") spell:words("###quara_large_ice_ring") spell:needLearn(true) spell:isSelfTarget(true) -spell:register() \ No newline at end of file +spell:register() diff --git a/data-global/scripts/spells/monster/quara_raider_shoot.lua b/data-global/scripts/spells/monster/quara_raider_shoot.lua index ef60a19b..53a06b4f 100644 --- a/data-global/scripts/spells/monster/quara_raider_shoot.lua +++ b/data-global/scripts/spells/monster/quara_raider_shoot.lua @@ -4,7 +4,6 @@ combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA) combat:setParameter(COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SNOWBALL) combat:setArea(createCombatArea(AREA_CIRCLE1X1)) - local spell = Spell("instant") function spell.onCastSpell(creature, var) diff --git a/data-global/scripts/spells/monster/quara_raider_watercreature.lua b/data-global/scripts/spells/monster/quara_raider_watercreature.lua index bc47ba6e..36bfda02 100644 --- a/data-global/scripts/spells/monster/quara_raider_watercreature.lua +++ b/data-global/scripts/spells/monster/quara_raider_watercreature.lua @@ -2,10 +2,10 @@ local combat = Combat() combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE) combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_WATERCREATURE) arr = { - { 1, 0, 1, }, - { 0, 0, 0, }, - { 0, 1, 0, }, - { 0, 2, 0, }, + { 1, 0, 1 }, + { 0, 0, 0 }, + { 0, 1, 0 }, + { 0, 2, 0 }, } local area = createCombatArea(arr) @@ -21,4 +21,4 @@ spell:name("quaraseamonster") spell:words("###quara_sea_monster") spell:needLearn(true) spell:isSelfTarget(false) -spell:register() \ No newline at end of file +spell:register() diff --git a/data-global/scripts/spells/monster/quara_raider_watersplash.lua b/data-global/scripts/spells/monster/quara_raider_watersplash.lua index 5cdc09ae..ef1233a3 100644 --- a/data-global/scripts/spells/monster/quara_raider_watersplash.lua +++ b/data-global/scripts/spells/monster/quara_raider_watersplash.lua @@ -2,10 +2,10 @@ local combat = Combat() combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE) combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_WATERSPLASH) arr = { - { 0, 0, 1, 0, }, - { 1, 0, 2, 0, }, - { 0, 0, 0, 1, }, - { 0, 1, 0, 0, }, + { 0, 0, 1, 0 }, + { 1, 0, 2, 0 }, + { 0, 0, 0, 1 }, + { 0, 1, 0, 0 }, } local area = createCombatArea(arr) @@ -21,4 +21,4 @@ spell:name("quarawatersplash") spell:words("###quara_water_splash") spell:needLearn(true) spell:isSelfTarget(false) -spell:register() \ No newline at end of file +spell:register() diff --git a/data-global/scripts/spells/monster/rootkraken_deathholy.lua b/data-global/scripts/spells/monster/rootkraken_deathholy.lua index 373db99c..2d71d964 100644 --- a/data-global/scripts/spells/monster/rootkraken_deathholy.lua +++ b/data-global/scripts/spells/monster/rootkraken_deathholy.lua @@ -9,59 +9,58 @@ combat2:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_HOLYDAMAGE) combat2:setFormula(COMBAT_FORMULA_DAMAGE, 0, 2500, 4500, 0) arr = { - { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }, - { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }, - { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }, - { 0,0,0,1,0,0,0,0,0,0,0,1,0,0,0 }, - { 0,0,0,0,1,0,0,0,0,0,1,0,0,0,0 }, - { 0,0,0,0,0,1,0,0,0,1,0,0,0,0,0 }, - { 0,0,0,0,0,0,1,1,1,0,0,0,0,0,0 }, - { 0,0,0,0,0,0,1,3,1,0,0,0,0,0,0 }, - { 0,0,0,0,0,0,1,1,1,0,0,0,0,0,0 }, - { 0,0,0,0,0,1,0,0,0,1,0,0,0,0,0 }, - { 0,0,0,0,1,0,0,0,0,0,1,0,0,0,0 }, - { 0,0,0,1,0,0,0,0,0,0,0,1,0,0,0 }, - { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }, - { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }, - { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }, + { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0 }, + { 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 1, 3, 1, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0 }, + { 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, } arr1 = { - { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }, - { 0,0,0,0,0,0,0,1,0,0,0,0,0,0,0 }, - { 0,0,0,0,0,0,1,1,1,0,0,0,0,0,0 }, - { 0,0,0,0,1,0,0,1,0,0,1,0,0,0,0 }, - { 0,0,0,1,0,1,0,0,0,1,0,1,0,0,0 }, - { 0,0,0,0,1,0,0,0,0,0,1,0,0,0,0 }, - { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }, - { 0,0,0,0,0,0,0,3,0,0,0,0,0,0,0 }, - { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }, - { 0,0,0,0,1,0,0,0,0,0,1,0,0,0,0 }, - { 0,0,0,1,0,1,0,0,0,1,0,1,0,0,0 }, - { 0,0,0,0,1,0,0,1,0,0,1,0,0,0,0 }, - { 0,0,0,0,0,0,1,1,1,0,0,0,0,0,0 }, - { 0,0,0,0,0,0,0,1,0,0,0,0,0,0,0 }, - { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }, + { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0 }, + { 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0 }, + { 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0 }, + { 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0 }, + { 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, } local area = createCombatArea(arr) combat1:setArea(createCombatArea(arr)) combat2:setArea(createCombatArea(arr1)) - local spell = Spell("instant") local combats = { combat1, combat2 } function spell.onCastSpell(creature, var) - for _, combat in pairs(combats) do - combat:execute(creature, var) - end - return true + for _, combat in pairs(combats) do + combat:execute(creature, var) + end + return true end spell:name("rootkraken") spell:words("#773333") spell:needLearn(true) spell:isSelfTarget(true) -spell:register() \ No newline at end of file +spell:register() diff --git a/data-global/scripts/spells/monster/rootkraken_rootearth.lua b/data-global/scripts/spells/monster/rootkraken_rootearth.lua index c662e8a4..3d094d5a 100644 --- a/data-global/scripts/spells/monster/rootkraken_rootearth.lua +++ b/data-global/scripts/spells/monster/rootkraken_rootearth.lua @@ -5,46 +5,44 @@ condition:setParameter(CONDITION_PARAM_TICKS, 3000) combatRoot:addCondition(condition) arr = { - { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }, - { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }, - { 0,0,0,0,0,0,0,1,0,0,0,0,0,0,0 }, - { 0,0,0,0,0,0,0,1,0,0,0,0,0,0,0 }, - { 0,0,0,0,0,0,0,1,0,0,0,0,0,0,0 }, - { 0,0,0,0,0,0,0,1,0,0,0,0,0,0,0 }, - { 0,0,0,0,0,0,0,1,0,0,0,0,0,0,0 }, - { 0,0,1,1,1,1,1,2,1,1,1,1,1,0,0 }, - { 0,0,0,0,0,0,0,1,0,0,0,0,0,0,0 }, - { 0,0,0,0,0,0,0,1,0,0,0,0,0,0,0 }, - { 0,0,0,0,0,0,0,1,0,0,0,0,0,0,0 }, - { 0,0,0,0,0,0,0,1,0,0,0,0,0,0,0 }, - { 0,0,0,0,0,0,0,1,0,0,0,0,0,0,0 }, - { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }, - { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }, + { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, } - local combat1 = Combat() combat1:setParameter(COMBAT_PARAM_TYPE, COMBAT_EARTHDAMAGE) combat1:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_PLANTATTACK) combat1:setFormula(COMBAT_FORMULA_DAMAGE, 0, 2500, 3500, 0) - arr1 = { - { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }, - { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }, - { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }, - { 0,0,0,0,0,0,1,0,1,0,0,0,0,0,0 }, - { 0,0,0,0,0,0,1,0,1,0,0,0,0,0,0 }, - { 0,0,0,0,0,0,1,0,1,0,0,0,0,0,0 }, - { 0,0,0,1,1,1,1,0,1,1,1,1,0,0,0 }, - { 0,0,0,0,0,0,0,2,0,0,0,0,0,0,0 }, - { 0,0,0,1,1,1,1,0,1,1,1,1,0,0,0 }, - { 0,0,0,0,0,0,1,0,1,0,0,0,0,0,0 }, - { 0,0,0,0,0,0,1,0,1,0,0,0,0,0,0 }, - { 0,0,0,0,0,0,1,0,1,0,0,0,0,0,0 }, - { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }, - { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }, - { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }, + { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, + { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, } local area = createCombatArea(arr) @@ -56,16 +54,15 @@ local spell = Spell("instant") local combats = { combatRoot, combat1 } function spell.onCastSpell(creature, var) - for _, combat in pairs(combats) do - combat:execute(creature, var) - end + for _, combat in pairs(combats) do + combat:execute(creature, var) + end - return true + return true end - spell:name("rootkrakentwo") spell:words("#773334") spell:needLearn(true) spell:isSelfTarget(true) -spell:register() \ No newline at end of file +spell:register() diff --git a/data-global/scripts/spells/monster/rotthing_explo.lua b/data-global/scripts/spells/monster/rotthing_explo.lua index 5b98e494..892c54ed 100644 --- a/data-global/scripts/spells/monster/rotthing_explo.lua +++ b/data-global/scripts/spells/monster/rotthing_explo.lua @@ -1,6 +1,5 @@ local spell = Spell("instant") - local arr = { { 0, 0, 0, 0, 0 }, { 0, 1, 1, 1, 0 }, @@ -9,20 +8,17 @@ local arr = { { 0, 0, 0, 0, 0 }, } - local combat = Combat() -combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) -combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_EXPLOSIONAREA) -combat:setArea(createCombatArea(arr)) - +combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) +combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_EXPLOSIONAREA) +combat:setArea(createCombatArea(arr)) function spell.onCastSpell(creature, var) return combat:execute(creature, var) end - spell:name("rotthligexplo") spell:words("###rotth_explo") spell:needLearn(true) spell:isSelfTarget(true) -spell:register() \ No newline at end of file +spell:register() diff --git a/data-global/scripts/spells/monster/rotthing_shaper.lua b/data-global/scripts/spells/monster/rotthing_shaper.lua index 3de9536b..d81aa32e 100644 --- a/data-global/scripts/spells/monster/rotthing_shaper.lua +++ b/data-global/scripts/spells/monster/rotthing_shaper.lua @@ -38,19 +38,18 @@ local area = createCombatArea(arr) combat1:setArea(createCombatArea(arr)) combat2:setArea(createCombatArea(arr1)) - local spell = Spell("instant") local combats = { combat1, combat2 } function spell.onCastSpell(creature, var) - for _, combat in pairs(combats) do - combat:execute(creature, var) - end - return true + for _, combat in pairs(combats) do + combat:execute(creature, var) + end + return true end spell:name("rotthingshaper") spell:words("#773373") spell:needLearn(true) -spell:register() \ No newline at end of file +spell:register() diff --git a/data-global/scripts/spells/monster/rotthing_ulus.lua b/data-global/scripts/spells/monster/rotthing_ulus.lua index cbd67983..6861ccee 100644 --- a/data-global/scripts/spells/monster/rotthing_ulus.lua +++ b/data-global/scripts/spells/monster/rotthing_ulus.lua @@ -1,6 +1,5 @@ local spell = Spell("instant") - local aLarge = { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, @@ -17,20 +16,17 @@ local aLarge = { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, } - local combat = Combat() -combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) -combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_BLOCKHIT) -combat:setArea(createCombatArea(aLarge)) - +combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) +combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_BLOCKHIT) +combat:setArea(createCombatArea(aLarge)) function spell.onCastSpell(creature, var) return combat:execute(creature, var) end - spell:name("rotthligulus") spell:words("###rotth_ulus") spell:needLearn(true) spell:isSelfTarget(true) -spell:register() \ No newline at end of file +spell:register() diff --git a/data-global/scripts/spells/monster/rotthing_wave.lua b/data-global/scripts/spells/monster/rotthing_wave.lua index 6e50a9e3..59b61ea2 100644 --- a/data-global/scripts/spells/monster/rotthing_wave.lua +++ b/data-global/scripts/spells/monster/rotthing_wave.lua @@ -32,20 +32,19 @@ local area = createCombatArea(arr) combat1:setArea(createCombatArea(arr)) combat2:setArea(createCombatArea(arr1)) - local spell = Spell("instant") local combats = { combat1, combat2 } function spell.onCastSpell(creature, var) - for _, combat in pairs(combats) do - combat:execute(creature, var) - end - return true + for _, combat in pairs(combats) do + combat:execute(creature, var) + end + return true end spell:name("rotthingwave") spell:words("#776373") spell:needLearn(true) spell:needDirection(true) -spell:register() \ No newline at end of file +spell:register() diff --git a/data-global/scripts/spells/monster/rotthingholy_ulus.lua b/data-global/scripts/spells/monster/rotthingholy_ulus.lua index 066f8ceb..78c3909d 100644 --- a/data-global/scripts/spells/monster/rotthingholy_ulus.lua +++ b/data-global/scripts/spells/monster/rotthingholy_ulus.lua @@ -1,6 +1,5 @@ local spell = Spell("instant") - local aLarge = { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, { 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0 }, @@ -17,20 +16,17 @@ local aLarge = { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, } - local combat = Combat() -combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE) -combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_HOLYAREA) -combat:setArea(createCombatArea(aLarge)) - +combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE) +combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_HOLYAREA) +combat:setArea(createCombatArea(aLarge)) function spell.onCastSpell(creature, var) return combat:execute(creature, var) end - spell:name("rotthligholyulus") spell:words("###rotth_holy_ulus") spell:needLearn(true) spell:isSelfTarget(true) -spell:register() \ No newline at end of file +spell:register() diff --git a/data/scripts/talkactions/player/buy_backpack.lua b/data/scripts/talkactions/player/buy_backpack.lua new file mode 100644 index 00000000..d8fb9166 --- /dev/null +++ b/data/scripts/talkactions/player/buy_backpack.lua @@ -0,0 +1,31 @@ +local backpack = TalkAction("!bp") + +local itemConfig = { + price = 20, + itemId = 2854, +} + +function backpack.onSay(player, words, param) + local exhaustGroup = "talkactions" + local exhaustTime = 2 + + if player:getExhaustion(exhaustGroup) > 0 then + player:sendCancelMessage("You are exhausted. Please wait before using this command again.") + return true + end + + if player:removeMoneyBank(itemConfig.price) then + player:getPosition():sendMagicEffect(CONST_ME_MAGIC_BLUE) + player:addItem(itemConfig.itemId, 1) + player:sendTextMessage(MESSAGE_LOOK, "You have bought a backpack!") + player:setExhaustion(exhaustGroup, exhaustTime) + else + player:getPosition():sendMagicEffect(CONST_ME_POFF) + player:sendCancelMessage("You do not have enough money.") + end + + return true +end + +backpack:groupType("normal") +backpack:register() diff --git a/data/scripts/talkactions/player/food.lua b/data/scripts/talkactions/player/food.lua new file mode 100644 index 00000000..326e9a94 --- /dev/null +++ b/data/scripts/talkactions/player/food.lua @@ -0,0 +1,21 @@ +local food = TalkAction("!food") + +local config = { + price = 1000, + itemId = 3731, + quantity = 100, +} + +function food.onSay(player, words, param) + if player:removeMoneyBank(config.price) then + player:getPosition():sendMagicEffect(CONST_ME_MAGIC_BLUE) + player:addItem(config.itemId, config.quantity) + player:sendTextMessage(MESSAGE_LOOK, string.format("You bought %d food for %d gold!", config.quantity, config.price)) + else + player:getPosition():sendMagicEffect(CONST_ME_POFF) + player:sendCancelMessage(string.format("You need at least %d gold coins.", config.price)) + end +end + +food:groupType("normal") +food:register() diff --git a/data/scripts/talkactions/player/frags.lua b/data/scripts/talkactions/player/frags.lua new file mode 100644 index 00000000..16d048bb --- /dev/null +++ b/data/scripts/talkactions/player/frags.lua @@ -0,0 +1,29 @@ +local frags = TalkAction("!frags") + +function frags.onSay(player, words, param) + local fragTime = configManager.getNumber(configKeys.FRAG_TIME) + local skullTime = player:getSkullTime() + local fragsList = player:getKills() + local totalFrags = 0 + + for fragIndex, fragTable in pairs(fragsList) do + for subKey, subValue in pairs(fragTable) do + if subKey == 1 then + local resultName = db.storeQuery("SELECT `name` FROM `players` WHERE `id` = " .. db.escapeString(subValue)) + local name = Result.getString(resultName, "name") + totalFrags = totalFrags + 1 + elseif subKey == 2 then + local formattedDate = os.date("%d %b %Y, %H:%M:%S", subValue) + elseif subKey == 3 then + else + end + end + end + + player:sendTextMessage(MESSAGE_LOOK, "You have " .. totalFrags .. " unjustified kills.") + return false +end + +frags:separator(" ") +frags:groupType("normal") +frags:register() diff --git a/data/scripts/talkactions/player/promotion.lua b/data/scripts/talkactions/player/promotion.lua new file mode 100644 index 00000000..4961a724 --- /dev/null +++ b/data/scripts/talkactions/player/promotion.lua @@ -0,0 +1,26 @@ +local promotion = TalkAction("!promotion") + +local config = { + requiredLevel = 20, + cost = 20000, +} + +function promotion.onSay(player, words, param) + local promotion = player:getVocation():getPromotion() + if player:isPromoted() then + player:sendCancelMessage("You are already promoted!") + player:getPosition():sendMagicEffect(CONST_ME_POFF) + elseif player:getLevel() < config.requiredLevel then + player:sendCancelMessage("Sorry, you need level " .. config.requiredLevel .. " to be promoted.") + player:getPosition():sendMagicEffect(CONST_ME_POFF) + elseif not player:removeMoneyBank(config.cost) then + player:sendCancelMessage(string.format("You need at least %d gold coins to have a promotion.", config.price)) + player:getPosition():sendMagicEffect(CONST_ME_POFF) + else + player:sendTextMessage(MESSAGE_LOOK, "You received a promotion!") + player:setVocation(promotion) + player:getPosition():sendMagicEffect(CONST_ME_HOLYDAMAGE) + end +end +promotion:groupType("normal") +promotion:register() diff --git a/data/scripts/talkactions/player/shared.lua b/data/scripts/talkactions/player/shared.lua new file mode 100644 index 00000000..e69f9cc7 --- /dev/null +++ b/data/scripts/talkactions/player/shared.lua @@ -0,0 +1,17 @@ +local shared = TalkAction("!shared") + +function shared.onSay(player, words, param) + if player then + local text = "-- Party Info -- \n\n" + text = text .. "-----------\n" + text = text .. "Min Level: " .. math.ceil((player:getLevel() * 2) / 3) .. " \n" + text = text .. "Max Level: " .. math.ceil((player:getLevel() * player:getLevel()) / ((player:getLevel() * 2) / 3)) .. " \n" + text = text .. "-----------\n" + player:showTextDialog(34266, text) + player:getPosition():sendMagicEffect(CONST_ME_MAGIC_BLUE) + end + return false +end + +shared:groupType("normal") +shared:register() diff --git a/markdowns/CHANGELOG.md b/markdowns/CHANGELOG.md index 08e67c04..cc95cec5 100644 --- a/markdowns/CHANGELOG.md +++ b/markdowns/CHANGELOG.md @@ -13,12 +13,26 @@ - Added a new command `/mute`, which will mute a player until unmuted by `/unmute`. ([Tryller](https://github.com/jprzimba)) - Cyclopedia House Auction system. ([murilo09](https://github.com/murilo09)) - Updated name change functionality to save old player names in a database table called `player_oldnames`. ([Tryller](https://github.com/jprzimba)) +- Added new useful commands: `!shared`, `!food`, `!frags`, `!promotion`, and `!bp`. ([Tryller](https://github.com/jprzimba)) +- Added missing 13.40 monsters and spells. ([Tryller](https://github.com/jprzimba)) +- Updated items.xml with missing 13.40 items. ([Tryller](https://github.com/jprzimba)) +- Added Crystal Server map (SadSoul map). ([Tryller](https://github.com/jprzimba)) +- Updated Yasir. ([Tryller](https://github.com/jprzimba)) ## Added files - - data/migrations/49.lua - data/migrations/50.lua - data/migrations/51.lua +- data/scripts/talkactions/player/buy_backpack.lua +- data/scripts/talkactions/player/food.lua +- data/scripts/talkactions/player/frags.lua +- data/scripts/talkactions/player/promotion.lua +- data/scripts/talkactions/player/shared.lua + +#### Crystal Server Map +- All files in data-crystal + +#### Global Map - data-global/lib/others/soulpit.lua - data-global/startup/tables/tile.lua - data-global/npc/myzzi.lua @@ -34,18 +48,58 @@ - data-global/scripts/quests/soulpit/soulpit_intensehex.lua - data-global/scripts/quests/soulpit/soulpit_opressor.lua - data-global/scripts/quests/soulpit/soulpit_powerless.lua +- data-global/monster/aquatics/quara_looter.lua +- data-global/monster/aquatics/quara_plunderer.lua +- data-global/monster/aquatics/quara_raider.lua +- data-global/monster/bosses/sugar_daddy.lua +- data-global/monster/bosses/sugar_mommy.lua +- data-global/monster/bosses/the_rootkraken.lua +- data-global/monster/constructs/gingerbread_men.lua +- data-global/monster/constructs/goggle_cake.lua +- data-global/monster/elementals/candy_floss_elemental.lua +- data-global/monster/elementals/honey_elemental.lua +- data-global/monster/fey/angry_sugar_fairy.lua +- data-global/monster/fey/cream_blob.lua +- data-global/monster/fey/fruit_drop.lua +- data-global/monster/fey/sugar_cube.lua +- data-global/monster/fey/sugar_cube_worker.lua +- data-global/monster/fey/truffle.lua +- data-global/monster/fey/truffle_cook.lua +- data-global/monster/magicals/candy_horror.lua +- data-global/monster/magicals/nibblemaw.lua +- data-global/monster/plants/rootthing_amber_shaper.lua +- data-global/monster/plants/rootthing_bug_tracker.lua +- data-global/monster/plants/rootthing_nutshell.lua +- data-global/scripts/spells/monster/podzillaphys_chain.lua +- data-global/scripts/spells/monster/quara_looter_small_icering.lua +- data-global/scripts/spells/monster/quara_plunderer_cross.lua +- data-global/scripts/spells/monster/quara_plunderer_smoke.lua +- data-global/scripts/spells/monster/quara_raider_icering.lua +- data-global/scripts/spells/monster/quara_raider_shoot.lua +- data-global/scripts/spells/monster/quara_raider_watercreature.lua +- data-global/scripts/spells/monster/quara_raider_watersplash.lua +- data-global/scripts/spells/monster/rootkraken_deathholy.lua +- data-global/scripts/spells/monster/rootkraken_rootearth.lua +- data-global/scripts/spells/monster/rotthing_explo.lua +- data-global/scripts/spells/monster/rotthing_shaper.lua +- data-global/scripts/spells/monster/rotthing_ulus.lua +- data-global/scripts/spells/monster/rotthing_wave.lua +- data-global/scripts/spells/monster/rotthingholy_ulus.lua ## Modified files - config.lua - schema.sql -- data/items/items.xm +- data/items/items.xml - data/libs/functions/lever.lua - data/modules/scripts/gamestore/init.lua - data/scripts/talkactions/god/attributes.lua - data/scripts/lib/register_spells.lua - data/XML/groups.xml - data/XML/outfits.xml + +#### Global Map +- data-global/npc/yasir.lua - data-global/lib/others/load.lua - data-global/scripts/quests/ferumbras_ascension/actions_lever_first.lua - data-global/scripts/quests/ferumbras_ascension/actions_lever_four.lua @@ -66,6 +120,7 @@ - Fixed Stealth Ring being destroyed in certain cases, based on [Stealth Ring](https://tibia.fandom.com/wiki/Stealth_Ring). ([Tryller](https://github.com/jprzimba)) - Fixed an issue where store items could not be moved to the store inbox after being unwrapped. ([TheGlitchLab](https://github.com/TheGlitchLab)) - Fixed some features not being disabled when deactivated in `config.lua`: `!chain`, `!emote`, and `!spellwords`. ([Tryller](https://github.com/jprzimba)) +- Fix forge monster time left. ([TheGlitchLab](https://github.com/TheGlitchLab)) ## Version 4.1.2