Discussione [Aiuto]script stalliere

Stato
Discussione chiusa ad ulteriori risposte.

MaTaDoR

Utente Silver
30 Maggio 2009
4
2
0
57
uff rigaz... è da mooolto tempo ke nn scrivo per un aiuto xD tipo dal 2009 :D 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 >_>
 
Codice:
say ( "Vuoi addestrare il Cavallo?" ) 
say ( "" )
say ( "per addestrare 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 
	say ( "Cercala!" )
	say_item ( "50050" )
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
elseif main_set == 1 then
	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
end

Provalo ora e cmq dagli i permessi :D
 
grazie milleeee :D

---------- Post added at 17:41 ---------- Previous post was at 17:26 ----------

potresti leggere il pm pls?

---------- Post added at 19:19 ---------- Previous post was at 17:41 ----------

cmq non funziona lo script...
 
Stato
Discussione chiusa ad ulteriori risposte.