Game
Game.createContainer
-- Create a new virtual container which is a book that cannot be moved or picked up
local container = Game.createContainer(12396, 6)
-- Add 100 crystal coins to the new container
container:addItem(2160, 100)
-- Get player's backpack
local backpack = player:getSlotItem(CONST_SLOT_BACKPACK)
if backpack then
-- Add the newly created book-container to player's backpack (which contains 100 crystal coins)
backpack:addItemEx(container, true, INDEX_WHEREEVER, FLAG_IGNORENOTMOVEABLE)
endGame.createItem
Game.createMonster
Last updated