Forums WoW Modding Support Archives TrinityCore Discord Archives [DiscordArchive] Anyone know how to make an area fishable?

[DiscordArchive] Anyone know how to make an area fishable?

[DiscordArchive] Anyone know how to make an area fishable?

rektbyfaith
Administrator
0
05-31-2023, 11:04 PM
#1
Archived author: DestroTheHarbinger • Posted: 2023-05-31T23:04:30.133000+00:00
Original source

Anyone know how to make an area fishable?
rektbyfaith
05-31-2023, 11:04 PM #1

Archived author: DestroTheHarbinger • Posted: 2023-05-31T23:04:30.133000+00:00
Original source

Anyone know how to make an area fishable?

rektbyfaith
Administrator
0
05-31-2023, 11:04 PM
#2
Archived author: DestroTheHarbinger • Posted: 2023-05-31T23:04:44.947000+00:00
Original source

like if I wanted to make a custom fishing area?
rektbyfaith
05-31-2023, 11:04 PM #2

Archived author: DestroTheHarbinger • Posted: 2023-05-31T23:04:44.947000+00:00
Original source

like if I wanted to make a custom fishing area?

rektbyfaith
Administrator
0
05-31-2023, 11:31 PM
#3
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!
rektbyfaith
05-31-2023, 11:31 PM #3

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!

rektbyfaith
Administrator
0
05-31-2023, 11:53 PM
#4
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
rektbyfaith
05-31-2023, 11:53 PM #4

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

rektbyfaith
Administrator
0
06-01-2023, 12:10 AM
#5
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>
rektbyfaith
06-01-2023, 12:10 AM #5

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>

rektbyfaith
Administrator
0
06-01-2023, 12:10 AM
#6
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
rektbyfaith
06-01-2023, 12:10 AM #6

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

Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)