Ir para conteúdo

Featured Replies

Postado
Em 4/22/2025 em 2:36 PM, Mateus Robeerto disse:

Using onStatsChangein TFS 1.x? That's completely incorrect — the proper way is to use onHealthChangeand onManaChange.

However, there is an alternative that doesn't require using two separate functions. It's working — I did it for OTG Global. Take a look at this:

https://github.com/otg-br/global-11x/blob/main/data/scripts/custom_system_event/boosted_creature_system_full.lua#L192

 

 

@Under, take a look at this system. What I did is very different from yours, but it's working 100%.

It displays monsters as statues, shows boost information, XP percentage and loot. It also sends messages with this information when logging in.

Additionally, you can place it on a floor with actionID, and when the player steps on it, a message appears or a command is executed. Everything is working perfectly, including loot and experience.

If you want, feel free to take a look, adapt it for your GitHub or even make it public.

correct i was wrong about the function name.

  • Respostas 5
  • Visualizações 907
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • use onstatschange and lua table = {} to store the damage then count total damage divide it by the expereince and give correct experience to players aditionally to loot just use events monster ond

  • Mateus Robeerto
    Mateus Robeerto

    Using onStatsChange in TFS 1.x? That's completely incorrect — the proper way is to use onHealthChange and onManaChange. However, there is an alternative that doesn't require using two separate fu

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.7k

Informação Importante

Confirmação de Termo