Domanda [HELP] Qualcuno può correggere questo script? se volete potete anche prendervelo... fate pure :)

Stato
Discussione chiusa ad ulteriori risposte.

|| A l i 3 N © ||

Utente Jade
25 Ottobre 2011
1,358
111
493
793
Codice:
say_title ( "Mercante Nero:" )say ( "Ciao, sono Il Mercante Nero." )
say ( "Se mi consegni una delle 4 Hwang," )
say ( "insieme a 3 Perle Rosse, 3 Perle Blu e 3 Perle Bianche, posso convertire la razza della corazza." )
say_reward ( "NB: Tutti i bonus verranno cancellati! Quindi rifletti attentamente!" )
say ( "Procediamo?" )
local pigipowa = select ( "D'accordo!" , "No, Grazie!" )
if pigipowa == 2 then
say ( "Beh... Peccato :) ci rivedremo Avventuriero!" )
say ( "e chissà... forse a quel punto avrai cambiato idea!" )
say ( "eheheheheheh" )
return
end


elseif pigipowa == 1 then
say_title ( "Mercante Nero: ")
say ( "Di che razza è la tua Corazza Hwang?" )
local corazza =select ( "War", "Sura", "Ninja", "Shamy", "Esci" )
if corazza == 1 then
say_title ( "Mercante Nero: ")
say ( "In cosa vorresti convertirla?" )
local war =select ( "Sura", "Ninja", "Shamy", "Esci" )
if war == 1 then
if pc . count_item ( 11971 ) >= 1 and
pc . count_item ( 27992 ) >= 3 and 
pc . count_item ( 27993 ) >= 3 and
pc . count_item ( 27994 ) >= 3 then
pc . remove_item ( 11971 , 1 )
pc . remove_item ( 27992 , 3 )
pc . remove_item ( 27993 , 3 )
pc . remove_item ( 27994 , 3 )
pc . give_item2 ( "11973" , 1 )
else
say ( "Non hai abbastanza Item!" )
say ( "Torna quando li avrai tutti!" )
return
end
return
end
return
end


elseif war == 2 then
if pc . count_item ( 11971 ) >= 1 and
pc . count_item ( 27992 ) >= 3 and 
pc . count_item ( 27993 ) >= 3 and
pc . count_item ( 27994 ) >= 3 then
pc . remove_item ( 11971 , 1 )
pc . remove_item ( 27992 , 3 )
pc . remove_item ( 27993 , 3 )
pc . remove_item ( 27994 , 3 )
pc . give_item2 ( "11972" , 1 )
else
say ( "Non hai abbastanza Item!" )
say ( "Torna quando li avrai tutti!" )
return
end
return
end
return
end


elseif war == 3 then
if pc . count_item ( 11971 ) >= 1 and
pc . count_item ( 27992 ) >= 3 and 
pc . count_item ( 27993 ) >= 3 and
pc . count_item ( 27994 ) >= 3 then
pc . remove_item ( 11971 , 1 )
pc . remove_item ( 27992 , 3 )
pc . remove_item ( 27993 , 3 )
pc . remove_item ( 27994 , 3 )
pc . give_item2 ( "11974" , 1 )
else
say ( "Non hai abbastanza Item!" )
say ( "Torna quando li avrai tutti!" )
return
end
return
end
return
end


elseif war == 4 then
return
end
return
end
return
end


elseif corazza == 2 then
say_title ( "Mercante Nero: ")
say ( "In cosa vorresti convertirla?" )
local sura =select ( "War", "Ninja", "Shamy", "Esci" )
if sura == 1 then
if pc . count_item ( 11973 ) >= 1 and
pc . count_item ( 27992 ) >= 3 and 
pc . count_item ( 27993 ) >= 3 and
pc . count_item ( 27994 ) >= 3 then
pc . remove_item ( 11971 , 1 )
pc . remove_item ( 27992 , 3 )
pc . remove_item ( 27993 , 3 )
pc . remove_item ( 27994 , 3 )
pc . give_item2 ( "11971" , 1 )
else
say ( "Non hai abbastanza Item!" )
say ( "Torna quando li avrai tutti!" )
return
end
return
end
return
end


