Hakahay Posted October 9, 2018 Group: Members Topic Count: 33 Topics Per Day: 0.01 Content Count: 82 Reputation: 4 Joined: 10/20/16 Last Seen: Thursday at 08:44 PM Share Posted October 9, 2018 Olá amigos, Como crio um NPC que eu possa falar com ele apenas uma vez por personagem, mesmo dando reloadscript ou resetando o servidor. Quote Link to comment Share on other sites More sharing options...
1 Wickedknight2 Posted October 9, 2018 Group: Members Topic Count: 10 Topics Per Day: 0.00 Content Count: 39 Reputation: 5 Joined: 06/09/17 Last Seen: Yesterday at 02:47 PM Share Posted October 9, 2018 (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 October 9, 2018 by Wickedknight2 Quote Link to comment Share on other sites More sharing options...
0 Hakahay Posted October 9, 2018 Group: Members Topic Count: 33 Topics Per Day: 0.01 Content Count: 82 Reputation: 4 Joined: 10/20/16 Last Seen: Thursday at 08:44 PM Author Share Posted October 9, 2018 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? Quote Link to comment Share on other sites More sharing options...
0 Wickedknight2 Posted October 10, 2018 Group: Members Topic Count: 10 Topics Per Day: 0.00 Content Count: 39 Reputation: 5 Joined: 06/09/17 Last Seen: Yesterday at 02:47 PM Share Posted October 10, 2018 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`. 1 Quote Link to comment Share on other sites More sharing options...
Question
Hakahay
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.