Results 1 to 9 of 9

Thread: Checking players on lower floor

  1. #1
    Normal User
    Join Date
    Jan 2014
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    12
    Rep Power
    3

    Checking players on lower floor

    As in title, is this possible in Ankrahmun? When you're standing on a pyramid and you want the bot to check if theres anybody down there, lets say:

    Lua Code:
    if playersdownorwhatever = true then
    gotolabel('x')
    else
    gotolabel('y')
    end


    Also, how did you make the [CODE=lua] thing, was this possible on these forums or only on neobots?
    Last edited by Axetion; 01-19-2014 at 08:38 AM.

  2. #2
    Normal User RafiXWPT's Avatar
    Join Date
    Jun 2012
    Location
    (Poland) http://rafixwptscripts.com
    Posts
    1,602
    Mentioned
    31 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    128 Post(s)
    Reputation
    128
    Rep Power
    9
    [.luas]text[/luas]

  3. #3
    Normal User
    Join Date
    Jan 2014
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    12
    Rep Power
    3
    Ok thanks edited.

  4. #4
    Focus Group Targets's Avatar
    Join Date
    Nov 2013
    Location
    PoA - Brazil
    Posts
    456
    Mentioned
    18 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    48 Post(s)
    Reputation
    109
    Rep Power
    5
    the ibot dont have this (i think), because this function can change the tibia client



  5. #5
    Normal User
    Join Date
    Jan 2014
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    12
    Rep Power
    3
    Well I don't know if I stated it clearly enough, but my point is when your in +1 Ankrahmun depot lets say, you can see if theres anybody below you on a restricted area. Thats what I'm asking about, if this would be possible, not wall hacks, level hacks or whatever the name of it was in NG, BlackD or whatever other bots used to have it.

  6. #6
    Normal User Balbek's Avatar
    Join Date
    May 2012
    Location
    LDZ
    Posts
    554
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    4 Post(s)
    Reputation
    84
    Rep Power
    6
    Lua Code:
    if (paround(7, true) > 0) then
        gotolabel('x')
    else
        gotolabel('y')
    end

  7. #7
    Normal User
    Join Date
    Jan 2014
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    12
    Rep Power
    3
    Quote Originally Posted by Balbek View Post
    Lua Code:
    if (paround(7, true) > 0) then
        gotolabel('x')
    else
        gotolabel('y')
    end
    paround(optional int range, optional bool allfloors, optional string names) [int]: Represents the number of players found around with the parameters defined, if the optional values ​​are not defined, represents the number of all players found in the area of 7 sqm, including just your floor.
    So as far as I understand this, this somehow checks through all floors like some sort of map hack, or does it only check the lower/higher floors it sees i.e I SEE without using a hack

  8. #8
    Normal User Balbek's Avatar
    Join Date
    May 2012
    Location
    LDZ
    Posts
    554
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    4 Post(s)
    Reputation
    84
    Rep Power
    6
    There's no xray function in ibot since it doesn't inject the client. It will only consider the players that are visible on the screen, including lower & higher floors.

  9. #9
    Normal User
    Join Date
    Jan 2014
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    12
    Rep Power
    3
    Well thanks I'll try this out, pretty much forgot that paround had a variable for other floors.

Posting Permissions

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