Skip to content

Commit

Permalink
Merge branch 'main' into addPaymentInWar
Browse files Browse the repository at this point in the history
  • Loading branch information
dudantas authored Mar 1, 2024
2 parents 1ec3bc4 + 025f3fe commit aaf5256
Show file tree
Hide file tree
Showing 39 changed files with 164 additions and 362 deletions.
69 changes: 0 additions & 69 deletions data-canary/scripts/actions/other/cask_kegs.lua

This file was deleted.

45 changes: 0 additions & 45 deletions data-canary/scripts/actions/other/costume_bag.lua

This file was deleted.

18 changes: 0 additions & 18 deletions data-canary/scripts/actions/other/fireworks_rocket.lua

This file was deleted.

17 changes: 0 additions & 17 deletions data-canary/scripts/actions/other/scroll_of_ascension.lua

This file was deleted.

19 changes: 0 additions & 19 deletions data-canary/scripts/movements/snow.lua

This file was deleted.

33 changes: 0 additions & 33 deletions data-canary/scripts/movements/swimming.lua

This file was deleted.

2 changes: 1 addition & 1 deletion data-otservbr-global/lib/others/vip_system.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ local config = {
activationMessageType = MESSAGE_EVENT_ADVANCE,

expirationMessage = "Your VIP days ran out.",
expirationMessageType = MESSAGE_ADMINISTRADOR,
expirationMessageType = MESSAGE_ADMINISTRATOR,

outfits = {},
mounts = {},
Expand Down
76 changes: 0 additions & 76 deletions data-otservbr-global/scripts/actions/other/cask_kegs.lua

This file was deleted.

This file was deleted.

1 change: 1 addition & 0 deletions data/global.lua
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ SCARLETT_MAY_DIE = 0

ropeSpots = { 386, 421, 386, 7762, 12202, 12936, 14238, 17238, 23363, 21965, 21966, 21967, 21968 }
specialRopeSpots = { 12935 }
swimmingTiles = { 629, 630, 631, 632, 633, 634, 4809, 4810, 4811, 4812, 4813, 4814 }

-- Global tables for systems
if not _G.GlobalBosses then
Expand Down
4 changes: 0 additions & 4 deletions data/libs/functions/creature.lua
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,6 @@ function Creature:setMonsterOutfit(monster, time)
return false
end

if self:isPlayer() and not (self:hasFlag(PlayerFlag_CanIllusionAll) or monsterType:isIllusionable()) then
return false
end

local condition = Condition(CONDITION_OUTFIT)
condition:setOutfit(monsterType:getOutfit())
condition:setTicks(time)
Expand Down
22 changes: 12 additions & 10 deletions data/modules/scripts/gamestore/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1631,20 +1631,22 @@ function GameStore.processHouseRelatedPurchase(player, offer)
local inbox = player:getStoreInbox()
if inbox then
for _, itemId in ipairs(itemIds) do
local decoKit = inbox:addItem(ITEM_DECORATION_KIT, 1)
if decoKit then
decoKit:setAttribute(ITEM_ATTRIBUTE_DESCRIPTION, "You bought this item in the Store.\nUnwrap it in your own house to create a <" .. ItemType(itemId):getName() .. ">.")
decoKit:setCustomAttribute("unWrapId", itemId)
if isCaskItem(itemId) then
decoKit:setAttribute(ITEM_ATTRIBUTE_DATE, offer.count)
end
for i = 1, offer.count do
local decoKit = inbox:addItem(ITEM_DECORATION_KIT, 1)
if decoKit then
decoKit:setAttribute(ITEM_ATTRIBUTE_DESCRIPTION, "You bought this item in the Store.\nUnwrap it in your own house to create a <" .. ItemType(itemId):getName() .. ">.")
decoKit:setCustomAttribute("unWrapId", itemId)
if isCaskItem(itemId) then
decoKit:setAttribute(ITEM_ATTRIBUTE_DATE, offer.count)
end

if offer.movable ~= true then
decoKit:setAttribute(ITEM_ATTRIBUTE_STORE, systemTime())
if offer.movable ~= true then
decoKit:setAttribute(ITEM_ATTRIBUTE_STORE, systemTime())
end
end
end
player:sendUpdateContainer(inbox)
end
player:sendUpdateContainer(inbox)
end
end

Expand Down
Loading

0 comments on commit aaf5256

Please sign in to comment.