Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
• Adicionado um "buraco" de entrada na cave de GS (estava sem). • Adicionado script para limitar total de itens por tile. • Arrumado NPC Riona que estava com dois parâmetros de shop_buyable. • Ajustado script do bank.lua
- Loading branch information
1 parent
b37fce5
commit 6003ce1
Showing
4 changed files
with
38 additions
and
22 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
local maxItemsPerTile = 30 | ||
|
||
local maxItemsPerTile_itemMoved = EventCallback | ||
|
||
maxItemsPerTile_itemMoved.onMoveItem = function(self, item, count, fromPosition, toPosition, fromCylinder, toCylinder) | ||
|
||
local tile = Tile(toPosition) | ||
if tile then | ||
if tile:getDownItemCount() >= maxItemsPerTile then | ||
return false | ||
end | ||
end | ||
|
||
return true | ||
end | ||
|
||
maxItemsPerTile_itemMoved:register(-1) |
Binary file not shown.