elseif sura == 2 then
if pc . count_item ( 11973 ) >= 1 and
pc . count_item ( 27992 ) >= 3 and 
pc . count_item ( 27993 ) >= 3 and
pc . count_item ( 27994 ) >= 3 then
pc . remove_item ( 11971 , 1 )
pc . remove_item ( 27992 , 3 )
pc . remove_item ( 27993 , 3 )
pc . remove_item ( 27994 , 3 )
pc . give_item2 ( "11972" , 1 )
else
say ( "Non hai abbastanza Item!" )
say ( "Torna quando li avrai tutti!" )
return
end
return
end
return
end


elseif sura == 3 then
if pc . count_item ( 11973 ) >= 1 and
pc . count_item ( 27992 ) >= 3 and 
pc . count_item ( 27993 ) >= 3 and
pc . count_item ( 27994 ) >= 3 then
pc . remove_item ( 11971 , 1 )
pc . remove_item ( 27992 , 3 )
pc . remove_item ( 27993 , 3 )
pc . remove_item ( 27994 , 3 )
pc . give_item2 ( "11974" , 1 )
else
say ( "Non hai abbastanza Item!" )
say ( "Torna quando li avrai tutti!" )
return
end
return
end
return
end


elseif sura == 4 then
return
end
return
end
return
end


elseif corazza == 3 then
say_title ( "Mercante Nero: ")
say ( "In cosa vorresti convertirla?" )
local ninja =select ( "War", "Sura", "Shamy", "Esci" )
if ninja == 1 then
if pc . count_item ( 11972 ) >= 1 and
pc . count_item ( 27992 ) >= 3 and 
pc . count_item ( 27993 ) >= 3 and
pc . count_item ( 27994 ) >= 3 then
pc . remove_item ( 11971 , 1 )
pc . remove_item ( 27992 , 3 )
pc . remove_item ( 27993 , 3 )
pc . remove_item ( 27994 , 3 )
pc . give_item2 ( "11971" , 1 )
else
say ( "Non hai abbastanza Item!" )
say ( "Torna quando li avrai tutti!" )
return
end
return
end
return
end


elseif ninja == 2 then
if pc . count_item ( 11972 ) >= 1 and
pc . count_item ( 27992 ) >= 3 and 
pc . count_item ( 27993 ) >= 3 and
pc . count_item ( 27994 ) >= 3 then
pc . remove_item ( 11971 , 1 )
pc . remove_item ( 27992 , 3 )
pc . remove_item ( 27993 , 3 )
pc . remove_item ( 27994 , 3 )
pc . give_item2 ( "11973" , 1 )
else
say ( "Non hai abbastanza Item!" )
say ( "Torna quando li avrai tutti!" )
return
end
return
end
return
end


elseif ninja == 3 then
if pc . count_item ( 11972 ) >= 1 and
pc . count_item ( 27992 ) >= 3 and 
pc . count_item ( 27993 ) >= 3 and
pc . count_item ( 27994 ) >= 3 then
pc . remove_item ( 11971 , 1 )
pc . remove_item ( 27992 , 3 )
pc . remove_item ( 27993 , 3 )
pc . remove_item ( 27994 , 3 )
pc . give_item2 ( "11974" , 1 )
else
say ( "Non hai abbastanza Item!" )
say ( "Torna quando li avrai tutti!" )
return
end
return
end
return
end


elseif ninja == 4 then
return
end
return
end
return
end


elseif corazza == 4 then
say_title ( "Mercante Nero: ")
say ( "In cosa vorresti convertirla?" )
local shamy =select ( "War", "Sura", "Ninja", "Esci" )
if shamy == 1 then
if pc . count_item ( 11974 ) >= 1 and
pc . count_item ( 27992 ) >= 3 and 
pc . count_item ( 27993 ) >= 3 and
pc . count_item ( 27994 ) >= 3 then
pc . remove_item ( 11971 , 1 )
pc . remove_item ( 27992 , 3 )
pc . remove_item ( 27993 , 3 )
pc . remove_item ( 27994 , 3 )
pc . give_item2 ( "11971" , 1 )
else
say ( "Non hai abbastanza Item!" )
say ( "Torna quando li avrai tutti!" )
return
end
return
end
return
end


