Signup Now
Results 1 to 3 of 3
  1. #1
    Wind Powered
    Join Date
    Sep 2016
    Posts
    30
    Reputation
    10
    Rep Power
    0

    Detect player attack and return true

    Hi!
    I'm just coming back from my retired and trying this baby (bot). I remember that in neo days I used to put a variable that returns true when a player is attacking (PK). I was thinking in use it in the persistent refillers that exist now days to get back in to town to refill and then logout in the bank while depositing.
    The questing is, Whats the variable for a player attacking? I read something about pattacker but I'm not sure.

    Thanks in advanced! I hope to contribute in the future to the comunity

    Update: If you are looking for something similar I found that $pattacked.id > 0 might work as true if a player is attacking. I'll test in the next days
    Last edited by xaluck; 10-06-2016 at 04:56 AM.

  2. #2
    Wind Powered
    Join Date
    Jun 2016
    Location
    Sweden
    Posts
    7
    Reputation
    10
    Rep Power
    0
    I have been searching for a script just like this. would be awesome

  3. #3
    Free User bergvall's Avatar
    Join Date
    Dec 2013
    Posts
    43
    Reputation
    10
    Rep Power
    0
    https://www.tibiawindbot.com/docs.ht...bles-pattacker
    Edit: sorry, didn't see that u found it
    Last edited by bergvall; 11-04-2016 at 09:03 PM.

 

 

Posting Permissions

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