Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---------------------------------------------
- -- Цвета
- ---------------------------------------------
- -- "ff9d9d9d", --серое
- -- "ffffffff", --белое
- -- "cff1eff00", --зеленое
- -- "cff0070dd", -- синька
- -- "cffa335ee", --фиолетовое
- -- "FF8000", -- оранжевое
- ---------------------------------------------
- -- Макросами
- ---------------------------------------------
- -- Для удаления зелёного шмота:
- /run for bag = 0,4,1 do for slot = 1, 32, 1 do local name = GetContainerItemLink(bag,slot); if name and string.find(name,"ff1eff00") then PickupContainerItem(bag,slot); DeleteCursorItem(); end; end; end
- -- Для продажи зелёного шмота:
- /run for bag = 0,4,1 do for slot = 1, GetContainerNumSlots(bag), 1 do local name = GetContainerItemLink(bag,slot); if name and string.find(name,"ff1eff00") then UseContainerItem(bag,slot) end; end;end
- ---------------------------------------------
- --Функциями
- ---------------------------------------------
- --Удалить
- for bag = 0, 4, 1 do
- for slot = 1, 32, 1 do
- local name = GetContainerItemLink(bag, slot);
- if name and string.find(name, "цвет или имя") then
- PickupContainerItem(bag, slot);
- DeleteCursorItem();
- end;
- end;
- end
- --Продать
- for bag = 0, 4, 1 do
- for slot = 1, GetContainerNumSlots(bag), 1 do
- local name = GetContainerItemLink(bag, slot);
- if name and string.find(name, "цвет или имя") then
- UseContainerItem(bag, slot)
- end;
- end;
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement