Spawn "Commands" lists

General support forum. If you require assistance and your problem doesnt fall in any of the other categories, this is the forum for you!

Moderator: Team Members

Forum rules
READ THE FORUM STICKY THREADS BEFORE ASKING FOR HELP!
Most information can be found there, and if not, the posts will help you determine the information required to get assistance from the development team.
Incomplete Help Requests will be locked or deleted.
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 "Commands" lists

Post by John Adams » Sun Sep 21, 2008 12:41 pm

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

JCL
Posts: 212
Joined: Tue Oct 16, 2007 4:54 pm
EQ2Emu Server: World of Tyrania

Post by JCL » Sun Sep 21, 2008 1:08 pm

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.

LethalEncounter
Team: Zombie
Posts: 2717
Joined: Wed Jul 25, 2007 10:10 pm

Post by LethalEncounter » Sun Sep 21, 2008 3:16 pm

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.

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:

Post by John Adams » Sun Sep 21, 2008 4:49 pm

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.

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:

Post by John Adams » Tue Sep 23, 2008 3:13 pm

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...

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:

Post by John Adams » Tue Sep 23, 2008 3:20 pm

btw, it works. Just questioning if it is the best solution.

User avatar
Arremis
Retired
Posts: 388
Joined: Sun Sep 02, 2007 10:11 am
Location: Memphis, TN

Post by Arremis » Wed Sep 24, 2008 4:59 am

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.
I am the UI Master...there is no charge for my awesomeness.

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:

Post by John Adams » Wed Sep 24, 2008 10:22 am

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests