Page 1 of 1

Trap command

Posted: Sun May 03, 2009 5:37 pm
by John Adams
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.

Re: Trap command

Posted: Mon May 04, 2009 1:05 pm
by LethalEncounter
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.

Re: Trap command

Posted: Mon May 04, 2009 1:47 pm
by John Adams
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.

Re: Trap command

Posted: Mon May 04, 2009 3:46 pm
by LethalEncounter
Ahh.. :P

Re: Trap command

Posted: Mon May 04, 2009 4:18 pm
by John Adams
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