Thread: [Delta] Dragon claws to 1def? instead of 60[Delta]

Results 1 to 6 of 6
  1. #1 [Delta] Dragon claws to 1def? instead of 60[Delta] 
    Torture
    Guest
    How do i change the Defence requirements for Items?
    Please help?

    this is a deltasource i have the d claws added with 100% working specials but you need 60 Defence and i'd like to reduce it to 1 defence requirement thank you.
    Reply With Quote  
     

  2. #2  
    saosins
    Guest
    All right this is the first time i have helped anyone, so if it works rep plox.

    Go to your source folder and open up Wearing.java

    Now search for
    } else if (ItemName.startsWith("Dragon full helm")) {
    return 60;
    Under that add this
    } else if (ItemName.startsWith("Dragon Claws")) {
    return 1;
    Compile and it should work.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Deadly Uzi's Avatar
    Join Date
    Jul 2008
    Posts
    994
    Thanks given
    177
    Thanks received
    87
    Rep Power
    362
    Quote Originally Posted by saosins View Post
    All right this is the first time i have helped anyone, so if it works rep plox.

    Go to your source folder and open up Wearing.java

    Now search for


    Under that add this


    Compile and it should work.
    That SHOULD work but there is ONE problem. Default level for requirments to ANY item is 1, and for D Claws its 60. So there MUST be a code that tells Java that you need 60 Defense to wield them. So either search 'claws' or 'dragon claws' in Wearing.java or search the D Claw ID. When you find it, it should say return 60; under it, erase it or change it to 1. (I recommend erasing as the default is one; waste of code)
    Attempting to develop a multi-revision library. See it on GitHub.
    Reply With Quote  
     

  4. #4  
    Torture
    Guest
    Quote Originally Posted by Deadly Uzi View Post
    That SHOULD work but there is ONE problem. Default level for requirments to ANY item is 1, and for D Claws its 60. So there MUST be a code that tells Java that you need 60 Defense to wield them. So either search 'claws' or 'dragon claws' in Wearing.java or search the D Claw ID. When you find it, it should say return 60; under it, erase it or change it to 1. (I recommend erasing as the default is one; waste of code)
    The code you talking about just recognized the word "dragon"in general. Saying that anything with dragon in its name will require 60 defense to wield, but what i showed was how to pass that with the real name of the item and return it with 1 as the defense requirement.
    Reply With Quote  
     

  5. #5  
    hihihihihihihihih
    wtfdonkey's Avatar
    Join Date
    Nov 2007
    Age
    27
    Posts
    786
    Thanks given
    110
    Thanks received
    8
    Rep Power
    855
    first of all it depends, when you added the d claws model did you put it to cover over another item like as in put the d claws in over like bronze claws, and u had bronze claws at 60 def req. so if u made d lcaws id 8002, and u made the new item id. then do what saosins said.
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Feb 2009
    Posts
    43
    Thanks given
    1
    Thanks received
    0
    Rep Power
    3
    Very simple fix:

    Go into Item.Cfg and change "Dragon_claws" to "Drag_claws".

    It requires 60 defence because it has "Dragon" in it. You could also make another requirement that goes like "if itemname starts with "drag" return 60, and just add that under attack requirements.
    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
  •