nightleaf Admin
Posts : 112 Join date : 2007-08-05 Age : 32 Location : In Evolution
Members Nightscape 2: = Dead! Evolution Server!!!
| Subject: Global object adder Tue 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 } | |
|