Donate
Search
Latest topics
Top posters
Mr. Linksys (18) | ||||
Demonkill101 (13) | ||||
Dragonking (12) | ||||
Ripvayne (10) | ||||
King Redrum (10) | ||||
daniel89 (6) | ||||
Lighting bolt (5) | ||||
someguy (3) | ||||
thedisciple (3) | ||||
yangxue (2) |
How to use the same portal case for Different spots each w/ different teleport.
Page 1 of 1
How to use the same portal case for Different spots each w/ different teleport.
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.
Now you should see something like this.
Now your gona wanna add this into the code above the teleportToX.
It should look like this now.
Now to add the second portal so it will teleport simply add this under the } in the line.
So it should look just like this now if you did it all correct.
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
(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;
}
}
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
daniel89- Moderator
- Posts : 6
Join date : 2008-10-28
Age : 35
Location : South carolina
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
Tue Aug 23, 2011 3:25 pm by Demonkill101
» wow gold wow
Wed Jun 08, 2011 11:47 pm by yangxue
» DragonScape 508 Server
Mon Mar 29, 2010 7:33 pm by AERA808
» Linksys, have you seen\do you know about this?
Tue Jan 20, 2009 1:18 pm by Demonkill101
» Rune-Server Domain Name Expired
Tue Jan 20, 2009 1:17 pm by Demonkill101
» Simple Attack requirement messup.
Sun Dec 28, 2008 11:43 am by thedisciple
» Dragonscape 508 Ip switcher v2
Fri Dec 26, 2008 8:54 pm by Ripvayne
» Rules Of This Forum
Fri Dec 26, 2008 8:53 pm by Ripvayne
» Dragonking/Patragon
Mon Dec 22, 2008 3:48 pm by Mr. Linksys