Thread: Stairs Wont Work :/

Page 1 of 2 12 LastLast
Results 1 to 10 of 20
  1. #1 Stairs Wont Work :/ 
    Registered Member
    Join Date
    Jul 2010
    Age
    17
    Posts
    93
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Rep Power
    1
    Hello, I am trying to make these stairs work
    but what ever I do they do not teleport me away :/
    Dont know what is wrong, anyways
    this is the code I use for the stairs:
    Code:
    			if ((objectID == 1733) && (objectX == 2603) && (objectY == 3078)) {
    				if (!premium)
    					resetPos();
    				teleportToX = 2727;
    				teleportToY = 9774;
    				heightLevel = 0;
    				break;
    			}
    Yes, the object is in the objects.cfg but it wont work,
    when I click the object/stairs the console says:
    Code:
    [client-1-Nozemi]: serverobjs size 872
    [client-1-Nozemi]: atObject: 2603,3082 objectID: 1533
    Thanks for any help!
    - Nozemi
    Reply With Quote  
     

  2. #2  
    Donator
    Dwyane Wade's Avatar
    Join Date
    May 2010
    Posts
    1,648
    Thanks
    72
    Thanked 113 Times in 93 Posts
    Rep Power
    47
    Quote Originally Posted by nozemi View Post
    Hello, I am trying to make these stairs work
    but what ever I do they do not teleport me away :/
    Dont know what is wrong, anyways
    this is the code I use for the stairs:
    Code:
    			if ((objectID == 1733) && (objectX == 2603) && (objectY == 3078)) {
    				if (!premium)
    					resetPos();
    				teleportToX = 2727;
    				teleportToY = 9774;
    				heightLevel = 0;
    				break;
    			}
    Yes, the object is in the objects.cfg but it wont work,
    when I click the object/stairs the console says:
    Code:
    [client-1-Nozemi]: serverobjs size 872
    [client-1-Nozemi]: atObject: 2603,3082 objectID: 1533
    Thanks for any help!
    - Nozemi
    I could be wrong but try make it this

    Code:
    			if ((objectID == 1733) && (objectX == 2603) && (objectY == 3078)) {
    				if (premium) {
    					teleportToX = 2727;
    					teleportToY = 9774;
    					heightLevel = 0;
    				} else {
    					resetPos();
    					sendMessage("You're not an premium member.");
    				}
    			}
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Jul 2010
    Age
    17
    Posts
    93
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Rep Power
    1
    Quote Originally Posted by Nighel15 View Post
    I could be wrong but try make it this

    Code:
    			if ((objectID == 1733) && (objectX == 2603) && (objectY == 3078)) {
    				if (premium) {
    					teleportToX = 2727;
    					teleportToY = 9774;
    					heightLevel = 0;
    				} else {
    					resetPos();
    					sendMessage("You're not an premium member.");
    				}
    			}
    hmm...
    Doesn't seem to work wither :/
    same reaction from the console
    as before, and nothing happens to the player :/

    Anyways thanks for your try!
    - Nozemi


    EDIT:
    Code:
    if (objectID == 1733 && objectX == 2603 && objectY == 3078) {
    		teleportToX = 2727;
    		teleportToY = 9774;
                updateRequired = true;
    }
    I also tried this method, but nothing happens here either :/
    Reply With Quote  
     

  4. #4  
    Donator
    Dwyane Wade's Avatar
    Join Date
    May 2010
    Posts
    1,648
    Thanks
    72
    Thanked 113 Times in 93 Posts
    Rep Power
    47
    Got teamvieuwer so i can look trough that would be easyer

    If just tryed the code i posted and works fine for me
    Reply With Quote  
     

  5. #5  
    Spread the word: I am awesome


    Join Date
    Jun 2009
    Posts
    2,912
    Thanks
    168
    Thanked 810 Times in 428 Posts
    Rep Power
    449
    ObjectDistance most likely. (Wrong face from player to object.) Just go to clickObject and add the correct offsets.
    " ! at portfowarding
    Reply With Quote  
     

  6. #6  
    Donator
    Dwyane Wade's Avatar
    Join Date
    May 2010
    Posts
    1,648
    Thanks
    72
    Thanked 113 Times in 93 Posts
    Rep Power
    47
    Quote Originally Posted by iQuality View Post
    ObjectDistance most likely. (Wrong face from player to object.) Just go to clickObject and add the correct offsets.
    He uses delta, and i used the code if posted and works fine
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Jul 2010
    Age
    17
    Posts
    93
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Rep Power
    1
    Quote Originally Posted by iQuality View Post
    ObjectDistance most likely. (Wrong face from player to object.) Just go to clickObject and add the correct offsets.
    Okay, but I am not sure where I will find this, is it in client.java?
    because I searched for "clickObject" and found nothing. :/

    Thanks for your replay!
    - Nozemi
    Reply With Quote  
     

  8. #8  
    Registered Member White Wolf's Avatar
    Join Date
    Apr 2012
    Posts
    67
    Thanks
    0
    Thanked 4 Times in 4 Posts
    Rep Power
    11
    So why are the numbers you're using for your object completely different from the ones being displayed on the console?
    叡智
    Reply With Quote  
     

  9. #9  
    Registered Member
    Join Date
    Jul 2010
    Age
    17
    Posts
    93
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Rep Power
    1
    Quote Originally Posted by White Wolf View Post
    So why are the numbers you're using for your object completely different from the ones being displayed on the console?
    A LOL, that was the door before the stairs lol,
    thanks for telling xD

    the console says:
    Code:
    [client-1-Nozemi]: serverobjs size 872
    [client-1-Nozemi]: atObject: 2603,3078 objectID: 1733
    Reply With Quote  
     

  10. #10  
    Registered Member White Wolf's Avatar
    Join Date
    Apr 2012
    Posts
    67
    Thanks
    0
    Thanked 4 Times in 4 Posts
    Rep Power
    11
    Quote Originally Posted by nozemi View Post
    A LOL, that was the door before the stairs lol,
    thanks for telling xD

    the console says:
    Code:
    [client-1-Nozemi]: serverobjs size 872
    [client-1-Nozemi]: atObject: 2603,3078 objectID: 1733
    xD. I don't know what to tell you then, other than I recall Delta using "toX" and "toY" but could be wrong.
    叡智
    Reply With Quote  
     


Page 1 of 2 12 LastLast
Thread Information
Users Browsing this Thread

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

Similar Threads

  1. How do I make stairs work?
    By Flashy in forum Help
    Replies: 6
    Last Post: 10-29-2011, 06:58 PM
  2. PI this wont work..
    By superbombet in forum Help
    Replies: 13
    Last Post: 12-17-2010, 11:36 AM
  3. How Ladders and Stairs work.
    By G0nzo in forum Informative Threads
    Replies: 43
    Last Post: 01-01-2010, 11:13 AM
  4. why wont it work?
    By Robin Spud in forum Help
    Replies: 1
    Last Post: 12-31-2009, 10:59 PM
  5. Replies: 3
    Last Post: 12-22-2009, 09:30 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •