Deprecated: The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence in /home/iano/public_html/tpforums-vb5/forum/includes/class_core.php on line 5842

PHP Warning: Use of undefined constant MYSQL_NUM - assumed 'MYSQL_NUM' (this will throw an Error in a future version of PHP) in ..../includes/init.php on line 165

PHP Warning: Use of undefined constant MYSQL_ASSOC - assumed 'MYSQL_ASSOC' (this will throw an Error in a future version of PHP) in ..../includes/init.php on line 165

PHP Warning: Use of undefined constant MYSQL_BOTH - assumed 'MYSQL_BOTH' (this will throw an Error in a future version of PHP) in ..../includes/init.php on line 165

PHP Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in ..../includes/functions_navigation.php on line 588

PHP Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in ..../includes/functions_navigation.php on line 612

PHP Warning: Use of undefined constant misc - assumed 'misc' (this will throw an Error in a future version of PHP) in ..../global.php(29) : eval()'d code(6) : eval()'d code on line 1

PHP Warning: Use of undefined constant index - assumed 'index' (this will throw an Error in a future version of PHP) in ..../global.php(29) : eval()'d code(6) : eval()'d code on line 1

PHP Warning: Use of undefined constant misc - assumed 'misc' (this will throw an Error in a future version of PHP) in ..../includes/class_bootstrap.php(1422) : eval()'d code(4) : eval()'d code on line 1

PHP Warning: Use of undefined constant index - assumed 'index' (this will throw an Error in a future version of PHP) in ..../includes/class_bootstrap.php(1422) : eval()'d code(4) : eval()'d code on line 1

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6
Error Battlelist Reader... tibia 10.10
Results 1 to 1 of 1

Thread: Error Battlelist Reader... tibia 10.10

  1. #1
    Member
    Join Date
    Oct 2012
    Location
    brazil
    Posts
    36

    Error Battlelist Reader... tibia 10.10

    Hi when tibia update 10.10 my bot stop to read names from battle list...

    i'll post the code to check!

    Address
    ~~
    StepCreatures = $C0;
    MaxCreatures = 1300;
    adrStart = $9A93D0;
    ~~

    Remember ALL CODE WORK WITH ALL TIBIAS 9;6~ TO 9.81

    After update Stopped =/

    Code:
      DistanceId = 0;
      DistanceType = 3;
      DistanceName = 4;
      DistanceX = 44;
      DistanceY = 40;
      DistanceZ = 36;
      DistanceIsWalking = 80;
      DistanceDirection = 84;
      DistanceOutfit = 96;
      DistanceAddon = 116;
      DistanceMountId = 120;
      DistanceIsVisible = 172;             <<<<~~~~~~~~~~ Maybe is strong
      DistanceSkull = 152;
      DistanceColorHead = 100;
      DistanceColorBody = 104;
      DistanceColorLegs = 108;
      DistanceColorFeet = 112;
      DistanceWarIcon = 168;
      DistanceWalkSpeed = 144;
      DistanceHPBar = 140;
      DistanceParty = 152;
    Code:
      if (TibiaHandle <> 0) then
        begin
          ThID := GetWindowThreadProcessId(TibiaHandle, @PID);
          PH := OpenProcess(PROCESS_ALL_ACCESS, FALSE, PID);
          Offset := Integer(GetTibiaBaseAddress(ProcessID));
          uXor := ReadInteger((adrXOR + Offset) - $400000);
          Start := ((adrStart + Offset) - $400000); << GET functions to read :B


    And here my UpdateWorld or BattleList Reader
    Code:
    procedure Updateworld;
    var
      i: integer;
      aux: string;
      Creature:TCreature;
    begin
    
      for i := 0 to MaxCreatures - 1 do
        begin
          BattleList[i].isVisible := ReadInteger(Start + (i * StepCreatures)+ DistanceIsVisible); <<--- here all time give 0 in IsVisible
          if (BattleList[i].isVisible = 1) then
          begin
          BattleList[i].iType := ReadByte(Start + (i * StepCreatures)+ DistanceType);
          BattleList[i].Name := ReadString(Start + (i * StepCreatures)+ DistanceName);
          BattleList[i].HPBar := ReadInteger(Start + (i * StepCreatures) +(DistanceHPBar));
          BattleList[i].Id := ReadInteger(Start + (i * StepCreatures)+ DistanceId);
          BattleList[i].Z := ReadInteger(Start + (i * StepCreatures)+ DistanceZ);
          BattleList[i].X := ReadInteger(Start + (i * StepCreatures)+ DistanceX);
          BattleList[i].Y := ReadInteger(Start + (i * StepCreatures)+ DistanceY);
          aux := BattleList[i].Name;
          if not(aux <> '') then
          begin
          MaxCreaturesBattleList:=i;
          break;
          end;
          end;
        end;
    end;
    Last edited by duuhleon; 08-04-2013 at 06:39 PM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •