New Quest Function help
So I'm trying to add a new quest function to my build and I attempted to follow the instructions at the top of questmgr.cpp to do so.
Quote:
Code:
void InitiateEncounter(char *engager, int mob_index); Code:
void QuestManager::InitiateEncounter(char *engager, int mob_index) Code:
XS(XS__InitiateEncounter); Code:
newXS(strcpy(buf, "InitiateEncounter"), XS__InitiateEncounter, file); When I try to use the function in an EVENT_COMBAT subroutine for Severilous, it hangs/dies at the invocation. Code:
sub EVENT_COMBAT { I would greatly appreciate any help I could get on this subject - thanks! |
I tried getting this to work by putting all the functionality within the client class.
I added a public function InitiateEncounter in client.h with no return or parameters. I added a dummy definition for InitiateEncounter in client.cpp. In perl_client.cpp I copied, pasted, and modified what I thought was an appropriate XS routine: Code:
XS(XS_Client_InitiateEncounter); Code:
newXSproto(strcpy(buf, "InitiateEncounter"), XS_Client_InitiateEncounter, file, "$"); Then my script: Code:
sub EVENT_COMBAT { |
Please disregard! I'm an idiot. I've been debugging this problem all day now and have simply been forgetting to copy my executables from Build/Debug into my EQEmuServer folder that my start script hits =P
|
All times are GMT -4. The time now is 06:43 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.