All pastes #332975 Raw Edit

Anonymous

public lua v1 · immutable
#332975 ·published 2007-01-30 16:03 UTC
rendered paste body
for type = 0, 17 do	--initialize a counter	local clothes = 0	--we increase the counter until it's an invalid clothing ID	while getClothesByTypeIndex ( type, clothes ) ~= false		do clothes = clothes + 1 end	--remember the last one didn't exist: we've got to remove it	--from the count when storing it	count[type] = clothes - 1end