For now i'm testing Tristam, but there is few jumping between maps and a lot of zones are unavailable.
i made a quick fix for vendors. There is a bug with conversations and open trade window. Teoricly, vendors doesn't have conversations, so this error did a crash.
For fix this:
InteractiveNPC.cs
We add:
Code:
using Mooege.Core.GS.Actors.Implementations;
OnTargeted()
We add:
Code:
var vendor = player.SelectedNPC as Vendor;
Search:
Code:
if (Interactions.Count == 0 && Conversations.Count == 1)
And changes for:
Code:
if (Interactions.Count == 0 && Conversations.Count == 1 && this != vendor)
Search:
Code:
foreach (var conv in Conversations)
{
npcInters[it] = conv.AsNPCInteraction(this, player);
it++;
}
Changes for:
Code:
foreach (var conv in Conversations)
{
if (this == vendor)
return;
else
{
npcInters[it] = conv.AsNPCInteraction(this, player);
it++;
}
}
With this we can buy items without crash. NPC items are "bugged" (when you buy a item, doesn't will have the stats show, but for now here i leave a quick fix for this. I don't know if we can edit the conversations in npcs (maybe in mpqdata) but i'm starting with this emu. if we can edit conversations, we only need quit conversations of merchants and this will not be needed.
Greetings