elseif shamy == 2 then
if pc . count_item ( 11974 ) >= 1 and
pc . count_item ( 27992 ) >= 3 and 
pc . count_item ( 27993 ) >= 3 and
pc . count_item ( 27994 ) >= 3 then
pc . remove_item ( 11971 , 1 )
pc . remove_item ( 27992 , 3 )
pc . remove_item ( 27993 , 3 )
pc . remove_item ( 27994 , 3 )
pc . give_item2 ( "11973" , 1 )
else
say ( "Non hai abbastanza Item!" )
say ( "Torna quando li avrai tutti!" )
return
end
return
end
return
end


elseif shamy == 3 then
if pc . count_item ( 11974 ) >= 1 and
pc . count_item ( 27992 ) >= 3 and 
pc . count_item ( 27993 ) >= 3 and
pc . count_item ( 27994 ) >= 3 then
pc . remove_item ( 11971 , 1 )
pc . remove_item ( 27992 , 3 )
pc . remove_item ( 27993 , 3 )
pc . remove_item ( 27994 , 3 )
pc . give_item2 ( "11972" , 1 )
else
say ( "Non hai abbastanza Item!" )
say ( "Torna quando li avrai tutti!" )
return
end
return
end
return
end


elseif shamy == 4 then
return
end
return
end
return
end
 
Codice:
say_title ( "Mercante Nero:" )say ( "Ciao, sono Il Mercante Nero." )
say ( "Se mi consegni una delle 4 Hwang," )
say ( "insieme a 3 Perle Rosse, 3 Perle Blu e 3 Perle Bianche, posso convertire la razza della corazza." )
say_reward ( "NB: Tutti i bonus verranno cancellati! Quindi rifletti attentamente!" )
say ( "Procediamo?" )
local pigipowa = select ( "D'accordo!" , "No, Grazie!" )
if pigipowa == 2 then
    say ( "Beh... Peccato :) ci rivedremo Avventuriero!" )
    say ( "e chissà... forse a quel punto avrai cambiato idea!" )
    say ( "eheheheheheh" )
    return
eleseif pigipowa == 1 then
    say_title ( "Mercante Nero: ")
    say ( "Di che razza è la tua Corazza Hwang?" )
    local corazza =select ( "War", "Sura", "Ninja", "Shamy", "Esci" )
    if corazza == 1 then
        say_title ( "Mercante Nero: ")
        say ( "In cosa vorresti convertirla?" )
        local war =select ( "Sura", "Ninja", "Shamy", "Esci" )
        if war == 1 then
            if pc . count_item ( 11971 ) >= 1 and pc . count_item ( 27992 ) >= 3 and pc . count_item ( 27993 ) >= 3 and pc . count_item ( 27994 ) >= 3 then
                pc . remove_item ( 11971 , 1 )
                pc . remove_item ( 27992 , 3 )
                pc . remove_item ( 27993 , 3 )
                pc . remove_item ( 27994 , 3 )
                pc . give_item2 ( "11973" , 1 )
            else
                say ( "Non hai abbastanza Item!" )
                say ( "Torna quando li avrai tutti!" )
                return
            end
        elseif war == 2 then
            if pc . count_item ( 11971 ) >= 1 and pc . count_item ( 27992 ) >= 3 and pc . count_item ( 27993 ) >= 3 and pc . count_item ( 27994 ) >= 3 then
                pc . remove_item ( 11971 , 1 )
                pc . remove_item ( 27992 , 3 )
                pc . remove_item ( 27993 , 3 )
                pc . remove_item ( 27994 , 3 )
                pc . give_item2 ( "11972" , 1 )
            else
                say ( "Non hai abbastanza Item!" )
                say ( "Torna quando li avrai tutti!" )
                return
            end
        elseif war == 3 then
            if pc . count_item ( 11971 ) >= 1 and pc . count_item ( 27992 ) >= 3 and pc . count_item ( 27993 ) >= 3 and pc . count_item ( 27994 ) >= 3 then
                pc . remove_item ( 11971 , 1 )
                pc . remove_item ( 27992 , 3 )
                pc . remove_item ( 27993 , 3 )
                pc . remove_item ( 27994 , 3 )
                pc . give_item2 ( "11974" , 1 )
            else
                say ( "Non hai abbastanza Item!" )
                say ( "Torna quando li avrai tutti!" )
                return
            end
        elseif war == 4 then
            return
        end
    elseif corazza == 2 then
        say_title ( "Mercante Nero: ")
        say ( "In cosa vorresti convertirla?" )
        local sura =select ( "War", "Ninja", "Shamy", "Esci" )
        if sura == 1 then
            if pc . count_item ( 11973 ) >= 1 and pc . count_item ( 27992 ) >= 3 and pc . count_item ( 27993 ) >= 3 and pc . count_item ( 27994 ) >= 3 then
                pc . remove_item ( 11971 , 1 )
                pc . remove_item ( 27992 , 3 )
                pc . remove_item ( 27993 , 3 )
                pc . remove_item ( 27994 , 3 )
                pc . give_item2 ( "11971" , 1 )
            else
                say ( "Non hai abbastanza Item!" )
                say ( "Torna quando li avrai tutti!" )
                return
            end
        elseif sura == 2 then
            if pc . count_item ( 11973 ) >= 1 and pc . count_item ( 27992 ) >= 3 and pc . count_item ( 27993 ) >= 3 and pc . count_item ( 27994 ) >= 3 then
                pc . remove_item ( 11971 , 1 )
                pc . remove_item ( 27992 , 3 )
                pc . remove_item ( 27993 , 3 )
                pc . remove_item ( 27994 , 3 )
                pc . give_item2 ( "11972" , 1 )
            else
                say ( "Non hai abbastanza Item!" )
                say ( "Torna quando li avrai tutti!" )
                return
            end
        elseif sura == 3 then
            if pc . count_item ( 11973 ) >= 1 and pc . count_item ( 27992 ) >= 3 and pc . count_item ( 27993 ) >= 3 and pc . count_item ( 27994 ) >= 3 then
                pc . remove_item ( 11971 , 1 )
                pc . remove_item ( 27992 , 3 )
                pc . remove_item ( 27993 , 3 )
                pc . remove_item ( 27994 , 3 )
                pc . give_item2 ( "11974" , 1 )
            else
                say ( "Non hai abbastanza Item!" )
                say ( "Torna quando li avrai tutti!" )
                return
            end
        elseif sura == 4 then
            return
        end
    elseif corazza == 3 then
        say_title ( "Mercante Nero: ")
        say ( "In cosa vorresti convertirla?" )
        local ninja =select ( "War", "Sura", "Shamy", "Esci" )
        if ninja == 1 then
            if pc . count_item ( 11972 ) >= 1 and pc . count_item ( 27992 ) >= 3 and pc . count_item ( 27993 ) >= 3 and pc . count_item ( 27994 ) >= 3 then
                pc . remove_item ( 11971 , 1 )
                pc . remove_item ( 27992 , 3 )
                pc . remove_item ( 27993 , 3 )
                pc . remove_item ( 27994 , 3 )
                pc . give_item2 ( "11971" , 1 )
            else
                say ( "Non hai abbastanza Item!" )
                say ( "Torna quando li avrai tutti!" )
                return
            end
        elseif ninja == 2 then
            if pc . count_item ( 11972 ) >= 1 and pc . count_item ( 27992 ) >= 3 and pc . count_item ( 27993 ) >= 3 and pc . count_item ( 27994 ) >= 3 then
                pc . remove_item ( 11971 , 1 )
                pc . remove_item ( 27992 , 3 )
                pc . remove_item ( 27993 , 3 )
                pc . remove_item ( 27994 , 3 )
                pc . give_item2 ( "11973" , 1 )
            else
                say ( "Non hai abbastanza Item!" )
                say ( "Torna quando li avrai tutti!" )
                return
            end
        elseif ninja == 3 then
            if pc . count_item ( 11972 ) >= 1 and pc . count_item ( 27992 ) >= 3 and pc . count_item ( 27993 ) >= 3 and pc . count_item ( 27994 ) >= 3 then
                pc . remove_item ( 11971 , 1 )
                pc . remove_item ( 27992 , 3 )
                pc . remove_item ( 27993 , 3 )
                pc . remove_item ( 27994 , 3 )
                pc . give_item2 ( "11974" , 1 )
            else
                say ( "Non hai abbastanza Item!" )
                say ( "Torna quando li avrai tutti!" )
                return
            end
        elseif ninja == 4 then
            return
        end
    elseif corazza == 4 then
        say_title ( "Mercante Nero: ")
        say ( "In cosa vorresti convertirla?" )
        local shamy =select ( "War", "Sura", "Ninja", "Esci" )
        if shamy == 1 then
            if pc . count_item ( 11974 ) >= 1 and pc . count_item ( 27992 ) >= 3 and pc . count_item ( 27993 ) >= 3 and pc . count_item ( 27994 ) >= 3 then
                pc . remove_item ( 11971 , 1 )
                pc . remove_item ( 27992 , 3 )
                pc . remove_item ( 27993 , 3 )
                pc . remove_item ( 27994 , 3 )
                pc . give_item2 ( "11971" , 1 )
            else
                say ( "Non hai abbastanza Item!" )
                say ( "Torna quando li avrai tutti!" )
                return
            end
        elseif shamy == 2 then
            if pc . count_item ( 11974 ) >= 1 and pc . count_item ( 27992 ) >= 3 and pc . count_item ( 27993 ) >= 3 and pc . count_item ( 27994 ) >= 3 then
                pc . remove_item ( 11971 , 1 )
                pc . remove_item ( 27992 , 3 )
                pc . remove_item ( 27993 , 3 )
                pc . remove_item ( 27994 , 3 )
                pc . give_item2 ( "11973" , 1 )
            else
                say ( "Non hai abbastanza Item!" )
                say ( "Torna quando li avrai tutti!" )
                return
            end
        elseif shamy == 3 then
            if pc . count_item ( 11974 ) >= 1 and pc . count_item ( 27992 ) >= 3 and pc . count_item ( 27993 ) >= 3 and pc . count_item ( 27994 ) >= 3 then
                pc . remove_item ( 11971 , 1 )
                pc . remove_item ( 27992 , 3 )
                pc . remove_item ( 27993 , 3 )
                pc . remove_item ( 27994 , 3 )
                pc . give_item2 ( "11972" , 1 )
            else
                say ( "Non hai abbastanza Item!" )
                say ( "Torna quando li avrai tutti!" )
                return
        elseif shamy == 4 then
            return
        end
    elseif corazza == 5
        say ( "Beh... Peccato :) ci rivedremo Avventuriero!" )
        say ( "e chissà... forse a quel punto avrai cambiato idea!" )
        say ( "eheheheheheh" )
        return
    end
