Page 1 of 1

Spawn "Commands" lists

Posted: Sun Sep 21, 2008 12:41 pm
by John Adams
How do you get more than one command to show up in the NPCs right-click context menu?
Ie., Guards you can "Find NPC", "Attack", "Hail", and "Assist".
Bankers you can "Bank", "Guild Bank", "Hail", etc...
And can I get a quick run-down of what the purpose and differences between command_primary and command_secondary is for a spawn? I know in general, but I'd like some detail so we can start utilizing them.
Thanks,
-J

Posted: Sun Sep 21, 2008 1:08 pm
by JCL
command_primary is the primary command that will show up both as a mouse over and first right click (I believe first right click). command_secondary is the second right click option. I am guessing you already knew this, but yeah those are the basics to it.

Posted: Sun Sep 21, 2008 3:16 pm
by LethalEncounter
Yup, those are the basics. Also, to add additional commands to the command_secondary just add them in the entity_commands table using the same command_list_id. The command_secondary is really a list if used, not a single command.

Posted: Sun Sep 21, 2008 4:49 pm
by John Adams
Ahh ok, as obvious as that sounds, it didn't occur to me to dupe the command_list_id column ;)
Thanks, I'll check it out.

Posted: Tue Sep 23, 2008 3:13 pm
by John Adams
So after thinking this through for a day, I still am unsure how this is supposed to work. You say to create a second command_list_id for each command_secondary that should have multiple choices.
So on Guards, I created
command_primary: Find NPC (command_list_id = 7)
command_secondary: Attack, Assist, Hail (added new command_list_id 100, assigned them all to 11)
Now I go to a Banker, I created
command_primary: Bank (69)
command_secondary: Hail, Guild Bank (added new command_list_id 101, assigned them all to 101)
So I am going to eventually end up with 100's of command_list_id's for "Hail" because so many different spawns have that as a secondary command, and each secondary command that is even slightly different than the other needs to be unique.
Am I getting this right?
I think this is going to lead to confusion. But I have no solution at this moment. Maybe an actual command_secondary list table, many-to-one...

Posted: Tue Sep 23, 2008 3:20 pm
by John Adams
btw, it works. Just questioning if it is the best solution.

Posted: Wed Sep 24, 2008 4:59 am
by Arremis
From what I've observed, all the general NPC's when hailed usually respond with "Hail" or "Hello" or "Well met", unless there's a specific quest reason for them not to.
Instead of having 10,000 of the same general response to hail scripts, perhaps we can have 10,000 NPCs pointed to a single script?
There could be general Banker scripts, Vendor scripts, Qeynos guard scripts, Freeport guard scripts, etc., and when a specific flag calls for a quest script (such as to turn in status items), a script particular to that NPC can be added in.

Posted: Wed Sep 24, 2008 10:22 am
by John Adams
We have considered that, unfortunately due to the NPC race, the voice-overs are different and cannot be "generic". This post isn't about voice-over responses or text, but about the right-click menu options available per Spawn.