Signup Now
Results 1 to 9 of 9
  1. #1
    Free User
    Join Date
    Nov 2014
    Posts
    4
    Reputation
    10
    Rep Power
    0

    Question Move when player appears

    Could anybody help me to write script, which can move my character 2 sqm right when player appears?

  2. #2
    Free User Eldar's Avatar
    Join Date
    Dec 2013
    Posts
    2,385
    Reputation
    63
    Rep Power
    25
    if (paround() > 0) then
    reachlocation($posx+3, $posy, $posz)
    end

  3. #3
    Free User Orimorfus's Avatar
    Join Date
    Dec 2013
    Location
    Way to Deletera
    Posts
    314
    Reputation
    92
    Rep Power
    21
    Quote Originally Posted by Eldar View Post
    if (paround() > 0) then
    reachlocation($posx+3, $posy, $posz)
    end
    it will go 3 sqm right :P @Iwur Change the $posx+3 to $posx+2

    or maybe not ;p just checked and this 'reach' means stand 1sqm near desired location ;p
    Last edited by Orimorfus; 11-19-2014 at 10:28 PM.

  4. #4
    Free User Eldar's Avatar
    Join Date
    Dec 2013
    Posts
    2,385
    Reputation
    63
    Rep Power
    25
    Quote Originally Posted by Orimorfus View Post
    it will go 3 sqm right :P @Iwur Change the $posx+3 to $posx+2

    or maybe not ;p just checked and this 'reach' means stand 1sqm near desired location ;p
    It reach location, not stand on it, so it should be $posx+3

  5. #5
    Free User
    Join Date
    Nov 2014
    Posts
    4
    Reputation
    10
    Rep Power
    0
    Hmm.. Its working only when i TURN ON script when somebody is already next to me. It doesnt work when script is TURNED ON ale then, somebody appears

  6. #6
    Helper StaR's Avatar
    Join Date
    Dec 2013
    Location
    Manchester
    Posts
    712
    Reputation
    50
    Rep Power
    22
    Add to persistents

    auto(100)


    if(paround()>0)then
    reachlocation($posx+3,$posy,$posz)
    end



  7. #7
    Free User
    Join Date
    Nov 2014
    Posts
    4
    Reputation
    10
    Rep Power
    0
    Thanks a lot, it works now

  8. #8
    Moderator Raphael's Avatar
    Join Date
    Dec 2013
    Location
    raphseller.com
    Posts
    2,437
    Reputation
    309
    Rep Power
    28
    As a side note: it would probably be smarter to use moveto.

  9. #9
    Free User
    Join Date
    Nov 2014
    Posts
    4
    Reputation
    10
    Rep Power
    0
    Can somebody add to script to NOT MOVE when this player is my friend? (nick: Lady Ksysia)

 

 

Posting Permissions

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