Results 1 to 3 of 3

Thread: IF Items X,Y,Z on screen then tun action off

  1. #1
    iBot User
    Join Date
    Mar 2012
    Location
    United Kingdom
    Posts
    47
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    7
    Rep Power
    0

    IF Items X,Y,Z on screen then tun action off

    There is any way to do this:

    if some items are on the screen then turn off my action...?

    something like:

    if itemsonscreen(1111,8888,7777,whatever items ID is,3333)
    then
    setsettings("Settings\\Actions\\List\\Anti Furniture\\Enabled", "yes")
    end

    for exemple...

    would be great...

    can it be possible?

  2. #2
    Normal User
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,671
    Mentioned
    18 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    8 Post(s)
    Reputation
    132
    Rep Power
    9
    local ITEMS = {1234,"asd item",3214}

    for VERTICAL = -7,7 do
    for HORIZONTAL = -7,7 do
    for ITEM = 1, #ITEMS do
    if isitemontile(ITEMS[ITEM],posx+VERTICAL,posy+HORIZONTAL,posz) then
    setsettings("Settings\\Actions\\List\\Anti Furniture\\Enabled", "no")
    else
    setsettings("Settings\\Actions\\List\\Anti Furniture\\Enabled", "yes")
    end
    end
    end
    end
    Last edited by soder; 04-13-2013 at 12:09 AM.

  3. #3
    iBot User
    Join Date
    Mar 2012
    Location
    United Kingdom
    Posts
    47
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    7
    Rep Power
    0
    Thanks dude, will try soon! Will be very useful

Posting Permissions

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