Evolution Server
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Evolution Server

This is the official site of Evolution!!!
 
HomeHome  PortalPortal  SearchSearch  Latest imagesLatest images  RegisterRegister  Log inLog in  

 

 Global object adder

Go down 
AuthorMessage
nightleaf
Admin
Admin
nightleaf


Posts : 112
Join date : 2007-08-05
Age : 32
Location : In Evolution

Members
Nightscape 2: = Dead! Evolution Server!!!

Global object adder Empty
PostSubject: Global object adder   Global object adder Icon_minitimeTue Sep 04, 2007 2:04 am

to add objects such as a dummy, or hay stack anywhere you wish!

Files changed: client.java

Code:
]public void AddGlobalObject(int x, int y, int typeID, int orientation, int tileObjectType)
{
 outStream.createFrame(85);
              outStream.writeByteC(y - (mapRegionY * 8));
              outStream.writeByteC(x - (mapRegionX * 8));

 outStream.createFrame(151);
 //outStream.writeByteA(((x&7) << 4) + (y&7));
              outStream.writeByteA(0);
 outStream.writeWordBigEndian(typeID);
 outStream.writeByteS((tileObjectType<<2) +(orientation&3));
}

public void NewObjects() {
AddGlobalObject(3251, 3421, 2469, 0, 10);//mod island portal in bank
}
Back to top Go down
https://evolutionserver.forumotion.com
 
Global object adder
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Evolution Server :: Server Coding-
Jump to: