quest mestre begin
state start begin
when 20095.click begin -- when chat fica melhor do que o begin na minha opinião
local mestre = select("OldEliteMt2 Bank", "Top-Secret", "Fechar")
if mestre == 1 then
local bank = select("Pedir Cheque", "Depositar Cheque", "Fechar")
if bank == 1 then
local cost = 1000000000
if pc.get_gold() < cost then
say("nao tens o Yang necessario")
else
pc.give_item2(95002, 1)
pc.change_gold(-1000000000)
end
elseif bank == 2 then
if pc.count_item(95002) > 0 then
pc.remove_item(95002, 1)
pc.change_gold(1000000000)
else
say("O Pato Nao me Enganas")
end
elseif bank == 3 then
return
end
else
return
end
end
end
end
Bom a quest ta mais ou menos funcional so nao desempenha a funçao de verificar se o jogador tem o item no inventario e se tiver remover e dar lhe o dinheiro se nao tiver dizer a mensagem "Pato nao me enganas" esta parte é a que ta com erro:
Spoiler
elseif bank == 2 then
if pc.count_item(95002) > 0 then
pc.remove_item(95002, 1)
pc.change_gold(1000000000)
else
say("O Pato Nao me Enganas")
end
quest mestre begin
state start begin
when 20095.click begin -- when chat fica melhor do que o begin na minha opinião
local mestre = select("OldEliteMt2 Bank", "Top-Secret", "Fechar")
if mestre == 1 then
local bank = select("Pedir Cheque", "Depositar Cheque", "Fechar")
if bank == 1 then
local cost = 1000000000
if pc.get_gold() < cost then
say("nao tens o Yang necessario")
else
pc.give_item2(95002, 1)
pc.change_gold(-1000000000)
end
elseif bank == 2 then
if pc.count_item(95002) > 0 then
pc.remove_item(95002, 1)
pc.change_gold(1000000000)
else
say("O Pato Nao me Enganas")
end
elseif bank == 3 then
return
end
else
return
end
end
end
end
Bom a quest ta mais ou menos funcional so nao desempenha a funçao de verificar se o jogador tem o item no inventario e se tiver remover e dar lhe o dinheiro se nao tiver dizer a mensagem "Pato nao me enganas" esta parte é a que ta com erro:
elseif bank == 2 then
if pc.count_item(95002) > 0 then
pc.remove_item(95002, 1)
pc.change_gold(1000000000)
else
say("O Pato Nao me Enganas")
end
Share this post
Link to post
Share on other sites