Jump to content

NPCs on transports


Guest wacant

Recommended Posts

Hi

So, I want to develop patch to include NPCs on transports, but I don't know exactly how can I do. I'm new to mangos and I don't understand how the code is organized. There is no manuals so I'm a bit lost. If someone can help me...

I saw that on the Trinity core, this is supported and I want to adapt it to mangos.

@+

PS : Sorry for my bad English, I'm French.

Link to comment
Share on other sites

How much do you know about transports and movement system already? Because if it's nothing, you might want to try something a bit easier first.

If all you do is port the patch from Trinity to mangos, I can tell you with about 95% accuracy that it will be rejected. If Trinity has this implemented it is in hack way and not proper and will not be accepted into mangos.

Link to comment
Share on other sites

I saw that transports are mobiles maps, so I think I have to recalculate the position of each NPCs during the the Update() function. After to add a npc on a transport I don't know exactly how can I do. Maybe during the execution of the .npc add command, I can check if the npc is on a transport and then store it in the db.

if(npcCurrentMap == aTransportMap)
{
    //Add the npc to the transport passenger list and store it in the creature table.
}

Link to comment
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use