Signup Now
Results 1 to 2 of 2
  1. #1
    Free User
    Join Date
    Nov 2015
    Posts
    5
    Reputation
    10
    Rep Power
    0

    How to change getarearunetile if player on tile ?

    Hard to explain.
    But you will understand when look code.



    local besttile = getarearunetile(false, unpack(monsters))
    if iscreatureontile(besttile.tile) then
    besttile.tile.posx = besttile.tile.posx + 1 -- problem is here
    end

  2. #2
    Free User
    Join Date
    Nov 2015
    Posts
    5
    Reputation
    10
    Rep Power
    0
    I SOLVED IT.
    Maybe someone will need it in future

    local besttile = getarearunetile(true, unpack(monsters))
    if iscreatureontile(besttile.tile) then
    local sqm = {tile,x,y,z,amount=0}
    sqm.tile,sqm.x,sqm.y,sqm.z,sqm.amount = ground(besttile.x + 1,besttile.y,$posz),besttile.x + 1,besttile.y,$posz,besttile.amount
    besttile = sqm
    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
  •