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 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 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
cant use tibia api (error: Client.getPlayer(), cant work with anything) - Page 2
Page 2 of 2 FirstFirst 12
Results 11 to 19 of 19

Thread: cant use tibia api (error: Client.getPlayer(), cant work with anything)

  1. #11
    Junior Member
    Join Date
    Jul 2009
    Posts
    16

    cant use tibia api (error: Client.getPlayer(), cant work with anything)

    Hello

    the
    Dim Player As Player = Client.GetPlayer()
    Client.GetPlayer()
    Player.OutfitType.AcidBlob()

    Doesnt work too, and its declared like this one:

    Imports Tibia
    Imports Tibia.Objects
    Imports Tibia.Util

    Public Class Form1
    Private Client As Client = ClientChooser.ShowBox()
    Private Player As Player = Client.GetPlayer()

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    If Client Is Nothing Then
    MsgBox("Client not found!")
    Application.[Exit]()
    End If
    End Sub

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    Dim Player As Player = Client.GetPlayer()
    Client.GetPlayer()
    Player.OutfitType.AcidBlob()
    End Sub
    End Class

    Still wont work :S

  2. #12
    Senior Member
    Join Date
    Nov 2008
    Posts
    196

    cant use tibia api (error: Client.getPlayer(), cant work with anything)

    Quote Originally Posted by gattaca
    Hello

    the
    Dim Player As Player = Client.GetPlayer()
    Client.GetPlayer()
    Player.OutfitType.AcidBlob()

    Doesnt work too, and its declared like this one:

    Imports Tibia
    Imports Tibia.Objects
    Imports Tibia.Util

    Public Class Form1
    Private Client As Client = ClientChooser.ShowBox()
    Private Player As Player = Client.GetPlayer()

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    If Client Is Nothing Then
    MsgBox("Client not found!")
    Application.[Exit]()
    End If
    End Sub

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    Dim Player As Player = Client.GetPlayer()
    Client.GetPlayer()
    Player.OutfitType.AcidBlob()
    End Sub
    End Class

    Still wont work :S
    OutfitType it's a property, then you have to asing a value to it..

    Player.OutfitType = OutfitType.AcidBlob

    :icon7:

  3. #13
    Junior Member
    Join Date
    Jul 2009
    Posts
    16

    cant use tibia api (error: Client.getPlayer(), cant work with anything)

    It says that OutFitType havent declared.

    This is an example of the code:

    Imports Tibia
    Imports Tibia.Objects
    Imports Tibia.Util

    Public Class Form1

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    Dim client As Client = ClientChooser.ShowBox()
    If client Is Nothing Then
    MsgBox("No active client.")
    Application.[Exit]()
    End If
    End Sub

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    Dim player As Player = Client.GetPlayer()
    Player.OutfitType = OutfitType.AcidBlob
    End Sub
    End Class

    Also now while doin "Client." it doesnt appear in the lsit "getPLayer()" only "getClients()" ????

  4. #14

    cant use tibia api (error: Client.getPlayer(), cant work with anything)

    I know exactly what your problem is.

    You dont know how to program.

  5. #15
    Junior Member
    Join Date
    Jul 2009
    Posts
    16

    cant use tibia api (error: Client.getPlayer(), cant work with anything)

    Quote Originally Posted by DarkstaR
    I know exactly what your problem is.

    You dont know how to program.
    Dont spam please...

    I do. But ONLY on Delphi 7 IDE, and not VB.NET, i just dont see the problem with that code. If you dont? so what is this?, an compile problem?....

  6. #16

    cant use tibia api (error: Client.getPlayer(), cant work with anything)

    Quote Originally Posted by gattaca
    Dont spam please...
    I'm not spamming, I'm stating fact.

    Like 4 people ahve gave you answers, all being TibiaAPI developers. The information they have given you is correct, they have even given you working code. And you cant even get that to work. And your telling me you know how to program?

  7. #17
    Junior Member
    Join Date
    Jul 2009
    Posts
    16

    cant use tibia api (error: Client.getPlayer(), cant work with anything)

    Maybe cuz i am venezuelan and dont know too much english for getting what Ian tells me?.

    I fixed it

    Imports Tibia
    Imports Tibia.Objects
    Imports Tibia.Constants

    Public Class Form1

    Private Client As Client = Util.ClientChooser.ShowBox()

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    ' Dim client As Client = Util.ClientChooser.ShowBox()
    If client Is Nothing Then
    MsgBox("No active client.")
    Application.[Exit]()
    End If
    End Sub

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    Dim Player As Player = Client.GetPlayer()
    Client.GetPlayer()
    Player.OutfitType = OutfitType.AcidBlob
    End Sub
    End Class

    NOBODY TELL ME TO DECLARE AN Private client as client = util.clientchooser.showbox().

  8. #18
    Senior Member
    Join Date
    Apr 2008
    Posts
    689

    cant use tibia api (error: Client.getPlayer(), cant work with anything)

    ffs, GetPlayer is a public method exposed with a client object, GetClients() is a static class method, that means you use them like this:

    Code:
    list<Tibia.Objects.Client> CLIENTLIST=Tibia.Objects.Client.GetClients();
    Code:
    Tibia.Objects.Client clientOBJECT=Tibia.Objects.Client.GetClients()[0];
    
    OR
    
    Tibia.Objects.Client clientOBJECT=Tibia.Util.ClientChooser.ShowBox();
    
    
    AND THEN
    
    Tibia.Objects.Player playerOBJECT = clientOBJECT.GetPlayer();

    learn how to program stuff not related to tibia before asking for this kind of stuff jesus

  9. #19
    Senior Member
    Join Date
    Feb 2024
    Location
    Buying Gold
    Posts
    2,768

    Awesome Slot Info

    For the person inquiring about best live casino sites, online gambling legit, top best online casino, casinos that pay real money, the online casino login, best online casino sites, best real money, online casino online casino, slots of wins casino, online slots with no deposit free spins, I highly recommend this continue reading this on situs slot gacor url or fast play casino, pinoy casino online, bonus game casino, top real money casinos, free play casino real money, slots free sign up bonus, casino slot games free spins, internet casino gambling, play casino online free no deposit, best real online casino real money, on top of this useful slot88 blog not to mention money making casino games, casino with free, looking for free casino games, best casino online for real money, online casino games bonus, play casino games online win real money, free casino games that pay real money with no deposit, legit us online casinos, best online casino games to make money, casino sites for real money, alongside all this basics about link slot gacor url which is also great. Also, have a look at this home page on judi slot details as well as online gaming sites real money, our casino, casino games without money, casino games to win real cash, real money gambling, https casino, social casino win real money, casino make money online, casino with sign up bonus, real casino games real money, not to mention this go here on judi slot forum with net ent casino, free spins login, all slots online, online casino games website, online free spins real money, latest casino sites, about online casinos, free real money online slots, live casino sign up bonus, free casino win money, for good measure. Check more @ Top Rated WIN1000X LOGIN Tips dbb9b2e

Posting Permissions

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