Getting mounted!

Discussions of the design and development of in-game content.

Moderator: Team Members

Post Reply
User avatar
Gangrenous
Posts: 812
Joined: Sun Apr 24, 2016 6:54 am
Characters: Dinsmoor

Getting mounted!

Post by Gangrenous » Mon Mar 20, 2017 5:37 am

Like the title?

Well, how do we get an NPC to mount a horse. Like this guard, he should patrol on a horse.

http://eq2.wikia.com/wiki/Captain_Chapman
Resident Dirty Hippy

Jabantiz
Lead Developer
Posts: 2912
Joined: Wed Jul 25, 2007 2:52 pm
Location: California

Re: Getting mounted!

Post by Jabantiz » Mon Mar 20, 2017 4:46 pm

There is a lua function to set the mount, think it is SetMount(), just call that in the spawn function of the spawn script passing the correct params for the mount.

User avatar
Gangrenous
Posts: 812
Joined: Sun Apr 24, 2016 6:54 am
Characters: Dinsmoor

Re: Getting mounted!

Post by Gangrenous » Mon Mar 20, 2017 6:36 pm

Roger that. I am guessing that the mounts are not actually known, meaning they are not spawns? I have never noticed a horse in the spawn list for these zones.
Resident Dirty Hippy

User avatar
Gangrenous
Posts: 812
Joined: Sun Apr 24, 2016 6:54 am
Characters: Dinsmoor

Re: Getting mounted!

Post by Gangrenous » Mon Mar 20, 2017 7:11 pm

NM, I see you address it by giving the model ID.
Resident Dirty Hippy

User avatar
Gangrenous
Posts: 812
Joined: Sun Apr 24, 2016 6:54 am
Characters: Dinsmoor

Re: Getting mounted!

Post by Gangrenous » Mon Mar 20, 2017 7:23 pm

SetMount(NPC, 6829)
Resident Dirty Hippy

Jabantiz
Lead Developer
Posts: 2912
Joined: Wed Jul 25, 2007 2:52 pm
Location: California

Re: Getting mounted!

Post by Jabantiz » Mon Mar 20, 2017 7:33 pm

You are correct that they are not actually spawns, they are just a model id and color info in the spawn packet of the spawn you want on a mount.

User avatar
Gangrenous
Posts: 812
Joined: Sun Apr 24, 2016 6:54 am
Characters: Dinsmoor

Re: Getting mounted!

Post by Gangrenous » Mon Mar 20, 2017 7:52 pm

Well he is quick pretty right now, three of them routed in South Qeynos.
You do not have the required permissions to view the files attached to this post.
Resident Dirty Hippy

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests