CityVilleBot (Project DEVIL)

Display results as :

Rechercher Advanced Search

Latest topics
» Try LilyCity HD, it's a real cityville clone
Mon Apr 20, 2015 1:52 pm by ertyanna

» expansions cityville hack new 12/12/15
Sat Feb 14, 2015 9:52 pm by nico

» Biohazard Problem Expansion
Sat Nov 08, 2014 3:12 pm by CV FO LIFE

Sat Nov 08, 2014 3:09 pm by CV FO LIFE

» hello friends i have new update of cv bot project devil 1.10 update (2.01)
Sat Nov 01, 2014 12:59 pm by Blue Angel

» [Resolved] codebase-php Error
Sun Oct 12, 2014 7:22 am by nico

» -_- Which bot is now working ????
Thu Oct 09, 2014 7:06 pm by lobobpf6

» bot 1.2 does nt work
Sun Aug 10, 2014 1:00 am by nathaliafariass

Sun Aug 10, 2014 12:38 am by nathaliafariass

free forum

Bot consumes energy_XX items from inventory after OOS

Go down

Bot consumes energy_XX items from inventory after OOS

Post  MilchGnom on Tue Jul 17, 2012 9:07 am

For example: If the farmers market will not open with "Sequence OOS" the bot will consume some energy_XX from inventory - although there is enough energy available. (This happens although if "use energy from invetory" is not checked)

As a simple workaround I modified CheckEnergy() as follows:

    function CheckEnergy()
      $this->SendMsg('[Energy] Checking energy status');
      if ($this->energy > 0) {
         $this->SendMsg('[Energy] Enough remaining energy');
         return 1;
      // inventory stuff  Energy
        $this->SendMsg('[Energy] Checking the inventory for Energy');
        $tmp = 0;

So in CheckEnergy there should be a check if "use energy from inventory" is checked - and maybe the right place for the energy check would be outside of CheckEnergy().


Posts : 1
Points : 3
Join date : 2011-10-14

Back to top Go down

Back to top

Permissions in this forum:
You cannot reply to topics in this forum