rday.itemIdThatWillNotDrop = {
4020005, -- 사파이어의 원석
4010006, -- 금의 원석
4010004, -- 은의 원석
4000017, -- 돼지의 머리
4001004 -- '돼지와 함께 춤을'의 땅문서
}
-- Check empty inventory slot
rday.isFullInvenSlot = function(slot)
local cd = _UserService.LocalPlayer.WsCharacterData
local slotCount = 0
for i = 1, cd.ItemMaxSlot[slot], 1 do
local item = cd:GetItem(slot, i)
if item ~= nil then
slotCount = slotCount + 1
end
end
if slotCount >= cd.ItemMaxSlot[slot] then
return true
else
return false
end
end
-- Filtering inventory item when you drop it
rday.filteringInven = function(table, value)
for _, v in ipairs(table) do
if v == value then
return false
end
end
return true
end
-- Auto drop function
rday.checkInvenFunc = function(self)
if rday.isFullInvenSlot(4) then
if rday.is_full then
return
end
rday.is_full = true
rday.is_drop = true
rday.pick_drop = true
rday.teleported_to_drop = false
local cd = _UserService.LocalPlayer.WsCharacterData
for i = 1, cd.ItemMaxSlot[4], 1 do
local item = cd:GetItem(4, i)
local itemId = item.ItemId
if (rday.filteringInven(rday.itemIdThatWillNotDrop, itemId)) then
_ChatMessageLogic:Add(_ChatMessageType.Yellow, "버릴 아이템: " .. _StringMan:GetItemName(itemId).. ", 갯수: " ..item.Number)
_UserService.LocalPlayer.MovementComponent:SetWorldPosition(rday.safe_pos + Vector2(0.4, 0))
_InventoryLogic:TryDropItem(cd, itemId // 1000000, _InventoryLogic:FindItemPos(cd, itemId), item.Number)
wait(1)
end
end
else
rday.is_full = false
rday.is_drop = false
rday.pick_drop = false
end
end
| 제목 | 작성자 | 작성일 | 조회 | |
|---|---|---|---|---|
| 공지 | 게시판 이용 안내+156 | 10-20 | 22445 | |
| 61812 | 01:30 | 122 | ||
| 61811 | 01-12 | 316 | ||
| 61810 | 01-12 | 328 | ||
| 61809 | 01-11 | 583 | ||
| 61808 | 01-10 | 753 | ||
| 61807 | 01-10 | 837 | ||
| 61806 | 01-09 | 800 | ||
| 61805 | 01-08 | 1071 | ||
| 61804 | 01-07 | 1084 | ||
| 61803 | 01-07 | 1214 | ||
| 61802 | 01-06 | 1250 | ||
| 61801 | 01-06 | 1204 | ||
| 61800 | 01-05 | 1484 | ||
| 61799 | 01-05 | 1414 | ||
| 61798 | 01-05 | 1443 | ||
| 61797 | 01-05 | 1999 | ||
| 61796 | 01-04 | 1502 | ||
| 61795 | 01-04 | 1567 | ||
| 61794 | 01-03 | 1777 |
댓글3
왜이리 더럽게짯노
이정도면 그래도 보기 불편한 정도는 아니지 않을까요.. ㅠㅠ
너무어지럽다 릐기..