Spawning an NPC from inside a timer....
I tried to spawn NPC's inside a timer(with the perl quest system), and it crashed the zone.exe file when attempting to do so... this is the perl script I was using that crashed zone.exe:
Code:
sub EVENT_DEATH Around line 708 is the code Code:
parse->Event(EVENT_TIMER,p->mob->GetNPCTypeID(),p->name.c_str(),p->mob,0); Code:
parse->Event(EVENT_TIMER,p->mob->GetNPCTypeID(),p->name.c_str(),p->mob,p->mob->CastToMob()); Now, I'm a novice coder(in C++ anyways), and I have no idea if I screwed something else up by doing this. Does this look like a decent fix? :-) [edit] Hmm already ran into a couple problems. It's only spawning one mob, first of all, no matter how many I put in there... and quest::me still isn't working inside the timer(didn't work before the fix either, though). |
hmm did you ever get it fixed?
|
All times are GMT -4. The time now is 12:18 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.