-
-
Notifications
You must be signed in to change notification settings - Fork 198
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
408 changed files
with
3,427 additions
and
1,227 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
function onUpdateDatabase() | ||
return false -- true = There are others migrations file | false = this is the last migration file | ||
logger.info("Updating database to version 43 (fix guildwar_kills_unique)") | ||
|
||
db.query([[ | ||
ALTER TABLE `guildwar_kills` | ||
DROP INDEX `guildwar_kills_unique` | ||
]]) | ||
|
||
return true | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
function onUpdateDatabase() | ||
return false -- true = There are others migrations file | false = this is the last migration file | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,119 @@ | ||
local mType = Game.createMonsterType("Brain Head") | ||
local monster = {} | ||
|
||
monster.description = "Brain Head" | ||
monster.experience = 0 | ||
monster.outfit = { | ||
lookTypeEx = 32418, | ||
} | ||
|
||
monster.health = 75000 | ||
monster.maxHealth = monster.health | ||
monster.race = "undead" | ||
monster.corpse = 32272 | ||
monster.speed = 0 | ||
|
||
monster.changeTarget = { | ||
interval = 4000, | ||
chance = 10, | ||
} | ||
|
||
monster.bosstiary = { | ||
bossRaceId = 1862, | ||
bossRace = RARITY_ARCHFOE, | ||
} | ||
|
||
monster.flags = { | ||
summonable = false, | ||
attackable = true, | ||
hostile = true, | ||
convinceable = false, | ||
pushable = false, | ||
rewardBoss = true, | ||
illusionable = false, | ||
canPushItems = true, | ||
canPushCreatures = true, | ||
staticAttackChance = 90, | ||
targetDistance = 1, | ||
runHealth = 0, | ||
healthHidden = false, | ||
canWalkOnEnergy = true, | ||
canWalkOnFire = true, | ||
canWalkOnPoison = true, | ||
} | ||
|
||
monster.loot = { | ||
{ name = "crystal coin", chance = 96300, maxCount = 3 }, | ||
{ name = "diamond", chance = 55560, maxCount = 2 }, | ||
{ name = "ultimate mana potion", chance = 51850, maxCount = 6 }, | ||
{ name = "white gem", chance = 51850, maxCount = 2 }, | ||
{ name = "supreme health potion", chance = 29630 }, | ||
{ name = "mastermind potion", chance = 22220 }, | ||
{ name = "cursed bone", chance = 22220 }, | ||
{ name = "berserk potion", chance = 18520 }, | ||
{ name = "death toll", chance = 18520, maxCount = 2 }, | ||
{ name = "ivory comb", chance = 18520 }, | ||
{ name = "bullseye potion", chance = 14810, maxCount = 10 }, | ||
{ name = "ultimate spirit potion", chance = 14810, maxCount = 6 }, | ||
{ name = "moonstone", chance = 14810 }, | ||
{ name = "spooky hood", chance = 8520 }, | ||
{ name = "silver hand mirror", chance = 7410 }, | ||
{ name = "amber with a dragonfly", chance = 7410 }, | ||
{ name = "phantasmal axe", chance = 3700 }, | ||
{ name = "ghost claw", chance = 3700 }, | ||
{ name = "giant amethyst", chance = 3700 }, | ||
{ id = 32621, chance = 3200 }, -- ring of souls | ||
} | ||
|
||
monster.attacks = { | ||
{ name = "combat", type = COMBAT_DEATHDAMAGE, interval = 2000, chance = 80, minDamage = -700, maxDamage = -1200, effect = CONST_ME_MORTAREA, shootEffect = CONST_ANI_SUDDENDEATH, target = true, range = 7 }, | ||
{ name = "combat", type = COMBAT_LIFEDRAIN, interval = 2000, chance = 20, length = 8, spread = 0, minDamage = -900, maxDamage = -1300, effect = CONST_ME_ELECTRICALSPARK }, | ||
} | ||
|
||
monster.defenses = { | ||
defense = 78, | ||
armor = 78, | ||
mitigation = 3.27, | ||
} | ||
|
||
monster.elements = { | ||
{ type = COMBAT_PHYSICALDAMAGE, percent = 0 }, | ||
{ type = COMBAT_ENERGYDAMAGE, percent = 0 }, | ||
{ type = COMBAT_EARTHDAMAGE, percent = 0 }, | ||
{ type = COMBAT_FIREDAMAGE, percent = 0 }, | ||
{ type = COMBAT_LIFEDRAIN, percent = 0 }, | ||
{ type = COMBAT_MANADRAIN, percent = 0 }, | ||
{ type = COMBAT_DROWNDAMAGE, percent = 0 }, | ||
{ type = COMBAT_ICEDAMAGE, percent = -30 }, | ||
{ type = COMBAT_HOLYDAMAGE, percent = 0 }, | ||
{ type = COMBAT_DEATHDAMAGE, percent = 0 }, | ||
} | ||
|
||
monster.immunities = { | ||
{ type = "paralyze", condition = true }, | ||
{ type = "invisible", condition = true }, | ||
} | ||
|
||
monster.voices = { | ||
interval = 5000, | ||
chance = 10, | ||
{ text = "Feel the power of death unleashed!", yell = false }, | ||
{ text = "I will rule again and my realm of death will span the world!", yell = false }, | ||
{ text = "My lich-knights will conquer this world for me!", yell = false }, | ||
} | ||
|
||
mType.onThink = function(monster, interval) end | ||
|
||
mType.onAppear = function(monster, creature) | ||
if monster:getType():isRewardBoss() then | ||
monster:setReward(true) | ||
end | ||
end | ||
|
||
mType.onDisappear = function(monster, creature) end | ||
|
||
mType.onMove = function(monster, creature, fromPosition, toPosition) end | ||
|
||
mType.onSay = function(monster, creature, type, message) end | ||
|
||
mType:register(monster) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.