GamerzPlanet - For All Your Online Gaming Needs!!  

Go Back   GamerzPlanet - For All Your Online Gaming Needs!! > Online Gaming > RuneScape > RuneScape General > RuneScape Private Servers

RuneScape Private Servers RuneScape Private Server Discussion.



{tut}how To Add Portals{tut}

RuneScape Private Servers


Reply
 
Thread Tools Display Modes
Old 06-22-2008, 09:30 PM   #1
Registered User
 
Last Online: 09-02-2008 07:30 PM
Join Date: Nov 2007
Age: 19
Posts: 16
Thanks: 13
Thanked 17 Times in 6 Posts
sunnypatel is on a distinguished road
iTrader: 0 / 0%
Points: 13,986.98
Bank: 0.00
Total Points: 13,986.98
Thumbs up {tut}how To Add Portals{tut}

This is a Tut on how to add portals and how to make them tele you somewhere..

*This is my First Tut*

Post Feedback.

Quite easy if you know what you are doing.

100% credits to me.


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

First of all search for:

Code:
addGlobalObject(

Or search for:

Code:
makeGlobalObject(

You should see a bunch of things there.

Go to the bottom of the list and add:

Code:
addGlobalObject(XXXX, YYYY, OOOO, 0, 10);//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:

Code:
makeGlobalObject(2901, 3547, 7319, 0, 10);//portal

Thats the member portal on Project Czar.

Heres a portal on my server using addGlobalObject:

Code:
addGlobalObject(2842, 10208, 7316, 0, 10);//portal

Now lets make it tele you somewhere.

Lets use the second portal I showed you which will be:
Code:
addGlobalObject(2842, 10208, 7316, 0, 10);//portal

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

After you make it like this:


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


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

CCCC = the case.


Code:
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;


If you want to make it for mod+ do this:


Code:
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;

*Note* - You do not need the playerHandler.messageToAll in there.*

Then save & compile.

Hopefully this helped.

Post Feedback.
Post your errors here and I'll help.
PLEASE POST COMMENTS
sunnypatel is offline   Reply With Quote
The Following 2 Users Say Thank You to sunnypatel For This Useful Post:
Seydam (08-25-2008), Tracy_Volt (08-06-2008)
Sponsored Links
Old 06-23-2008, 11:53 PM   #2
Registered User
 
Last Online: 08-20-2008 11:51 AM
Join Date: May 2008
Posts: 74
Thanks: 9
Thanked 17 Times in 9 Posts
-Infomation is on a distinguished road
iTrader: 0 / 0%
Points: 9,582.10
Bank: 4.53
Total Points: 9,586.63
Re: {tut}how To Add Portals{tut}

good TuT pretty handy!
-Infomation is offline   Reply With Quote
The Following User Says Thank You to -Infomation For This Useful Post:
Tracy_Volt (08-06-2008)
Old 06-26-2008, 02:47 PM   #3
Registered User
 
Last Online: 08-16-2008 04:58 AM
Join Date: Jun 2008
Age: 23
Posts: 43
Thanks: 3
Thanked 16 Times in 9 Posts
Suprl33tKila is on a distinguished road
iTrader: 0 / 0%
Points: 5,573.03
Bank: 0.00
Total Points: 5,573.03
Re: {tut}how To Add Portals{tut}

this will probably get detected but its amazingly convenient
Suprl33tKila is offline   Reply With Quote
The Following User Says Thank You to Suprl33tKila For This Useful Post:
Tracy_Volt (08-06-2008)
Old 06-26-2008, 03:34 PM   #4
Lurker
 
Last Online: 08-07-2008 12:08 PM
Join Date: Jun 2008
Location: London
Posts: 3
Thanks: 0
Thanked 2 Times in 1 Post
Luisinho is on a distinguished road
iTrader: 0 / 0%
Points: 813.31
Bank: 0.00
Total Points: 813.31
Re: {tut}how To Add Portals{tut}

Good tutorial!

Keep it up...
Luisinho is offline   Reply With Quote
The Following 2 Users Say Thank You to Luisinho For This Useful Post:
Seydam (08-25-2008), Tracy_Volt (08-06-2008)
Old 07-19-2008, 09:27 PM   #5
Lurker
 
Last Online: 07-30-2008 10:46 PM
Join Date: Jul 2008
Posts: 1
Thanks: 0
Thanked 1 Time in 1 Post
spite is on a distinguished road
iTrader: 0 / 0%
Points: 621.38
Bank: 0.00
Total Points: 621.38
Re: {tut}how To Add Portals{tut}

lol just fyi

when you said
Quote:
10, idk you'll have to figure that out yourself.
this is the key for what 10 etc.. means

0-3 wall objects, 4-8 wall decoration, 9: diag. walls, 10-11 world objects, 12-21: roofs, 22: floor decoration


Hope this helps cos this was a gud tut xD
spite is offline   Reply With Quote
The Following User Says Thank You to spite For This Useful Post:
Tracy_Volt (08-06-2008)
Old 08-05-2008, 07:16 PM   #6
Registered User
 
Last Online: 09-01-2008 08:39 AM
Join Date: Jun 2008
Age: 18
Posts: 18
Thanks: 6
Thanked 4 Times in 4 Posts
Hackhackhacker is on a distinguished road
iTrader: 0 / 0%
Points: 595.02
Bank: 903.37
Total Points: 1,498.39
Re: {tut}how To Add Portals{tut}

I got lost at 7316 idk what your talking about and could you make it more clear o.O
Hackhackhacker is offline   Reply With Quote
The Following User Says Thank You to Hackhackhacker For This Useful Post:
Tracy_Volt (08-06-2008)
Old 08-06-2008, 06:05 PM   #7
Registered User
 
Last Online: Today 04:07 PM
Join Date: Jul 2008
Location: 0.0 In a box ;-(
Age: 28
Posts: 41
Thanks: 35
Thanked 4 Times in 4 Posts
Tracy_Volt is on a distinguished road
iTrader: 0 / 0%
Points: 4,900.36
Bank: 6.74
Total Points: 4,907.10
Re: {tut}how To Add Portals{tut}

Quote:
Originally Posted by Hackhackhacker View Post
I got lost at 7316 idk what your talking about and could you make it more clear o.O
Ur suppost to make him think he's making it simple.. :D

"munch munch" Its very nice and simple it works great :D
Tracy_Volt is offline   Reply With Quote
Old 08-07-2008, 12:57 AM   #8
Registered User
 
Last Online: 08-21-2008 11:56 PM
Join Date: Feb 2008
Location: USA Minasota
Posts: 121
Thanks: 175
Thanked 69 Times in 21 Posts
injected is on a distinguished road
iTrader: 0 / 0%
Points: 11,459.13
Bank: 0.00
Total Points: 11,459.13
Re: {tut}how To Add Portals{tut}

Quote:
Originally Posted by Tracy_Volt View Post
Ur suppost to make him think he's making it simple.. :D

"munch munch" Its very nice and simple it works great :D
LMFO nice post but it is very nice and simple(he is just lost and didn't get the first part lol)
injected is offline   Reply With Quote
Old 08-25-2008, 11:20 AM   #9
Lurker
 
Last Online: Today 10:22 AM
Join Date: Jul 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
taylor08 is on a distinguished road
iTrader: 0 / 0%
Points: 1,350.47
Bank: 0.00
Total Points: 1,350.47
Re: {tut}how To Add Portals{tut}

what if case 7316 is in use??? mine is this

case 7316: // memberportal
if (playerLevel[4] >= 99) {
teleportToX = 3243;
teleportToY = 9361;
sendMessage("You teleport to the Range/Magic Guild!");
} else {
sendMessage("You need 99 Range and Magic in order to enter this portal.");
}
break;
taylor08 is offline   Reply With Quote
Old 08-25-2008, 06:00 PM   #10
Värld Herravälden!!!!
 
sjiaids's Avatar
 
Last Online: Today 07:38 PM
Join Date: Jan 2008
Location: Sweden
Age: 28
Posts: 270
Thanks: 420
Thanked 59 Times in 27 Posts
sjiaids is on a distinguished road
iTrader: 6 / 88%
Points: 999.45
Bank: 51,900.00
Total Points: 52,899.45
   
Re: {tut}how To Add Portals{tut}

wow really nice coding dude.
pretty accurate.



:D
__________________

Click ^^
Trust me as a Middle Man :]
sjiaids is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

All times are GMT -7. The time now is 10:01 PM.


Powered by: vBulletin
Copyright ©2008, GamerzPlanet.Net
SEO by vBSEO 3.2.0 RC5 ©2008, Crawlability, Inc.
Network: GamerzPlanet | ForumzPlanet | GzPUpload | GzPArcade | GzP Host | Poker Tips | Visits: