[DiscordArchive] Now?
[DiscordArchive] Now?
Archived author: Xepic90 • Posted: 2025-08-05T11:04:54.371000+00:00
Original source
Now?
Reforeger_Fix.lua.txt
Archived author: Corey • Posted: 2025-08-05T11:08:32.610000+00:00
Original source
No errors but the suffix is still reforging sadly.
Archived author: Xepic90 • Posted: 2025-08-05T11:30:06.079000+00:00
Original source
what exactly do you want?
Archived author: metallinos • Posted: 2025-08-05T11:32:05.695000+00:00
Original source
I know I'm a few days late but quest accept can already be handled natively through a player-specific packet:
```
local function OnPlayerAcceptQuest(event, packet, player)
local guid = packet:ReadGUID()
local questId = packet:ReadULong()
local unk1 = packet:ReadULong()
if questId == MY_QUEST_ID then
-- do something here
end
end
RegisterPacketEvent(0x189, 5, OnPlayerAcceptQuest)
```
Archived author: metallinos • Posted: 2025-08-05T11:37:24.029000+00:00
Original source
In fact, you could probably wrap it into a .ext like so
```
local playerEventHandlers = {}
local function OnPlayerAcceptQuestWrapper(event, packet, player)
local guid = packet:ReadGUID()
local questId = packet:ReadULong()
local unk1 = packet:ReadULong()
if playerEventHandlers[60] then
for _, handler in ipairs(playerEventHandlers[60]) do
handler(60, player, questId)
end
end
end
local originalRegisterPlayerEvent = RegisterPlayerEvent
function RegisterPlayerEvent(eventType, handlerFunc, shots)
if eventType == 60 then
if not playerEventHandlers[60] then
playerEventHandlers[60] = {}
RegisterPacketEvent(0x189, 5, OnPlayerAcceptQuestWrapper)
end
table.insert(playerEventHandlers[60], handlerFunc)
return function()
for i, handler in ipairs(playerEventHandlers[60]) do
if handler == handlerFunc then
table.remove(playerEventHandlers[60], i)
break
end
end
end
else
return originalRegisterPlayerEvent(eventType, handlerFunc, shots)
end
end
```
so that you can run
```
local function OnQuestAccept(event, player, questId)
if questId == MY_QUEST_ID then
-- do something here
end
end
RegisterPlayerEvent(60, OnQuestAccept)
```
in your scripts without recompiling or editing the mod-Eluna source in any way
Edit:
The above QuestAccept extension works fine with for example A Short Fuse's accept and the missing explosion in the core:
```
local function AShortFuseExplosion(event, player, questId)
if questId == 13263 or questId == 13389 then
player:CastSpell(player, 76010, true)
player:NearTeleport(5754, 2055, 504, 5.68)
end
end
RegisterPlayerEvent(60, AShortFuseExplosion)
```
Archived author: Xepic90 • Posted: 2025-08-05T11:39:00.518000+00:00
Original source
Now?
Reforeger_Fix.lua.txt
Archived author: Corey • Posted: 2025-08-05T11:54:35.584000+00:00
Original source
That worked thank you!
Archived author: Xepic90 • Posted: 2025-08-05T11:54:50.177000+00:00
Original source
Really
![[Image: image.png?ex=690be458&is=690a92d8&hm=afb...5f597b449&]](https://cdn.discordapp.com/attachments/448835144564867094/1402259144634794035/image.png?ex=690be458&is=690a92d8&hm=afbce48487eda86383af1783e477cdc90d88e78771cc6561d8bfa085f597b449&)
Archived author: Corey • Posted: 2025-08-05T11:57:12.842000+00:00
Original source
I gotta fix some of the display messages but yeah your method worked. Did you use Claude or some other Ai to fix it? I ask because the debug had some emojis. If there's something better than chatgpt I'm onboard with it.
![[Image: image.png?ex=690be458&is=690a92d8&hm=afb...5f597b449&]](https://cdn.discordapp.com/attachments/448835144564867094/1402259144634794035/image.png?ex=690be458&is=690a92d8&hm=afbce48487eda86383af1783e477cdc90d88e78771cc6561d8bfa085f597b449&)
Archived author: metallinos • Posted: 2025-08-05T11:59:37.518000+00:00
Original source
In my experience, Claude is the most competent AI when it comes to Eluna, to an extent AIs are competent at Eluna