Results 1 to 8 of 8

Thread: Destroy Furniture _ Edit it to stop do it when item is in house.

  1. #1
    iBot User
    Join Date
    May 2012
    Posts
    62
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    7 Post(s)
    Reputation
    9
    Rep Power
    0

    Destroy Furniture _ Edit it to stop do it when item is in house.

    Does sombody know how to edit this hotkey to stop destroy items witch are in houses ?
    PHP Code:
    weapontouse weapontouse or 3308 -- machete
    local blockwalkids 
    = {173732025202920302043204420452046204720482059206020612445244624472448244924502451245224532454246524662467246825242904295929602961296229632964297529762979298229862997299829993000348434853486348735103511351235135046505550566109611061116112636763686369637078607861786278639132914110208102101021110212102131021410215178121785917813}
     
    for 
    i=-5,do
        for 
    j=-5,do
            
    local x,y,posx+i,posy+j,posz
            
    if table.binaryfind(blockwalkids,toptileitem(x,y,z)) then
                
    if tilereachable(x,y,zthen
                    pausewalking
    (10000)
                    
    local topid toptileitem(x,y,z)
                    while 
    tilereachable(x,y,z) and (math.abs(posx-x) > or math.abs(posy-y) > 1) do
                        
    reachlocation(x,y,z)
                        
    wait(100,200)
                        
    updateworld()
                    
    end           
                    
    while toptileitem(x,y,z) == topid and posz == and (math.abs(posx-x) <= and math.abs(posy-y) <= 1) do
                        
    useitemon(weapontouse,toptileitem(x,y,z),ground(x,y,z))
                        
    pausewalking(5000)
                        
    wait(400,500)
                        
    updateworld()
                    
    end
                    pausewalking
    (0)
                
    end
            end
        end
    end 
    Last edited by Tetlen; 12-09-2013 at 07:23 PM.

  2. #2
    Normal User Joséfinco's Avatar
    Join Date
    Mar 2012
    Posts
    55
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    13
    Rep Power
    5
    Ty , )
    Louco louco loucomelo, muito louco loucomelo ♪♪


  3. #3
    iBot User
    Join Date
    May 2012
    Posts
    62
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    7 Post(s)
    Reputation
    9
    Rep Power
    0
    OK i know how nvm

  4. #4
    iBot User pink_panther's Avatar
    Join Date
    May 2012
    Location
    Australia
    Posts
    4,075
    Mentioned
    49 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    178 Post(s)
    Reputation
    309
    Rep Power
    10
    PHP Code:
    if not pzone then
    antifurnituretrap
    ()
    end 

  5. #5
    iBot User
    Join Date
    May 2012
    Posts
    62
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    7 Post(s)
    Reputation
    9
    Rep Power
    0
    Quote Originally Posted by pink_panther View Post
    PHP Code:
    if not pzone then
    antifurnituretrap
    ()
    end 
    I think it will only work when im in pz. And i mean to stop it when im out of pz and furniture is in house. Also yours fnction i think its sirmate( i personaly dont use it becasue it take more CPU).

    I just change this line and its work good.
    PHP Code:
    for i=-1,do
       for 
    j=-1,do 
    Thx for reply

  6. #6
    iBot User pink_panther's Avatar
    Join Date
    May 2012
    Location
    Australia
    Posts
    4,075
    Mentioned
    49 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    178 Post(s)
    Reputation
    309
    Rep Power
    10
    Quote Originally Posted by Tetlen View Post
    I think it will only work when im in pz. And i mean to stop it when im out of pz and furniture is in house. Also yours fnction i think its sirmate( i personaly dont use it becasue it take more CPU).

    I just change this line and its work good.
    PHP Code:
    for i=-1,do
       for 
    j=-1,do 
    Thx for reply


    Omg.. what?

    it says If NOT pzone, then do anti trap function.

    This is not sirmates libary, its a normal ibot function.

    The function you're using does the exact same thing as this in 3 lines.

  7. #7
    iBot User Dehan's Avatar
    Join Date
    May 2012
    Location
    www.ssocialscripts.com
    Posts
    910
    Mentioned
    2 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    114
    Rep Power
    7
    Lua Code:
    if not pzone and standtime > 30000 then
    antifurnituretrap()
    end


    Should skip trying to break furniture inside houses for no reasons
    Check out - Dehan Accounts Service!

    Proud Scripter of BUgWT STAFF

  8. #8
    iBot User pink_panther's Avatar
    Join Date
    May 2012
    Location
    Australia
    Posts
    4,075
    Mentioned
    49 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    178 Post(s)
    Reputation
    309
    Rep Power
    10
    Quote Originally Posted by Dehan View Post
    Lua Code:
    if not pzone and standtime > 30000 then
    antifurnituretrap()
    end


    Should skip trying to break furniture inside houses for no reasons
    Assuming of course you are infact stuck...

    You could be trapped in a small area walking back and froth.

    Never assume anything.

Posting Permissions

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