Skip to content

Commit

Permalink
Merge branch 'main' into speed-beats
Browse files Browse the repository at this point in the history
  • Loading branch information
beats-dh authored Mar 6, 2023
2 parents 97b3ba0 + 7e6f3c3 commit cd8470e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ function hotCuisineCook2.onUse(player, item, fromPosition, target, toPosition, i
return true
end

hotCuisineCook2:id(12497)
hotCuisineCook2:register()
hotCuisineCook2:id(11541)
hotCuisineCook2:register()
15 changes: 6 additions & 9 deletions data-otservbr-global/scripts/quests/giant_smithhammer/lever.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,12 @@ local lever = Action()
function lever.onUse(player, item, fromPosition, target, toPosition, isHotkey)
local position = { x = 32780 , y = 32231 , z = 8}
local tile = Tile(Position(position))
if item.itemid == 2772 then
if tile:getItemById(389) then
tile:getItemById(389):remove()
item:transform(2773)
else
Game.createItem(387, 1, position)
end
else
Game.createItem(387, 1, position)

if item.itemid == 2772 and tile:getItemById(389) then
tile:getItemById(389):remove()
item:transform(2773)
elseif item.itemid == 2773 and not tile:getItemById(389) then
Game.createItem(389, 1, position)
item:transform(2772)
end
return true
Expand Down
2 changes: 1 addition & 1 deletion src/creatures/players/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5686,7 +5686,7 @@ void Player::stowItem(Item* item, uint32_t count, bool allItems) {
if (allItems) {
// Stow player backpack
if (auto inventoryItem = getInventoryItem(CONST_SLOT_BACKPACK);
!item->isInsideDepot(true)) {
inventoryItem && !item->isInsideDepot(true)) {
sendStowItems(*item, *inventoryItem, itemDict);
}

Expand Down

0 comments on commit cd8470e

Please sign in to comment.