Jump to content

Recommended Posts

Posted

Hola, estoy intentando que esta quest funcione en un NPC, que te pida un objeto, que te de los objetos según raza y que te quite dicho objeto que te pide, pero no consigo que funcione, alguien me podría decir en que me estoy equivocando por favor 😃 , muchísimas gracias de antemano ijijijji

adad.png

Posted

Si es para una vez, entonces
Pd: Este post no va aqui, te recomiendo leer las reglas de la seccion "ayudas y preguntas"

quest ak begin
state start begin
when 20095.chat."text" with pc.count_item(19) > 0 and pc.getqf("complete")==0 begin
say_title("Npc")
say("text")
local list = {
	{"raza1", 0, 19, 1,19,1},
	{"raza2", 1, 19, 2,19,1},
	{"raza3", 2, 19, 3,19,1},
	{"raza4", 3, 19, 4,19,1},
	{"Cerrar"},
}
local list2 = {}
for i = 1, table.getn(list) do
	table.insert(list2, list[i][1])
end
local sel = select_table(list2)
if pc.get_job() !=list[sel][2] then
	say_reward("Raza equivocada")
	return end
pc.give_item2(list[sel][3],list[sel][4])
pc.remove_item(list[sel][5],list[sel][6])
pc.setqf("complete",1)
end
end
end

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • 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.