Jump to content
TrinityCore
natnat201193

mobs doing things without scripts

Recommended Posts

so, i was looking at the northshire peasants http://www.wowhead.com/npc=11260/northshire-peasant and they are chopping at tree's and gathering wood as they would on retail. but the thing is, i can not for the life of me figure out how, there does not seem to be a script or anything assigned to them. if anyone could shed some light on how this is happening. that would be awesome. trying to fix alot of the little things like this that are missing ect. the northshire peasants are the only ones i can find that are gathering wood as they should.

northshire peasant.PNG

Share this post


Link to post
Share on other sites

Their woodcutting animation is defined in creature_template_addon with their entry. They do it whenever they stand still.
Their movement and what they do at specific points is defined in waypoint_data which is linked to their specific spawns (guids) through creature_addon.
It seems the difference between waypoint and waypoint_data tables is that waypoint table is used by Smart AI and waypoint_data is the default waypoint system.

To get the waypoints of a specific guid you can run a query like

select * from creature_addon ca inner join waypoint_data wd on ca.path_id = wd.id where ca.guid = 80145;

where 80145 is a guid of a spawn for the NPC.

See the documentation of the related tables for more info (creature, creature_addon, waypoint_data).

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...