Signup Now
Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: movecreature()

  1. #11
    Free User
    Join Date
    Dec 2013
    Posts
    32
    Reputation
    10
    Rep Power
    0
    but he only standind don't trashing, he standing on 1 sqm and i must push him to move when i pushing him he will back on this same sqm i need action to push him and go to refil, and when i i finish refil i need again action to pussh him but now on north, and go exp sry for my rip eng
    Last edited by seebaa; 05-09-2018 at 08:31 AM.

  2. #12
    Wind Powered Motocyklista's Avatar
    Join Date
    Jul 2016
    Location
    Poland
    Posts
    11
    Reputation
    10
    Rep Power
    0
    Quote Originally Posted by seebaa View Post
    but he only standind don't trashing, he standing on 1 sqm and i must push him to move when i pushing him he will back on this same sqm i need action to push him and go to refil, and when i i finish refil i need again action to pussh him but now on north, and go exp sry for my rip eng
    PHP Code:
    local mB --sqm to move by
    local moveDirection 
    'n' -- wherei should push char
    auto
    (5000)
    --Do 
    not change. (Can change start if you want and know how.)--
    local dire = {
            
    dirs = {'n''s''w''e''nw''ne''sw''se'},
            
    = {00= -mBmBnw = -mBne mBsw = -mBse mB},
            
    = {= -mBmB00nw = -mBne = -mBsw mBse mB}
        }


    local start = {$posx$posy-1$posz} -- $posy-1(north),  $posy+1(south), $posx-1(west), $posx+1(east) - just choose where is char to push

    local dest 
    = {start.x+dire.x[moveDirection], start.y+dire.y[moveDirection], $posz}
    local itemID topitem(start.xstart.ystart.z).id
    setsetting
    ('Settings/ClickWaitTime''1 to 1 ms')
    setsetting('Settings/PressWaitTime''1 to 1 ms')
    moveitems(99ground(dest.xdest.ydest.z), ground(start.xstart.ystart.z), 100
    wait(1000)
    move('n'
    this code for push north and then move north, use in cavebot put stand, action (this code) and after this action location checker if u dont pass go back to action with push if u dont know how to edit i cant help its very simple code this code is easy to edit / modify

    example of use https://www.youtube.com/watch?v=imxh...ature=youtu.be
    Last edited by Motocyklista; 05-10-2018 at 07:34 AM.

  3. #13
    Free User
    Join Date
    Dec 2013
    Posts
    32
    Reputation
    10
    Rep Power
    0
    niiice ok i will test it

  4. #14
    Free User
    Join Date
    Dec 2013
    Posts
    32
    Reputation
    10
    Rep Power
    0
    error in Action script wptid:2:
    ["end"]:Action: 2:26: '<eof>' expected near 'end'

  5. #15
    Free User blakw's Avatar
    Join Date
    Dec 2013
    Posts
    2,669
    Reputation
    73
    Rep Power
    26
    Quote Originally Posted by seebaa View Post
    error in Action script wptid:2:
    ["end"]:Action: 2:26: '<eof>' expected near 'end'
    Remove the "end"


    Visit:
    (◣_◢)

  6. #16
    Free User
    Join Date
    Dec 2013
    Posts
    32
    Reputation
    10
    Rep Power
    0
    thx brooo
    Last edited by seebaa; 05-10-2018 at 07:57 PM.

 

 

Posting Permissions

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