Jump to content

Recommended Posts

Posted

quest premio begin
	state start begin
  when VNUMNPC.chat."Regalo" begin ----Vnum del npc
   say_title("escribe lo que quieras por aqui")
   say("escribe lo que quieras por aqui")
   say("escribe lo que quieras por aqui")
   say("Queires entregar los regalos por tus items?")
   local menu = select ("Si","No")
   if menu == 2 then
	say("vuelve cuando quieras")
	return
   elseif menu == 1 then
	local items = pc.count_item(vnum del item)  ---Vnum del item
	if items >= 10 then
	 say("Muy bien!!!")
	 say("En recompensa te voy a dar este regalo")
	 pc.remove_item(VnumITEM, 10 )   ---Vnum del item
	 pc.give_item2(VNUM premio, 1 )   ---Vnum del premio
	 return
	elseif peces < 10 then
	 say("No tienes los items necesarios")
	 return
	end
   end
  end
end
end

te he marcado con comentarios donde tienes que poner los vnum de las cosas

Posted

la has hecho mal por que la opcion deveria aparecer si tienes los items algo asi:

quest regalo begin
state start begin
when NPC.chat."lo que quieras" with pc.count_item(VNUM) == 10 begin
say("Recives 1 regalo")
pc.give_item2(VNUM)
end
end
end
end
  • Dilong locked this topic
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

This site uses cookies to enhance your browsing experience and provide relevant content. By continuing to browse, you agree to our We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. and Terms of Use. For more information on how we protect your data, please check our Privacy Policy.