can no one help me? Oh my gee, i've posted this on runeloacus, moparscape, and here, and no one knows... Ive tried case 121: (nulls the server) Ive tried adding the ids into object.cfg, no results.... Idk what's going wrong tbh.
|
Oh my gee i'm getting frustrated trying to add objects into this source, i've never seen anything like this. ive added shops, mysql, fixed dupes, but adding objects and replacing doors gives me 0 success. I've added all the voids needed to delete doors and add objects like bank booths but nothing works. I've tried going to object.cfg, yet no success? Any help please|??>.< >.<
can no one help me? Oh my gee, i've posted this on runeloacus, moparscape, and here, and no one knows... Ive tried case 121: (nulls the server) Ive tried adding the ids into object.cfg, no results.... Idk what's going wrong tbh.
Show me your code.
try adding a different addObject method
Yes provide what you have tried so far...
Ok 1 sec lemme copy and paste it here.
I've tried this :
Then i tried addingCode: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); } } } } } public void NewObjects() { makeGlobalObject(2787, 2806, 2875, 0, 10);//portal }
This just nulls the server.Code:Case 121: NewObjects(); break;
Ive also tried the object.cfg, but the objects doesn't show...
I've tried using the CreatObj() void which came with the source...
No results... Need desperate helpCode:public void CreateObj(int X, int Y, int ID, int FACE, int TYPE) { if (distanceToPoint(X, Y) <= 60) { outStream.createFrame(85); outStream.writeByteC(Y - (mapRegionY * 8)); outStream.writeByteC(X - (mapRegionX * 8)); outStream.writeByteA(0); outStream.writeWordBigEndian(ID); outStream.createFrame(151); outStream.writeByteS((TYPE << 2) + (FACE & 3)); } }
why not just use replaceobject code? works perfectly o_O
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |