Jump to content
TLThings

[duvida] Existe algum modo de ativar uma quest ao morrer


Recommended Posts

O pc.is_dead já existe desde o início dos 34k.

@Sinval a função é do tipo boolean, ou é verdadeiro ou falso.

A forma correta de quereres fazer algo quando morres é assim:

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

Edited by Mário.
  • Like 1
Link to post
Share on other sites
Please login or register to see this quote.

Sim, when kill é apenas quando o jogador mata, no caso, para verificar quando o jogador está morto, se for em algum evento/guerra basta fazer um timer e ficar verificando sempre se o jogador está morto, porém não é a melhor opção, então recomendo que verifique o funcionamento da função do "Zonni", acredito que deve ser mais viável. 

Link to post
Share on other sites

Ficheiro char_battle.cpp

Procurar por:

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

Adicionar em cima:

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

Ficheiro quest.h

Procurar por:

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

Adicionar em cima:

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

Ficheiro questmanager.cpp

Procurar por:

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

Adicionar debaixo:

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

Procurar por:

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

Adicionar em cima:

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

Ficheiro questmanager.h

Procurar por:

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

Adicionar debaixo:

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

Ficheiro questnpc.cpp

Procurar por:

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

Adicionar em cima:

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

Ficheiro questnpc.h

Procurar por:

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

Adicionar debaixo:

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

Exemplo de quest:

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

__

Hidden Content

    Give reaction or reply to this topic to see the hidden content.

 

Dessa maneira funcionará cada vez que morres.

 

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
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.