antiblock
Elveron
  • Chatbox

    You don't have permission to chat.
    Load More
  • 0
Sign in to follow this  
【★】ʀℯɱℯɳɞℯʀGåɱℯʂ【★】

[Duvida] Alterar Esta Quest A Pedir Item Ao Entrar

Question

Como faço para esta quest pedir item ao entrar na Torre de Nemeres?
 
 
 
 
local level = pc . get_level ( ) 
say_title ( "Olá Guerreiro(a)" ) 
say ( "Posso levar você até a Torre de Nemeres." ) 
say ( "Mas tenha cuidado, la é muito perigoso." ) 
say ( "" )
local option = select ( "Entrar" , "Não," ) 
if option == 1 then 
if level >= 92 then
say ( "Boa sorte!" ) 
wait ( )
pc . warp ( 588100 , 180300 ) 
else 
say ( "Você não tem o level necessário." ) 
end 
else 
return 
end 
 

 

Share this post


Link to post
Share on other sites

3 answers to this question

  • 0

local level = pc.get_level()

local item = item_id

say_title("Olá Guerreiro(a)")

say("Posso levar você até à Torre de Nemere.")

say("Mas tenha cuidado, lá é muito perigoso.")

say()

local option = select("Entrar", "Não")

if option == 1 then

if level >= 92 then

say("Boa sorte!")

wait()

pc.warp(588100, 180300)

else

say("Você não tem o level necessário.")

end

if item = item_id then --if item = (item_id, quant)

say("Boa sorte!")

wait()

pc.warp(588100, 180300)

else

say("Você não tem o item necessário.")

end

else

return

end

Share this post


Link to post
Share on other sites
antiblock
Elveron
  • 0
local level = pc.get_level()
local item = item_id
		say_title("Olá Guerreiro(a)") 
		say("Posso levar você até à Torre de Nemere.")
		say("Mas tenha cuidado, lá é muito perigoso.")
		say()
		local option = select("Entrar", "Não")
		if option == 1 then
			if level >= 92 then
				say("Boa sorte!")
				wait()
				pc.warp(588100, 180300)
			else
				say("Você não tem o level necessário.")
			end
			if item = item_id then --if item = (item_id, quant)
				say("Boa sorte!")
				wait()
				pc.warp(588100, 180300)
			else
				say("Você não tem o item necessário.")
			end 
		else
			return
		end 

 

 

Não deu certo, quando a implemento desta forma a NPC não abre a opção Torre de Nemeres ...

Share this post


Link to post
Share on other sites
  • 0

local level = pc . get_level ( )
if pc.job == 0 then
if pc.get_sex() == 0 then
say_title ( "Olá Guerreiro" )
else
say_title ( "Olá Guerreira" )
end
elseif pc.job ==  1 then
say_title ( "Olá Ninja" )
elseif pc.job == 2 then
say_title ( "Olá Sura" )
elseif pc.job == 3 then
say_title ( "Olá Shaman" )
end
say ( "Posso levar você até a Torre de Nemeres." )
say ( "Mas tenha cuidado, la é muito perigoso." )
say ( "" )
local option = select ( "Entrar" , "Não," )
if option == 1 then
if level >= 92 then
if pc.count_item(ID DO ITEM) >= 1 then
say ( "Boa sorte!" )
wait ( )
pc.remove_item(ID DO ITEM,1)
pc.warp(588100,180300)
else
say("Precisas do item XPTO")
end
else
say ( "Você não tem o level necessário." )
end
else
return
end



as linhas que eu adicionei são para meteres na Quest e não para editar os files dentro da pasta object (nem se se funciona dessa forma ou não).

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this