-
-
Notifications
You must be signed in to change notification settings - Fork 647
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feature/checks-and-improves
- Loading branch information
Showing
412 changed files
with
655 additions
and
583 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 was deleted.
Oops, something went wrong.
87 changes: 0 additions & 87 deletions
87
data-otservbr-global/scripts/actions/other/hireling_food.lua
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
data-otservbr-global/scripts/creaturescripts/monster/wyda.lua
This file was deleted.
Oops, something went wrong.
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,69 @@ | ||
local hasteCondition = Condition(CONDITION_HASTE) | ||
hasteCondition:setParameter(CONDITION_PARAM_TICKS, 60 * 60 * 1000) | ||
hasteCondition:setParameter(CONDITION_PARAM_SPEED, 80) | ||
|
||
local fishingCondition = Condition(CONDITION_ATTRIBUTES) | ||
fishingCondition:setParameter(CONDITION_PARAM_TICKS, 60 * 60 * 1000) | ||
fishingCondition:setParameter(CONDITION_PARAM_SKILL_FISHING, 30) | ||
|
||
local magicPointsCondition = Condition(CONDITION_ATTRIBUTES) | ||
magicPointsCondition:setParameter(CONDITION_PARAM_TICKS, 60 * 60 * 1000) | ||
magicPointsCondition:setParameter(CONDITION_PARAM_STAT_MAGICPOINTS, 3) | ||
|
||
local meleeCondition = Condition(CONDITION_ATTRIBUTES) | ||
meleeCondition:setParameter(CONDITION_PARAM_TICKS, 60 * 60 * 1000) | ||
meleeCondition:setParameter(CONDITION_PARAM_SKILL_MELEE, 3) | ||
|
||
local shieldCondition = Condition(CONDITION_ATTRIBUTES) | ||
shieldCondition:setParameter(CONDITION_PARAM_TICKS, 60 * 60 * 1000) | ||
shieldCondition:setParameter(CONDITION_PARAM_SKILL_SHIELD, 7) | ||
|
||
local distanceCondition = Condition(CONDITION_ATTRIBUTES) | ||
distanceCondition:setParameter(CONDITION_PARAM_TICKS, 60 * 60 * 1000) | ||
distanceCondition:setParameter(CONDITION_PARAM_SKILL_DISTANCE, 7) | ||
|
||
local gourmetDishes = { | ||
[29408] = { condition = shieldCondition, message = "Chomp." }, | ||
[29409] = { condition = distanceCondition, message = "Yummm." }, | ||
[29410] = { condition = magicPointsCondition, message = "Munch." }, | ||
[29411] = { condition = meleeCondition, message = "Munch." }, | ||
[29412] = { condition = hasteCondition, message = "Yummm." }, | ||
[29413] = { condition = fishingCondition, message = "Mmmmm." }, | ||
[29414] = { healing = true, message = "Munch." }, | ||
[29415] = { manaRestore = true, message = "Chomp." }, | ||
[29416] = { message = "Blurg." }, | ||
} | ||
|
||
local hirelingFoods = Action() | ||
|
||
function hirelingFoods.onUse(player, item, fromPosition, target, toPosition, isHotkey) | ||
local dish = gourmetDishes[item.itemid] | ||
if not dish then | ||
return true | ||
end | ||
|
||
if player:hasExhaustion("hireling-foods-cooldown") then | ||
player:sendCancelMessage("You're still too full to eat any gourmet dishes for a while.") | ||
return true | ||
end | ||
|
||
if dish.condition then | ||
player:addCondition(dish.condition) | ||
elseif dish.healing then | ||
player:addHealth(player:getMaxHealth() * 0.3) | ||
elseif dish.manaRestore then | ||
player:addMana(player:getMaxMana() * 0.3) | ||
end | ||
|
||
player:say(dish.message, TALKTYPE_MONSTER_SAY) | ||
player:setExhaustion("hireling-foods-cooldown", 10 * 60) | ||
|
||
item:remove(1) | ||
return true | ||
end | ||
|
||
for index, value in pairs(gourmetDishes) do | ||
hirelingFoods:id(index) | ||
end | ||
|
||
hirelingFoods:register() |
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
12 changes: 12 additions & 0 deletions
12
data/scripts/creaturescripts/monster/giant_spider_wyda_death.lua
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,12 @@ | ||
local creatureevent = CreatureEvent("GiantSpiderWyda") | ||
|
||
function creatureevent.onDeath(creature, corpse, killer, mostDamageKiller, lastHitUnjustified, mostDamageUnjustified) | ||
creature:say("It seems this was just an illusion.", TALKTYPE_MONSTER_SAY) | ||
|
||
if mostDamageKiller:isPlayer() then | ||
mostDamageKiller:addAchievement("Someone's Bored") | ||
end | ||
return true | ||
end | ||
|
||
creatureevent:register() |
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
File renamed without changes.
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,6 +1,6 @@ | ||
/** | ||
* Canary - A free and open-source MMORPG server emulator | ||
* Copyright (©) 2019-2022 OpenTibiaBR <[email protected]> | ||
* Copyright (©) 2019-2024 OpenTibiaBR <[email protected]> | ||
* Repository: https://github.com/opentibiabr/canary | ||
* License: https://github.com/opentibiabr/canary/blob/main/LICENSE | ||
* Contributors: https://github.com/opentibiabr/canary/graphs/contributors | ||
|
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,6 +1,6 @@ | ||
/** | ||
* Canary - A free and open-source MMORPG server emulator | ||
* Copyright (©) 2019-2022 OpenTibiaBR <[email protected]> | ||
* Copyright (©) 2019-2024 OpenTibiaBR <[email protected]> | ||
* Repository: https://github.com/opentibiabr/canary | ||
* License: https://github.com/opentibiabr/canary/blob/main/LICENSE | ||
* Contributors: https://github.com/opentibiabr/canary/graphs/contributors | ||
|
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,6 +1,6 @@ | ||
/** | ||
* Canary - A free and open-source MMORPG server emulator | ||
* Copyright (©) 2019-2022 OpenTibiaBR <[email protected]> | ||
* Copyright (©) 2019-2024 OpenTibiaBR <[email protected]> | ||
* Repository: https://github.com/opentibiabr/canary | ||
* License: https://github.com/opentibiabr/canary/blob/main/LICENSE | ||
* Contributors: https://github.com/opentibiabr/canary/graphs/contributors | ||
|
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,6 +1,6 @@ | ||
/** | ||
* Canary - A free and open-source MMORPG server emulator | ||
* Copyright (©) 2019-2022 OpenTibiaBR <[email protected]> | ||
* Copyright (©) 2019-2024 OpenTibiaBR <[email protected]> | ||
* Repository: https://github.com/opentibiabr/canary | ||
* License: https://github.com/opentibiabr/canary/blob/main/LICENSE | ||
* Contributors: https://github.com/opentibiabr/canary/graphs/contributors | ||
|
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,6 +1,6 @@ | ||
/** | ||
* Canary - A free and open-source MMORPG server emulator | ||
* Copyright (©) 2019-2022 OpenTibiaBR <[email protected]> | ||
* Copyright (©) 2019-2024 OpenTibiaBR <[email protected]> | ||
* Repository: https://github.com/opentibiabr/canary | ||
* License: https://github.com/opentibiabr/canary/blob/main/LICENSE | ||
* Contributors: https://github.com/opentibiabr/canary/graphs/contributors | ||
|
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,6 +1,6 @@ | ||
/** | ||
* Canary - A free and open-source MMORPG server emulator | ||
* Copyright (©) 2019-2022 OpenTibiaBR <[email protected]> | ||
* Copyright (©) 2019-2024 OpenTibiaBR <[email protected]> | ||
* Repository: https://github.com/opentibiabr/canary | ||
* License: https://github.com/opentibiabr/canary/blob/main/LICENSE | ||
* Contributors: https://github.com/opentibiabr/canary/graphs/contributors | ||
|
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,6 +1,6 @@ | ||
/** | ||
* Canary - A free and open-source MMORPG server emulator | ||
* Copyright (©) 2019-2022 OpenTibiaBR <[email protected]> | ||
* Copyright (©) 2019-2024 OpenTibiaBR <[email protected]> | ||
* Repository: https://github.com/opentibiabr/canary | ||
* License: https://github.com/opentibiabr/canary/blob/main/LICENSE | ||
* Contributors: https://github.com/opentibiabr/canary/graphs/contributors | ||
|
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,6 +1,6 @@ | ||
/** | ||
* Canary - A free and open-source MMORPG server emulator | ||
* Copyright (©) 2019-2022 OpenTibiaBR <[email protected]> | ||
* Copyright (©) 2019-2024 OpenTibiaBR <[email protected]> | ||
* Repository: https://github.com/opentibiabr/canary | ||
* License: https://github.com/opentibiabr/canary/blob/main/LICENSE | ||
* Contributors: https://github.com/opentibiabr/canary/graphs/contributors | ||
|
Oops, something went wrong.