Results 1 to 3 of 3

Thread: if player on scren go to..

  1. #1
    Normal User
    Join Date
    Oct 2012
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5

    if player on scren go to..

    Hi i need script. I'm standing in front of my house and if player on screan go to house and when no playaer on screan go back if it posible plx help
    Last edited by robur; 11-13-2012 at 05:59 AM.

  2. #2
    Normal User Nikare's Avatar
    Join Date
    Aug 2012
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    Code:
    if (paround(7,false) >= 1) then
        gotolabel("ToHouse")
    else
       gotolabel("FrontOfMyHouse")
    end
    it should work

  3. #3
    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
    Even better, requires no waypoints...
    PHP Code:
    local inhousePosX 32345
    local inhousePosY 
    32123

    local outHousePosX 
    31456
    local outHousePosX 
    31234

    if paround() > 0 then reachlocation(inhousePosXinhousePosY posz) else reachlocation(outHousePosXoutHousePosYposzend 
    Last edited by pink_panther; 11-14-2012 at 07:19 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
  •