 |
 |
 |
 |
| Author |
Message |
Exar Kun
Joined: 19 Apr 2006 Posts: 42 Location: St. Peters, MO
|
Posted: Wed Apr 19, 2006 9:21 pm Post subject: syshook checkskill |
|
|
Hey guys, I've got a little issue here.
I assumed my server was using a hooked checkskill function because it exists, but after adding a print statement for troubleshooting, I don't think it's working.
My syshook.cfg has the following entry:
| Code: | SystemHookScript syshook_checkskill.ecl
{
CheckSkill := NewCheckSkill
} |
My syshook_checkskill.src has the following code:
| Code: | program SyshookCheckSkill ( )
Syslog ( "Installing skillcheck..." );
return 1;
endprogram |
My log contains the entry showing the installation:
| Code: | | [04/14 00:15:11] [pkg/character/skillcheck/syshook_checkskill.ecl]: Installing skillcheck... |
So...it looks like my exported function should be working okay. However, I added a print statement to that function and it's the first line in the function, so regardless of whether it returns true or not, I should get the print statement in the console, thusly:
| Code: | exported function NewCheckSkill ( character, skillid, difficulty, points )
Print ( "CheckSkill runs..." ); |
And yet, I get nothing in the console when the function is called. That tells me the server is using the core CheckSkill function. What have I not done right here?
Thanks! |
|
 |
|
|
 |
 |
|