Thread: Double Handed Weapon

Results 1 to 4 of 4
  1. #1 Double Handed Weapon 
    Registered Member
    Join Date
    Dec 2011
    Posts
    706
    Thanks given
    9
    Thanks received
    3
    Rep Power
    30
    Where do I go to make a weapon double handed (bow)?
    Reply With Quote  
     

  2. #2  
    Donator


    Join Date
    Jul 2014
    Posts
    509
    Thanks given
    90
    Thanks received
    87
    Rep Power
    503
    Erm.. I suppose you're saying as a custom item. Well you would either need to make your own models (Metasequoia) or find models for a bow you like. Then you will need to add them to your server (custom items, many guides on this). Then in your server side, search up say the code of a magic shortbow, and add the custom weapons item id next to it/with it/you get the idea.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Dec 2011
    Posts
    706
    Thanks given
    9
    Thanks received
    3
    Rep Power
    30
    I have already added the item and it's function. I already know how to do that. I just need to know where to add it to make it a double handed weapon so that you can't wield a shield with it on. I tried searching for magic shortbow and karils x bow but nothing good came up.
    Reply With Quote  
     

  4. #4  
    Rune-Server Affiliate N0VA's Avatar
    Join Date
    Feb 2015
    Posts
    645
    Thanks given
    102
    Thanks received
    144
    Rep Power
    9
    \src\server\model\items

    Code:
    Spoiler for Code:
    /**
    *two handed weapon check
    **/
    public boolean is2handed(String itemName, int itemId) {
    if(itemName.contains("karil") || itemName.contains("verac") || itemName.contains("guthan") || itemName.contains("dharok") || itemName.contains("torag")) {
    return true;
    }
    if(itemName.contains("longbow") || itemName.contains("shortbow") || itemName.contains("ark bow")) {
    return true;
    }
    if(itemName.contains("crystal")) {
    return true;
    }
    if (itemName.contains("godsword") || itemName.contains("anchor") || itemName.contains("claws") || itemName.contains("aradomin sword") || itemName.contains("2h") || itemName.contains("spear")){
    return true;
    }
    switch(itemId) {
    case 6724: // seercull
    case 11730:
    case 4153:
    case 6528:
    case 1853:
    case 14484:
    case 6527:
    case 18353:
    return true;
    }
    return false;
    }
    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

Similar Threads

  1. Replies: 9
    Last Post: 10-07-2010, 02:23 AM
  2. Replies: 3
    Last Post: 04-11-2010, 11:04 PM
  3. Two Handed Weapons Emulous
    By Xenon in forum Help
    Replies: 2
    Last Post: 10-12-2009, 08:52 AM
  4. 2-Handed Weapons. [iClarity 1.05]
    By mmaKush in forum Help
    Replies: 6
    Last Post: 07-20-2009, 02:54 AM
  5. Two handed weapons
    By LastResortpkz in forum Tutorials
    Replies: 6
    Last Post: 09-26-2008, 03:45 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •