uff rigaz... è da mooolto tempo ke nn scrivo per un aiuto xD tipo dal 2009 ho fatto tutto da me in tutto ma ora devo kiedervi un'aiuto xD ho usato il cerka ma nn ho trovato una soluzione al mio problema...
praticamente non riesco a imporre un limite di tempo tra una med e l'altra uff... ekko lo script
say ( "Vuoi addestrare il Cavallo?" )
say ( "" )
say ( "per ddestrare il cavallo devi avere" )
say ( "una Medaglia d'Equitazione" )
say_reward ( "Hai la Medaglia d'Equitazione??" )
local main_set = select ( "Si" , "No" )
if main_set == 2 then
setstate ( "need_item50050" )
elseif get_time ( ) < pc . getqf ( "next_time" ) then
pc . setqf ( "next_time" , get_time ( ) + 10 )
else
pc . setqf ( "next_time" , get_time ( ) + number ( 16 , 32 ) * 60 * 60 )
say ( "Non sono passate ancora le 24 ore!." )
return
end
if horse . get_level ( ) == 10
or horse . get_level ( ) == 20 then
say ( "Non puoi allenare piu' di cosi' il cavallo," )
say ( "devi prenderti un cavallo piu' forte." )
say ( "" )
return
end
if horse . get_level ( ) == 30 then
say ( "Non puoi allenare piu' di cosi' il cavallo," )
say ( "hai raggiunto il livello massimo." )
say ( "" )
return
end
if pc . countitem ( 50050 ) > 0 and horse . get_level ( ) > 0 then
say ( "Perfetto!" )
say ( "Il Cavallo e' salito di livello!" )
say ( "Torna presto!" )
wait ( )
pc . removeitem ( 50050 , 1 )
horse . unride ( )
horse . advance ( )
horse . ride ( )
else
say ( "Non hai gli oggetti necessari." )
say ( "" )
return
end
ditemi dv sbaglio ç_ç aiutooo xD
---------- Post added at 14:28 ---------- Previous post was at 13:44 ----------
uppp x favore >_>
praticamente non riesco a imporre un limite di tempo tra una med e l'altra uff... ekko lo script
say ( "Vuoi addestrare il Cavallo?" )
say ( "" )
say ( "per ddestrare il cavallo devi avere" )
say ( "una Medaglia d'Equitazione" )
say_reward ( "Hai la Medaglia d'Equitazione??" )
local main_set = select ( "Si" , "No" )
if main_set == 2 then
setstate ( "need_item50050" )
elseif get_time ( ) < pc . getqf ( "next_time" ) then
pc . setqf ( "next_time" , get_time ( ) + 10 )
else
pc . setqf ( "next_time" , get_time ( ) + number ( 16 , 32 ) * 60 * 60 )
say ( "Non sono passate ancora le 24 ore!." )
return
end
if horse . get_level ( ) == 10
or horse . get_level ( ) == 20 then
say ( "Non puoi allenare piu' di cosi' il cavallo," )
say ( "devi prenderti un cavallo piu' forte." )
say ( "" )
return
end
if horse . get_level ( ) == 30 then
say ( "Non puoi allenare piu' di cosi' il cavallo," )
say ( "hai raggiunto il livello massimo." )
say ( "" )
return
end
if pc . countitem ( 50050 ) > 0 and horse . get_level ( ) > 0 then
say ( "Perfetto!" )
say ( "Il Cavallo e' salito di livello!" )
say ( "Torna presto!" )
wait ( )
pc . removeitem ( 50050 , 1 )
horse . unride ( )
horse . advance ( )
horse . ride ( )
else
say ( "Non hai gli oggetti necessari." )
say ( "" )
return
end
ditemi dv sbaglio ç_ç aiutooo xD
---------- Post added at 14:28 ---------- Previous post was at 13:44 ----------
uppp x favore >_>