antiblock
Elveron
  • Chatbox

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

---->Duvida Numa Quest<----

Question

Boas pessoal,

quando eu tenho meter a minha quest, aparece http://gyazo.com/3170f3c1cb56d6522c50516f7798c691

E a maquina diz que é na linha 3

E o que está na linha 3 é isto:

if pc.getqf("swaga") == 0 then
quest give_cavalo_militar begin	state start begin	if pc.getqf(swaga) == 0 thenwhen login or levelup with pc.get_kills() > 79 begin		set_state("swag")endendend	state swag begin			when letter begin				send_letter("Cavalo militar")			end						when button or info begin			pc.setqf("swaga", 1)			horse.set_level( 21 )			pc.give_item2(50053, 1)			say_title("Cavalo militar")			end		end	endend

Aqui está a quest inteira... e sim, tenho a function pc.get_kills

Share this post


Link to post
Share on other sites

6 answers to this question

  • 0

vai quest functions e mete isto : pc.getqf

Share this post


Link to post
Share on other sites
antiblock
diamwall
  • 0

vai quest functions e mete isto : pc.getqf

Já cá estava :S

Share this post


Link to post
Share on other sites
  • 0
quest give_cavalo_militar begin	state start begin		when kill with not npc.is_pc() begin			pc.setqf("kills", pc.getqf("kills")+1)		end		when login or levelup with pc.getqf("kills") > 79 begin			set_state(swag)		end	end	state swag begin		when letter begin send_letter("Cavalo Militar") end		when button or info begin			repeat				horse.advance()			until horse.get_level() == 21			pc.give_item2(50053, 1)		end	endend

Share this post


Link to post
Share on other sites
  • 0
quest give_cavalo_militar begin	state start begin		when kill with not npc.is_pc() begin			pc.setqf("kills", pc.getqf("kills")+1)		end		when login or levelup with pc.getqf("kills") > 79 begin			set_state(swag)		end	end	state swag begin		when letter begin send_letter("Cavalo Militar") end		when button or info begin			repeat				horse.advance()			until horse.get_level() == 21			pc.give_item2(50053, 1)		end	endend

Sim, provavelmente isso deve funcionar xD, tmb tenho uma coluna de kills no player.player mas n deve dar para fzr pc.get_kills (eu adicionei na questlib)

Share this post


Link to post
Share on other sites
  • 0

Então exprimenta : if pc.getqf

Obrigado na mesma pela help ;)

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