Domanda [AIUTO] Script teleporter

Stato
Discussione chiusa ad ulteriori risposte.

fenyxx92

Utente Silver
27 Aprile 2012
24
8
0
51
Salve a tutti dovrei fare una quest (pergamena) con il teleporter, ho provato con uno script ma neanche spunta in game...ho anche letto che si può mettere il blocco del liv, nel senso che un pg liv 30 ad esempio non può andare in atlantide 2 se non è al livello 80...
lo script che ho usato è questo quì sotto,se qualcuno sarebbe così gentile da correggerlo e aggiungere il blocco livello (esempio riportato su) lo ringrazio infinitamente :D

quest teleporter_portatile begin
state start begin
when login or levelup with pc.get_level() > 0 begin
set_state( "asd" )
end
end
state asd begin
when letter begin
send_letter( "Teleporter portatile" )
end
when button or info begin
say_title( "Teleporter portatile" )
set_state( "asd" )








local ganja = select("Teleporter Villi", "Teleporter mappe EXP", "Annulla")
if ganja == 1 then
say_title ( " Teleporter Villaggi " )
say ( " Benvenuto. " )
say ( " vuoi viaggiare? " )
say ( "" )
say ( "" )
local ceso = select ( "Si" , "No" )
if ceso == 2 then
say ( " Mi dispiace sarà per un altra volta " )
return
end
say ( " Bene ora devi scegliere la tua " )
say ( " destinazione per essere trasportato. " )
villaggiz = select ( " Shinsoo" , " Chunjo" , " Jinno" , "Annulla" )
if 1 == villaggiz then
rossiz = select ( "Villo 1" , "Villo 2" , "Annulla" )
if 1 == rossiz then
say ( "Ora verrai teletrasportato." )
wait ( )
pc . warp ( 469300 , 964200 )


elseif 2 == rossiz then
say ( "Ora verrai teletrasportato." )
wait ( )
pc . warp ( 360800 , 877600 )
end


elseif 2 == villaggiz then
gialliz = select ( "Villo 1" , "Villo 2" , "Annulla" )
if 1 == gialliz then
say ( "Ora verrai teletrasportato." )
wait ( )
pc . warp ( 55700 , 157900 )


elseif 2 == gialliz then
say ( "Ora verrai teletrasportato." )
wait ( )
pc . warp ( 138500 , 234900 )
end


elseif 3 == villaggiz then
bluz = select ( "Villo 1" , "Villo 2" , "Annulla" )
if 1 == bluz then
say ( "Ora verrai teletrasportato." )
wait ( )
pc . warp ( 969600 , 278400 )


elseif 2 == bluz then
say ( "Ora verrai teletrasportato." )
wait ( )
pc . warp ( 873100 , 242600 )
end
end


elseif ganja == 2 then
say ("Teleporter mappe EXP")
say ("vuoi viaggiare?")
say ("")
say ("")
local asdin = select ("Si" , "No")
if asdin == 2 then
say ("Fa Niente, ciao")
return
end
say ("Scegli la tua destinazione")
say ("Vai.")
local zone = select ( "Atlantide1" , "Atlantide2" , "Bosco rosso" , "Bosco fantasma" , "Covo2 stanza rossa" , "Covo1 stanza rossa" , "Valle colonna blu" , "Valle colonna rossa" , "Valle colonna gialla" , "Annulla")
if pc . level >= 80 then
if zone == 1 then
pc . warp ( 10000 , 1207800 )


if pc . level >= 90 then
elseif zone == 2 then
pc . warp ( 241300 , 1275500 )


if pc . level >= 70 then
elseif zone == 3 then
pc . warp ( 1119900 , 70800 )


if pc . level >= 70 then
elseif zone == 4 then
pc . warp ( 288700 , 5700 )


if pc . level >= 50 then
elseif zone == 5 then
pc . warp ( 703800 , 522700 )


elseif zone == 6 then
pc . warp ( 89600 , 525400 )


elseif zone == 7 then
pc . warp ( 334900 , 755800 )


elseif zone == 8 then
pc . warp ( 346400 , 733200 )


elseif zone == 9 then
pc . warp ( 317200 , 732200 )


elseif zone == 10 then
return
end
end
end
end
end
 
