Rune Forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Donate
Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» Guys Its Me PrettyBirds I'm Back !
How to use the same portal case for Different spots each w/ different teleport. EmptyTue Aug 23, 2011 3:25 pm by Demonkill101

» wow gold wow
How to use the same portal case for Different spots each w/ different teleport. EmptyWed Jun 08, 2011 11:47 pm by yangxue

» DragonScape 508 Server
How to use the same portal case for Different spots each w/ different teleport. EmptyMon Mar 29, 2010 7:33 pm by AERA808

» Linksys, have you seen\do you know about this?
How to use the same portal case for Different spots each w/ different teleport. EmptyTue Jan 20, 2009 1:18 pm by Demonkill101

» Rune-Server Domain Name Expired
How to use the same portal case for Different spots each w/ different teleport. EmptyTue Jan 20, 2009 1:17 pm by Demonkill101

» Simple Attack requirement messup.
How to use the same portal case for Different spots each w/ different teleport. EmptySun Dec 28, 2008 11:43 am by thedisciple

» Dragonscape 508 Ip switcher v2
How to use the same portal case for Different spots each w/ different teleport. EmptyFri Dec 26, 2008 8:54 pm by Ripvayne

» Rules Of This Forum
How to use the same portal case for Different spots each w/ different teleport. EmptyFri Dec 26, 2008 8:53 pm by Ripvayne

» Dragonking/Patragon
How to use the same portal case for Different spots each w/ different teleport. EmptyMon Dec 22, 2008 3:48 pm by Mr. Linksys

Top posters
Mr. Linksys (18)
How to use the same portal case for Different spots each w/ different teleport. Votingbar2How to use the same portal case for Different spots each w/ different teleport. VotingbarHow to use the same portal case for Different spots each w/ different teleport. Votingbar3 
Demonkill101 (13)
How to use the same portal case for Different spots each w/ different teleport. Votingbar2How to use the same portal case for Different spots each w/ different teleport. VotingbarHow to use the same portal case for Different spots each w/ different teleport. Votingbar3 
Dragonking (12)
How to use the same portal case for Different spots each w/ different teleport. Votingbar2How to use the same portal case for Different spots each w/ different teleport. VotingbarHow to use the same portal case for Different spots each w/ different teleport. Votingbar3 
Ripvayne (10)
How to use the same portal case for Different spots each w/ different teleport. Votingbar2How to use the same portal case for Different spots each w/ different teleport. VotingbarHow to use the same portal case for Different spots each w/ different teleport. Votingbar3 
King Redrum (10)
How to use the same portal case for Different spots each w/ different teleport. Votingbar2How to use the same portal case for Different spots each w/ different teleport. VotingbarHow to use the same portal case for Different spots each w/ different teleport. Votingbar3 
daniel89 (6)
How to use the same portal case for Different spots each w/ different teleport. Votingbar2How to use the same portal case for Different spots each w/ different teleport. VotingbarHow to use the same portal case for Different spots each w/ different teleport. Votingbar3 
Lighting bolt (5)
How to use the same portal case for Different spots each w/ different teleport. Votingbar2How to use the same portal case for Different spots each w/ different teleport. VotingbarHow to use the same portal case for Different spots each w/ different teleport. Votingbar3 
someguy (3)
How to use the same portal case for Different spots each w/ different teleport. Votingbar2How to use the same portal case for Different spots each w/ different teleport. VotingbarHow to use the same portal case for Different spots each w/ different teleport. Votingbar3 
thedisciple (3)
How to use the same portal case for Different spots each w/ different teleport. Votingbar2How to use the same portal case for Different spots each w/ different teleport. VotingbarHow to use the same portal case for Different spots each w/ different teleport. Votingbar3 
yangxue (2)
How to use the same portal case for Different spots each w/ different teleport. Votingbar2How to use the same portal case for Different spots each w/ different teleport. VotingbarHow to use the same portal case for Different spots each w/ different teleport. Votingbar3 


How to use the same portal case for Different spots each w/ different teleport.

Go down

How to use the same portal case for Different spots each w/ different teleport. Empty How to use the same portal case for Different spots each w/ different teleport.

Post  daniel89 Sun Nov 09, 2008 9:11 pm

So in this tut I will show you how to use the same portal id in different places all with different teleports so you don't have to hunt down portal id's each time you need a new portal.

(If during this tut you Require help or errors please post them and I will get back with you or someone else that is on will help you if they so choose to.)

Hardness = 1

So open your client.java and search for this or a different portal case if you don't have this one.

Code:

case 4389:

Now you should see something like this.
Code:
        case 4389: // Portal At Front.
            teleportToX = 2540;
            teleportToY = 3890;
            sendMessage("You teleport to l33t shops.");
            break;
       

Now your gona wanna add this into the code above the teleportToX.
Code:

        if ((objectX == 3093 && objectY == 3238)) {

It should look like this now.
Code:
        case 4389: // Portal At Front.
        if ((objectX == 3093 && objectY == 3238)) {
            teleportToX = 2540;
            teleportToY = 3890;
            sendMessage("You teleport to l33t shops.");
            break;
}


Now to add the second portal so it will teleport simply add this under the } in the line.
Code:
 else {
          if ((objectX == #### && objectY == ####)) {
            teleportToX = ####;
            teleportToY = ####;
            sendMessage("You teleport through the test portal design by Iownall!");
            break;
        }
}


So it should look just like this now if you did it all correct.
Code:
        case 4389: // Portal At Front.
        if ((objectX == 3093 && objectY == 3238)) {
            teleportToX = 2540;
            teleportToY = 3890;
            sendMessage("You teleport to l33t shops.");
            break;
}else {
          if ((objectX == #### && objectY == ####)) {
            teleportToX = ####;
            teleportToY = ####;
            sendMessage("You teleport through the test portal design by Iownall!");
            break;
        }
}
**Also make sure for when you add another location you place the template between the two } } and add a extra } on the end of the code. So for each different portal teleport location for that portal you will need a } for it. So if you have 5 different teleports you will need 5 } on the end of the code.

Simply fill in the #### with your portal location and then the teleport cords and make a new global object for the new portal and place it where you want it.

You now know how to add the same portal in a different location but has a different teleport than the other. Also I have never seen this done before and was souly code by me and released to this public only for lreaning purposes. Please do not leech this as I do not wish to have it leeched which will not happen as there is always a noob on the scout for new material to leech.
-.-


Thanks Daniel Razz

daniel89
Moderator
Moderator

Posts : 6
Join date : 2008-10-28
Age : 35
Location : South carolina

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum