Jump to content

Hchy

Platinum Partners
  • Posts

    72
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by Hchy

  1. Adding a Box into the Cache

    1) First thing you need to do is download your box .dat file for your Model.

     

    2) Once the model is downloaded you need to rename the file into a numeric file. Get with Limes, Willy or Walied to get a range you can use.

     

    3) Add your new .dat Files into the .redemption Folder under custom item data.

     

    3fe17a2d8e9e49743f8572850d77c432.png

     

     

    Adding a Box into the Client

    Now you're going to be taking the Box ID you put in and your box model you added earlier to the cache and adding those together to make the Item appear in the inventory.

    Note: Making the box clickable is done on the server side where we will cover later.

     

    1) Open up the Client side of Intellij and Navigate to Client>src>main>java>com>redemption>ItemDef_4

     

    2) the client side of ItemDef_4 is copy and paste Credits to Walied for that! All you have to do is copy the code from an item that's already added into the code to the item you're trying to put in.

     

    3) Once the code is pasted all you have to do is edit the ID, Name, Description, dropModel, and wearModel to put the item in game. Zoom, xoff, yoff ,xan and yan are all how the item looks in the inventory. Some times the pasted code is fine for the inventory I would recommend changing it to how you think it should look. Below this will be what each field changes.

     

    Basic Functions of each field
    Zoom - Changes Zoom of item in inventory
    xoff - Changes Movement of item Left to right (-30(left) or 30(right))
    yoff - Changes Movement of item Up or Down (30(Up) or -30(down))
    xan - Changes the up and Down rotation of the item in the inventory (never use negative values) 
    yan - Changes the circular rotational value (never use negative vaules)

     

    4) Now that your Box is coded into the client once you launch the client you will have the box you added however it won't be able to be opened.

     

    Adding a Box into the Server

    1) First think we're going to need to do is add the box and ID into server>repository>items>info>info3.conf

     

    2) Next we will need to Add (boxname).java into server>src>main>java>Com>redemptions>server>game>content>boxes

    in here you will use the public static final variable to add in rewards and call from the BoxContentsDisplay.java  arrays you added in earlier to display the loot.

     

    When Adding a box into game it is important that you import the following

    import package com.redemption.server.game.content.boxes

    import java.util.ArrayList
    import java.util.List

    import com.redemption.server.game.content.season_pass.SeasonPassManager; - This is what distributes season pass points from opening the box

    import com.redemption.server.game.item.GameItem; - This is what allow for the item to be added into the game

    import com.redemption.server.game.players.Client; - This allows us pull the player getting the item

    import com.redemption.server.game.players.PlayerAssistant; - This allows for exp and anything else we add in to be distributed to the player

    import com.redemption.server.util.BasicReward; - This allow for us to use Items as BasicRewards in the code allowing for easy copy paste code thanks to walied!

    import com.redemption.server.util.Misc; - find out about

     

    You can also import the following for the discord bot to report

    import com.redemption.server.discord.DiscordBot;

    import com.redemption.server.discord.DiscordChannel;

     

     

     

    Add an Array of the contents of your box into BoxContentsDisplay.java located in: server>src>main>java>com>redemption>server>game>content>BoxContentsDisplay.java



     

    Add the box into DonationPanel.Java under server>src>main>java>Com>redemptions>server>game>content>panels>DonationPanel.Java

     

    To make a box open-able you need to add it into ClickItem.Java which is located in sserver>src>main>java>Com>redemptions>server>net>packets>impl>ClickItem.java

     

    If (itemID == Yourbox.BOX_ID) {
    Yourbox.open(c);
    return;
    }

     

     

  2.  

    • Step One - Download and Modify Your .dat file

    •  

    1) First thing you need to do is download your armor .dat files for your Models.

     

    2) Once the model is downloaded you need to rename the file into a numeric file. Get with Limes, Willy or Walied to get a range you can use. For testing purposes we are using 100420 range.

     

     

     

    3) Add your new .dat Files into the .redemption Folder under custom Items. After this move onto step 2

     

    3fe17a2d8e9e49743f8572850d77c432.png

     

    Step Two - Add Your Model to the Server 

    1) In order to add your model to the client Open up Intellij Server and Navigate to Server>repository>items>info>info3.conf. (Each of the configuration file holds 10,000 configuration at max, they are organized where each 10,000 item have their own file where item with id of 20000 would be in info3.conf and so on.)

     

    2)  Once info3.conf is opened this is where you add in an item id and name while also modifying the stats. Move to the bottom of info3.conf and input your armor's stats and ID. (should look like the image below)

     

     

     

    Below will be more in-depth on each Field and the numbers associated with them. (Credits to Walied for putting these together)

     

    Fields

    The format accepts the following fields, any other field will be automatically discarded a redundant:

     

    Field

    Data Type Required Condition
    id number yes unique
    name string yes none
    cost number no positive
    tradeable boolean no none
    stackable boolean no none
    worn_stackable boolean no none
    attack_stab number no none
    attack_slash number no none
    attack_crush number no none
    attack_magic number no none
    attack_ranged number no none
    defence_stab number no none
    defence_slash number no none
    defence_crush number no none
    defence_magic number no none
    defence_ranged number no none
    bonus_strength number no none
    bonus_prayer number no none
    bonus_ranged number no none
    bonus_magic number no none
    extra_melee decimal no 1 >= n >= 0
    extra_magic decimal no 1 >= n >= 0
    extra_range decimal no 1 >= n >= 0
    drop_rate decimal no 1 >= n >= 0
    double_rate decimal no 1 >= n >= 0
    luck_rate decimal no 1 >= n >= 0
    wearpos literal no 15 >= n >= 0
    wearpos2 literal no 15 >= n >= 0
    wearpos3 literal no 15 >= n >= 0
    aoe literal no positive

     

    Wearpos

    The wearpos has 3 fields (wearpos, wearpos2, wearpos3) we are only using wearpos at the moment, the field can accept either a slot number which can range from 0 to 15 inclusively or a slot literal which can be found in the table below:

    9a8bdecf936bfb2db41c9b76c5ceca60.png

     

    AoE

    The area of effect field aoe can either accept a raw number value which range from 0 to 30 inclusively or a literal which an be found in the table below:

    25a3c124561a916e6fde2cef659c55bc.png

     

    3) Once your Item has been added into the server you will have to restart the server for it to be registered in. If you try to start the client without restarting the server you will get an error when you try and spawn your item "That Item ID does not exist". 

     

    4) Once the server has restarted you can test and see if it is properly in by running the client and spawning the item the item will spawn as a Null however will have the Item ID. If it properly spawns as a Null continue to the next Step.

     

     

    Step Three - Adding Your Armor into the Client

     

    Now you're going to be taking the Item ID you put in and your Models you added earlier to the cache and adding those together to make the Item appear in the inventory and be wearable.

     

    1) Open up the Client side of Intellij and Navigate to Client>src>main>java>com>redemption>ItemDef_4

     

    2) the client side of ItemDef_4 is copy and paste Credits to Walied for that! All you have to do is copy the code from an item that's already added into the code to the item you're trying to put in. 

     

    You can see here I copy the Code from Hades  Skull Scythe and Paste it where I want it at the top of the .java file.

    3) Once the code is pasted all you have to do is edit the ID, Name, Description, dropModel, and wearModel to put the item in game. Zoom, xoff, yoff ,xan and yan are all how the item looks in the inventory. Some times the pasted code is fine for the inventory I would recommend changing it to how you think it should look. Below this will be what each field changes.

     

    Basic Functions of each field
    Zoom - Changes Zoom of item in inventory
    xoff - Changes Movement of item Left to right (-30(left) or 30(right))
    yoff - Changes Movement of item Up or Down (30(Up) or -30(down))
    xan - Changes the up and Down rotation of the item in the inventory (never use negative values) 
    yan - Changes the circular rotational value (never use negative vaules)

     

     

     

    4) Now that your Armor is coded into the client once you launch the client the Null in your inventory now is the Armor you added if you didn't spawn the Null in your inventory use the format to spawn items to get your item ::item-itemid-1

     

     

     

     

     

    Finished!

  3. Step One - Download and Modify Your .dat file

     

    1) First thing you need to do is download your weapon .dat file for your Model.

     

    2) Once the model is downloaded you need to rename the file into a numeric file. Get with Limes, Willy or Walied to get a range you can use. For testing purposes we are using 100420 range.

     

    f0c18c07c90b4d0b793ff68397f22c0d.png

     

    3) Add your new .dat Files into the .redemption Folder under custom Items. After this move onto step 2

     

    3fe17a2d8e9e49743f8572850d77c432.png

     

    Step Two - Add Your Model to the Server 

    1) In order to add your model to the client Open up Intellij Server and Navigate to Server>repository>items>info>info3.conf. (Each of the configuration file holds 10,000 configuration at max, they are organized where each 10,000 item have their own file where item with id of 20000 would be in info3.conf and so on.)

     

    2)  Once info3.conf is opened this is where you add in an item id and name while also modifying the stats. Move to the bottom of info3.conf and input your weapon's stats and ID. (should look like the image below)

     

    c1134a284b9edd57ca0d21149999557d.png

     

    Below will be more in-depth on each Field and the numbers associated with them. (Credits to Walied for putting these together)

     

    If you're looking to Increase attack speed or change attack styles you need to add your weapon id into the keywords section of Weapon.java server>src>main>java>com>redemption>server>game>combat>n>weapon.java and then choose what weapon you are trying to have the item use

    Example: Skull Desimator9000 would be under GUN_MULTI_1TICK add your weapon Id in the Keywords section

    68303bbda043fefa6abc8e531ae34182.png

    Fields

    The format accepts the following fields, any other field will be automatically discarded a redundant:

     

    Field

    Data Type Required Condition
    id number yes unique
    name string yes none
    cost number no positive
    tradeable boolean no none
    stackable boolean no none
    worn_stackable boolean no none
    attack_stab number no none
    attack_slash number no none
    attack_crush number no none
    attack_magic number no none
    attack_ranged number no none
    defence_stab number no none
    defence_slash number no none
    defence_crush number no none
    defence_magic number no none
    defence_ranged number no none
    bonus_strength number no none
    bonus_prayer number no none
    bonus_ranged number no none
    bonus_magic number no none
    extra_melee decimal no 1 >= n >= 0
    extra_magic decimal no 1 >= n >= 0
    extra_range decimal no 1 >= n >= 0
    drop_rate decimal no 1 >= n >= 0
    double_rate decimal no 1 >= n >= 0
    luck_rate decimal no 1 >= n >= 0
    wearpos literal no 15 >= n >= 0
    wearpos2 literal no 15 >= n >= 0
    wearpos3 literal no 15 >= n >= 0
    aoe literal no positive

     

    Wearpos

    The wearpos has 3 fields (wearpos, wearpos2, wearpos3) we are only using wearpos at the moment, the field can accept either a slot number which can range from 0 to 15 inclusively or a slot literal which can be found in the table below:

    9a8bdecf936bfb2db41c9b76c5ceca60.png

     

    AoE

    The area of effect field aoe can either accept a raw number value which range from 0 to 30 inclusively or a literal which an be found in the table below:

    25a3c124561a916e6fde2cef659c55bc.png

     

    3) Once your Item has been added into the server you will have to restart the server for it to be registered in. If you try to start the client without restarting the server you will get an error when you try and spawn your item "That Item ID does not exist". 

     

    4) Once the server has restarted you can test and see if it is properly in by running the client and spawning the item the item will spawn as a Null however will have the Item ID. If it properly spawns as a Null continue to the next Step.

    98a4ebe3f677f550ba1425d22f058884.png

     

    Step Three - Adding Your Weapon into the Client

     

    Now you're going to be taking the Item ID you put in and your Models you added earlier to the cache and adding those together to make the Item appear in the inventory and be wearable.

     

    1) Open up the Client side of Intellij and Navigate to Client>src>main>java>com>redemption>ItemDef_4

     

    2) the client side of ItemDef_4 is copy and paste Credits to Walied for that! All you have to do is copy the code from an item that's already added into the code to the item you're trying to put in. 

     

    You can see here I copy the Code from Hades  Skull Scythe and Paste it where I want it at the top of the .java file.

     

     

    3) Once the code is pasted all you have to do is edit the ID, Name, Description, dropModel, and wearModel to put the item in game. Zoom, xoff, yoff ,xan and yan are all how the item looks in the inventory. Some times the pasted code is fine for the inventory I would recommend changing it to how you think it should look. Below this will be what each field changes.

     

    Basic Functions of each field
    Zoom - Changes Zoom of item in inventory
    xoff - Changes Movement of item Left to right (-30(left) or 30(right))
    yoff - Changes Movement of item Up or Down (30(Up) or -30(down))
    xan - Changes the up and Down rotation of the item in the inventory (never use negative values) 
    yan - Changes the circular rotational value (never use negative vaules)

     

    29d6e5e7024ff968b814dfbed4265ff4.png

     

    4) Now that your Weapon is coded into the client once you launch the client the Null in your inventory now is the Weapon you added if you didn't spawn the Null in your inventory use the format to spawn items to get your item ::item-itemid-1

     

    62b4b64bc40b3e040baf8e5792db834e.png

     

    cddc1f3f36a43e3969a24a3de6a6153c.png

     

    Finished!

     

     

     

     

     

     

     

     

     

     

     

     

     

×
×
  • Create New...