Ok, I'll keep it short.
I made a new command that checks on the input, and according to that, uses a skill/spell. This is where the problem begins. I implented timers, which work fine and all, but the problem is the skill/spell doesn't know the victim. It probably is a pretty easy solution, but I can't find it yet (late here, lol).
Anyway, this is what I tried:
-Making the void have 3 elements, (CHAR_DATA *ch, char *argument, CHAR_DATA *victim). This doesn't work with the timers and results in stack dumps.
-Putting the char data of victim in a temporary CHAR_DATA victimt. This last CHAR_DATA is accessable to all commands and all, since it's not in a void or anything. This doesn't give any errors or so, but also won't do the damage and will think the enemy is yourself...
Having another player in the room with you will result in a stack dump error.
Any suggestions how to solve this problem?
I made a new command that checks on the input, and according to that, uses a skill/spell. This is where the problem begins. I implented timers, which work fine and all, but the problem is the skill/spell doesn't know the victim. It probably is a pretty easy solution, but I can't find it yet (late here, lol).
Anyway, this is what I tried:
-Making the void have 3 elements, (CHAR_DATA *ch, char *argument, CHAR_DATA *victim). This doesn't work with the timers and results in stack dumps.
-Putting the char data of victim in a temporary CHAR_DATA victimt. This last CHAR_DATA is accessable to all commands and all, since it's not in a void or anything. This doesn't give any errors or so, but also won't do the damage and will think the enemy is yourself...
Having another player in the room with you will result in a stack dump error.
Any suggestions how to solve this problem?