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

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

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 85

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

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

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

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
Player name on Label
Results 1 to 6 of 6

Thread: Player name on Label

  1. #1

    Player name on Label

    Hello Users!

    I have a problem. I need your help.

    This is code on label:
    [code=delphi]
    Label2.Caption:=IntToStr(ReadMemInteger(Player_Nam e));
    [/code]

    Adress Name: (8.71)
    [code=delphi]
    Player_Name = $63FFF0;
    [/code]

    When I compile this code I see on Label 0.

  2. #2
    Super Moderator klusbert's Avatar
    Join Date
    Dec 2007
    Posts
    1,201

    RE: Player name on Label

    There is no static address for playername, You will either learn how to read battlelist or how to read characterlist.

    I would recomend battlelist.

  3. #3

    RE: Player name on Label

    @REFRESH

    I use battlelist adresses in this code.

    Function Position:
    [code=delphi]
    function Pozycja:Integer;
    var
    I,ID_Battle,ID:Integer;
    begin
    ID:=readmeminteger(Player_ID); //odczytanie naszego id z adresu
    for i:=1 to 149 do //przeszukanie wszystkich pozycji na battle list (minimalna 1 maxymanlna 149
    Begin
    ID_Battle:=ReadMemInteger(Battlelist_Start + (I*160)-4); //czytanie id z pozycji
    if ID_Battle = ID then //jezeli id z battle list zgadza sie z id z adresu
    Begin
    Result := I; //wtedy wynikiem funkcji jest nasza pozycja na battle
    exit;
    end;
    end;
    end;
    [/code]

    In Timer:
    [code=delphi]
    Label2.Caption:=(MemReadString(BattleList_Start+Po zycja*160+Creature_DistanceName));[/code]

    When I compile this program, I see on label NPC's nick.
    Help me.

  4. #4

    RE: Player name on Label

    Check this function:
    [code=delphi]
    function Pozycja:Integer;
    var
    I,ID_Battle,ID:Integer;
    begin
    ID:=readmeminteger(Player_ID);
    for i := 1 to 1300 do
    Begin
    ID_Battle:=ReadMemInteger(Battlelist_Start + (I*172)-4);
    if ID_Battle = ID then
    Begin
    Result := I;
    exit;
    end;
    end;
    end;
    [/code]

    Adresses 8.71:
    http://tibiaapi.googlecode.com/svn/trunk/tibiaapi/Addresses/Versions/Version871.cs

  5. #5

    RE: Player name on Label

    I use this on Adresses 8.72 and still nothing.

  6. #6

    RE: Player name on Label

    //Sry for bad eng! xd
    You can write to me priv or msg: GG ^^ 7740456. Maybe i will help

Posting Permissions

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