Never mind, I came up with a solution myself already: replace the banner with an empty socket for all those who are already on the same floor as the flag, and for the others: only replace the flag the moment they use the stairs to get to that floor
|
Hey all
This is my first post on Rune-Server, yay
I've been coding for a few months so far, never needed to make a topic yet because almost everything I needed was already here, or I was smart enough to do it myself...
But there is one problem I can't find the solution for anywhere.
There is the method
public void ReplaceObject2(int objectX, int objectY, int NewObjectID,
int Face, int ObjectType)
in Client.java (server-sided ofc)
but this method removes objects on the exact same floor as your character is currently standing. Now, this has never been a problem before, but I have been making Castle Wars recently, and when someone takes the flag, the empty flag socket will appear for only those that are on the same floor. For all the others, the socket will appear on the wrong floor...
Does anybody know how you can set the height for an object placement?
(And yeah, I've seen a topic or two where they present me a method with an argument called objectHeight, but that argument is not used in the method itself and thus useless. lol)
Never mind, I came up with a solution myself already: replace the banner with an empty socket for all those who are already on the same floor as the flag, and for the others: only replace the flag the moment they use the stairs to get to that floor
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |