View Single Post
  #25  
Old 09-21-2009, 09:56 AM
nightsta69
Hill Giant
 
Join Date: May 2005
Posts: 134
Default

Quote:
Originally Posted by Shin Noir View Post
Also your code above will always return true.
if(!isloaded(packagename.c_str()) || isloaded(packagename.c_str()))

It's like putting if(1), since you're covering the two possible returns of isloaded(), it can either return 1 (which is on the second half) or 0 (which is on the left half).

But yeah. If you do what you just did, you essentially screw all zone-based player.pl files if it's only working off templates.

I may have to peek and see if I can solve the event handling to execute the two different player files. *shrugs*..
its still using the zone based files, IE for doors, creating instances, etc etc. only problem is if BOTH the zone, AND the template player.pl has the same event.(IE if both had sub EVENT_LEVEL_UP) then the template will override the zone pl. other then that, the zone pl works as intended. and yea I know i'm basically making it a true statement regardless, my C+ isn't all that great, I was just looking for a work around, and to see if it was even possible.
Reply With Quote