Skip to content

Instantly share code, notes, and snippets.

@Ruin0x11
Created December 12, 2021 23:55
Show Gist options
  • Save Ruin0x11/95cd9d41b97f04fb5b1a250c3972b719 to your computer and use it in GitHub Desktop.
Save Ruin0x11/95cd9d41b97f04fb5b1a250c3972b719 to your computer and use it in GitHub Desktop.
Elona+ CGX item frequency tables
secret experience of Kumiromi 0.00% (2) :.......................................
lightsabre 0.00% (3) :.......................................
book of resurrection 0.00% (4) :.......................................
guillotine 0.00% (6) :.......................................
iron maiden 0.00% (6) :.......................................
livestock feed 0.00% (6) :.......................................
mandrake salad 0.00% (6) :.......................................
disinfectant 0.00% (11) :.......................................
vomit 0.00% (11) :.......................................
small medal 0.00% (11) :.......................................
sand bag 0.00% (11) :.......................................
skill ticket 0.01% (21) ;.......................................
deck 0.01% (21) ;.......................................
artifact seed 0.01% (21) ;.......................................
town book 0.01% (21) ;.......................................
soup of wonderland 0.01% (21) ;.......................................
summoning crystal 0.01% (21) ;.......................................
rare treasure ball 0.01% (26) ;.......................................
material kit 0.01% (26) ;.......................................
unicorn horn 0.01% (41) =.......................................
tofu 0.02% (51) x.......................................
small gamble chest 0.02% (51) x.......................................
Blank Business Card 0.02% (51) x.......................................
house board 0.02% (51) x.......................................
textbook 0.02% (51) x.......................................
fried tofu 0.02% (51) x.......................................
natto 0.02% (51) x.......................................
scroll of incognito 0.02% (71) $.......................................
whistle 0.02% (76) &.......................................
rice 0.03% (101) &;......................................
coffee beans 0.03% (101) &;......................................
sand castle 0.03% (101) &;......................................
trash can 0.03% (101) &;......................................
treasure ball 0.03% (101) &;......................................
butter 0.03% (101) &;......................................
bannou mugi 0.03% (101) &;......................................
mini snow man 0.03% (101) &;......................................
potion of cure corruption 0.03% (101) &;......................................
snow barrel 0.03% (101) &;......................................
gift 0.03% (101) &;......................................
figurine of warrior 0.03% (101) &;......................................
camera 0.03% (101) &;......................................
fruit tree 0.03% (101) &;......................................
figurine of sword 0.03% (101) &;......................................
devil fragment 0.03% (101) &;......................................
snow man 0.03% (101) &;......................................
crumbled grave 0.03% (101) &;......................................
essential oil 0.03% (101) &;......................................
tea leaf 0.03% (101) &;......................................
soybean 0.03% (101) &;......................................
bejeweled chest 0.03% (101) &;......................................
handful of snow 0.03% (101) &;......................................
junk 0.03% (101) &;......................................
armor statue 0.03% (101) &;......................................
collapsed grave 0.03% (101) &;......................................
mochi 0.05% (151) &&......................................
art 0.05% (151) &&......................................
yogurt 0.05% (151) &&......................................
blood 0.06% (201) &&x.....................................
potion of salt solution 0.06% (201) &&x.....................................
cola 0.06% (201) &&x.....................................
bread display 0.06% (201) &&x.....................................
magic circle 0.06% (201) &&x.....................................
piano 0.06% (201) &&x.....................................
writing desk 0.06% (201) &&x.....................................
eastern bed 0.06% (201) &&x.....................................
sacred altar 0.06% (201) &&x.....................................
food processor 0.06% (201) &&x.....................................
green tea 0.06% (201) &&x.....................................
cheap table 0.06% (201) &&x.....................................
cheese 0.06% (201) &&x.....................................
variety of tools 0.06% (201) &&x.....................................
palm tree 0.06% (201) &&x.....................................
decorated window 0.06% (201) &&x.....................................
kiseru 0.06% (201) &&x.....................................
rice ball 0.06% (201) &&x.....................................
soft bed 0.06% (201) &&x.....................................
playback disc 0.06% (201) &&x.....................................
black tea 0.06% (201) &&x.....................................
chewing gum 0.06% (201) &&x.....................................
shit 0.08% (251) &&&;....................................
large dish 0.08% (251) &&&;....................................
decorated clothing 0.08% (251) &&&;....................................
foxtail grass 0.08% (251) &&&;....................................
decorated armor 0.08% (251) &&&;....................................
raw diamond ore 0.08% (251) &&&;....................................
candle 0.08% (251) &&&;....................................
egg 0.09% (301) &&&&....................................
magaqua 0.09% (301) &&&&....................................
duel glove 0.09% (301) &&&&....................................
giant cactus 0.09% (301) &&&&....................................
kitty bank 0.09% (301) &&&&....................................
sack of sugar 0.09% (301) &&&&....................................
fireproof liquid 0.09% (301) &&&&....................................
acidproof liquid 0.09% (301) &&&&....................................
tobacco pipe 0.09% (301) &&&&....................................
bottle of salt 0.09% (301) &&&&....................................
scroll of name 0.09% (301) &&&&....................................
bottle of milk 0.09% (301) &&&&....................................
bottle of soy sauce 0.09% (301) &&&&....................................
bottle of pepper 0.09% (301) &&&&....................................
scroll of return 0.09% (301) &&&&....................................
filtration bottle 0.09% (301) &&&&....................................
barley tea 0.09% (301) &&&&....................................
alraunia 0.10% (321) &&&&;...................................
spenseweed 0.10% (321) &&&&;...................................
morgia 0.10% (321) &&&&;...................................
mareilon 0.10% (321) &&&&;...................................
chain saw 0.13% (401) &&&&&;..................................
rock 0.13% (401) &&&&&;..................................
romias 0.13% (401) &&&&&;..................................
hamaki 0.13% (401) &&&&&;..................................
sniper rifle 0.13% (401) &&&&&;..................................
comfortable table 0.13% (401) &&&&&;..................................
little ball 0.13% (401) &&&&&;..................................
raw emerald ore 0.13% (401) &&&&&;..................................
laser gun 0.13% (401) &&&&&;..................................
ballista 0.13% (401) &&&&&;..................................
bottle of water 0.13% (401) &&&&&;..................................
fortune cookie 0.13% (401) &&&&&;..................................
nice window 0.13% (401) &&&&&;..................................
insight lens 0.13% (401) &&&&&;..................................
drill 0.13% (401) &&&&&;..................................
grenade 0.13% (401) &&&&&;..................................
spellbook of make door 0.13% (401) &&&&&;..................................
shakujo 0.13% (401) &&&&&;..................................
well kept armor 0.13% (401) &&&&&;..................................
monster ball 0.13% (401) &&&&&;..................................
skin 0.13% (401) &&&&&;..................................
shuriken 0.13% (401) &&&&&;..................................
chest 0.16% (501) &&&&&&x.................................
nunchaku 0.16% (501) &&&&&&x.................................
raw rubynus ore 0.16% (501) &&&&&&x.................................
rack of accessories 0.16% (501) &&&&&&x.................................
lance 0.16% (501) &&&&&&x.................................
skull bow 0.16% (501) &&&&&&x.................................
noble toy 0.16% (501) &&&&&&x.................................
cigarette 0.16% (501) &&&&&&x.................................
coldproof blanket 0.16% (501) &&&&&&x.................................
dead tree 0.16% (501) &&&&&&x.................................
blank disc 0.16% (501) &&&&&&x.................................
nine god sign 0.16% (501) &&&&&&x.................................
neat rack 0.16% (501) &&&&&&x.................................
window 0.16% (501) &&&&&&x.................................
scissors 0.16% (501) &&&&&&x.................................
leash 0.16% (501) &&&&&&x.................................
rack of goods 0.16% (501) &&&&&&x.................................
anemone 0.16% (501) &&&&&&x.................................
wide chair 0.16% (501) &&&&&&x.................................
green plant 0.16% (501) &&&&&&x.................................
magaice 0.16% (501) &&&&&&x.................................
herb seed 0.16% (501) &&&&&&x.................................
pot for fusion 0.16% (501) &&&&&&x.................................
repeating bow 0.16% (501) &&&&&&x.................................
clean bed 0.16% (501) &&&&&&x.................................
magatama 0.16% (501) &&&&&&x.................................
scroll of escape 0.16% (501) &&&&&&x.................................
rod of make door 0.16% (501) &&&&&&x.................................
simple shelf 0.16% (501) &&&&&&x.................................
harmonica 0.16% (501) &&&&&&x.................................
fireproof blanket 0.16% (501) &&&&&&x.................................
gun pair 0.16% (501) &&&&&&x.................................
blade bow 0.16% (501) &&&&&&x.................................
star hammer 0.16% (501) &&&&&&x.................................
ash tree 0.16% (501) &&&&&&x.................................
gasoline 0.16% (501) &&&&&&x.................................
safe 0.16% (501) &&&&&&x.................................
gold bar 0.16% (501) &&&&&&x.................................
simple rack 0.16% (501) &&&&&&x.................................
chip 0.16% (501) &&&&&&x.................................
square window 0.19% (601) &&&&&&&&................................
whisky 0.19% (601) &&&&&&&&................................
spellbook of detect objects 0.19% (601) &&&&&&&&................................
bronze coin 0.19% (601) &&&&&&&&................................
eye 0.19% (601) &&&&&&&&................................
old shelf 0.19% (601) &&&&&&&&................................
christmas tree 0.19% (601) &&&&&&&&................................
old bookshelf 0.19% (601) &&&&&&&&................................
cheap bed 0.19% (601) &&&&&&&&................................
chainsickle 0.22% (701) &&&&&&&&&;..............................
bone scythe 0.22% (701) &&&&&&&&&;..............................
coffin 0.22% (701) &&&&&&&&&;..............................
crossfire 0.22% (701) &&&&&&&&&;..............................
engagement ring 0.22% (701) &&&&&&&&&;..............................
potion of speed 0.22% (701) &&&&&&&&&;..............................
spellbook of weakness 0.22% (701) &&&&&&&&&;..............................
shot gun 0.22% (701) &&&&&&&&&;..............................
kitchen knife 0.22% (701) &&&&&&&&&;..............................
cheap rack 0.25% (801) &&&&&&&&&&x.............................
crimberry 0.25% (801) &&&&&&&&&&x.............................
unknown seed 0.25% (801) &&&&&&&&&&x.............................
spellbook of web 0.25% (801) &&&&&&&&&&x.............................
grave 0.25% (801) &&&&&&&&&&x.............................
heart 0.25% (801) &&&&&&&&&&x.............................
engagement amulet 0.25% (801) &&&&&&&&&&x.............................
empty bottle 0.25% (801) &&&&&&&&&&x.............................
tamer's whip 0.25% (801) &&&&&&&&&&x.............................
cedar tree 0.25% (801) &&&&&&&&&&x.............................
statue of Creator 0.25% (801) &&&&&&&&&&x.............................
wild flower 0.25% (801) &&&&&&&&&&x.............................
0.25% (801) &&&&&&&&&&x.............................
claw 0.25% (801) &&&&&&&&&&x.............................
tobacco 0.25% (801) &&&&&&&&&&x.............................
inner tube 0.31% (1001) &&&&&&&&&&&&&;..........................
tomahawk 0.31% (1001) &&&&&&&&&&&&&;..........................
scroll of magical map 0.31% (1001) &&&&&&&&&&&&&;..........................
lemon 0.31% (1001) &&&&&&&&&&&&&;..........................
shoes 0.31% (1001) &&&&&&&&&&&&&;..........................
mana crystal 0.31% (1001) &&&&&&&&&&&&&;..........................
chestnut 0.31% (1001) &&&&&&&&&&&&&;..........................
ration 0.31% (1001) &&&&&&&&&&&&&;..........................
long staff 0.31% (1001) &&&&&&&&&&&&&;..........................
spear 0.31% (1001) &&&&&&&&&&&&&;..........................
small shield 0.31% (1001) &&&&&&&&&&&&&;..........................
square chair 0.31% (1001) &&&&&&&&&&&&&;..........................
canvas 0.31% (1001) &&&&&&&&&&&&&;..........................
bundle of bows 0.31% (1001) &&&&&&&&&&&&&;..........................
dead fish 0.31% (1001) &&&&&&&&&&&&&;..........................
tangerine 0.31% (1001) &&&&&&&&&&&&&;..........................
junk stone 0.31% (1001) &&&&&&&&&&&&&;..........................
scarecrow 0.31% (1001) &&&&&&&&&&&&&;..........................
scroll of inferior material 0.31% (1001) &&&&&&&&&&&&&;..........................
broom 0.31% (1001) &&&&&&&&&&&&&;..........................
scroll of detect objects 0.31% (1001) &&&&&&&&&&&&&;..........................
fire wood 0.31% (1001) &&&&&&&&&&&&&;..........................
melon 0.31% (1001) &&&&&&&&&&&&&;..........................
marimo 0.31% (1001) &&&&&&&&&&&&&;..........................
potion of hero 0.31% (1001) &&&&&&&&&&&&&;..........................
worthless fake gold bar 0.31% (1001) &&&&&&&&&&&&&;..........................
lot of books 0.31% (1001) &&&&&&&&&&&&&;..........................
bottle of whisky 0.31% (1001) &&&&&&&&&&&&&;..........................
tight rope 0.31% (1001) &&&&&&&&&&&&&;..........................
pot 0.31% (1001) &&&&&&&&&&&&&;..........................
empty bowl 0.31% (1001) &&&&&&&&&&&&&;..........................
basket 0.31% (1001) &&&&&&&&&&&&&;..........................
lantern 0.31% (1001) &&&&&&&&&&&&&;..........................
carrot 0.31% (1001) &&&&&&&&&&&&&;..........................
ore piece 0.31% (1001) &&&&&&&&&&&&&;..........................
long bow 0.31% (1001) &&&&&&&&&&&&&;..........................
potion of silence 0.31% (1001) &&&&&&&&&&&&&;..........................
dish 0.31% (1001) &&&&&&&&&&&&&;..........................
potion of slow 0.31% (1001) &&&&&&&&&&&&&;..........................
flag 0.31% (1001) &&&&&&&&&&&&&;..........................
squash 0.31% (1001) &&&&&&&&&&&&&;..........................
straw 0.31% (1001) &&&&&&&&&&&&&;..........................
claymore 0.31% (1001) &&&&&&&&&&&&&;..........................
katana 0.31% (1001) &&&&&&&&&&&&&;..........................
alchemy tools 0.31% (1001) &&&&&&&&&&&&&;..........................
leccho 0.31% (1001) &&&&&&&&&&&&&;..........................
trident 0.31% (1001) &&&&&&&&&&&&&;..........................
barrel 0.31% (1001) &&&&&&&&&&&&&;..........................
beaker 0.31% (1001) &&&&&&&&&&&&&;..........................
scroll of curse 0.31% (1001) &&&&&&&&&&&&&;..........................
stump 0.31% (1001) &&&&&&&&&&&&&;..........................
staff 0.31% (1001) &&&&&&&&&&&&&;..........................
crossbow 0.31% (1001) &&&&&&&&&&&&&;..........................
pineapple 0.31% (1001) &&&&&&&&&&&&&;..........................
hammer 0.31% (1001) &&&&&&&&&&&&&;..........................
signpost 0.31% (1001) &&&&&&&&&&&&&;..........................
machine gun 0.31% (1001) &&&&&&&&&&&&&;..........................
eggplant 0.31% (1001) &&&&&&&&&&&&&;..........................
portable cooking tool 0.31% (1001) &&&&&&&&&&&&&;..........................
kemuridama 0.31% (1001) &&&&&&&&&&&&&;..........................
whip 0.31% (1001) &&&&&&&&&&&&&;..........................
washings 0.31% (1001) &&&&&&&&&&&&&;..........................
light gloves 0.31% (1001) &&&&&&&&&&&&&;..........................
animal bone 0.31% (1001) &&&&&&&&&&&&&;..........................
potion of weakness 0.31% (1001) &&&&&&&&&&&&&;..........................
apple pear 0.31% (1001) &&&&&&&&&&&&&;..........................
plain bed 0.31% (1001) &&&&&&&&&&&&&;..........................
towel 0.31% (1001) &&&&&&&&&&&&&;..........................
bardish 0.31% (1001) &&&&&&&&&&&&&;..........................
scroll of oracle 0.31% (1001) &&&&&&&&&&&&&;..........................
rice barrel 0.31% (1001) &&&&&&&&&&&&&;..........................
corpse 0.31% (1001) &&&&&&&&&&&&&;..........................
bio battery 0.31% (1001) &&&&&&&&&&&&&;..........................
command flag 0.31% (1001) &&&&&&&&&&&&&;..........................
potion of restore spirit 0.31% (1001) &&&&&&&&&&&&&;..........................
shed 0.31% (1001) &&&&&&&&&&&&&;..........................
cheap chair 0.31% (1001) &&&&&&&&&&&&&;..........................
wakizashi 0.31% (1001) &&&&&&&&&&&&&;..........................
rune 0.31% (1001) &&&&&&&&&&&&&;..........................
decorative ring 0.31% (1001) &&&&&&&&&&&&&;..........................
fishing pole 0.31% (1001) &&&&&&&&&&&&&;..........................
brazier stand 0.31% (1001) &&&&&&&&&&&&&;..........................
feather hat 0.31% (1001) &&&&&&&&&&&&&;..........................
green pea 0.31% (1001) &&&&&&&&&&&&&;..........................
cherry 0.31% (1001) &&&&&&&&&&&&&;..........................
stethoscope 0.31% (1001) &&&&&&&&&&&&&;..........................
potion of feather 0.31% (1001) &&&&&&&&&&&&&;..........................
potion of weaken resistance 0.31% (1001) &&&&&&&&&&&&&;..........................
ragged table 0.31% (1001) &&&&&&&&&&&&&;..........................
mysterious map 0.31% (1001) &&&&&&&&&&&&&;..........................
tomato 0.31% (1001) &&&&&&&&&&&&&;..........................
broken sword 0.31% (1001) &&&&&&&&&&&&&;..........................
magical seed 0.31% (1001) &&&&&&&&&&&&&;..........................
corn 0.31% (1001) &&&&&&&&&&&&&;..........................
stomafillia 0.31% (1001) &&&&&&&&&&&&&;..........................
kunai 0.31% (1001) &&&&&&&&&&&&&;..........................
scythe 0.31% (1001) &&&&&&&&&&&&&;..........................
bowl 0.31% (1001) &&&&&&&&&&&&&;..........................
scroll of minor teleportation 0.31% (1001) &&&&&&&&&&&&&;..........................
statue of cross 0.31% (1001) &&&&&&&&&&&&&;..........................
gazania 0.31% (1001) &&&&&&&&&&&&&;..........................
water tub 0.31% (1001) &&&&&&&&&&&&&;..........................
healthy leaf 0.31% (1001) &&&&&&&&&&&&&;..........................
gem cutter 0.31% (1001) &&&&&&&&&&&&&;..........................
kiwi 0.31% (1001) &&&&&&&&&&&&&;..........................
qucche 0.31% (1001) &&&&&&&&&&&&&;..........................
rainbow fruit 0.31% (1001) &&&&&&&&&&&&&;..........................
bundle of weapons 0.31% (1001) &&&&&&&&&&&&&;..........................
potion of confusion 0.31% (1001) &&&&&&&&&&&&&;..........................
scroll of uncurse 0.31% (1001) &&&&&&&&&&&&&;..........................
sealed vase 0.31% (1001) &&&&&&&&&&&&&;..........................
potion of cure minor wound 0.31% (1001) &&&&&&&&&&&&&;..........................
open vase 0.31% (1001) &&&&&&&&&&&&&;..........................
potion of paralysis 0.31% (1001) &&&&&&&&&&&&&;..........................
sleeping bag 0.31% (1001) &&&&&&&&&&&&&;..........................
plush doll 0.31% (1001) &&&&&&&&&&&&&;..........................
pickaxe 0.31% (1001) &&&&&&&&&&&&&;..........................
toy 0.31% (1001) &&&&&&&&&&&&&;..........................
sleeping drug 0.31% (1001) &&&&&&&&&&&&&;..........................
round chair 0.31% (1001) &&&&&&&&&&&&&;..........................
bottle of beer 0.31% (1001) &&&&&&&&&&&&&;..........................
potion of blindness 0.31% (1001) &&&&&&&&&&&&&;..........................
poison 0.31% (1001) &&&&&&&&&&&&&;..........................
watermelon 0.31% (1001) &&&&&&&&&&&&&;..........................
potato 0.31% (1001) &&&&&&&&&&&&&;..........................
empty basket 0.31% (1001) &&&&&&&&&&&&&;..........................
spellbook of minor teleportation 0.31% (1001) &&&&&&&&&&&&&;..........................
potion of restore body 0.31% (1001) &&&&&&&&&&&&&;..........................
halberd 0.31% (1001) &&&&&&&&&&&&&;..........................
bottle of sulfuric 0.31% (1001) &&&&&&&&&&&&&;..........................
large bouquet 0.31% (1001) &&&&&&&&&&&&&;..........................
grape 0.31% (1001) &&&&&&&&&&&&&;..........................
lot of empty bottles 0.31% (1001) &&&&&&&&&&&&&;..........................
sign 0.31% (1001) &&&&&&&&&&&&&;..........................
light cloak 0.31% (1001) &&&&&&&&&&&&&;..........................
decorative amulet 0.31% (1001) &&&&&&&&&&&&&;..........................
arrow 0.31% (1001) &&&&&&&&&&&&&;..........................
bone fragment 0.31% (1001) &&&&&&&&&&&&&;..........................
well 0.31% (1001) &&&&&&&&&&&&&;..........................
skeleton 0.31% (1001) &&&&&&&&&&&&&;..........................
rag doll 0.31% (1001) &&&&&&&&&&&&&;..........................
mica ore 0.31% (1001) &&&&&&&&&&&&&;..........................
tombstone 0.31% (1001) &&&&&&&&&&&&&;..........................
scroll of identify 0.31% (1001) &&&&&&&&&&&&&;..........................
broken vase 0.31% (1001) &&&&&&&&&&&&&;..........................
spellbook of lightning bolt 0.31% (1001) &&&&&&&&&&&&&;..........................
earth crystal 0.31% (1001) &&&&&&&&&&&&&;..........................
sun crystal 0.31% (1001) &&&&&&&&&&&&&;..........................
robe 0.31% (1001) &&&&&&&&&&&&&;..........................
girdle 0.31% (1001) &&&&&&&&&&&&&;..........................
material box 0.31% (1001) &&&&&&&&&&&&&;..........................
spellbook of fire bolt 0.31% (1001) &&&&&&&&&&&&&;..........................
bottle of crim ale 0.31% (1001) &&&&&&&&&&&&&;..........................
curaria 0.31% (1001) &&&&&&&&&&&&&;..........................
pistol 0.31% (1001) &&&&&&&&&&&&&;..........................
snow scarecrow 0.31% (1001) &&&&&&&&&&&&&;..........................
bullet 0.31% (1001) &&&&&&&&&&&&&;..........................
platinum coin 0.31% (1001) &&&&&&&&&&&&&;..........................
spellbook of cure minor wound 0.31% (1001) &&&&&&&&&&&&&;..........................
sickle 0.31% (1001) &&&&&&&&&&&&&;..........................
gold piece 0.31% (1001) &&&&&&&&&&&&&;..........................
kaki 0.31% (1001) &&&&&&&&&&&&&;..........................
potion of defender 0.31% (1001) &&&&&&&&&&&&&;..........................
stone 0.31% (1001) &&&&&&&&&&&&&;..........................
battle axe 0.31% (1001) &&&&&&&&&&&&&;..........................
notice board 0.31% (1001) &&&&&&&&&&&&&;..........................
apple 0.31% (1001) &&&&&&&&&&&&&;..........................
messy cloth 0.31% (1001) &&&&&&&&&&&&&;..........................
carpenter's tool 0.31% (1001) &&&&&&&&&&&&&;..........................
spellbook of magic arrow 0.31% (1001) &&&&&&&&&&&&&;..........................
quwapana 0.31% (1001) &&&&&&&&&&&&&;..........................
banana 0.31% (1001) &&&&&&&&&&&&&;..........................
bolt 0.31% (1001) &&&&&&&&&&&&&;..........................
nerine 0.31% (1001) &&&&&&&&&&&&&;..........................
gorgeous candlestick 0.31% (1001) &&&&&&&&&&&&&;..........................
lot of alcohols 0.31% (1001) &&&&&&&&&&&&&;..........................
spellbook of ice bolt 0.31% (1001) &&&&&&&&&&&&&;..........................
rod of summon monsters 0.31% (1001) &&&&&&&&&&&&&;..........................
narrow dining table 0.31% (1001) &&&&&&&&&&&&&;..........................
campfire 0.31% (1001) &&&&&&&&&&&&&;..........................
wood chip 0.31% (1001) &&&&&&&&&&&&&;..........................
dagger 0.31% (1001) &&&&&&&&&&&&&;..........................
club 0.31% (1001) &&&&&&&&&&&&&;..........................
api nut 0.31% (1001) &&&&&&&&&&&&&;..........................
hand axe 0.31% (1001) &&&&&&&&&&&&&;..........................
war hammer 0.31% (1001) &&&&&&&&&&&&&;..........................
potion of gem 0.31% (1001) &&&&&&&&&&&&&;..........................
edible wild plant 0.31% (1001) &&&&&&&&&&&&&;..........................
imo 0.31% (1001) &&&&&&&&&&&&&;..........................
sweet potato 0.31% (1001) &&&&&&&&&&&&&;..........................
energy cell 0.31% (1001) &&&&&&&&&&&&&;..........................
lettuce 0.31% (1001) &&&&&&&&&&&&&;..........................
long sword 0.31% (1001) &&&&&&&&&&&&&;..........................
breastplate 0.31% (1001) &&&&&&&&&&&&&;..........................
disorderly books 0.31% (1001) &&&&&&&&&&&&&;..........................
thick gauntlets 0.31% (1001) &&&&&&&&&&&&&;..........................
traveler's food 0.31% (1001) &&&&&&&&&&&&&;..........................
rod of teleportation 0.31% (1001) &&&&&&&&&&&&&;..........................
fleure 0.31% (1001) &&&&&&&&&&&&&;..........................
sage 0.31% (1001) &&&&&&&&&&&&&;..........................
garbage 0.31% (1001) &&&&&&&&&&&&&;..........................
strawberry 0.31% (1001) &&&&&&&&&&&&&;..........................
sewing kit 0.31% (1001) &&&&&&&&&&&&&;..........................
radish 0.31% (1001) &&&&&&&&&&&&&;..........................
scimitar 0.31% (1001) &&&&&&&&&&&&&;..........................
torch 0.31% (1001) &&&&&&&&&&&&&;..........................
spellbook of teleportation 0.31% (1001) &&&&&&&&&&&&&;..........................
bottle of dirty water 0.31% (1001) &&&&&&&&&&&&&;..........................
short bow 0.31% (1001) &&&&&&&&&&&&&;..........................
rope 0.31% (1001) &&&&&&&&&&&&&;..........................
aloe 0.31% (1001) &&&&&&&&&&&&&;..........................
map 0.31% (1001) &&&&&&&&&&&&&;..........................
carnation 0.31% (1001) &&&&&&&&&&&&&;..........................
scroll of teleportation 0.31% (1001) &&&&&&&&&&&&&;..........................
potion of concentration 0.31% (1001) &&&&&&&&&&&&&;..........................
guava 0.31% (1001) &&&&&&&&&&&&&;..........................
helm 0.31% (1001) &&&&&&&&&&&&&;..........................
bone 0.31% (1001) &&&&&&&&&&&&&;..........................
heavy boots 0.31% (1001) &&&&&&&&&&&&&;..........................
painting tools 0.31% (1001) &&&&&&&&&&&&&;..........................
gem seed 0.38% (1201) &&&&&&&&&&&&&&&&........................
manboo 0.44% (1401) &&&&&&&&&&&&&&&&&&x.....................
fruit seed 0.47% (1501) &&&&&&&&&&&&&&&&&&&&....................
disc 0.47% (1501) &&&&&&&&&&&&&&&&&&&&....................
zelkova tree 0.47% (1501) &&&&&&&&&&&&&&&&&&&&....................
Taktstock 0.47% (1501) &&&&&&&&&&&&&&&&&&&&....................
pleasant sleep blanket 0.57% (1801) &&&&&&&&&&&&&&&&&&&&&&&&................
lockpick 0.63% (2001) &&&&&&&&&&&&&&&&&&&&&&&&&&x.............
vegetable seed 0.63% (2001) &&&&&&&&&&&&&&&&&&&&&&&&&&x.............
tuna fish 0.63% (2001) &&&&&&&&&&&&&&&&&&&&&&&&&&x.............
book 0.63% (2001) &&&&&&&&&&&&&&&&&&&&&&&&&&x.............
bottle of dye 0.63% (2001) &&&&&&&&&&&&&&&&&&&&&&&&&&x.............
beech tree 0.94% (3001) &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
local function left_pad(s, count, pad)
return s .. string.rep(pad or " ", count - #s)
end
--- from https://changaco.oy.lc/unicode-progress-bars/
local function percent_bar(p, min, max)
min = min or 10
max = max or min
local symbols = { ".", ":", ";", "+", "=", "x", "X", "$", "&" }
local full_symbol = symbols[#symbols]
local n = #symbols - 1
if p < 0.0 then
p = 0.0
elseif p > 1.0 then
p = 1.0
end
if p == 1.0 then
return string.rep(full_symbol, max)
end
local min_delta = math.huge
local r = ""
for i=min, max do
local x = p * i
local full = math.floor(x)
local rest = x - full
local middle = math.floor(rest * n)
if p > 0.0 and full == 0 and middle == 0 then
middle = 1
end
local d = math.abs(p - (full + middle / n) / i) * 100
if d < min_delta then
min_delta = d
local m = symbols[middle+1]
if full == i then
m = ""
end
r = string.rep(full_symbol, full) .. m .. string.rep(symbols[1], i - full - 1)
end
end
return r, min_delta
end
local MAX_LENGTH = 35
local function print_frequency_2(percents, max)
local max_len = 0
local max_name_len = 0
local names = {}
local amounts = {}
for _, pair in ipairs(percents) do
local percent = pair.percent
local total = pair.total
local amount = ("%.02f%% (%d)"):format(percent * 100, total)
local name = tostring(pair.key)
if name:len() > MAX_LENGTH then
name = name:sub(1, MAX_LENGTH) .. "..."
end
amounts[#amounts+1] = amount
names[#names+1] = name
max_len = math.max(max_len, amount:len())
max_name_len = math.max(max_name_len, name:len())
end
local s = ""
for i, pair in ipairs(percents) do
local name = left_pad(names[i], max_name_len)
local percent = pair.percent
local amount = amounts[i]
local bar = percent_bar(percent / max, 40)
s = s .. ("\n%-6s %s %s"):format(name, left_pad(amount, max_len), bar)
end
return s
end
local function print_frequency(tbl, total)
local percents = {}
for k, v in pairs(tbl) do
local percent = v / total
percents[#percents+1] = { key = k, percent = percent, total = v }
end
table.sort(percents, function(a, b) return a.percent < b.percent end)
local max = percents[#percents].percent
return print_frequency_2(percents, max)
end
return print_frequency
local print_frequency = dofile("print_frequency.lua")
-- local INV_ITEM_ID = 3
local FILTER_JUNK = 64000
-- local items = 50000
local item_level = 1
local item_quality = 1
--[[
local results = {}
for _ = 1, items do
flt(item_level, item_quality)
setvar("flttypemajor", FILTER_JUNK)
local ci = itemcreate(-1, -1, -1, -1, 0)
if ci > 0 then
local id = inv[INV_ITEM_ID][ci]
local name = cnvitemname(id)
item_delete(ci)
results[#results+1] = name
end
end
--]]
-- setvar("flttypemajor", FILTER_JUNK)
flt(item_level, item_quality)
item_delete(itemcreate(-1, -1, -1, -1, 0))
local dbsum = 0
local dbmax = getvar("dbmax")
local results = {}
for i = 0, dbmax-1 do
local id = dblist[0][i]
local weight = dblist[1][i] - dbsum
local name = cnvitemname(id)
results[name] = weight
dbsum = dbsum + weight
end
local file = io.open("output.txt", "w")
file:write(print_frequency(results, dbsum))
file:close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment