spawn_npc_equipment as appearances

EQ2Emulator Development forum.

Moderator: Team Members

Post Reply
User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

spawn_npc_equipment as appearances

Post by John Adams » Fri Jan 19, 2018 5:38 pm

Since I seem to be on a roll of asking for stuff :roll:

How hard do you think it would be to hook up the `spawn_npc_equipment` table, which holds NPC Items to give them equip bonuses, to make their slotted equipment alter their appearance?

Right now, setting an NPCs appearance takes a degree in astrophysics to get a simple thing to change because we have no idea what that "thing" is until we set it. I was thinking if I /spawn set equip {slot_id} {item_id} and it passes the checks (ie., can't put a glove on a waist, which item slot restrictions should handle) then that NPC immediately shows up wearing the gear I just set for him.

By default, the generic packet-collected appearance shows. I'm only talking about purposefully customizing an NPC not of SOE origin.

Jab, tell me how impossible it is, then have it coded by Sunday, kthx.

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

Re: spawn_npc_equipment as appearances

Post by Jabantiz » Fri Jan 19, 2018 5:48 pm

It probably wouldn't be hard to hit the equipment table and use that items appearance. Could keep appearance there to override what is in the equipment table. Probably just a simple check in the info packet to use one or the other.

User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Re: spawn_npc_equipment as appearances

Post by John Adams » Sat Jan 20, 2018 12:20 am

Right, I know that items still use an appearance_id, so I was hoping it would be that simple. As I mentioned, by default, the parsed appearances stay, this would just be an override, or for someone building a spawn from scratch.

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests