Page 1 of 1

spawn_npc_equipment as appearances

Posted: Fri Jan 19, 2018 5:38 pm
by John Adams
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.

Re: spawn_npc_equipment as appearances

Posted: Fri Jan 19, 2018 5:48 pm
by Jabantiz
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.

Re: spawn_npc_equipment as appearances

Posted: Sat Jan 20, 2018 12:20 am
by John Adams
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.