Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[podmieniasz cala funkcje az do end end]]--
- function Close_Casino(force)
- if Casino_Started or force == true then
- for i = 0, Container_Index.Locker:ItemCount() - 1 do
- local Spot = Container_Index.Locker:GetItemData(i)
- if table.contains(_Decoration_Items, Item.GetName(Spot.id)) or Spot.id == 28915 then
- Container_Index.Locker:MoveItemToContainer(i, Container_Index.Depot:Index(), Container_Index.Depot:ItemCapacity() - 1, 50)
- wait(Self.Ping() + 350)
- for j = 1, #_Decoration_Items do
- if 0 < Container_Index.Locker:CountItemsOfID(Item.GetID(_Decoration_Items[j]:lower())) then
- Close_Casino()
- end
- end
- end
- end
- for i = 0, Container_Index.Locker:ItemCount() - 1 do
- local Spot = Container_Index.Locker:GetItemData(i)
- while table.contains(Dice_IDs, Spot.id) do
- Container_Index.Locker:MoveItemToContainer(i, Container_Index.Depot:Index(), Container_Index.Depot:ItemCapacity() - 1, Spot.count)
- wait(Self.Ping() + 100)
- break
- end
- end
- if _Casino_Depot == true then
- local TapestryID = Item.GetID(_Decoration_Tapestry:lower())
- if Map.GetTopMoveItem(Positions.Depot_Pos.x - 1, Positions.Depot_Pos.y, Positions.Depot_Pos.z).id == TapestryID then
- Map.PickupItem(Positions.Depot_Pos.x - 1, Positions.Depot_Pos.y, Positions.Depot_Pos.z, Container_Index.Depot:Index(), Container_Index.Depot:ItemCapacity() - 1)
- wait(Self.Ping() + 100)
- end
- end
- for i = 0, 15 do
- closeContainer(i)
- end
- Stop_Modules()
- Casino_Started = false
- end
- end
- --[[Podmieniasz cala funkcje az do konca]]--
- function Decorations_Casino()
- for i = 1, #_Decoration_Items do
- local Decoration_ID = Item.GetID(_Decoration_Items[i]:lower())
- local Decoration_IDs = 28915
- if Container_Index.Locker:CountItemsOfID(Decoration_ID) == 0 then
- for slot = 0, Container_Index.Depot:ItemCount() - 1 do
- local slotItem = Container_Index.Depot:GetItemData(slot)
- local slotItemID = slotItem.id
- local slotItemName = Item.GetName(slotItemID)
- if Decoration_ID == slotItemID or Decoration_IDs == slotItemID then
- Container_Index.Depot:MoveItemToGround(slot, Positions.Depot_Pos.x, Positions.Depot_Pos.y, Positions.Depot_Pos.z, 50)
- wait(100)
- if Container_Index.Locker:CountItemsOfID(Decoration_ID) == 0 then
- print("Erro: Decora\231\227o n\227o colocada com sucesso, repetindo processo.")
- Decorations_Casino()
- else
- break
- end
- end
- end
- if Container_Index.Locker:CountItemsOfID(Decoration_ID) == 0 then
- print("Decoration [" .. _Decoration_Items[i] .. "] not found.")
- end
- end
- end
- for i = 1, #Dice_IDs do
- local Dice_ID = Dice_IDs[i]
- if CountItemsOfIDs(Container_Index.Locker, Dice_IDs) == 0 then
- for slot = 0, Container_Index.Depot:ItemCount() - 1 do
- local slotItem = Container_Index.Depot:GetItemData(slot)
- local slotItemID = slotItem.id
- if Dice_ID == slotItemID then
- Container_Index.Depot:MoveItemToGround(slot, Positions.Depot_Pos.x, Positions.Depot_Pos.y, Positions.Depot_Pos.z, 1)
- wait(100)
- if Container_Index.Locker:CountItemsOfID(Dice_ID) == 0 then
- print("Falha ao mover dado, tentando novamente.")
- Decorations_Casino()
- else
- break
- end
- end
- end
- end
- end
- if CountItemsOfIDs(Container_Index.Locker, Dice_IDs) == 0 then
- print("Zle otwarte kasyno otwieram jeszcze raz")
- Close_Casino()
- Stop_Casino = true
- SaveLog()
- wait(1000)
- Open_Casino:Start()
- Stop_Casino = false
- end
- if _Casino_Depot and Positions.Counter_Pos.x > Positions.Casino_Pos.x then
- for i = 0, Container_Index.Depot:ItemCount() - 1 do
- local Spot = Container_Index.Depot:GetItemData(i)
- while Spot.id == Item.GetID(_Decoration_Tapestry) do
- wait(Self.Ping() + 350)
- Container_Index.Depot:MoveItemToGround(i, Positions.Depot_Pos.x - 1, Positions.Depot_Pos.y, Positions.Depot_Pos.z, 1)
- break
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement