View Single Post
  #10  
Old 11-05-2011, 10:10 PM
revloc02c's Avatar
revloc02c
Hill Giant
 
Join Date: Aug 2010
Location: UT
Posts: 215
Default

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 View Post
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.

Last edited by revloc02c; 11-05-2011 at 10:31 PM.. Reason: wording
Reply With Quote