Discussione [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
 
prova così xD

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


local corazze = { 11971,11972,11973,11974 }


say_title ( "Mercante Nero: ")
say ( "Di che razza è la tua Corazza Hwang?" )
local s = select( "War", "Ninja", "Sura", "Shamy" )
say_title ( "Mercante Nero: ")
say ( "In cosa vorresti convertirla?" )
local c = select( "War", "Ninja", "Sura", "Shamy" )
if s == c then
say_title ( "Mercante Nero: ")
say ( "Non puoi convertire nella stessa razza." )
return
end    
if pc.count_item (corazze[s]) >= 1 and pc.count_item ( 27992 ) >= 3 and pc.count_item ( 27993 ) >= 3 and pc.count_item ( 27994 ) >= 3 then


pc.remove_item(corazze[s],1)
pc.remove_item(27992,3)
pc.remove_item(27993,3)
pc.remove_item(27994,3)
pc.give_item2(corazze[c],1)
say_title ( "Mercante Nero: ")
say("Ecco a te...")
say("")
say_reward("Hai ricevuto:")
say_item_vnum(corazze[c])
else
say ( "Non hai gli Item necessari!" )
say ( "Torna quando li avrai tutti!" )
return
end
 
prova così xD

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


local corazze = { 11971,11972,11973,11974 }


say_title ( "Mercante Nero: ")
say ( "Di che razza è la tua Corazza Hwang?" )
local s = select( "War", "Ninja", "Sura", "Shamy" )
say_title ( "Mercante Nero: ")
say ( "In cosa vorresti convertirla?" )
local c = select( "War", "Ninja", "Sura", "Shamy" )
if s == c then
say_title ( "Mercante Nero: ")
say ( "Non puoi convertire nella stessa razza." )
return
end    
if pc.count_item (corazze[s]) >= 1 and pc.count_item ( 27992 ) >= 3 and pc.count_item ( 27993 ) >= 3 and pc.count_item ( 27994 ) >= 3 then


pc.remove_item(corazze[s],1)
pc.remove_item(27992,3)
pc.remove_item(27993,3)
pc.remove_item(27994,3)
pc.give_item2(corazze[c],1)
say_title ( "Mercante Nero: ")
say("Ecco a te...")
say("")
say_reward("Hai ricevuto:")
say_item_vnum(corazze[c])
else
say ( "Non hai gli Item necessari!" )
say ( "Torna quando li avrai tutti!" )
return
end

grande ti stimoo!!!!! funzione alla grande xDD dovresti darmi un po di lezioni di LUA qualche volta ahhahahaahahhaha posso aggiungerti su skype??? se vuoi ecco il mio contatto: ali3njump3r

EDIT: potete chiudere grazie =)
 
Stato
Discussione chiusa ad ulteriori risposte.
Indietro
Top Bottom