Thread: How To add portals and make them teleport you somewhere

Results 1 to 8 of 8
  1. #1 How To add portals and make them teleport you somewhere 
    Banned

    Join Date
    Oct 2007
    Posts
    1,406
    Thanks given
    37
    Thanks received
    79
    Rep Power
    0
    This is a Tut on how to add portals and how to make them tele you somewhere..


    Quite easy if you know what you are doing.

    credits to crzybob4eva and me.


    File you go to: Client.Java (If you don't know what that is stop now).

    First of all search for:


    [HTML]addGlobalObject([/HTML]


    Or search for:

    [HTML]makeGlobalObject([/HTML]


    You should see a bunch of things there.

    Go to the bottom of the list and add:

    [HTML]addGlobalObject(XXXX, YYYY, OOOO, 0, 10);//[/HTML]what ever you added here

    XXXX--The X Coord, YYYY-- The Y Coord, OOOO-- The Object ID, 0-- Which direction it will face, 10, idk you'll have to figure that out yourself.

    Lets say I want to add a portal heres what I type using makeGlobalObject:

    [HTML]
    makeGlobalObject(2901, 3547, 7319, 0, 10);//portal[/HTML]


    Thats the member portal on Project Czar.

    Heres a portal on my server using addGlobalObject:

    [HTML]addGlobalObject(2842, 10208, 7316, 0, 10);//portal[/HTML]
    Or Just Use Any portal.


    Now lets make it tele you somewhere.

    Lets use the second portal I showed you which will be:


    [HTML]addGlobalObject(2842, 10208, 7316, 0, 10);//portal
    [/HTML]

    Search for case 7316 and if its not in there make it.

    After you make it like this:

    [HTML]
    case 7316: //portal
    if(actionTimer == 0) {
    teleportToX = XXXX;<----CoordX
    teleportToY = YYYY;<----CoordY
    sendMessage("ENTER TEXT HERE");
    PlayerHandler.messageToAll = playerName+" enter text here";
    updateRequired = true;
    appearanceUpdateRequired = true;
    actionTimer = 5;
    }
    [/HTML]

    If you want to make a member portal make it look somewhat like this:

    CCCC = the case.



    [HTML]case CCCC: //
    if(playerIsMember == 1)
    teleportToX = 2400;
    teleportToY = 4850;
    sendMessage("you teleport to the members area.");
    if(playerIsMember == 0)
    sendMessage("you are a non-member. You can't go there!");
    break;

    [/HTML]
    If you want to make it for mod+ do this:



    [HTML]case CCCC: //
    if(playerRights == 1)
    teleportToX = 2400;
    teleportToY = 4850;
    sendMessage("you teleport to the members area.");
    if(playerIsMember == 0)
    sendMessage("you are a moderator. You can't go there!");
    break/HTML]
     

  2. #2  
    spooka
    Guest
    hey i have devolution 7 and i can find tyhe make object or anything do no wat to search for on devolution 7?
     

  3. #3  
    Banned

    Join Date
    Oct 2007
    Posts
    1,406
    Thanks given
    37
    Thanks received
    79
    Rep Power
    0
    Quote Originally Posted by spooka View Post
    hey i have devolution 7 and i can find tyhe make object or anything do no wat to search for on devolution 7?
    im saying dont use Devolution lol or nether than project czar.Try Dif source should work out sooner or later.
     

  4. #4  
    Registered Member
    T-Sex's Avatar
    Join Date
    Jan 2008
    Posts
    1,824
    Thanks given
    0
    Thanks received
    3
    Rep Power
    130
    Quote Originally Posted by XpurestrX View Post
    im saying dont use Devolution lol or nether than project czar.Try Dif source should work out sooner or later.
    nice =rep plus
     

  5. #5  
    Registered Member
    wh1p's Avatar
    Join Date
    Oct 2007
    Age
    28
    Posts
    1,983
    Thanks given
    26
    Thanks received
    285
    Rep Power
    320
    [Only registered and activated users can see links. ]
     

  6. #6  
    Project No*

    Join Date
    Aug 2007
    Age
    28
    Posts
    375
    Thanks given
    0
    Thanks received
    0
    Rep Power
    25
    this is pretty straight forward, this has been released ages ago, but thanks for posting it again
     

  7. #7  
    Banned

    Join Date
    Oct 2007
    Posts
    1,406
    Thanks given
    37
    Thanks received
    79
    Rep Power
    0
    Quote Originally Posted by wh1p View Post
    [Only registered and activated users can see links. ]
    didnt know but this 1 could help a bit more
     

  8. #8  
    Member Market Banned Market Banned

    Zee Best's Avatar
    Join Date
    Feb 2007
    Age
    29
    Posts
    3,036
    Thanks given
    24
    Thanks received
    210
    Rep Power
    1171
    Quote Originally Posted by XpurestrX View Post
    didnt know but this 1 could help a bit more
    Actually, read my thread; its alot more stages...


    [Only registered and activated users can see links. ]
     


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
  •