Let's reduce PC usage by making this little fix.
<Line 591, File: SRC\functions.pl>
# Process AI
if ($net->getState() == Network::IN_GAME && timeOut($timeout{ai}) && $net->serverAlive()) {
Misc::checkValidity("AI (pre)");
Benchmark::begin("ai") if DEBUG;
AI::CoreLogic::iterate();
Benchmark::end("ai") if DEBUG;
if ($char->{homunculus}) {
Benchmark::begin("ai_homunculus") if DEBUG;
AI::Homunculus::iterate();
Benchmark::end("ai_homunculus") if DEBUG;
}
Misc::checkValidity("AI");
return if $quit;
}
Piece of cake... Teehe!
Turn OFF AI::Homunculus when char don't have Homunculus
Moderator: Moderators
Re: Turn OFF AI::Homunculus when char don't have Homunculus
to note that it's already in IF DEBUG state, it's for debugging
Re: Turn OFF AI::Homunculus when char don't have Homunculus
You must have missed this. See:
AI\Homunculus.pm
AI::Homunculus::iterate()
sub iterate {
return if (!$char->{homunculus});
And what h4rry84 said.
AI\Homunculus.pm
AI::Homunculus::iterate()
sub iterate {
return if (!$char->{homunculus});
And what h4rry84 said.
Whatever...
-
- Human
- Posts: 30
- Joined: 23 Apr 2008, 10:11
- Noob?: No
- Location: Indonesia TANAH AIRKU
- Contact:
Re: Turn OFF AI::Homunculus when char don't have Homunculus
OMG! I missed that. Sry then.