Thread: Fixing newer revision items for the 317 character + explaining some variables

Page 1 of 3 123 LastLast
Results 1 to 10 of 30
  1. #1 Fixing newer revision items for the 317 character + explaining some variables 
    Respected Member


    Josh's Avatar
    Join Date
    Aug 2008
    Age
    27
    Posts
    2,863
    Thanks given
    6
    Thanks received
    1,342
    Rep Power
    5000
    Note: I posted it here because it's model related

    So I've been refactoring my ItemDef recently and came across a fix for fitting newer revision items on the 317 character. Normally you would have to edit the model and raise it in a model program which imo takes too long and is a hassle, but this is extremely easy and takes literally seconds.

    Weapon before fix.


    This model is one of the pvp models released which I've raised using this fix, the model hasn't been edited in any program or anything (Other than the datmaker).

    Weapon after fix.



    The model now fits onto the 317 character, this is accomplished by these variables;
    Code:
    aByte205
    aByte154
    They control the height of where the weapon is drawn, lowering the variable makes the weapon go higher, increasing the variable makes the weapon go lower.
    aByte205 and aByte154 do exactly the same thing, except aByte205 does it for male characters and aByte154 does it for female characters.

    To accomplish what I did, my code now looks like this;
    Code:
    		case 13899:
    			itemDef.name = "Vesta's Longsword";
    			itemDef.actions = new String[5];
    			itemDef.actions[1] = "Equip";
    			itemDef.modelID = 42597;
    			itemDef.modelZoom = 1744;
    			itemDef.modelRotation1 = 738;
    			itemDef.modelRotation2 = 1985;
    			itemDef.modelOffset2 = 0;
    			itemDef.modelOffset1 = 0;
    			itemDef.anInt204 = 0;
    			itemDef.maleItemModel = 42615;
    			itemDef.femaleItemModel = 42615;
    			itemDef.description = "Vesta's Longsword, a reward from PVP.".getBytes();
    			itemDef.aByte205 = -10;
    			itemDef.aByte154 = -10;
    			break;
    have fun.

    Edit:
    If anyone is interested;
    anInt185 - is for adding 'symbols' onto the male version of models.
    Example if you want

    Code:
            if(i == 5575) {
            	class8.anInt185 = 3381;
            }
    Would put the zamorak platebody symbol onto the male initiate platebody.
    The equivalent for that but for females is anInt162.

    anInt196 effects the brightness of a drop/inventory model;


    For this result
    Code:
            if(i == 4151) {
            	class8.anInt196 = 500;
            }
    anInt184 is the shadow on the item;


    For this result
    Code:
            if(i == 5575) {
            	class8.anInt184 = 1000;
            }
    anInt173 seems to increase/decrease the size of the drop/inventory model (Almost like zoom).





    that's all for now.
    Reply With Quote  
     

  2. Thankful users:


  3. #2  
    Super Donator


    Join Date
    Mar 2009
    Age
    25
    Posts
    1,393
    Thanks given
    316
    Thanks received
    408
    Rep Power
    608
    Thanks for this =]
    Reply With Quote  
     

  4. #3  
    Respected Member


    Josh's Avatar
    Join Date
    Aug 2008
    Age
    27
    Posts
    2,863
    Thanks given
    6
    Thanks received
    1,342
    Rep Power
    5000
    Added something to the bottom of the post, just noticed aByte205 is the model height on male characters and that aByte154 is the model height on female characters.

    Edit: Redone the first post
    Reply With Quote  
     

  5. #4  
    Banned

    Join Date
    May 2008
    Posts
    2,327
    Thanks given
    55
    Thanks received
    67
    Rep Power
    0
    nice find
    Reply With Quote  
     

  6. #5  
    Registered Member jh_angel's Avatar
    Join Date
    Feb 2008
    Posts
    179
    Thanks given
    30
    Thanks received
    10
    Rep Power
    21
    really nice
    Reply With Quote  
     

  7. #6  
    Whatchu talkin bout willis?

    Gary's Avatar
    Join Date
    Sep 2008
    Posts
    4,165
    Thanks given
    690
    Thanks received
    646
    Rep Power
    3462
    very nice josh, thanks
    Ellie
    Sadly lost my beautiful ellie in july 2018 always going to miss you my girl
    Spoiler for sig too big:


    Reply With Quote  
     

  8. #7  
    SERGEANT OF THE MASTER SERGEANTS MOST IMPORTANT PERSON OF EXTREME SERGEANTS TO THE MAX!

    cube's Avatar
    Join Date
    Jun 2007
    Posts
    8,881
    Thanks given
    1,854
    Thanks received
    4,741
    Rep Power
    5000
    Nice joshboi



    Reply With Quote  
     

  9. #8  
    Respected Member


    Josh's Avatar
    Join Date
    Aug 2008
    Age
    27
    Posts
    2,863
    Thanks given
    6
    Thanks received
    1,342
    Rep Power
    5000
    Thanks.
    Also, anyone got a clue as to what anInt184 does? Only variable I need to refactor then I've nearly done my itemDef
    Reply With Quote  
     

  10. #9  
    Ex RSPS-cleaner

    SWAT's Avatar
    Join Date
    Aug 2007
    Age
    27
    Posts
    5,487
    Thanks given
    403
    Thanks received
    599
    Rep Power
    3609
    took long before you people found this and i think anInt184 was shadowing/brightness cant remember

    anInt196 Brightness
    anInt184 Sun/Shadow

    o crap double post
    Last edited by Raid; 03-26-2010 at 08:42 PM.
    Reply With Quote  
     

  11. #10  
    Super Donator

    Benji's Avatar
    Join Date
    Feb 2010
    Age
    26
    Posts
    1,526
    Thanks given
    920
    Thanks received
    501
    Discord
    View profile
    Rep Power
    555
    ahh so you can edit that male/female wep height/brightness/shadow in its item def ...

    cool thanks

    Reply With Quote  
     

Page 1 of 3 123 LastLast

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
  •