Signup Now
Results 1 to 6 of 6
  1. #1
    Free User
    Join Date
    Mar 2015
    Posts
    46
    Reputation
    10
    Rep Power
    0

    Unpack Target list and which way the player is attacking.

    Hello, I would like to know if there is some way to know if the player is attacking you by SD, avalanche, etc....
    I also would like to know about the unpack, because usually we use:

    Code:
    local monsters = {'rat', 'rotworm'}
    if maround(3, unpack(monsters)) > 0  then
          something
    end
    Would it be possible to unpack the target list?
    It's so boring to write name per name.
    Last edited by Mithwons; 07-02-2017 at 07:04 PM.

  2. #2
    Free User Cisco's Avatar
    Join Date
    Aug 2014
    Location
    Brazil
    Posts
    1,424
    Reputation
    119
    Rep Power
    23
    Quote Originally Posted by Mithwons View Post
    Hello, I would like to know if there is some way to know if the player is attacking you by SD, avalanche, etc....
    I also would like to know about the unpack, because usually we use:

    Code:
    local monsters = {rat, rotworm}
    if maround(3, unpack(monsters)) > 0  then
          something
    end
    Would it be possible to unpack the target list?
    It's so boring to write name per name.
    local monsters = {'rat', 'rotworm'}
    if maround(3, unpack(monsters)) > 0 then
    something
    end

  3. #3
    Free User
    Join Date
    Mar 2015
    Posts
    46
    Reputation
    10
    Rep Power
    0
    I made a mistake, but I've changed it.
    Is it possible to "unpack" the target list?

  4. #4
    Free User
    Join Date
    Mar 2015
    Posts
    46
    Reputation
    10
    Rep Power
    0
    nobody?

  5. #5
    Free User MenelZThais's Avatar
    Join Date
    Aug 2016
    Location
    Poland
    Posts
    253
    Reputation
    10
    Rep Power
    16
    You can check, if player is attacking you, using $pattacker:
    https://github.com/Tibia-WindBot/Win...pattacker.json
    but I don't think so it is possible to check type of this attack.

    Getting targeting list values isn't possible too as far as I know.

  6. #6
    Free User
    Join Date
    Mar 2015
    Posts
    46
    Reputation
    10
    Rep Power
    0
    Quote Originally Posted by MenelZThais View Post
    You can check, if player is attacking you, using $pattacker:
    https://github.com/Tibia-WindBot/Win...pattacker.json
    but I don't think so it is possible to check type of this attack.

    Getting targeting list values isn't possible too as far as I know.
    That's a pity \;
    Nobody know about?

 

 

Posting Permissions

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