![]() |
| |||||||
| Home | GzP Upload | GzP Arcade | Register | vbBux / vbPlaza | All Albums | FAQ | Donate | Members List | Calendar | Mark Forums Read |
| RuneScape Private Servers RuneScape Private Server Discussion. |
![]() |
| | Thread Tools | Display Modes |
| | #1 |
| Registered User | 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 ![]() |
| | |
| The Following 2 Users Say Thank You to sunnypatel For This Useful Post: | Seydam (08-25-2008), Tracy_Volt (08-06-2008) |
| Sponsored Links |
| |
| | #2 |
| Registered User | Re: {tut}how To Add Portals{tut} good TuT pretty handy! |
| | |
| The Following User Says Thank You to -Infomation For This Useful Post: | Tracy_Volt (08-06-2008) |
| | #3 |
| Registered User | Re: {tut}how To Add Portals{tut} this will probably get detected but its amazingly convenient |
| | |
| The Following User Says Thank You to Suprl33tKila For This Useful Post: | Tracy_Volt (08-06-2008) |
| | #4 |
| Lurker | Re: {tut}how To Add Portals{tut} Good tutorial! Keep it up... |
| | |
| The Following 2 Users Say Thank You to Luisinho For This Useful Post: | Seydam (08-25-2008), Tracy_Volt (08-06-2008) |
| | #5 | |
| Lurker | Re: {tut}how To Add Portals{tut} lol just fyi when you said Quote:
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 | |
| | |
| The Following User Says Thank You to spite For This Useful Post: | Tracy_Volt (08-06-2008) |
| | #6 |
| Registered User | 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 |
| | |
| The Following User Says Thank You to Hackhackhacker For This Useful Post: | Tracy_Volt (08-06-2008) |
| | #7 |
| Registered User | Re: {tut}how To Add Portals{tut} |
| | |
| | #8 |
| Registered User | Re: {tut}how To Add Portals{tut} |
| | |
| | #9 |
| Lurker | 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; |
| | |
| | #10 |
| Värld Herravälden!!!! ![]() | Re: {tut}how To Add Portals{tut} wow really nice coding dude. pretty accurate. :D |
| | |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |