[DiscordArchive] Anyone know how to make an area fishable?
[DiscordArchive] Anyone know how to make an area fishable?
Archived author: DestroTheHarbinger • Posted: 2023-05-31T23:04:30.133000+00:00
Original source
Anyone know how to make an area fishable?
Archived author: DestroTheHarbinger • Posted: 2023-05-31T23:04:44.947000+00:00
Original source
like if I wanted to make a custom fishing area?
Archived author: Mr Totoro • Posted: 2023-05-31T23:31:24.703000+00:00
Original source
I'm working on a TrinityCore 3.3.5-based server and I would like to implement a 50% experience bonus for players from level 1 to 20. I'm currently using Eluna LuaEngine for making modifications. Could anyone guide me on how I can add this experience bonus to the code or provide an example of implementation? Thanks in advance for the help!
Archived author: Mr Totoro • Posted: 2023-05-31T23:53:02.703000+00:00
Original source
```-- Função chamada quando o jogador ganha XP
function OnPlayerGainXP(event, player, amount, victim)
local level = player:GetLevel() -- Obtém o nível atual do jogador
if level >= 1 and level <= 20 then -- Verifica se o jogador está no intervalo de níveis de 1 a 20
print("Jogador " .. player:GetName() .. " ganhou " .. amount .. " pontos de experiência.") -- Exibe a mensagem de ganho de experiência
end
end
-- Registro do evento PLAYER_XP_GAIN para chamar a função OnPlayerGainXP
RegisterPlayerEvent(PLAYER_XP_GAIN, OnPlayerGainXP)```
this would be an idea from the lua file
Archived author: M'Dic • Posted: 2023-06-01T00:10:08.753000+00:00
Original source
<@312386665966731275> you mean something like the dynamic xp rate module?
<https://github.com/milestorme/mod-dynamic-xp/blob/master/src/dynamicxp.cpp>
Archived author: M'Dic • Posted: 2023-06-01T00:10:47.439000+00:00
Original source
Im not a lua guy but maybe that will help guide you with what u can refactor over to lua