Code:
quest dr2 begin
state start begin
when 1093.kill begin
say_title("Parabéns!")
say("Mataste o DR, escolhe o teu prémio:")
local premio = select ("Armas","Armaduras")
if premio == 1 then
if pc . job == 0 then
local armasnome1 = select ("Faca Dragão+5(65)","Arco Dragão Amarelo+5(65)","Lâmina Zanna Fantasma+5(65)","Leque Ave do Paraíso+5(65)","Campainha Céu e Terra+5(65)")
if armasnome1 == 1 then
say("Recebeste o que pediste.")
pc.give_item2 (1105)
if armasnome1 == 2 then
say("Recebeste o que pediste.")
pc.give_item2 (2145)
if armasnome1 == 3 then
say("Recebeste o que pediste.")
pc.give_item2 (155)
if armasnome1 == 4 then
say("Recebeste o que pediste.")
pc.give_item2 (7135)
if armasnome1 == 5 then
say("Recebeste o que pediste.")
pc.give_item2 (5105)
elseif pc . job == 1 then
local armasnome2 = select ("Partidário+5(65)","Lâmina Zanna Fantasma+5(65)","Leque Ave do Paraíso+5(65)","Campainha Céu e Terra+5(65)")
if armasnome2 == 1 then
say("Recebeste o que pediste.")
pc.give_item2 (3135)
if armasnome2 == 2 then
say("Recebeste o que pediste.")
pc.give_item2 (155)
if armasnome2 == 3 then
say("Recebeste o que pediste.")
pc.give_item2 (7135)
if armasnome2 == 4 then
say("Recebeste o que pediste.")
pc.give_item2 (5105)
elseif pc . job == 2 then
local armasnome3 = select ("Partidário+5(65)","Faca Dragão+5(65)","Arco Dragão Amarelo+5(65)","Leque Ave do Paraíso+5(65)","Campainha Céu e Terra+5(65)")
if armasnome3 == 1 then
say("Recebeste o que pediste.")
pc.give_item2 (3135)
if armasnome3 == 2 then
say("Recebeste o que pediste.")
pc.give_item2 (1105)
if armasnome3 == 3 then
say("Recebeste o que pediste.")
pc.give_item2 (2145)
if armasnome3 == 4 then
say("Recebeste o que pediste.")
pc.give_item2 (7135)
if armasnome3 == 5 then
say("Recebeste o que pediste.")
pc.give_item2 (5105)
elseif pc . job == 3 then
local armasnome4 = select ("Espada de Batalha+5(65)","Partidário+5(65)","Faca Dragão+5(65)","Arco Dragão Amarelo+5(65)","Lâmina Zanna Fantasma+5(65)")
if armasnome4 == 1 then
say("Recebeste o que pediste.")
pc.give_item2 (145)
if armasnome4 == 2 then
say("Recebeste o que pediste.")
pc.give_item2 (3135)
if armasnome4 == 3 then
say("Recebeste o que pediste.")
pc.give_item2 (1105)
if armasnome4 == 4 then
say("Recebeste o que pediste.")
pc.give_item2 (2145)
if armasnome4 == 5 then
say("Recebeste o que pediste.")
pc.give_item2 (155)
elseif premio == 2 then
say ( "Ainda indisponível." )
say ( "A equipa ainda está a construir esta parte." )
end
end
end
end
end
end
end
end
end
What's the error? :P






