Trap command

Old bugs stored here for reference.
Locked
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:

Trap command

Post by John Adams » Sun May 03, 2009 5:37 pm

Not sure when this happened, or if it's just odd data. In my `commands` table, 'trap' is set to handler 94. Looking in commands.h, value 94 is #define COMMAND_SEARCH_STORES_PAGE.

In the game, when you "trap" a creature den, I am getting an echo back to my chat box the usage for the /invulnerability command.

Invul is #define COMMAND_INVULNERABLE 93, so I am not sure that's a coincidence or not.

Should the "handler" value in commands table correlate to the defined constant in commands.h? If not, then it's my misunderstanding. Regardless, Trap does not appear to be working at the moment.

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

Re: Trap command

Post by LethalEncounter » Mon May 04, 2009 1:05 pm

At one point I was thinking we were going to need to have the gather commands as part of the commands table, but it turns out that they aren't going to be needed there after all. I started replacing the old commands with new ones as they were added, but I guess you someone missed one of the updates. Delete the commands entry from your table_versions table and when it recreates the table it should have the correct info in it.

The reason it is trying to use the trap command is that by default whenever you try to do an action for an npc, it looks for a command name equal to your entity command. If it finds one it uses it.

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: Trap command

Post by John Adams » Mon May 04, 2009 1:47 pm

Ok, I'll drop the commands table or re-update it. I don't think I missed an update though... odd. Either way, I have custom required_status for many of my commands, so that's why I try to always preserve my commands table anymore ;) So it coulda been me.

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

Re: Trap command

Post by LethalEncounter » Mon May 04, 2009 3:46 pm

Ahh.. :P

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: Trap command

Post by John Adams » Mon May 04, 2009 4:18 pm

I see that look... you just gave me.

Same look all my developers give me when I report a bug and then tell them "yeah but I had to manually register a driver to get it to happen" and they go...

Ahh... :P

Locked

Who is online

Users browsing this forum: No registered users and 0 guests