Discussione Aiuto Script

Stato
Discussione chiusa ad ulteriori risposte.

Silentx

Utente Silver
2 Dicembre 2010
70
17
1
72
Salve vi propongo uno script, mi da errore ma non trovo la soluzione, +1 a chi riesce a darmi una mano ^^ eccolo qui :

Codice:
say_title ( "Elmi livello 100" )
say ( "Salve Avventuriero" )
say ( "Io sono l'unico Fabbro in grado di darli" )
say ( "Seleziona quella che vuoi." )
say ( "Ricordati che sono da livello 100. Ecco i Bonus" )
say_reward ( "Difesa 125, Danni abilità 20%, blocco attaco 10%, forza 15" )
say_reward ( "Consegna i seguenti item :" )
say_reward ( "n 1 Elmo del Dio Drago +9" )
say_reward ( "n 1 Elmo Smeraldo" )
say_reward ( "Per Scegliere il Nuovo Elmo" )
local guerriero = select ( "Elmo Grande da Sura" , "Cappuccio Dorato da Ninja" , "Elmo Drago Rosso da War" , "Cappello stregato da Shamana" , "Annulla" )
if guerriero == 1 then
if pc . count_item ( 11964 ) < 1 then
if pc . count_item ( 12809 ) < 1 then
say ( "Non hai gli Item giusti" )
return
end
pc . remove_item ( 11964 , 1 )
pc . remove_item ( 12809 , 1 )
pc . give_item2 ( "12260" , 1 )
return
elseif guerriero == 2 then
if pc . count_item ( 11964 ) < 1 then
if pc . count_item ( 12809 ) < 1 then
say ( "Non hai gli Item giusti" )
return
end
pc . remove_item ( 11964 , 1 )
pc . remove_item ( 12809 , 1 )
pc . give_item2 ( "12400" , 1 )
elseif guerriero == 3 then
if pc . count_item ( 11964 ) < 1 then
if pc . count_item ( 12809 ) < 1 then
say ( "Non hai gli Item giusti" )
return
end
pc . remove_item ( 11964 , 1 )
pc . remove_item ( 12809 , 1 )
pc . give_item2 ( "12540" , 1 )
elseif guerriero == 4 then
if pc . count_item ( 11964 ) < 1 then
if pc . count_item ( 12809 ) < 1 then
say ( "Non hai gli Item giusti" )
return
end
pc . remove_item ( 11964 , 1 )
pc . remove_item ( 12800 , 1 )
pc . give_item2 ( "12689" , 1 )
elseif guerriero == 5 then
return
end
 
Così dovrebbe funzionare, fammi sapere :)
Codice:
say_title ( "Elmi livello 100" )
say ( "Salve Avventuriero" )
say ( "Io sono l'unico Fabbro in grado di darli" )
say ( "Seleziona quella che vuoi." )
say ( "Ricordati che sono da livello 100. Ecco i Bonus" )
say_reward ( "Difesa 125, Danni abilità 20%, blocco attaco 10%, forza 15" )
say_reward ( "Consegna i seguenti item :" )
say_reward ( "n 1 Elmo del Dio Drago +9" )
say_reward ( "n 1 Elmo Smeraldo" )
say_reward ( "Per Scegliere il Nuovo Elmo" )
local guerriero = select ( "Elmo Grande da Sura" , "Cappuccio Dorato da Ninja" , "Elmo Drago Rosso da War" , "Cappello stregato da Shamana" , "Annulla" )
if guerriero == 1 then
if pc . count_item ( 11964 ) < 1 or pc . count_item ( 12809 ) < 1 then
say ( "Non hai gli Item giusti" )
else
say ( "Ecco a te" )
pc . remove_item ( 11964 , 1 )
pc . remove_item ( 12809 , 1 )
pc . give_item2 ( "12260" , 1 )
return
end
elseif guerriero == 2 then
if pc . count_item ( 11964 ) < 1 or pc . count_item ( 12809 ) < 1 then
say ( "Non hai gli Item giusti" )
else
say ( "Ecco a te" )
pc . remove_item ( 11964 , 1 )
pc . remove_item ( 12809 , 1 )
pc . give_item2 ( "12400" , 1 )
return
end
elseif guerriero == 3 then
if pc . count_item ( 11964 ) < 1 or pc . count_item ( 12809 ) < 1 then
say ( "Non hai gli Item giusti" )
else
say ( "Ecco a te" )
pc . remove_item ( 11964 , 1 )
pc . remove_item ( 12809 , 1 )
pc . give_item2 ( "12540" , 1 )
return
end
elseif guerriero == 4 then
if pc . count_item ( 11964 ) < 1 or pc . count_item ( 12809 ) < 1 then
say ( "Non hai gli Item giusti" )
else
say ( "Ecco a te" )
pc . remove_item ( 11964 , 1 )
pc . remove_item ( 12809 , 1 )
pc . give_item2 ( "12689" , 1 )
return
end
elseif guerriero == 5 then
return
end
 
Stato
Discussione chiusa ad ulteriori risposte.