TProgramming Forums
Problem with Healer Code - Printable Version

+- TProgramming Forums (http://www.tpforums.org/forum)
+-- Forum: Programmers Lounge (/forum-97.html)
+--- Forum: Delphi (/forum-130.html)
+--- Thread: Problem with Healer Code (/thread-7390.html)



Problem with Healer Code - theflammer - 03-01-2010 12:54 PM

I have 2 codes in my bot:(Both on Healer)

select delphi
procedure TFrame5.Timer2Timer(Sender: TObject);
var
i:Integer;
friend:TChar;
begin
If CheckBox3.Checked=false then
Timer2.Enabled:=false;
 
for i:=0 to ListBox1.count-1 do
  begin
  friend.Name:=listbox1.Items.Strings[i];
  if findplayerbyname(friend).Found=true then
    begin
      If ComboBox2.ItemIndex=7 then
        begin
          If friend.HPBar<=(friend.HPBar*strtoint(Edit4.Text)/100) then
            begin
              If Player.MP>=strtoint(Edit2.Text) then
              Packet_Say('Exura sio "'+friend.Name,1);
            end;
        end;
    end;
  end;
end;


but it isn't working. It dont heal the friends of list. WHY? I've tried a lot of things, change values and etc... but...nothing


RE: Problem with Healer Code - Pro-grammer - 03-05-2010 12:40 PM

I cant believe people is still using Tibia.pas.

However, are you sure your battlelist size is 168?. I havent see a battlelist reader working. This might by the problem.


RE: Problem with Healer Code - theflammer - 03-06-2010 11:50 AM

(03-05-2010 12:40 PM)Pro-grammer Wrote:  I cant believe people is still using Tibia.pas.

However, are you sure your battlelist size is 168?. I havent see a battlelist reader working. This might by the problem.

No, I'm not sure about battlelist size but tibia version is 8.1, how can i find the battlelist size??

And I use Tibia.pas because I don't know much about Tibia Programming. I am still learning... If you can teach me, I will thanks you lot...


RE: Problem with Healer Code - Pro-grammer - 03-06-2010 06:03 PM

I really dont know how to fix it you need to investigate.
But i'll try, there are tutorials, just see on the forums.


RE: Problem with Healer Code - Xavious - 07-28-2010 08:08 PM

debug it and u'll prolly find your issue without a big problem