mirror of
https://github.com/opentibiabr/canary
synced 2026-08-16 06:26:09 -04:00
feat: add Way of the Monk quest, monster updates, and core data improvements This commit introduces the complete implementation of the Way of the Monk quest, along with multiple updates to monsters, bosses, items, and core gameplay data. Quest: • Added full quest definition for Way of the Monk, including mission flow, shrine tracking, and storage handling. • Registered the new quest module in the quest catalog. • Introduced new storage keys related to monk quest progression and items. • Added a sample monk player migration (DB version 55) for testing purposes. • Added Blue Valley to the towns list to support quest locations. Monsters and Bosses: • Added new monster Tame Terror Bird with complete stats, behaviors, and loot. • Reworked Mitmah Vanguard boss with updated events, attributes, attacks, defenses, elemental modifiers, loot, and lifecycle hooks. • Expanded loot tables for bosses such as The Brainstealer and The Monster, including monk-related items and potions. Items and Loot: • Updated frazzlemaw and guzzlemaw loot to drop traditional sai instead of sai. • Added monk-related item IDs to destruction scripts and Dawnport cleanup logic. Gameplay: • Added Monk’s Apparition to the Soul War quest apparition list. • Introduced a new combat formula for fist fighting skill. • Removed legacy fist fighting attack speed configuration from server settings. Workflow: • Improved GitHub Actions workflow to ensure reusable checks run on the correct branch.
48 lines
1.8 KiB
Lua
48 lines
1.8 KiB
Lua
local function levitate(creature, parameter)
|
|
local fromPosition = creature:getPosition()
|
|
|
|
if parameter == "up" and fromPosition.z ~= 8 or parameter == "down" and fromPosition.z ~= 7 then
|
|
local toPosition = creature:getPosition()
|
|
toPosition:getNextPosition(creature:getDirection())
|
|
|
|
local tile = Tile(parameter == "up" and Position(fromPosition.x, fromPosition.y, fromPosition.z - 1) or toPosition)
|
|
if not tile or not tile:getGround() and not tile:hasFlag(parameter == "up" and TILESTATE_IMMOVABLEBLOCKSOLID or TILESTATE_BLOCKSOLID) then
|
|
tile = Tile(toPosition.x, toPosition.y, toPosition.z + (parameter == "up" and -1 or 1))
|
|
|
|
if tile and tile:getGround() and not tile:hasFlag(bit.bor(TILESTATE_IMMOVABLEBLOCKSOLID, TILESTATE_FLOORCHANGE)) then
|
|
return creature:move(tile, bit.bor(FLAG_IGNOREBLOCKITEM, FLAG_IGNOREBLOCKCREATURE))
|
|
end
|
|
end
|
|
end
|
|
return RETURNVALUE_NOTPOSSIBLE
|
|
end
|
|
|
|
local spell = Spell("instant")
|
|
|
|
function spell.onCastSpell(creature, variant)
|
|
local returnValue = levitate(creature, variant:getString():lower())
|
|
if returnValue ~= RETURNVALUE_NOERROR then
|
|
creature:sendCancelMessage(returnValue)
|
|
creature:getPosition():sendMagicEffect(CONST_ME_POFF)
|
|
return false
|
|
end
|
|
|
|
creature:getPosition():sendMagicEffect(CONST_ME_TELEPORT)
|
|
return true
|
|
end
|
|
|
|
spell:name("Levitate")
|
|
spell:words("exani hur")
|
|
spell:group("support")
|
|
spell:vocation("druid;true", "elder druid;true", "knight;true", "elite knight;true", "paladin;true", "royal paladin;true", "sorcerer;true", "master sorcerer;true", "monk;true", "exalted monk;true")
|
|
spell:castSound(SOUND_EFFECT_TYPE_SPELL_LEVITATE)
|
|
spell:id(81)
|
|
spell:cooldown(2 * 1000)
|
|
spell:groupCooldown(2 * 1000)
|
|
spell:level(12)
|
|
spell:mana(50)
|
|
spell:hasParams(true)
|
|
spell:isAggressive(false)
|
|
spell:isPremium(true)
|
|
spell:needLearn(false)
|
|
spell:register()
|