Thread: Delete/place objects on different height level

Results 1 to 2 of 2
  1. #1 Delete/place objects on different height level 
    Registered Member
    Join Date
    Nov 2009
    Posts
    72
    Thanks given
    1
    Thanks received
    6
    Rep Power
    0
    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)
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Nov 2009
    Posts
    72
    Thanks given
    1
    Thanks received
    6
    Rep Power
    0
    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
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •