Thread: Help please guys

Results 1 to 3 of 3
  1. #1 Help please guys 
    Registered Member
    MetalGear's Avatar
    Join Date
    Sep 2008
    Posts
    779
    Thanks given
    9
    Thanks received
    6
    Rep Power
    82
    Ok im trying to add the oblesiks i thing that what there called i just want them to teleport so i made this

    if ((objectID == 14831) && (objectX == 2260) && (objectY == 3916)) {
    triggerTele(2260, 3916, 0);
    sM("You teleport away");
    }
    but it dont work the bit that i dont get is
    (objectX == 2260) && (objectY == 3916))
    idk what that means so i just put coordsi n
    New transport?
    Reply With Quote  
     

  2. #2  
    Registered Member Help please guys Market Banned

    JPlusPlus's Avatar
    Join Date
    Jul 2008
    Age
    28
    Posts
    1,179
    Thanks given
    63
    Thanks received
    32
    Rep Power
    730
    That means where the object is.

    If you want a portal that is located at 2260, 3916 to teleport you. you would use those coords, but if it is somewhere else you're going to have to change the coords to wherever this object is.
    Reply With Quote  
     

  3. #3  
     

    Vastiko's Avatar
    Join Date
    Dec 2006
    Posts
    5,700
    Thanks given
    300
    Thanks received
    663
    Rep Power
    5000
    They are the objectX and objectY of the object your clicking, so what you did is correct.

    Also there is no need for lots of enclosing booleans, you could just do:
    Code:
    if (objectID == 14831 && objectX == 2260 && objectY == 3916) {
        triggerTele(2260, 3916, 0);
        sM("You teleport away");
    }
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

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