PenUltima Online Forum Index Official Core: 096.7
Official Core: 097 2008-02-26
Donate towards the POL web hosting bill!
 POL Home   FAQ   Search    Memberlist   Usergroups    Register    Profile   Log in to check your private messages   Log in
brainAI\scripts\enterArea\generic.src bug?

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    PenUltima Online Forum Index -> Development Discussion
Display posts from previous:   

Author Message
Lagoon



Joined: 05 Mar 2006
Posts: 118
Location: Italy

PostPosted: Sun Oct 01, 2006 7:22 am    Post subject: brainAI\scripts\enterArea\generic.src bug? Reply with quote

097\Distro\pkg\mobiles\brainAI\scripts\enterArea\generic.src

Line 33

Code:
function EnteredArea(npc, byref event, byref settings, byref scripts)
   var source := event.source;
   
   if ( NPC_ShouldWatch(npc, source, settings, scripts) )
      if ( NPC_AddToWatchList(npc, source) )
         AI_WakeUp(npc);
         
         if ( scripts["LookAround"] )
            if ( !GetNerveProcess(npc, "LookAround") )
               AI_WakeUp(npc);
            endif
         endif
         
         return 1;
      endif
   endif
   
   return 0;
endfunction


There's something strange, I see no use in the code block
Code:
         if ( scripts["LookAround"] )
            if ( !GetNerveProcess(npc, "LookAround") )
               AI_WakeUp(npc);
            endif
         endif


when there's already a
Code:
         AI_WakeUp(npc);

Maybe you wanted to wakeup only when the LookAround nerve isn't running and you forgot to remove the first wakeup?

Author Message
Austin
POL Developer


Joined: 30 Jan 2006
Posts: 355
Location: San Diego, California

PostPosted: Sun Oct 01, 2006 2:06 pm    Post subject: Reply with quote

Fixed.
Was related to a bug that existed with sleeping, until Abner found it.

Post new topic   This topic is locked: you cannot edit posts or make replies.    PenUltima Online Forum Index -> Development Discussion All times are GMT - 4 Hours
Page 1 of 1

 




Powered by phpBB © 2001, 2005 phpBB Group :: Theme & Graphics by GHS & Scott E. Royalty