Jump to content
  • 0

Usar NPC 1 vez por personagem


Hakahay

Question


  • Group:  Members
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  82
  • Reputation:   4
  • Joined:  10/20/16
  • Last Seen:  

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

  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  39
  • Reputation:   5
  • Joined:  06/09/17
  • Last Seen:  

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

  • Group:  Members
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  82
  • Reputation:   4
  • Joined:  10/20/16
  • Last Seen:  

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

  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  39
  • Reputation:   5
  • Joined:  06/09/17
  • Last Seen:  

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