Thread: [666] Rights formula?

Results 1 to 7 of 7
  1. #1 [666] Rights formula? 
    Registered Member
    Mikers's Avatar
    Join Date
    Oct 2009
    Posts
    265
    Thanks given
    15
    Thanks received
    5
    Rep Power
    104
    Attached image

    what is the proper formula for turning this into rights = 0?


    Discord: Mikers#1233
    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    May 2013
    Age
    27
    Posts
    414
    Thanks given
    215
    Thanks received
    200
    Rep Power
    137
    .rights > 0, all ^ 0xffffffff does is inverse the number
    Reply With Quote  
     

  3. #3  
    Registered Member
    Mikers's Avatar
    Join Date
    Oct 2009
    Posts
    265
    Thanks given
    15
    Thanks received
    5
    Rep Power
    104
    i dont want it greater then 0, i want it 0 or greater, will it still work?


    Discord: Mikers#1233
    Reply With Quote  
     

  4. #4  
    Respected Member


    Kris's Avatar
    Join Date
    Jun 2016
    Age
    26
    Posts
    3,638
    Thanks given
    820
    Thanks received
    2,642
    Rep Power
    5000
    What's your question?
    The current if-statement in there is equivalent to
    if (rights > 0)
    Attached image
    Reply With Quote  
     

  5. #5  
    Registered Member
    Mikers's Avatar
    Join Date
    Oct 2009
    Posts
    265
    Thanks given
    15
    Thanks received
    5
    Rep Power
    104
    It doesnt work. heres the lines of code
    Code:
    		if (i_6_ == 11) {
    					if ((Class339_Sub7.rights ^ 0xffffffff) < -1 && Class175.aClass291_2100.isKeyHeld(-121, 82) && Class175.aClass291_2100.isKeyHeld(111, 81)) {
    						Class331.sendShiftTeleport(false, Class295.myPlayer.plane, Class320_Sub4.gameSceneBaseY + i_5_, Node_Sub53.gameSceneBaseX + i_4_);
    					} else {
    						Node_Sub37.anInt7431 = 0;
    						Class131.anInt5443++;
    						Class93_Sub2.anInt6067 = i_3_;
    						Node_Sub38_Sub28.anInt10403 = 1;
    						Class163.anInt2014 = i;
    						OutgoingPacketBuffer node_sub13 = PacketParser.createOutgoingPacket(-386, Class144_Sub4.aClass318_6847, Class218.aClass123_2566.issacKeys);
    						node_sub13.currentOutgoingPacket.writeShortLE128(i_5_ + Class320_Sub4.gameSceneBaseY);
    						node_sub13.currentOutgoingPacket.writeShortLE(Node_Sub53.gameSceneBaseX + i_4_);
    						Class218.aClass123_2566.sendPacket(126, node_sub13);
    					}
    				}
    and another one

    Code:
    				if (i_6_ == 58) {
    					if ((Class339_Sub7.rights ^ 0xffffffff) >= -1 || !Class175.aClass291_2100.isKeyHeld(119, 82) || !Class175.aClass291_2100.isKeyHeld(i_2_ ^ 0x6a, 81)) {
    						OutgoingPacketBuffer node_sub13 = Class22.createWalkPacket(i_4_, i_5_, index);
    						if (index == 1) {
    							node_sub13.currentOutgoingPacket.writeByte(-1);
    							node_sub13.currentOutgoingPacket.writeByte(-1);
    							node_sub13.currentOutgoingPacket.writeShort((int) Node_Sub12.aFloat5450);
    							node_sub13.currentOutgoingPacket.writeByte(57);
    							node_sub13.currentOutgoingPacket.writeByte(Mobile_Sub1.anInt10960);
    							node_sub13.currentOutgoingPacket.writeByte(Node_Sub15_Sub13.anInt9870);
    							node_sub13.currentOutgoingPacket.writeByte(89);
    							node_sub13.currentOutgoingPacket.writeShort(Class295.myPlayer.y);
    							node_sub13.currentOutgoingPacket.writeShort(Class295.myPlayer.x);
    							node_sub13.currentOutgoingPacket.writeByte(63);
    						} else {
    							Class163.anInt2014 = i;
    							Node_Sub38_Sub28.anInt10403 = 1;
    							Node_Sub37.anInt7431 = 0;
    							Class93_Sub2.anInt6067 = i_3_;
    						}
    						Class218.aClass123_2566.sendPacket(126, node_sub13);
    						Class78.method778(0, i_5_, 1, true, i_4_, 0, -4, i_2_ ^ ~0x6b, 1);
    					} else {
    						Class331.sendShiftTeleport(false, Class295.myPlayer.plane, Class320_Sub4.gameSceneBaseY - -i_5_, Node_Sub53.gameSceneBaseX + i_4_);
    					}
    				}
    last one:

    Code:
    if ((Class339_Sub7.rights ^ 0xffffffff) < -1 && Class175.aClass291_2100.isKeyHeld(i ^ 0x38a0, 82) && Class175.aClass291_2100.isKeyHeld(-71, 81) && (Class339_Sub8.mouseNotches ^ 0xffffffff) != -1) {
    							int height = -Class339_Sub8.mouseNotches + Class295.myPlayer.plane;
    							if (height >= 0) {
    								if (height > 3) {
    									height = 3;
    								}
    							} else {
    								height = 0;
    							}
    							Class331.sendShiftTeleport(false, height, Class295.myPlayer.scenePositionYQueue[0] + Class320_Sub4.gameSceneBaseY, Node_Sub53.gameSceneBaseX - -Class295.myPlayer.scenePositionXQueue[0]);
    						}

    how can i make it so even rights = 0 it sends sendshiftteleport?


    Discord: Mikers#1233
    Reply With Quote  
     

  6. #6  
    Reverse Engineering

    freeezr's Avatar
    Join Date
    Dec 2011
    Posts
    1,067
    Thanks given
    288
    Thanks received
    444
    Rep Power
    401
    if ((x ^ 0xFFFFFFFF) < -1) is equivalent to if (x > 0)

    therefore

    if ((x ^ 0xFFFFFFFF) < 0) is equivalent to if (x > -1)

    Attached image
    Reply With Quote  
     

  7. #7  
    Registered Member

    Join Date
    May 2013
    Age
    27
    Posts
    414
    Thanks given
    215
    Thanks received
    200
    Rep Power
    137
    rights >= 0? Not sure why this is so difficult for you. .rights ^ 0xffffffff <= -1 is equivalent to .rights >= 0, like i said its just inverse + 1
    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

Similar Threads

  1. Replies: 10
    Last Post: 09-21-2007, 02:40 AM
  2. Right click player same as RuneScape
    By littleplop in forum Tutorials
    Replies: 6
    Last Post: 08-12-2007, 09:44 PM
  3. Easy Player Rights Adjustment
    By BADBOY OWNS in forum Tutorials
    Replies: 4
    Last Post: 08-04-2007, 07:54 PM
  4. Giving rights with commands
    By Systəx in forum Tutorials
    Replies: 23
    Last Post: 07-23-2007, 10:08 PM
  5. Right Arrow GFX;
    By No Ban Hama in forum Tutorials
    Replies: 5
    Last Post: 07-23-2007, 08:56 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •