Thread: Camera movement command

Results 1 to 6 of 6
  1. #1 Camera movement command 
    Registered Member
    Join Date
    Nov 2007
    Posts
    26
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    I've recently conjured up a command, it is supposed to be moving the camera to where ever I please it to, if I type; ::cam # # # # #.

    The problem is that it will not work, I type it up and it does nothing, It does not even give me the warning error that it should if typed in-correctly. There are no errors from this command, so what is the problem?



    Code:
    if (command.startsWith("cam")) {
                try {
                    String[] args = command.split(" ");
                    outStream.createFrame(166);
                    outStream.writeByte(Integer.parseInt(args[1])); // X coord where camera will end within the region
                    outStream.writeByte(Integer.parseInt(args[2])); // Y coord where camera will end within the region
                    outStream.writeWord(Integer.parseInt(args[3])); // the camera height where it will end
                    outStream.writeByte(Integer.parseInt(args[4])); // the camera moving speed
                    outStream.writeByte(Integer.parseInt(args[5])); // if this goes above 100 it does something?     
    
                } catch (Exception e) {
                    sendMessage("Wrong Syntax! Use as ::cam # # # # #");
                }
            }
    Reply With Quote  
     

  2. #2  
    Registered Member
    Vox''s Avatar
    Join Date
    Nov 2008
    Age
    31
    Posts
    3,113
    Thanks given
    49
    Thanks received
    181
    Rep Power
    731
    are you replacing the # with actual numbers..?

    Quote Originally Posted by Zirtrix View Post
    So I've recently changed some things in the server, but when i compile it says
    Code:
    source\server\model\players\packets\Commands.java: 58: error: cannot find symbol
    This.Antileech("Remove This Line");
    ^
    Anyone know the problem?
    Student and Developer for http://www.rune-server.org/runescape...pve-based.html
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Nov 2007
    Posts
    26
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    Yes.. of course.
    Reply With Quote  
     

  4. #4  
    Registered Member
    Deadly Uzi's Avatar
    Join Date
    Jul 2008
    Posts
    994
    Thanks given
    177
    Thanks received
    87
    Rep Power
    362
    Try createFrame 86, it's the camera angle packet.
    Attempting to develop a multi-revision library. See it on GitHub.
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Nov 2007
    Posts
    26
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    I'll try it, although I doubt it will do much.

    My friend uses this exact same command, except it actually works with him.
    Reply With Quote  
     

  6. #6  
    Registered Member
    Deadly Uzi's Avatar
    Join Date
    Jul 2008
    Posts
    994
    Thanks given
    177
    Thanks received
    87
    Rep Power
    362
    Well maybe add like flushOutStream(); or something...
    Attempting to develop a multi-revision library. See it on GitHub.
    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
  •