Thread: making ranged weapons

Results 1 to 9 of 9
  1. #1 making ranged weapons 
    Registered Member
    Join Date
    Jul 2014
    Posts
    15
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    how to change the weapon from melee to range cause i added a ranged weapon to my server buy it has melee attack and i have to stand next to the target to fight it ,how can i turn in into a range weapon and make it shoot from distance?
    i am using a 667 source.
    i would appreciate the help
    Reply With Quote  
     

  2. #2  
    Registered Member Agartha's Avatar
    Join Date
    Jul 2015
    Posts
    99
    Thanks given
    30
    Thanks received
    11
    Rep Power
    0
    try looking for a file with a name like PlayerCombat.java and look around for projectile gfx id's then start your search there
    or try doing a full project search for various range weapons names or name parts(knife, bow, longbow, etc)
    (off of memory so the file name might be different and not sure what source you are using)
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Jul 2014
    Posts
    15
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    Quote Originally Posted by Agartha View Post
    try looking for a file with a name like PlayerCombat.java and look around for projectile gfx id's then start your search there
    or try doing a full project search for various range weapons names or name parts(knife, bow, longbow, etc)
    (off of memory so the file name might be different and not sure what source you are using)
    i added a toxic blowpipe and im using an extinction rsps 667 source and i already done what you told i added the toxic blowpipe itemid everywhere that iv seen a "knife" or "darts" in the playercombat iv put it everywhere it says range attacks but still keep hitting melee and it has to stand next to the target.

    Quote Originally Posted by Kris View Post
    Well, hello there and welcome.
    thanks mate
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Jul 2014
    Posts
    15
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    could someone please post the exact code that i should add to playercombat.java so i can get this thing working?
    Reply With Quote  
     

  5. #5  
    Registered Member Agartha's Avatar
    Join Date
    Jul 2015
    Posts
    99
    Thanks given
    30
    Thanks received
    11
    Rep Power
    0
    (if this isint solved already)
    there should be something in playercombat.java where ranged weapons distances are checked.

    looked in a source i have on my USB and id say in playercombat.java under processWithDelay theres a maxDistance field try following that
    Reply With Quote  
     

  6. #6  
    Registered Member
    Zach's Avatar
    Join Date
    Aug 2013
    Posts
    1,120
    Thanks given
    24
    Thanks received
    513
    Rep Power
    5000
    Inside
    Code:
    public static final int isRanging(Player player) {
    PlayerCombat class
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Jul 2014
    Posts
    15
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    Quote Originally Posted by Utils View Post
    Inside
    Code:
    public static final int isRanging(Player player) {
    PlayerCombat class
    thanks man i tried it and worked for me now my blowpipe hits range.
    one last thing i am using darts as ammo (i used frosty cahce editor to duplicate the darts to a free itemid null and then renamed the dart with dart (A) A is for ammo and now i can hold these darts in the ammo slot)
    but i want the option to add these darts to the toxic blowpipe it self if you know how please help me out i would appreciate that.
    Reply With Quote  
     

  8. #8  
    Registered Member
    Join Date
    Jul 2014
    Posts
    15
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    does any of you guys know how can i load the blowpipe with darts ??
    Reply With Quote  
     

  9. #9  
    Respected Member


    Kris's Avatar
    Join Date
    Jun 2016
    Age
    26
    Posts
    3,638
    Thanks given
    820
    Thanks received
    2,642
    Rep Power
    5000
    Quote Originally Posted by omri View Post
    does any of you guys know how can i load the blowpipe with darts ??
    I know how I can load the blowpipe with darts, I don't know about you though.
    Attached image
    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: 2
    Last Post: 08-26-2016, 01:29 AM
  2. Making a weapon be a magic or range weapon
    By TheAmerican in forum Requests
    Replies: 0
    Last Post: 07-14-2016, 02:52 AM
  3. Replies: 1
    Last Post: 04-22-2013, 01:15 AM
  4. [PI]Making a weapon range-like
    By Pakku in forum Help
    Replies: 2
    Last Post: 08-28-2011, 01:56 AM
  5. Make Morrigans ranged weapons.
    By Zetto in forum Help
    Replies: 0
    Last Post: 02-14-2011, 12:14 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
  •