Codice:
quest teleporter_portatile begin
	state start begin
		when login or levelup begin
			set_state("asd")
		end
	end
	
	state asd begin
		when letter begin
			send_letter("Teleporter portatile")
		end
		
		when button or info begin
			say_title("Teleporter portatile")
			local ganja = select("Teleporter Villi", "Teleporter mappe EXP", "Annulla")
			if ganja == 3 then
				return
			elseif ganja == 1 then
				say_title("Teleporter Villaggi") 
				say ("Benvenuto. ")
				say ("vuoi viaggiare? ")
				say ("")
				say ("")
				local ceso = select ("Si" , "No")
				if ceso == 2 then
					say ("Mi dispiace sarà per un altra volta")
					return
				end
				
				say("Bene ora devi scegliere la tua ")
				say("destinazione per essere trasportato. ")
				local villaggiz = select ("Shinsoo", "Chunjo", "Jinno", "Annulla")
				if villaggiz == 4 then
				elseif villaggiz == 1 then
					local rossiz = select ("Villo 1" , "Villo 2" , "Annulla")
					if rossiz == 3 then
						return
					elseif rossiz == 1 then
						say("Ora verrai teletrasportato.")
						wait() 
						pc.warp(469300, 964200) 
					elseif rossiz == 2 then 
						say("Ora verrai teletrasportato.")
						wait()
						pc.warp(360800, 877600)
					end
				elseif villaggiz == 2 then
					local gialliz = select ("Villo 1" , "Villo 2" , "Annulla")
					if gialliz == 3 then
						return
					elseif gialliz == 1 then
						say("Ora verrai teletrasportato.")
						wait() 
						pc.warp (55700, 157900)
					elseif gialliz == 2 then 
						say("Ora verrai teletrasportato.")
						wait()
						pc.warp(138500, 234900) 
					end
				elseif villaggiz == 3 then
					local bluz = select ("Villo 1" , "Villo 2" , "Annulla")
					if bluz == 3 then
						return
					elseif bluz == 1 then
						say("Ora verrai teletrasportato.")
						wait() 
						pc.warp (969600, 278400)
					elseif bluz == 2 then 
						say("Ora verrai teletrasportato.")
						wait()
						pc.warp(873100, 242600) 
					end
				end
			elseif ganja == 2 then 
				say("Teleporter mappe EXP")
				say("vuoi viaggiare?")
				say("")
				say("")
				local asdin = select("Si", "No")
				if asdin == 2 then
					say ("Fa Niente, ciao")
					return
				end
				
				say ("Scegli la tua destinazione")
				say ("Vai.")
				local zone = select("Atlantide1", "Atlantide2", "Bosco rosso", "Bosco fantasma", "Covo2 stanza rossa", "Covo1 stanza rossa", "Valle colonna blu", "Valle colonna rossa", "Valle colonna gialla", "Annulla")
				if zone == 10 then
					return
				elseif zone == 1 then
					if pc.get_level >= 80 then
						pc.warp(10000, 1207800)
					else
						say("Il tuo livello è troppo baso.")
						return
					end
				elseif zone == 2 then
					if pc.get_level >= 90 then
						pc.warp(241300, 1275500)
					else
						say("Il tuo livello è troppo baso.")
						return
					end
				elseif zone == 3 then
					if pc.get_level >= 70 then
						pc.warp(1119900, 70800)
					else
						say("Il tuo livello è troppo baso.")
						return
					end
				elseif zone == 4 then
					if pc.get_level >= 70 then
						pc.warp(288700, 5700)
					else
						say("Il tuo livello è troppo baso.")
						return
					end
				elseif zone == 5 then
					if pc.get_level >= 50 then
						pc.warp(703800, 522700)
					else
						say("Il tuo livello è troppo baso.")
						return
					end
				elseif zone == 6 then
					pc.warp(89600, 525400)
				elseif zone == 7 then
					pc.warp(334900, 755800)
				elseif zone == 8 then
					pc.warp(346400, 733200)
				elseif zone == 9 then
					pc.warp(317200, 732200)
				end
			end
		end
	end
end
 
Sistemato adesso spunta la pergamena funziona tutto ma quando entro con un pg liv 1 e clicco su covo 2 (liv50) non appare niente del tipo sei di livello troppo basso..
 
Stato
Discussione chiusa ad ulteriori risposte.
Indietro
Top Bottom