end


Eccola aggiustata c'erano troppi end e return e if fatti male :D
 
Ultima modifica:
Codice:
say_title ( "Mercante Nero:" )say ( "Ciao, sono Il Mercante Nero." )
say ( "Se mi consegni una delle 4 Hwang," )
say ( "insieme a 3 Perle Rosse, 3 Perle Blu e 3 Perle Bianche, posso convertire la razza della corazza." )
say_reward ( "NB: Tutti i bonus verranno cancellati! Quindi rifletti attentamente!" )
say ( "Procediamo?" )
local pigipowa = select ( "D'accordo!" , "No, Grazie!" )
if pigipowa == 2 then
    say ( "Beh... Peccato :) ci rivedremo Avventuriero!" )
    say ( "e chissà... forse a quel punto avrai cambiato idea!" )
    say ( "eheheheheheh" )
    return
eleseif pigipowa == 1 then
    say_title ( "Mercante Nero: ")
    say ( "Di che razza è la tua Corazza Hwang?" )
    local corazza =select ( "War", "Sura", "Ninja", "Shamy", "Esci" )
    if corazza == 1 then
        say_title ( "Mercante Nero: ")
        say ( "In cosa vorresti convertirla?" )
        local war =select ( "Sura", "Ninja", "Shamy", "Esci" )
        if war == 1 then
            if pc . count_item ( 11971 ) >= 1 and pc . count_item ( 27992 ) >= 3 and pc . count_item ( 27993 ) >= 3 and pc . count_item ( 27994 ) >= 3 then
                pc . remove_item ( 11971 , 1 )
                pc . remove_item ( 27992 , 3 )
                pc . remove_item ( 27993 , 3 )
                pc . remove_item ( 27994 , 3 )
                pc . give_item2 ( "11973" , 1 )
            else
                say ( "Non hai abbastanza Item!" )
                say ( "Torna quando li avrai tutti!" )
                return
            end
        elseif war == 2 then
            if pc . count_item ( 11971 ) >= 1 and pc . count_item ( 27992 ) >= 3 and pc . count_item ( 27993 ) >= 3 and pc . count_item ( 27994 ) >= 3 then
                pc . remove_item ( 11971 , 1 )
                pc . remove_item ( 27992 , 3 )
                pc . remove_item ( 27993 , 3 )
                pc . remove_item ( 27994 , 3 )
                pc . give_item2 ( "11972" , 1 )
            else
                say ( "Non hai abbastanza Item!" )
                say ( "Torna quando li avrai tutti!" )
                return
            end
        elseif war == 3 then
            if pc . count_item ( 11971 ) >= 1 and pc . count_item ( 27992 ) >= 3 and pc . count_item ( 27993 ) >= 3 and pc . count_item ( 27994 ) >= 3 then
                pc . remove_item ( 11971 , 1 )
                pc . remove_item ( 27992 , 3 )
                pc . remove_item ( 27993 , 3 )
                pc . remove_item ( 27994 , 3 )
                pc . give_item2 ( "11974" , 1 )
            else
                say ( "Non hai abbastanza Item!" )
                say ( "Torna quando li avrai tutti!" )
                return
            end
        elseif war == 4 then
            return
        end
    elseif corazza == 2 then
        say_title ( "Mercante Nero: ")
        say ( "In cosa vorresti convertirla?" )
        local sura =select ( "War", "Ninja", "Shamy", "Esci" )
        if sura == 1 then
            if pc . count_item ( 11973 ) >= 1 and pc . count_item ( 27992 ) >= 3 and pc . count_item ( 27993 ) >= 3 and pc . count_item ( 27994 ) >= 3 then
                pc . remove_item ( 11971 , 1 )
                pc . remove_item ( 27992 , 3 )
                pc . remove_item ( 27993 , 3 )
                pc . remove_item ( 27994 , 3 )
                pc . give_item2 ( "11971" , 1 )
            else
                say ( "Non hai abbastanza Item!" )
                say ( "Torna quando li avrai tutti!" )
                return
            end
        elseif sura == 2 then
            if pc . count_item ( 11973 ) >= 1 and pc . count_item ( 27992 ) >= 3 and pc . count_item ( 27993 ) >= 3 and pc . count_item ( 27994 ) >= 3 then
                pc . remove_item ( 11971 , 1 )
                pc . remove_item ( 27992 , 3 )
                pc . remove_item ( 27993 , 3 )
                pc . remove_item ( 27994 , 3 )
                pc . give_item2 ( "11972" , 1 )
            else
                say ( "Non hai abbastanza Item!" )
                say ( "Torna quando li avrai tutti!" )
                return
            end
        elseif sura == 3 then
            if pc . count_item ( 11973 ) >= 1 and pc . count_item ( 27992 ) >= 3 and pc . count_item ( 27993 ) >= 3 and pc . count_item ( 27994 ) >= 3 then
                pc . remove_item ( 11971 , 1 )
                pc . remove_item ( 27992 , 3 )
                pc . remove_item ( 27993 , 3 )
                pc . remove_item ( 27994 , 3 )
                pc . give_item2 ( "11974" , 1 )
            else
                say ( "Non hai abbastanza Item!" )
                say ( "Torna quando li avrai tutti!" )
                return
            end
        elseif sura == 4 then
            return
        end
    elseif corazza == 3 then
        say_title ( "Mercante Nero: ")
        say ( "In cosa vorresti convertirla?" )
        local ninja =select ( "War", "Sura", "Shamy", "Esci" )
        if ninja == 1 then
            if pc . count_item ( 11972 ) >= 1 and pc . count_item ( 27992 ) >= 3 and pc . count_item ( 27993 ) >= 3 and pc . count_item ( 27994 ) >= 3 then
                pc . remove_item ( 11971 , 1 )
                pc . remove_item ( 27992 , 3 )
                pc . remove_item ( 27993 , 3 )
                pc . remove_item ( 27994 , 3 )
                pc . give_item2 ( "11971" , 1 )
            else
                say ( "Non hai abbastanza Item!" )
                say ( "Torna quando li avrai tutti!" )
                return
            end
        elseif ninja == 2 then
            if pc . count_item ( 11972 ) >= 1 and pc . count_item ( 27992 ) >= 3 and pc . count_item ( 27993 ) >= 3 and pc . count_item ( 27994 ) >= 3 then
                pc . remove_item ( 11971 , 1 )
                pc . remove_item ( 27992 , 3 )
                pc . remove_item ( 27993 , 3 )
                pc . remove_item ( 27994 , 3 )
                pc . give_item2 ( "11973" , 1 )
            else
                say ( "Non hai abbastanza Item!" )
                say ( "Torna quando li avrai tutti!" )
                return
            end
        elseif ninja == 3 then
            if pc . count_item ( 11972 ) >= 1 and pc . count_item ( 27992 ) >= 3 and pc . count_item ( 27993 ) >= 3 and pc . count_item ( 27994 ) >= 3 then
                pc . remove_item ( 11971 , 1 )
                pc . remove_item ( 27992 , 3 )
                pc . remove_item ( 27993 , 3 )
                pc . remove_item ( 27994 , 3 )
                pc . give_item2 ( "11974" , 1 )
            else
                say ( "Non hai abbastanza Item!" )
                say ( "Torna quando li avrai tutti!" )
                return
            end
        elseif ninja == 4 then
            return
        end
    elseif corazza == 4 then
        say_title ( "Mercante Nero: ")
        say ( "In cosa vorresti convertirla?" )
        local shamy =select ( "War", "Sura", "Ninja", "Esci" )
        if shamy == 1 then
            if pc . count_item ( 11974 ) >= 1 and pc . count_item ( 27992 ) >= 3 and pc . count_item ( 27993 ) >= 3 and pc . count_item ( 27994 ) >= 3 then
                pc . remove_item ( 11971 , 1 )
                pc . remove_item ( 27992 , 3 )
                pc . remove_item ( 27993 , 3 )
                pc . remove_item ( 27994 , 3 )
                pc . give_item2 ( "11971" , 1 )
            else
                say ( "Non hai abbastanza Item!" )
                say ( "Torna quando li avrai tutti!" )
                return
            end
        elseif shamy == 2 then
            if pc . count_item ( 11974 ) >= 1 and pc . count_item ( 27992 ) >= 3 and pc . count_item ( 27993 ) >= 3 and pc . count_item ( 27994 ) >= 3 then
                pc . remove_item ( 11971 , 1 )
                pc . remove_item ( 27992 , 3 )
                pc . remove_item ( 27993 , 3 )
                pc . remove_item ( 27994 , 3 )
                pc . give_item2 ( "11973" , 1 )
            else
                say ( "Non hai abbastanza Item!" )
                say ( "Torna quando li avrai tutti!" )
                return
            end
        elseif shamy == 3 then
            if pc . count_item ( 11974 ) >= 1 and pc . count_item ( 27992 ) >= 3 and pc . count_item ( 27993 ) >= 3 and pc . count_item ( 27994 ) >= 3 then
                pc . remove_item ( 11971 , 1 )
                pc . remove_item ( 27992 , 3 )
                pc . remove_item ( 27993 , 3 )
                pc . remove_item ( 27994 , 3 )
                pc . give_item2 ( "11972" , 1 )
            else
                say ( "Non hai abbastanza Item!" )
                say ( "Torna quando li avrai tutti!" )
                return
        elseif shamy == 4 then
            return
        end
    elseif corazza == 5
        say ( "Beh... Peccato :) ci rivedremo Avventuriero!" )
        say ( "e chissà... forse a quel punto avrai cambiato idea!" )
        say ( "eheheheheheh" )
        return
    end
end


Eccola aggiustata c'erano troppi end e return e if fatti male :D

ok grazie lo provo subito =D


EDIT: non va neanche questo ò.ò

RI-EDIT: risolto grazie! :ole: potete chiudere!!!
 
Stato
Discussione chiusa ad ulteriori risposte.
Indietro
Top Bottom