Thread: [Hyperion] Projectiles

Results 1 to 3 of 3
  1. #1 [Hyperion] Projectiles 
    Registered Member

    Join Date
    Jun 2008
    Posts
    1,957
    Thanks given
    7
    Thanks received
    256
    Rep Power
    445
    Ok, something is fucking up and i beleive its the projectile or the location. As if you move and the projectile shoots it fucks it up and the projectile shoots from a diff location than your standing.

    Code:
    public void createProjectile(Location source, int offsetX, int offsetY, int angle, int speed, int gfxMoving, int startHeight, int endHeight, int lockon,int slope) {
    		PacketBuilder playerCoord = new PacketBuilder(85, Type.FIXED).putByteC((source.getY() - (player.getLocation().getRegionY() * 8)) - 2).putByteC((source.getX() - (player.getLocation().getRegionX() * 8)) - 3);
    		PacketBuilder projectile = new PacketBuilder(117, Type.FIXED).put((byte)angle).put((byte)offsetY).put((byte)offsetX).putShort(lockon).putShort(gfxMoving).put((byte)startHeight).put((byte)endHeight).putShort(51/*delay*/).putShort(speed).put((byte)slope/*slope*/).put((byte)64/*offset value on player tile*/);
    		player.write(playerCoord.toPacket());
    		player.write(projectile.toPacket());
    	}
    Code:
    [2272,4697,0]//normal spot
    [2272,4697,0]
    [2272,4697,0]
    [2272,4697,0]
    [2272,4697,0]
    [2272,4697,0]
    [2272,4697,0]
    [2272,4697,0]
    [2272,4697,0]
    [2272,4697,0]//slightly different spot (over a few distances)
    [2272,4697,0]//continues...
    [2272,4697,0]
    [2272,4697,0]
    [2272,4697,0]
    [2272,4697,0]
    [2272,4697,0]
    Reply With Quote  
     

  2. #2  
    Registered Member
    PSNB's Avatar
    Join Date
    Aug 2009
    Posts
    885
    Thanks given
    8
    Thanks received
    103
    Rep Power
    590
    The packet on WL was written wrong to begin with. This is the way I've got it setup, and it works perfectly.

    Packet 85
    • Remove the offsets (-2 and -3)

    Packet 117
    • Replace angle with '0'. (No clue why this is even here).
    • Put deltaX then deltaY. (Currently you have Y then X)
    Reply With Quote  
     

  3. #3  
    Registered Member

    Join Date
    Jun 2008
    Posts
    1,957
    Thanks given
    7
    Thanks received
    256
    Rep Power
    445
    still nothing, also i been noticing the drops are being moved from there spot also. (the npc drops appear a few spaces from where they should be) i think its something to do with locaton but that wouldn't make sense.
    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
  •