This file contains hidden or 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
| # delete what is selected | |
| /run DeleteCursorItem(); | |
| # Delete all gray items in bag | |
| /run local i,r=0;for b=0,4 do for s=1,GetContainerNumSlots(b) do ClearCursor();i={GetContainerItemInfo(b,s)};r=i[7];if r and string.find(r,"9d9d9d") then PickupContainerItem(b,s);DeleteCursorItem() end end end | |
| # add selected item to whitelist | |
| /run if not _G['wlist'] then _G['wlist']={} end local t,id,l=GetCursorInfo();if t=='item' then _G['wlist'][id]=true end ClearCursor() | |
| # remove selected item from whitelist |
This file contains hidden or 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
| import pyaudio | |
| import wave | |
| FORMAT = pyaudio.paInt16 | |
| CHANNELS = 2 | |
| RATE = 44100 | |
| CHUNK = 1024 | |
| RECORD_SECONDS = 5 | |
| WAVE_OUTPUT_FILENAME = "file.wav" | |