forked from opentibiabr/canary
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Enhancement] adjust of monster (and others) speed multiplication (op…
…entibiabr#485) With this modification, we will no longer need to send the speed of monsters, items and other things, doubled. Several bugs have already been caused because sometimes when updating a new system, we don't realize that it needs to be sent folded to make the division in the protocol. We removed this once and for all, thus making development easier. There is a script to convert your monsters (divide the speed) to the new system, we understand that the rest is not necessary, mount, items, etc., for being few things. Conversor is here: https://github.com/opentibiabr/canary/files/10147673/creature.speed.conversion.zip It can also be found in the pull request description.
- Loading branch information
Showing
1,402 changed files
with
1,909 additions
and
1,658 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
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
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
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
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,128 @@ | ||
local mType = Game.createMonsterType("Cyclops") | ||
local monster = {} | ||
|
||
monster.description = "a cyclops" | ||
monster.experience = 150 | ||
monster.outfit = { | ||
lookType = 22, | ||
lookHead = 0, | ||
lookBody = 0, | ||
lookLegs = 0, | ||
lookFeet = 0, | ||
lookAddons = 0, | ||
lookMount = 0 | ||
} | ||
|
||
monster.raceId = 22 | ||
monster.Bestiary = { | ||
class = "Giant", | ||
race = BESTY_RACE_GIANT, | ||
toKill = 500, | ||
FirstUnlock = 25, | ||
SecondUnlock = 250, | ||
CharmsPoints = 15, | ||
Stars = 2, | ||
Occurrence = 0, | ||
Locations = "Ab'Dendriel Underground, Cyclopolis, Femor Hills, Kazordoon Prison, Kazordoon Surroundings, \z | ||
Maze of the Lost Souls, Mistrock, Mount Sternum, Outlaw Camp, Plains of Havoc, Shadowthorn, \z | ||
Thais Northern Dungeon, Thais Surroundings, Thais Underground, Ulderek's Rock, Yalahar Foreigner Quarter." | ||
} | ||
|
||
monster.health = 260 | ||
monster.maxHealth = 260 | ||
monster.race = "blood" | ||
monster.corpse = 5962 | ||
monster.speed = 95 | ||
monster.manaCost = 490 | ||
|
||
monster.changeTarget = { | ||
interval = 4000, | ||
chance = 10 | ||
} | ||
|
||
monster.strategiesTarget = { | ||
nearest = 70, | ||
damage = 30, | ||
} | ||
|
||
monster.flags = { | ||
summonable = true, | ||
attackable = true, | ||
hostile = true, | ||
convinceable = true, | ||
pushable = false, | ||
rewardBoss = false, | ||
illusionable = true, | ||
canPushItems = true, | ||
canPushCreatures = true, | ||
staticAttackChance = 90, | ||
targetDistance = 1, | ||
runHealth = 0, | ||
healthHidden = false, | ||
isBlockable = false, | ||
canWalkOnEnergy = false, | ||
canWalkOnFire = false, | ||
canWalkOnPoison = false | ||
} | ||
|
||
monster.light = { | ||
level = 0, | ||
color = 0 | ||
} | ||
|
||
monster.voices = { | ||
interval = 5000, | ||
chance = 10, | ||
{text = "Il lorstok human!", yell = false}, | ||
{text = "Toks utat.", yell = false}, | ||
{text = "Human, uh whil dyh!", yell = false}, | ||
{text = "Youh ah trak!", yell = false}, | ||
{text = "Let da mashing begin!", yell = false} | ||
} | ||
|
||
monster.loot = { | ||
{id = 3012, chance = 190}, -- wolf tooth chain | ||
{name = "gold coin", chance = 82000, maxCount = 47}, | ||
{id = 3093, chance = 90}, -- club ring | ||
{name = "halberd", chance = 1003}, | ||
{name = "short sword", chance = 8000}, | ||
{name = "dark helmet", chance = 220}, | ||
{name = "plate shield", chance = 2500}, | ||
{name = "battle shield", chance = 1400}, | ||
{name = "meat", chance = 30070}, | ||
{id = 7398, chance = 80}, -- cyclops trophy | ||
{name = "health potion", chance = 210}, | ||
{name = "cyclops toe", chance = 4930}, | ||
{id = 23986, chance = 1000} -- heavy old tome | ||
} | ||
|
||
monster.attacks = { | ||
{name ="melee", interval = 2000, chance = 100, minDamage = 0, maxDamage = -105} | ||
} | ||
|
||
monster.defenses = { | ||
defense = 20, | ||
armor = 20 | ||
} | ||
|
||
monster.elements = { | ||
{type = COMBAT_PHYSICALDAMAGE, percent = 0}, | ||
{type = COMBAT_ENERGYDAMAGE, percent = 25}, | ||
{type = COMBAT_EARTHDAMAGE, percent = -10}, | ||
{type = COMBAT_FIREDAMAGE, percent = 0}, | ||
{type = COMBAT_LIFEDRAIN, percent = 0}, | ||
{type = COMBAT_MANADRAIN, percent = 0}, | ||
{type = COMBAT_DROWNDAMAGE, percent = 0}, | ||
{type = COMBAT_ICEDAMAGE, percent = 0}, | ||
{type = COMBAT_HOLYDAMAGE , percent = 20}, | ||
{type = COMBAT_DEATHDAMAGE , percent = -10} | ||
} | ||
|
||
monster.immunities = { | ||
{type = "paralyze", condition = false}, | ||
{type = "outfit", condition = false}, | ||
{type = "invisible", condition = false}, | ||
{type = "bleed", condition = false} | ||
} | ||
|
||
mType:register(monster) |
Oops, something went wrong.