Thread: Changing home, and other teleports

Results 1 to 7 of 7
  1. #1 Changing home, and other teleports 
    happyisbackk
    Guest
    i need to know how to change home and the other sorts of teleports, i'm using delta and tbh i can't really be bothered looking since i've really a shit day. I'll probably get flamed for this, but w/e
     

  2. #2  
    Respected Member

    Situations's Avatar
    Join Date
    Sep 2008
    Posts
    3,903
    Thanks given
    230
    Thanks received
    1,695
    Rep Power
    5000
    Well, if you don't look, you won't learn. But for what it's worth, I'll try to help you out.


    If you're talking about how to switch the name, so like, "Varrock Teleport" to "Home Teleport", than just do this..


    Look in your base for TextHandler, once you see that notepad, open it, and search the existing teleport name. Replace that, to the name you want.

    If you want to switch the teleport destination, click the teleport, and search the X or Y axis that it shows. If you don't have a command to find your X & Y axis (::mypos), use this one:

    DELTA:
    if(command.startsWith("mypos") && playerRights > 0){
    sM("AbsX: "+absX+" AbsY: "+absY+"");
    }
    NONDELTA:
    if(command.startsWith("mypos") && playerRights > 0){
    sendMessage("AbsX: "+absX+" AbsY: "+absY+"");
    }
    And once you found that, either search you X Or Y axis, in the following notepads:

    • ClickedMost.java
    • Client.java


    Once you find the teleport you needed, just switch the X & Y axis to the destination you wanted the user to teleport to.


    I'm not to sure what you mean by "Other Teleports", so I'll just show you a teleporting method. I call this method, "Situations Shitty Portal Tutorial" If you're interested in using a portal to let the user teleport home, than search this in client.java

    makeGlobalObject
    Incase you don't know what numbers are where, this is what they mean:

    makeGlobalObject(X axis, Y axis, Object ID, Direction, Height?);// Name of object
    So, under this:
    makeGlobalObject
    Add this: *FILL IT IN*
    makeGlobalObject(X axis, Y axis, Object ID, Direction, Height?);// Name of object
    And now, we need to add the case, which will make it, so when you click it, it will teleport you to the location you need it to.

    So, still in Client.java, find this:

    if(objectID ==

    Add this under it: *FILL IT IN WITH YOUR INFO.

    if(objectID == Object ID) {
    triggerTele(X axis, Y axis, 0);
    sM("REPLACE THIS WITH THE TELEPORT MESSAGE");
    }

    Uhmm, that's the way I do it anyways, I'm not 100% sure about any of this. I'm trying to get better, by helping people, and making bases for fun. If this doesn't work for some reason, than post your error here, and I'll attempt to fix it.

    Don't flame me if I did anything wrong, I did my best.
     

  3. #3  
    happyisbackk
    Guest
    If you want to switch the teleport destination
    Ding dong =]
    how do i do that??
     

  4. #4  
    Member Changing home, and other teleports Market Banned

    Robin Spud's Avatar
    Join Date
    Aug 2008
    Age
    31
    Posts
    2,338
    Thanks given
    46
    Thanks received
    73
    Rep Power
    1068
    makeGlobalObject(X axis, Y axis, Object ID, Direction, Height?);// Name of object

    FAIL

    makeGlobalObject(X axis, Y axis, Object ID, Direction, OBJECTTYPE);// Name of object

    ^CORRECT


    tip;

    OBJECTTYPE;

    0 = walls
    10 = actual objects

    all i know i think
    ILY Stewie.
     

  5. #5  
    Respected Member

    Situations's Avatar
    Join Date
    Sep 2008
    Posts
    3,903
    Thanks given
    230
    Thanks received
    1,695
    Rep Power
    5000
    Quote Originally Posted by `Zylem View Post
    makeGlobalObject(X axis, Y axis, Object ID, Direction, Height?);// Name of object

    FAIL

    makeGlobalObject(X axis, Y axis, Object ID, Direction, OBJECTTYPE);// Name of object

    ^CORRECT


    tip;

    OBJECTTYPE;

    0 = walls
    10 = actual objects

    all i know i think
    Tss, Beginners mistake. - Well at least I'll know that for next time, thanks.
     

  6. #6  
    Banned

    Join Date
    May 2009
    Posts
    1,387
    Thanks given
    21
    Thanks received
    14
    Rep Power
    0
    I am guessing you want to change the location that the teleports in the spell book take you to?

    Log into your server and use the teleport you want to change. Use the ::mypos command to get the coordinates you are at. When you find the coordinate, open your clickingMost.java

    Using Ctrl+F, search for the X coordinate and you should come to something like this:

    Code:
    c.triggerTele(XXXX, YYYY, 0);
    Just change the X coordinate and the Y coordinate to the destination you would like them to take you to.
     

  7. #7  
    Banned

    Join Date
    Jan 2007
    Age
    30
    Posts
    4,417
    Thanks given
    3
    Thanks received
    105
    Rep Power
    0
    Find the coordinates of where you tele to and change them.
     


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
  •