-
-
Notifications
You must be signed in to change notification settings - Fork 195
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
other big update for team otservbr this change save much memory usage :D
... no completed only for testings
- Loading branch information
Showing
289 changed files
with
6,237 additions
and
4,803 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
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,95 @@ | ||
local mType = Game.createMonsterType("Brain Parasite") | ||
local monster = {} | ||
|
||
monster.description = "a brain parasite" | ||
monster.experience = 0 | ||
monster.outfit = { | ||
lookType = 82, | ||
lookHead = 0, | ||
lookBody = 0, | ||
lookLegs = 0, | ||
lookFeet = 0, | ||
lookAddons = 0, | ||
lookMount = 0 | ||
} | ||
|
||
monster.health = 7500 | ||
monster.maxHealth = 7500 | ||
monster.race = "venom" | ||
monster.corpse = 6023 | ||
monster.speed = 200 | ||
monster.manaCost = 0 | ||
|
||
monster.changeTarget = { | ||
interval = 5000, | ||
chance = 20 | ||
} | ||
|
||
monster.strategiesTarget = { | ||
nearest = 100, | ||
} | ||
|
||
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, | ||
} | ||
|
||
monster.light = { | ||
level = 0, | ||
color = 0, | ||
} | ||
|
||
monster.voices = { | ||
interval = 5000, | ||
chance = 10, | ||
} | ||
|
||
monster.loot = {} | ||
|
||
monster.attacks = { | ||
{ name = "melee", interval = 2000, chance = 100, minDamage = 0, maxDamage = -500 }, | ||
} | ||
|
||
monster.defenses = { | ||
defense = 78, | ||
armor = 78, | ||
mitigation = 3.27, | ||
{ name = "combat", type = COMBAT_HEALING, chance = 15, interval = 2000, minDamage = 450, maxDamage = 550, effect = CONST_ME_MAGIC_BLUE }, | ||
} | ||
|
||
monster.elements = { | ||
{ type = COMBAT_PHYSICALDAMAGE, percent = 0 }, | ||
{ type = COMBAT_ENERGYDAMAGE, percent = 10 }, | ||
{ type = COMBAT_EARTHDAMAGE, percent = 0 }, | ||
{ type = COMBAT_FIREDAMAGE, percent = -10 }, | ||
{ 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 = 0 }, | ||
} | ||
|
||
monster.immunities = { | ||
{ type = "paralyze", condition = true }, | ||
{ type = "outfit", condition = false }, | ||
{ type = "invisible", condition = true }, | ||
{ type = "bleed", condition = false }, | ||
} | ||
|
||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,151 @@ | ||
local mType = Game.createMonsterType("The Brainstealer") | ||
local monster = {} | ||
|
||
monster.description = "The Brainstealer" | ||
monster.experience = 72000 | ||
monster.outfit = { | ||
lookType = 1412, | ||
lookHead = 94, | ||
lookBody = 88, | ||
lookLegs = 88, | ||
lookFeet = 114, | ||
lookAddons = 0, | ||
lookMount = 0 | ||
} | ||
|
||
monster.bosstiary = { | ||
bossRaceId = 2055, | ||
bossRace = RARITY_ARCHFOE, | ||
storageCooldown = Storage.Quest.U12_70.TooHotToHandle.BrainstealerTimer, | ||
} | ||
|
||
monster.health = 300000 | ||
monster.maxHealth = monster.health | ||
monster.race = "undead" | ||
monster.corpse = 36843 | ||
monster.speed = 425 | ||
|
||
monster.summon = { | ||
maxSummons = 2, | ||
summons = { | ||
{name = "brain parasite", chance = 20, interval = 4000, count = 1}, | ||
} | ||
} | ||
|
||
monster.changeTarget = { | ||
interval = 4000, | ||
chance = 10 | ||
} | ||
|
||
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 = "platinum coin", mincount = 10, maxcount = 50, chance = 100000 }, | ||
{ name = "crystal coin", mincount = 1, maxcount = 5, chance = 100000 }, | ||
{ name = "violet gem", chance = 50000 }, | ||
{ name = "mastermind potion", chance = 50000 }, | ||
{ name = "moonstone", chance = 50000 }, | ||
{ name = "ultimate spirit potion", chance = 50000 }, | ||
{ name = "white gem", chance = 50000 }, | ||
{ name = "brainstealer's tissue", chance = 6000 }, | ||
{ name = "brainstealer's brain", chance = 5000 }, | ||
{ name = "brainstealer's brainwave", chance = 2500 }, | ||
{ name = "eldritch breeches", chance = 180 }, | ||
{ name = "eldritch cowl", chance = 240 }, | ||
{ name = "eldritch hood", chance = 225 }, | ||
{ name = "eldritch bow", chance = 210 }, | ||
{ name = "eldritch quiver", chance = 250 }, | ||
{ name = "eldritch claymore", chance = 130 }, | ||
{ name = "eldritch greataxe", chance = 110 }, | ||
{ name = "eldritch warmace", chance = 320 }, | ||
{ name = "eldritch shield", chance = 180 }, | ||
{ name = "eldritch cuirass", chance = 160 }, | ||
{ name = "eldritch folio", chance = 170 }, | ||
{ name = "eldritch tome", chance = 190 }, | ||
{ name = "eldritch rod", chance = 200 }, | ||
{ name = "eldritch wand", chance = 180 }, | ||
{ name = "gilded eldritch claymore", chance = 140 }, | ||
{ name = "gilded eldritch greataxe", chance = 120 }, | ||
{ name = "gilded eldritch warmace", chance = 100 }, | ||
{ name = "gilded eldritch wand", chance = 80 }, | ||
{ name = "gilded eldritch rod", chance = 60 }, | ||
{ name = "gilded eldritch bow", chance = 50 }, | ||
{ name = "eldritch crystal", chance = 30 } | ||
} | ||
|
||
monster.attacks = { | ||
{name = "melee", type = COMBAT_PHYSICALDAMAGE, interval = 2000, minDamage = 0, maxDamage = -900}, | ||
{name = "combat", type = COMBAT_DEATHDAMAGE, interval = 2000, chance = 20, radius = 4, minDamage = -1200, maxDamage = -1900, effect = CONST_ME_MORTAREA, shootEffect = CONST_ANI_SUDDENDEATH, target = true, range = 7}, | ||
{name = "combat", type = COMBAT_LIFEDRAIN, interval = 2000, chance = 20, radius = 4, minDamage = -700, maxDamage = -1000, effect = CONST_ME_DRAWBLOOD}, | ||
{name = "combat", type = COMBAT_LIFEDRAIN, interval = 2000, chance = 10, length = 8, spread = 0, minDamage = -1200, maxDamage = -1600, effect = CONST_ME_ELECTRICALSPARK}, | ||
} | ||
|
||
monster.defenses = { | ||
defense = 78, | ||
armor = 78, | ||
mitigation = 3.27, | ||
{ name = "combat", type = COMBAT_HEALING, chance = 15, interval = 2000, minDamage = 1450, maxDamage = 5350, effect = CONST_ME_MAGIC_BLUE }, | ||
} | ||
|
||
monster.elements = { | ||
{ type = COMBAT_PHYSICALDAMAGE, percent = 10 }, | ||
{ type = COMBAT_ENERGYDAMAGE, percent = 3 }, | ||
{ type = COMBAT_EARTHDAMAGE, percent = 0 }, | ||
{ type = COMBAT_FIREDAMAGE, percent = 5 }, | ||
{ type = COMBAT_LIFEDRAIN, percent = 0 }, | ||
{ type = COMBAT_MANADRAIN, percent = 0 }, | ||
{ type = COMBAT_DROWNDAMAGE, percent = 0 }, | ||
{ type = COMBAT_ICEDAMAGE, percent = 0 }, | ||
{ type = COMBAT_HOLYDAMAGE, percent = 0 }, | ||
{ type = COMBAT_DEATHDAMAGE, percent = 100 } | ||
} | ||
|
||
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
Oops, something went wrong.