Ok so I thought I knew what I was doing, but what I tried did not work. Here's what I did:
Added in file questmgr.cpp
Code:
// Expose GM command #task reloadall. revloc02 5Nov2011
void QuestManager::TaskReloadAll() {
worldserver.SendReloadTasks(RELOADTASKS);
}
Added in file questmgr.h
Code:
// Expose GM command #task reloadall. revloc02 5Nov2011
void TaskReloadAll();
Then in Perl do:
quest::TaskReloadAll();
When it gets to this line it just stops. Nothing happens.
So...
Quote:
Originally Posted by lerxst2112
You would need to add a new function exposed to perl. It's not hard to do, and there are many examples available.
|
...the example I followed did not do the trick so I am wondering if lerxst or someone could please point me to an example you know of that shows how to expose a function to Perl, because I must have missed something.