Results 1 to 5 of 5

Thread: Push player in x sqm

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

    Question Push player in x sqm

    If player in x sqm push to other sqm

  2. #2
    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
    What for?

    What sqm

    Provide more information please.

  3. #3
    Normal User
    Join Date
    Feb 2012
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    Example a player in south sqm move to south east?

  4. #4
    Normal User
    Join Date
    Jul 2012
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    Yes please

    while (toptileitem(x,x,x) ~= x) and islocation() and not (posx == x and posy == x) do
    local movetrash = toptileitem(x,x,x)
    moveitems(movetrash,ground(x,x,x),ground(x,x,x),1)
    wait(200,400)
    end



    this action move only trash no players...

  5. #5
    Normal User
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,671
    Mentioned
    18 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    8 Post(s)
    Reputation
    132
    Rep Power
    9
    Test this
    PHP Code:
    local POSITIONS = {
        
    FROM = {11111,22222,7},
        
    TO = {33333,44444,7},
    }

    if (
    iscreatureontile(unpack(POSITIONS.FROM)) and islocationxyz(unpack(POSITIONS.FROM),1)) then
        moveitems
    (toptileitem(unpack(POSITIONS.FROM)),ground(unpack(POSITIONS.FROM)),ground(POSITIONS.TO),100)
    end 

Posting Permissions

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