Jump to content
  • 0

Usar NPC 1 vez por personagem


Question

Posted

Olá amigos,

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

3 answers to this question

Recommended Posts

  • 1
Posted (edited)
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
  • 0
Posted
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?

  • 0
Posted

   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

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...