Results 1 to 3 of 3

Thread: Script islocation with X ID on tile

  1. #1
    iBot User
    Join Date
    Mar 2013
    Posts
    54
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    6 Post(s)
    Reputation
    10
    Rep Power
    4

    Red face Script islocation with X ID on tile

    Hello guys, im looking for a script how makes this:
    If have X ID (yelothax portal) on tile the bot will go to a label.

    Like this: if "portalid" then gotolabel X else gotolabel Y


    Thankss

  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
    ok... you need more information though...

    Lua Code:
    if toptileitem(posx, posy, posz) == ID_OF_PORTAL then
    	gotolabel("Portal_Is_Open")
    else
    	gotolabel("Portal_Is_Closed")
    end


    change posx, posy and posz to the XYZ of where the portal should be. You also need to figure out what the portal ID is and change ID_OF_PORTAL too

  3. #3
    iBot User
    Join Date
    Mar 2013
    Posts
    54
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    6 Post(s)
    Reputation
    10
    Rep Power
    4
    VERY thanks

Tags for this Thread

Posting Permissions

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