This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: [QUESTION] Custom transport NPCS  (Read 1819 times)

Nupper

  • Registred Member
  • Creator of Worlds
  • *****
  • Posts: 339
    • View Profile
[QUESTION] Custom transport NPCS
« on: August 06, 2016, 08:28:03 pm »
I've made custom transports working but i was woundering how i add npcs i know the transports NPCs are under a group ID but i have no idea where to look for them.
i tried ac-web but no one was offering help.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Amaroth

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 1219
    • View Profile
    • Amaroth's Tools
Re: [QUESTION] Custom transport NPCS
« Reply #1 on: August 06, 2016, 09:25:03 pm »
I had the same problem, I have also no idea where is tis group ID reffering to (and I was kinda too lazy to really look for it). Please, if you find out, will you share the knowledge with me? I'd update transports tutorial I¨ve made earlier.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
English YT tutorial channel. Check it out if you preffer videos over walls of text.:
https://www.youtube.com/AmarothEng

Want to support me for my releases and/or tutorials? You can send donation via Paypal to:
jantoms@seznam.cz

Nupper

  • Registred Member
  • Creator of Worlds
  • *****
  • Posts: 339
    • View Profile
Re: [QUESTION] Custom transport NPCS
« Reply #2 on: August 06, 2016, 09:32:29 pm »
Quote from: "Amaroth"
I had the same problem, I have also no idea where is tis group ID reffering to (and I was kinda too lazy to really look for it). Please, if you find out, will you share the knowledge with me? I'd update transports tutorial I¨ve made earlier.
If i figure it out i will...strangely i've checked the entire databases a part from the template information thats all i could find.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

bid98

  • Registred Member
  • MWCS Enthusiast
  • *****
  • Posts: 1
    • View Profile
Re: [QUESTION] Custom transport NPCS
« Reply #3 on: August 18, 2016, 02:04:02 pm »
This is not a "group ID" but a "map ID"
will see in map.dbc
Viewing locating a npc on an existing ship.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Amaroth

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 1219
    • View Profile
    • Amaroth's Tools
Re: [QUESTION] Custom transport NPCS
« Reply #4 on: August 18, 2016, 05:22:26 pm »
One word:
What?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
English YT tutorial channel. Check it out if you preffer videos over walls of text.:
https://www.youtube.com/AmarothEng

Want to support me for my releases and/or tutorials? You can send donation via Paypal to:
jantoms@seznam.cz

Makpptfox

  • Contributors
  • Loreweaver
  • *****
  • Posts: 103
    • View Profile
Re: [QUESTION] Custom transport NPCS
« Reply #5 on: August 19, 2016, 08:48:43 pm »
If I understand well, you want to add npc on a transport like a boat or zepp ?

If so you just have to go on it and do a .gps, look for the "TransMapID" and the other "TransOffsetX" "TransOffsetY" "TransOffsetZ" "TransOffsetO".

Usually I just spawn the needed npc randomly in the world and change their coordinates with a sql request.

Code: [Select]
REPLACE INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnMask`, `phaseMask`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `spawndist`, `currentwaypoint`, `curhealth`, `curmana`, `MovementType`, `npcflag`, `unit_flags`, `dynamicflags`, `VerifiedBuild`) VALUES (currentguid, entryofthenpc, mapid, 0, 0, 1, 1, 0, 1, TransoffsetX, TransoffsetY, TransoffsetZ, TransoffsetO, 300, 0, 0, 247, 0, 0, 0, 0, 0, 0);

Hope it help.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
For support, send your Discord's ID by PM.