Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: clean hole

  1. #1
    iBot User Vigilante Alert's Avatar
    Join Date
    Jun 2012
    Posts
    218
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    12
    Rep Power
    5

    clean hole

    i need action to clean the hole with gp, rubish...
    thx

  2. #2
    Normal User Revoltz's Avatar
    Join Date
    May 2012
    Posts
    33
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    11
    Rep Power
    5
    Code:
    openhole(int x, int y, int z)

  3. #3
    iBot User Vigilante Alert's Avatar
    Join Date
    Jun 2012
    Posts
    218
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    12
    Rep Power
    5
    Quote Originally Posted by Revoltz View Post
    Code:
    openhole(int x, int y, int z)
    doesnt work ;/

  4. #4
    iBot User walukasz's Avatar
    Join Date
    Feb 2012
    Location
    Poland
    Posts
    312
    Mentioned
    39 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    25 Post(s)
    Reputation
    67
    Rep Power
    5
    local t = toptileitem(x, y, z)
    while t ~= id_of_hole do
    moveitems(t, ground(x,y,z), ground(x1, y1, z1), 100)
    t = toptileitem(x, y, z)
    end

    x, y, z are coordinates of hole
    x1, y1, z1 are coordinates where you will put trashes away
    and id_of_hole is id of hole xD
    so you need to change those variables

    i didnt test it but it should work

  5. #5
    iBot User Vigilante Alert's Avatar
    Join Date
    Jun 2012
    Posts
    218
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    12
    Rep Power
    5
    Quote Originally Posted by walukasz View Post
    local t = toptileitem(x, y, z)
    while t ~= id_of_hole do
    moveitems(t, ground(x,y,z), ground(x1, y1, z1), 100)
    t = toptileitem(x, y, z)
    end

    x, y, z are coordinates of hole
    x1, y1, z1 are coordinates where you will put trashes away
    and id_of_hole is id of hole xD
    so you need to change those variables

    i didnt test it but it should work
    rep+ for the help
    thaht's work nor right but work.
    the problem now is find for a method that he stop after hole cleaned xD
    that just start the process and doenst stop anymore and do nothing another fuctions of bot.

  6. #6
    Normal User wicholost's Avatar
    Join Date
    Jun 2012
    Location
    Jamaica, Chile
    Posts
    114
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    14
    Rep Power
    5
    use desintegrate rune works better =)

  7. #7
    iBot User Vigilante Alert's Avatar
    Join Date
    Jun 2012
    Posts
    218
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    12
    Rep Power
    5
    bump. disintegrate is bad idea waste if have a player putting rubbish in hole is bcuz he want kill u.

  8. #8
    iBot User walukasz's Avatar
    Join Date
    Feb 2012
    Location
    Poland
    Posts
    312
    Mentioned
    39 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    25 Post(s)
    Reputation
    67
    Rep Power
    5
    "while t ~= id_of_hole do" here is the condition that stops it, you need to get id of closed hole and put it in place of 'id_of_hole', you could also get id of opened hole just in case, for example if ids would be 1234 and 2345 then it would look like:

    while t ~= 1234 and t ~= 2345 do

    and it will hopefully work

  9. #9
    iBot User Vigilante Alert's Avatar
    Join Date
    Jun 2012
    Posts
    218
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    12
    Rep Power
    5
    Quote Originally Posted by walukasz View Post
    "while t ~= id_of_hole do" here is the condition that stops it, you need to get id of closed hole and put it in place of 'id_of_hole', you could also get id of opened hole just in case, for example if ids would be 1234 and 2345 then it would look like:

    while t ~= 1234 and t ~= 2345 do

    and it will hopefully work
    can u do a exemple to me? im trying and doen`t work
    32190 31781 7 with this cortenate to i understend.
    rep+ bro

  10. #10
    iBot User walukasz's Avatar
    Join Date
    Feb 2012
    Location
    Poland
    Posts
    312
    Mentioned
    39 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    25 Post(s)
    Reputation
    67
    Rep Power
    5
    make a hud
    PHP Code:
    addtext(cursorinfo().id3070
    roll over on closed hole and write down its id, then do the same with opened hole

    PHP Code:
    local t toptileitem(32190317817)
    local openholeid 1234       --writhe here id you get
    local closedholeid 
    2345     --put here the other id you get

    while ~= openholeid and ~= closedholeid do
        
    moveitems(tground(32190,31781,7), ground(32190317827), 100)
        
    toptileitem(32190317817)
    end 
    Put your ids where i shown and it should work.

Posting Permissions

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