Rune-Server Did you know?
- The fence at the border of the Falador Park contains 97 fence-components.
PortalForums Server TOP List New - PasteBin WebMail Register FAQ Members List Mark Forums Read
 

Server Top 5

Go Back   Rune-Server > RuneScape Development > RS2 Server > Tutorials


Closed Thread
 
LinkBack Thread Tools
Old 01-21-2008, 06:55 PM   #1 (permalink)
Registered Member
 
Ragalshnagal's Avatar
 
Join Date: Sep 2007
Posts: 52
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 23
Ragalshnagal is on a distinguished roadRagalshnagal is on a distinguished roadRagalshnagal is on a distinguished road
[As requested]Fedexer's Global Object Tutorial[permission from fedexer to post]

I have been looking around for Fedexer's Tutorial on adding global objects for quite some time. I've noticed it is not on this site anymore, so i will post it.

I HAVE PERMISSION :O

THIS IS NOT MINE, I HAVE NO CREDIT, IM JUST TRYING TO HELP PEOPLE WITH THEIR GLOBAL OBJECTS.I UNDERSTAND IF REPOSTING SOMEONES TUTORIAL IS NOT ALLOWED, AND I TAKE FULL RESPONSABILITY, I JUST WANT PEOPLE TO USE IT AGAIN. IT HELPED ME ALOT.

CREDITS: -fedexer- ( 100000000000000%)

ME(N/A) just reposting
Ok so here it is.



Purpose: Making Global Objects

Difficulty: 3

Assumed Knowledge: you should know how to add voids

Server Base: cheeazscape 78

Classes Modified: client.java

Tested on: cheeazescape 78 and pimpscape




procedure
step 1

ok first of look for this in your client.java (PS YOU DONT NEED TO LOOK FOR THIS JUST ADD THE NEXT BIT WITH YOUR OTHER VOIDS )

Quote:

/* OBJECTS MAIN */
if you dont have it add this


Quote:
public void makeGlobalObject(int x, int y, int typeID, int orientation, int tileObjectType){ //Makes Global objects
for (Player p : server.playerHandler.players){
if(p != null){
client person = (client)p;
if((person.playerName != null || person.playerName != "null")){
if(person.distanceToPoint(x, y) <= 60){
person.createNewTileObject(x, y, typeID, orientation, tileObjectType);
}
}
}
}
}
and add this

Quote:

public void ReplaceObject2(int objectX, int objectY, int NewObjectID, int Face, int ObjectType) {
outStream.createFrame(85);
outStream.writeByteC(objectY - (mapRegionY * 8));
outStream.writeByteC(objectX - (mapRegionX * 8));

outStream.createFrame(101);
outStream.writeByteC((ObjectType<<2) + (Face&3));
outStream.writeByte(0);

if (NewObjectID != -1) {
outStream.createFrame(151);
outStream.writeByteS(0);
outStream.writeWordBigEndian(NewObjectID);
outStream.writeByteS((ObjectType<<2) + (Face&3));
//FACE: 0= WEST | -1 = NORTH | -2 = EAST | -3 = SOUTH
//ObjectType: 0-3 wall objects, 4-8 wall decoration, 9: diag. walls, 10-11 world objects, 12-21: roofs, 22: floor decoration
}
}
step 2

now add this void under the code you just added

Quote:

public void NewObjects() {
makeGlobalObject(3004, 3383, 2469, 0, 10);//portal
}
this is an example of a portal in falador park

step 3
next search for
Quote:
case 121:
and inside that case add this...
Quote:
Code:

NewObjects();
(note adding it here will reduce lag signifigantly...)


now to get this to work add more
Quote:

AddGlobalObject(3004, 3383, 2469, 0, 10);//portal
to the
Quote:

