Thread: Clicking an object

Results 1 to 8 of 8
  1. #1 Clicking an object 
    Registered Member
    Join Date
    Sep 2008
    Posts
    58
    Thanks given
    2
    Thanks received
    2
    Rep Power
    1
    Ok, I found this place where there are some stairs. It wasn't in object.cfg, so I added all of these stairs coords and id and everything in there. I added to the if(object== w/e) balbla. The stairs on the first floor work, but the stairs on the second floor don't... I'm using a devolution source. If you need to talk, my msn is [email protected]

    EDIT: Fixed... stupid mistake.
    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    Jul 2008
    Age
    28
    Posts
    5,827
    Thanks given
    1,301
    Thanks received
    197
    Rep Power
    0
    Hint: Its a totally different object
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Sep 2008
    Posts
    58
    Thanks given
    2
    Thanks received
    2
    Rep Power
    1
    ?... explain?
    Reply With Quote  
     

  4. #4  
    Banned

    Join Date
    Jul 2008
    Age
    28
    Posts
    5,827
    Thanks given
    1,301
    Thanks received
    197
    Rep Power
    0
    the stairs on the bottom have a different ID than the ones on the top. its like spawning a bank then a tree on top of it, and if you click the bank, you won't cut the tree. Kinda understand? It's weird because the client gives you a veiw of the whole staircase, but the object that you click from the top is really only a black hole.
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Sep 2008
    Posts
    58
    Thanks given
    2
    Thanks received
    2
    Rep Power
    1
    Yeah, one is at heightLevel 0 and the Other is at heightLevel 1. The ids are different yes, but I know both of them and the command prompt shows the object id at both heightLevel, which are different ids. I have both of the ids right in my client.java.... I'm not sure why it's not working.
    Reply With Quote  
     

  6. #6  
    Banned

    Join Date
    Jul 2008
    Age
    28
    Posts
    5,827
    Thanks given
    1,301
    Thanks received
    197
    Rep Power
    0
    show teh code plox
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Sep 2008
    Posts
    58
    Thanks given
    2
    Thanks received
    2
    Rep Power
    1
    Code:
    			if ((objectID == 6087) && (objectX == 2863) && (objectY == 10209)) {
    				teleportToX = 2865;
    				teleportToY = 10209; // complete
    				heightLevel = 1;
    			}
    			if ((objectID == 6087) && (objectX == 2863) && (objectY == 10188)) {
    				teleportToX = 2865;
    				teleportToY = 10188; // complete
    				heightLevel = 1;
    			}
    			if ((objectID == 6087) && (objectX == 2894) && (objectY == 10209)) {
    				teleportToX = 2893;
    				teleportToY = 10209; // complete
    				heightLevel = 1;
    			}
    			if ((objectID == 6087) && (objectX == 2894) && (objectY == 10188)) {
    				teleportToX = 2893;
    				teleportToY = 10188; // complete
    				heightLevel = 1;
    			}
    			if ((objectID == 6088) && (objectX == 2863) && (objectY == 10209)) {
    				teleportToX = 2865;
    				teleportToX = 10209;
    				heightLevel = 0;
    			}
    			if ((objectID == 6088) && (objectX == 2863) && (objectY == 10188)) {
    				teleportToX = 2865;
    				teleportToX = 10188;
    				heightLevel = 0;
    			}
    			if ((objectID == 6088) && (objectX == 2895) && (objectY == 10209)) {
    				teleportToX = 2893;
    				teleportToX = 10209;
    				heightLevel = 0;
    			}
    			if ((objectID == 6088) && (objectX == 2895) && (objectY == 10188)) {
    				teleportToX = 2893;
    				teleportToX = 10188;
    				heightLevel = 0;
    			}
    The first 4 work, the last 4 don't.

    my objects.cfg:
    Code:
    object = 6088	2863	10209	1
    object = 6088	2863	10188	1
    object = 6088	2895	10209	1
    object = 6088	2895	10188	1
    object = 6087	2863	10209	1
    object = 6087	2863	10188	1
    object = 6087	2894	10209	1
    object = 6087	2894	10188	1
    Lol fixed didn't see i had two teleportToX's in one LOL.
    Reply With Quote  
     

  8. #8  
    Banned
    Join Date
    Mar 2009
    Posts
    372
    Thanks given
    12
    Thanks received
    9
    Rep Power
    0
    My stairs on the 1st and 2nd floor stairs make ur char actually walk to them, but the 3rd and 4th floor stairs tele u from where ever u are...idk why
    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
  •