Thread: Perfect Scythe of Vitur / Dragon Halberd Special Graphics

Page 1 of 2 12 LastLast
Results 1 to 10 of 18
  1. #1 Perfect Scythe of Vitur / Dragon Halberd Special Graphics 
    Jire
    Jire's Avatar
    Join Date
    Nov 2008
    Posts
    34
    Thanks given
    193
    Thanks received
    70
    Rep Power
    608
    This produces a visually perfect graphic at every single angle against any combination of entity sizes.
    Note: This is a better visual than even Jagex did for OSRS. These graphic IDs are only in 500+(maybe in around 480+?); and if you're using an OSRS cache you need to pack them in as OSRS only has one graphic.

    Thanks to Kris: The OSRS graphics ids are 478, 506, 1172, 1231

    Code:
    final Location el = entity.getCenterLocation();
    final Location vl = victim.getCenterLocation();
    				
    int gfx;
    Direction direction = Direction.getDirection(
        entity.getCenterLocation(),
        victim.getCenterLocation()
    );
    
    switch (direction) {
    case SOUTH:
    case SOUTH_EAST:
        gfx = 282; // 478 for OSRS
        direction = Direction.SOUTH;
        break;
    case NORTH:
    case NORTH_WEST:
        gfx = 283; // 506 for OSRS
        direction = Direction.NORTH;
        break;
    case EAST:
    case NORTH_EAST:
        gfx = 284; // 1172 for OSRS
        direction = Direction.EAST;
        break;
    default:
        gfx = 285; // 1231 for OSRS
        direction = Direction.WEST;
        break;
    }
    
    Graphics.send(Graphics.create(gfx, 96, 20), // note: dragon halberd should have no (0) delay for the graphic!
                  entity.getCenterLocation().transform(direction)
    );
    You may need these functions if not using Arios:

    Code:
    public static Direction getDirection(int diffX, int diffY) {
        if (diffX < 1) {
            if (diffY < 1) {
                return SOUTH_WEST;
            } else if (diffY > 1) {
                return NORTH_WEST;
            }
            return WEST;
        } else if (diffX > 1) {
            if (diffY < 1) {
                return SOUTH_EAST;
            } else if (diffY > 1) {
                return NORTH_EAST;
            }
            return EAST;
        }
        if (diffY < 1) {
            return SOUTH;
        }
        return NORTH;
    }
    
    public static Direction getDirection(Location location, Location l) {
        return getDirection(l.getX() - location.getX(), l.getY() - location.getY());
    }
    Code:
    public Location getCenterLocation() {
        final int offset = size >> 1;
        return location.transform(offset, offset, 0);
    }
    Code:
    public Location transform(int diffX, int diffY, int z) {
        return Location.create(x + diffX, y + diffY, this.z + z);
    }
    Last edited by Jire; 08-03-2018 at 06:04 PM. Reason: Added OSRS graphic and note about delay
    Reply With Quote  
     

  2. Thankful users:


  3. #2  
    uwu

    Teemo.'s Avatar
    Join Date
    Oct 2014
    Age
    19
    Posts
    335
    Thanks given
    18
    Thanks received
    73
    Rep Power
    85
    nice man
    B E G O N E T H O T
    Reply With Quote  
     

  4. Thankful user:

    Fer

  5. #3  
    SERGEANT OF THE MASTER SERGEANTS MOST IMPORTANT PERSON OF EXTREME SERGEANTS TO THE MAX!

    cube's Avatar
    Join Date
    Jun 2007
    Posts
    8,871
    Thanks given
    1,854
    Thanks received
    4,745
    Rep Power
    5000
    Those graphics have been in the cache ever since dragon halberd came out and why cant 282 be used for every angle? Graphics should already follow your characters direction

    Attached image

    Reply With Quote  
     

  6. #4  
    Jire
    Jire's Avatar
    Join Date
    Nov 2008
    Posts
    34
    Thanks given
    193
    Thanks received
    70
    Rep Power
    608
    Quote Originally Posted by S Quare Quxx View Post
    Those graphics have been in the cache ever since dragon halberd came out
    Are you sure about this? Because it would make sense that OSRS would have the different facing graphics, but it does not.

    Quote Originally Posted by S Quare Quxx View Post
    and why cant 282 be used for every angle? Graphics should already follow your characters direction
    Using 282 as a player graphic is what all(?) RSPS do, but the swipe should happen in front of you, perfectly aligned with the halberd/scythe.

    Because then the swipe happens on top of your body, which is not how it's supposed to look. Instead, you need to send it as a location graphic.
    This video is proof that it is a location graphic, watch as he swipes and then moves away.. the graphic doesn't follow him:
    Reply With Quote  
     

  7. Thankful user:


  8. #5  
    Respected Member


    Kris's Avatar
    Join Date
    Jun 2016
    Age
    26
    Posts
    3,638
    Thanks given
    820
    Thanks received
    2,642
    Rep Power
    5000
    The OSRS graphics ids are 478, 506, 1172, 1231; it uses the same graphics as the halberd does. The reason why there can't be one GFX is because the graphics are sent at a location in-front of the player, not on-top of them, thus meaning it cannot be sent as a mask. Loc graphics cannot be rotated in lower revisions(They can be in higher revisions though)
    Attached image
    Reply With Quote  
     

  9. Thankful users:


  10. #6  
    Jire
    Jire's Avatar
    Join Date
    Nov 2008
    Posts
    34
    Thanks given
    193
    Thanks received
    70
    Rep Power
    608
    Quote Originally Posted by Kris View Post
    The OSRS graphics ids are 478, 506, 1172, 1231; it uses the same graphics as the halberd does. The reason why there can't be one GFX is because the graphics are sent at a location in-front of the player, not on-top of them, thus meaning it cannot be sent as a mask. Loc graphics cannot be rotated in lower revisions(They can be in higher revisions though)
    Damn nice! I should have model-scanned the one ID. Thank you for the info
    Reply With Quote  
     

  11. #7  
    Donator

    TeJay's Avatar
    Join Date
    Jul 2017
    Posts
    630
    Thanks given
    217
    Thanks received
    283
    Rep Power
    1754
    Thanks for the contribution lad.
    Attached image
    Spoiler for Services:
    Attached image
    Reply With Quote  
     

  12. #8  
    Professional Lurker
    null's Avatar
    Join Date
    Mar 2017
    Posts
    121
    Thanks given
    15
    Thanks received
    31
    Rep Power
    67
    Thanks for this will def use it
    Reply With Quote  
     

  13. #9  
    Extreme Donator

    Unzy's Avatar
    Join Date
    Feb 2017
    Posts
    1,086
    Thanks given
    0
    Thanks received
    2,881
    Rep Power
    5000
    Nice work mate.
    Attached image
    Reply With Quote  
     

  14. #10  
    Registered Member
    Join Date
    Feb 2014
    Posts
    62
    Thanks given
    15
    Thanks received
    5
    Rep Power
    25
    Much easier way is to just add this into MeleeData:

    Code:
            if (weaponName.contains("scythe of vitur")) {
                c.gfx100(478);
                return 1203;
            }
    Reply With Quote  
     

  15. Thankful user:


Page 1 of 2 12 LastLast

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. OSRS Scythe of Vitur animation IDs
    By KANYE WEST in forum Requests
    Replies: 8
    Last Post: 08-06-2021, 12:33 AM
  2. Replies: 0
    Last Post: 05-15-2016, 12:28 AM
  3. Dragon Halberd Special Attack [PI]
    By i am here in forum Help
    Replies: 6
    Last Post: 10-19-2013, 03:29 PM
  4. Perfect Dragon Hally Special
    By SWAT in forum Show-off
    Replies: 28
    Last Post: 01-28-2009, 11:03 PM
  5. Working Dragon BAxe Special Attack
    By Swarfega in forum Tutorials
    Replies: 11
    Last Post: 11-01-2008, 11:02 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •