I need help with this code
PHP Code:
local subtype = item.get_sub_type()
local type = item.get_type()
if type==1 and subtype==0 or type==1 and subtype==2 or type==1 and subtype==3 or type==1 and subtype==4 or type==1 and subtype==5 then
local kategoria = 1
elseif type==2 and subtype==0 then
local kategoria = 2
elseif type==2 and subtype==1 then
local kategoria = 7
elseif type==2 and subtype==2 then
local kategoria = 8
elseif type==2 and subtype==3 then
local kategoria = 3
elseif type==2 and subtype==4 then
local kategoria = 4
elseif type==2 and subtype==5 then
local kategoria = 5
elseif type==2 and subtype==6 then
local kategoria = 6
else
local kategoria = 9
end