public void NewObjects() {
now


Quote:
makeGlobalObject(3004, 3383, 2469, 0, 10);//portal
ok the


Quote:
makeGlobalObject
tells the server you wish to make an object
this part


Quote:
(3004, 3383, 2469, 0, 10);
is the most important

ok the first 2 numbers "3004, 3383" are the x and y coords of the place you want the object
then the "2469" is the object ID in this case a portal
the "0" is the objects facing direction
and then the "10" is for a ground object keep this the same !!


for object facing you can change the number so that it face's a different way and these are the numbers below:


Quote:
0= WEST | -1 = NORTH | -2 = EAST | -3 = SOUTH
step 4
you may also need to add this if you get errors saying you dont have


Quote:
public void ReplaceObject2(int objectX, int objectY, int NewObjectID, int Face, int ObjectType) {
outStream.createFrame(85);
outStream.writeByteC(objectY - (mapRegionY * 8));
outStream.writeByteC(objectX - (mapRegionX * 8));

outStream.createFrame(101);
outStream.writeByteC((ObjectType<<2) + (Face&3));
outStream.writeByte(0);

if (NewObjectID != -1) {
outStream.createFrame(151);
outStream.writeByteS(0);
outStream.writeWordBigEndian(NewObjectID);
outStream.writeByteS((ObjectType<<2) + (Face&3));
//FACE: 0= WEST | -1 = NORTH | -2 = EAST | -3 = SOUTH
//ObjectType: 0-3 wall objects, 4-8 wall decoration, 9: diag. walls, 10-11 world objects, 12-21: roofs, 22: floor decoration
}
}
credits : -fedexer-
Ragalshnagal is offline  
Old 01-21-2008, 07:04 PM   #2 (permalink)
Registered Member
 
snowycards's Avatar
 
Join Date: Sep 2007
Posts: 455
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 41
snowycards is a jewel in the rough
snowycards is a jewel in the roughsnowycards is a jewel in the rough
nice tut yeh
__________________
Stormwall - In development - 29%

My parakeets
snowycards is offline  
Old 01-21-2008, 07:08 PM   #3 (permalink)
Registered Member
 
Ragalshnagal's Avatar
 
Join Date: Sep 2007
Posts: 52
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 23
Ragalshnagal is on a distinguished roadRagalshnagal is on a distinguished roadRagalshnagal is on a distinguished road
Thank you. just remember that this is -fedexers- :P

EDIT: Will remove if no comments are made soon.
__________________
if u blood trow it up
Ragalshnagal is offline  
Old 01-21-2008, 10:08 PM   #4 (permalink)
Registered Member
 
Shamon King's Avatar
 
Join Date: Aug 2007
Posts: 2,896
Thanks: 10
Thanked 50 Times in 35 Posts
Rep Power: 1013
Shamon King is truly magnificentShamon King is truly magnificentShamon King is truly magnificentShamon King is truly magnificentShamon King is truly magnificentShamon King is truly magnificentShamon King is truly magnificentShamon King is truly magnificent
Shamon King is truly magnificentShamon King is truly magnificentShamon King is truly magnificentShamon King is truly magnificentShamon King is truly magnificentShamon King is truly magnificent
Send a message via MSN to Shamon King
Quote:
Originally Posted by Ragalshnagal View Post
Thank you. just remember that this is -fedexers- :P

EDIT: Will remove if no comments are made soon.
why the hell will you remove its not even your tutorial
even if you do give fedexer credits he did not give you permision to post
:lock:
__________________
Shamon King is offline  
Old 01-21-2008, 11:34 PM   #5 (permalink)
Registered Member
 
Ragalshnagal's Avatar
 
Join Date: Sep 2007
Posts: 52
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 23
Ragalshnagal is on a distinguished roadRagalshnagal is on a distinguished roadRagalshnagal is on a distinguished road
Quote:
Originally Posted by shamon king View Post
why the hell will you remove its not even your tutorial
even if you do give fedexer credits he did not give you permision to post
:lock:
Im trying to help people out, and yea this is fedexers. There are requests asking for them, and i will remove if people will just leach. besides, i see many threads with copied tutorials that say its not theirs, and nowhere does it say that they had permission.

Therefore, if i am not allowed to post without permission, why are other people doing it when they don't have permission?

Think bout that.

EDIT:

I just looked at the tutorial rules. It says ripping ( leeching) is not allowed.
This is not leeching. I gave -fedexer- credit, none to me + it seems like all forums i go on for private servers don't have this tutorial. Its just reposting.
__________________
if u blood trow it up
Ragalshnagal is offline  
Old 01-22-2008, 12:40 AM   #6 (permalink)
Registered Member
 
snowycards's Avatar
 
Join Date: Sep 2007
Posts: 455
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 41
snowycards is a jewel in the rough
snowycards is a jewel in the roughsnowycards is a jewel in the rough
Quote:
Originally Posted by Ragalshnagal View Post
Im trying to help people out, and yea this is fedexers. There are requests asking for them, and i will remove if people will just leach. besides, i see many threads with copied tutorials that say its not theirs, and nowhere does it say that they had permission.

Therefore, if i am not allowed to post without permission, why are other people doing it when they don't have permission?

Think bout that.

EDIT:

I just looked at the tutorial rules. It says ripping ( leeching) is not allowed.
This is not leeching. I gave -fedexer- credit, none to me + it seems like all forums i go on for private servers don't have this tutorial. Its just reposting.
ok wrapping up what you said,

if everyone steals money from the bank, it still doesnt mean you can lol
__________________
Stormwall - In development - 29%

My parakeets
snowycards is offline  
Old 01-22-2008, 02:25 AM   #7 (permalink)
Registered Member
 
Ragalshnagal's Avatar
 
Join Date: Sep 2007
Posts: 52
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 23
Ragalshnagal is on a distinguished roadRagalshnagal is on a distinguished roadRagalshnagal is on a distinguished road
snowy you still here
__________________
if u blood trow it up
Ragalshnagal is offline  
Old 01-22-2008, 06:57 AM   #8 (permalink)
-fedexer-
Guest
 
Posts: n/a
rofl , you know what , if its permission you need then you've got it , i just didnt bother to report it , as the last time i ever did i got the **** flamed out of me , hint the fact i left and in 2 years have only ever made like 22 posts, if even that >.>
 
Old 01-22-2008, 02:58 PM   #9 (permalink)
Registered Member
 
Ragalshnagal's Avatar
 
Join Date: Sep 2007
Posts: 52
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 23
Ragalshnagal is on a distinguished roadRagalshnagal is on a distinguished roadRagalshnagal is on a distinguished road
Do you know how long it took me to find this thing anyway
__________________
if u blood trow it up
Ragalshnagal is offline  
Old 01-22-2008, 03:37 PM   #10 (permalink)
-fedexer-
Guest
 
Posts: n/a
would take me about 2 seconds, i have back-ups of all my tutorials i have ever created. Due to the many time sthey were deleted at my hometown of mopar.
 
Closed Thread


Tags
fedexer, global, tutorial


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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 On
Pingbacks are On
Refbacks are On




Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
vBulletin Style by: kreativfantasy.com