Jump to content
  • 0
Hakahay

Usar NPC 1 vez por personagem

Question

Olá amigos,

   Como crio um NPC que eu possa falar com ele apenas uma vez por personagem, mesmo dando reloadscript ou resetando o servidor.

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 1
prontera,150,150,3    script    NomeNPC    909,{
if (falou!=0){
    end;
}
set falou,1;
end;

}

   Variáveis sem prefixo ficam salvas no char-server, linkado ao personagem.

Edited by Wickedknight2
Link to comment
Share on other sites

  • 0
2 hours ago, Wickedknight2 said:
prontera,150,150,3    script    NomeNPC    909,{
if (falou!=0){
    end;
}
set falou,1;
end;

}

   Variáveis sem prefixo ficam salvas no char-server, linkado ao personagem.

Se eu reiniciar o servidor eu não perco as informações?

Link to comment
Share on other sites

  • 0

   Não, porque são variáveis permanentes presas no personagem, que ficam salvas no seu SQL.

Prefix: scope and extent
nothing  - A permanent variable attached to the character, the default variable
           type. They are stored by char-server in the `char_reg_num` and
           `char_reg_str`.

  • Like 1
Link to comment
Share on other sites

Join the conversation

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

Guest
Answer this question...

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



×
×
  • Create New...

Important Information

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