Help quest recycler

03/25/2021 17:06 Scorpion945#1
Hi guys I have a problem with this quest, when I go to insert it gives me this error:

RiciclaItem.lua:36:syntax error : [string "start"]:13: unexpected symbol near `=='

Here is the quest:

HTML Code:
quest RiciclaItem begin  
    state start begin
        when 20092.chat."Ostriche" begin
            say ( "Ciao, io sono il riciclatore." )
            say ( "Posso scambiare i seguenti item:" )
            say ( "40 ostriche x 50 pezzi di pietra" )
            say ( "30 perle bianche x 30 ostriche e 20 pezzi di pietra" )
            say ( "25 perle blu x 15 perle bianche e 20 ostriche" )
            say ( "25 perle rosse x 10 perle bianche e 5 blu" )
            local lingotto = select ( "Si" , "No" )
            if lingotto == 2 then
				return
			end
			if lingotto == 1 then
				if pc.count_item(25990) >=40 and pc.get_level() <= 20 then
					local segli == ("Ostriche","Sigillo Lupo","Arrivederci")
					if scegli == 3
						return
					end
			if scegli == 1 then
				pc.give_item2 ( "27987" , 40 )
				say ("Ecco a te le Ostriche")
				pc.remove_item ( "25990" , 40 )
				end
			if scegli == 2 then
                pc.give_item2 (27992, 30)
                say ("Ecco a te il Lupo")
                pc.remove_item ( "25990" , 40 )
				end
			else
                say_title ( "Riciclatore" )
                say ("Mi dispiace ma non hai i requisiti!")
                    return 
                end
			end
		end
	end
03/26/2021 12:09 cypher#2
#moved