antiblock
https://arwen2.global/
  • Chatbox

    You don't have permission to chat.
    Load More
  • 0
Sign in to follow this  
fullmedyc

[Dúvida] Existe Npc Que Faça Drop De Item Pelo Vnum?

Question

Bom dia srs.

Podem me informa se existe no metin2 algum npc que faça drop de items pelo vnum? Onde o npc forneça um campo para digitação do vnum do item que o jogador quiser.

Share this post


Link to post
Share on other sites

7 answers to this question

  • 0

Não, mas podes tu criar...

Share this post


Link to post
Share on other sites
antiblock
Rodnia | Alpha & Omega
  • 0

Obrigado HabiraMt2. Tinha receio de reiventar a roda refazendo algo que ja existisse. :)

Share this post


Link to post
Share on other sites
  • 0

Quest para o que queres seria algo neste género (não testei pois vou dormir agora)

 

quest drop_item begin        state start begin                when ID.chat."Dropar item" begin                        say_title("Oferta")                        say("")                        say("És um sortudo, podes escolher um item à tua escolha!")                        say("Insere o vnum do item que desejas:")                        say("")                        local b=input()                        if b>0 then					game.drop_item_with_ownership(b, 1)                                else					return                                end			end	                end        end       end 

Share this post


Link to post
Share on other sites
  • 0

Fiz 2 versões, uma só para GM's e outra para todos.Nota: onde diz "ID" metes o ID do NPC.Apenas GM

quest drop begin		state start begin			when ID.chat."GM: Dropar Item" with pc.is_gm begin			say_title("... ... ...:")			say("... ... ...")			say("... ... ...")			say("")			say_reward("... ... ...")			say("")			local d = select ( "Sim" , "Não" )			if d == 1 then			say_title("... ... ...:")			say("... ... ...")			say("")			local drop = input ()			game.drop_item_with_ownership("" .. drop .. "")			if drop == "" then			say_title("... ... ...:")			say("... ... ...")			say("... ... ...")			say("")			return			end			elseif d == 2 then			return			end		end	end end

Para todos

quest drop begin		state start begin			when ID.chat."Dropar Item" begin			say_title("... ... ...:")			say("... ... ...")			say("... ... ...")			say("")			say_reward("... ... ...")			say("")			local d = select ( "Sim" , "Não" )			if d == 1 then			say_title("... ... ...:")			say("... ... ...")			say("")			local drop = input ()			game.drop_item_with_ownership("" .. drop .. "")			if drop == "" then			say_title("... ... ...:")			say("... ... ...")			say("... ... ...")			say("")			return			end			elseif d == 2 then			return			end		end	end end

Share this post


Link to post
Share on other sites
  • 0

Está aqui o que pedias...

 

Fiz 2 versões, uma só para GM's e outra para todos.Nota: onde diz "ID" metes o ID do NPC.Apenas GM

quest drop begin		state start begin			when ID.chat."GM: Dropar Item" with pc.is_gm begin			say_title("... ... ...:")			say("... ... ...")			say("... ... ...")			say("")			say_reward("... ... ...")			say("")			local d = select ( "Sim" , "Não" )			if d == 1 then			say_title("... ... ...:")			say("... ... ...")			say("")			local drop = input ()			game.drop_item_with_ownership("" .. drop .. "")			if drop == "" then			say_title("... ... ...:")			say("... ... ...")			say("... ... ...")			say("")			return			end			elseif d == 2 then			return			end		end	end end

Para todos

quest drop begin		state start begin			when ID.chat."Dropar Item" begin			say_title("... ... ...:")			say("... ... ...")			say("... ... ...")			say("")			say_reward("... ... ...")			say("")			local d = select ( "Sim" , "Não" )			if d == 1 then			say_title("... ... ...:")			say("... ... ...")			say("")			local drop = input ()			game.drop_item_with_ownership("" .. drop .. "")			if drop == "" then			say_title("... ... ...:")			say("... ... ...")			say("... ... ...")			say("")			return			end			elseif d == 2 then			return			end		end	end end

 

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