Discussione [RISOLTO][Richiesta] Npc cambia item

Stato
Discussione chiusa ad ulteriori risposte.
Re: [Richiesta] Npc cambia item

Come da te richiesto su Skype ti ho creato questo Npc scambia_item. Ovvero scambia 5 perle di ogni tipo per un item. Con questo script spero di essere d'aiuto alla community, a coloro che sono più inesperti nel creare queste semplicissime cose.

say_title ("Scambio Item.")
say ( "Ciao, scambio Item che potrebbero interessarti" )
say ( "a patto che tu mi dia 5 Perle rosse, Blu e Bianche" )
local sel = select ("Spada OlimpuS+9", "Spadone OlimpuS+9" , "Arco OlimpuS+9" , "Pugnali OlimpuS+9" , "Scettro OlimpuS+9" , "Esci" )
if sel == 1 then
if pc . countitem ( "27994" , "27993" , "27992" ) >= 5 then
say_title ("Cambia Item")
say ("Testo")
pc . give_item2 ( "9299" , 1)
pc . remove_item ( "27994" , 5 )
pc . remove_item ( "27993" , 5 )
pc . remove_item ( "27992" , 5 )
else
say_title ( "Cambia Item" )
say ( "Vergogna, credevi di potermi fregare?!" )
end
end
if sel == 2 then
if pc . countitem ( "27994" , "27993" , "27992" ) >= 5 then
say_title ("Cambia Item")
say ("Testo")
pc . give_item2 ( "9199" , 1)
pc . remove_item ( "27994" , 5 )
pc . remove_item ( "27993" , 5 )
pc . remove_item ( "27992" , 5 )
else
say_title ( "Cambia Item" )
say ( "Vergogna, credevi di potermi fregare?!" )
end
end
if sel == 3 then
if pc . countitem ( "27994" , "27993" , "27992" ) >= 5 then
say_title ("Cambia Item")
say ("Testo")
pc . give_item2 ( "9399" , 1)
pc . remove_item ( "27994" , 5 )
pc . remove_item ( "27993" , 5 )
pc . remove_item ( "27992" , 5 )
else
say_title ( "Cambia Item" )
say ( "Vergogna, credevi di potermi fregare?!" )
end
end
if sel == 4 then
if pc . countitem ( "27994" , "27993" , "27992" ) >= 5 then
say_title ("Cambia Item")
say ("Testo")
pc . give_item2 ( "9499" , 1)
pc . remove_item ( "27994" , 5 )
pc . remove_item ( "27993" , 5 )
pc . remove_item ( "27992" , 5 )
else
say_title ( "Cambia Item" )
say ( "Vergogna, credevi di potermi fregare?!" )
end
end
if sel == 5 then
if pc . countitem ( "27994" , "27993" , "27992" ) >= 5 then
say_title ("Cambia Item")
say ("Testo")
pc . give_item2 ( "9599" , 1)
pc . remove_item ( "27994" , 5 )
pc . remove_item ( "27993" , 5 )
pc . remove_item ( "27992" , 5 )
else
say_title ( "Cambia Item" )
say ( "Vergogna, credevi di potermi fregare?!" )
end
end
if sel == 6 then
return

end
Grazie per averti potuto aiutare.
 
Stato
Discussione chiusa ad ulteriori risposte.
Indietro
Top Bottom