Go Back Sythe.Org Forums > Archives > Archives  
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

View Poll Results: Does this help?
Yes thanks 0 0%
No, not for me but good for noobs 0 0%
Voters: 0. You may not vote on this poll

 
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-22-2008, 07:27 PM
ragalshnagal *BANNED* ragalshnagal is offline
Forum Addict
BANNED
 
Join Date: Jan 2007
Location: Mount Olympus!!
Posts: 476
Send a message via AIM to ragalshnagal
Default -fedexer-'s Adding Global Object Tutorial--I have permission

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 FROM FEDEXER

Quote:
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 >.>
Here is page for more proof :S
http://www.rune-server.org/showthrea...038#post382038


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:
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-
  #2  
Old 02-10-2008, 06:17 PM
Novalye Novalye is offline
Leecher
 
Join Date: Feb 2008
Posts: 2
Default Re: -fedexer-'s Adding Global Object Tutorial--I have permission

I don't get this. when I compiler I got 100 errors exactly.
Can you explain with screen shots or something better.
Btw I am using Testscape.
 


    USFINE ad
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Sythe.org? Common Links

All times are GMT. The time now is 08:38 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.


Buy WoW accounts | Aion Kinah | WOW Gold | YOUR LINK HERE?