Poison Dagger working with Ranged Weapon?

Post here about all aspects of D2 mod making whether it's information, problems or whatever. Please specify whether your post is relating to Classic D2 or the Expansion.

Moderator: Nizari

pepa90
Posts: 44
Joined: Sat Dec 04, 2010 1:53 pm

Poison Dagger working with Ranged Weapon?

Post by pepa90 » Tue Jun 07, 2011 7:41 pm

In Skills.txt I removed "knife" from "itypea1" and changed "h2h" to "both" from range. And Now, it is working with any melee weapon, but when i have bow, i must go close to enemies otherwise it not work. What i must change to make it work even when i shooting for afar?

User avatar
Lurix
Dark Alliance Beta Test
Champion of the Light
Posts: 496
Joined: Tue Aug 31, 2010 9:30 am
Location: Birmingham, UK
Bulgaria

Re: Poison Dagger working with Ranged Weapon?

Post by Lurix » Wed Jun 08, 2011 7:25 pm

Try to remove those 1's:

TargetableOnly
SearchEnemyXY

User avatar
Doombreed-x
Retired staff
Arch-Angel
Posts: 1304
Joined: Thu Jul 15, 2004 6:40 pm
Location: No more flag. :(

Re: Poison Dagger working with Ranged Weapon?

Post by Doombreed-x » Sat Jun 11, 2011 9:18 pm

Some skill functions are coded to only work within melee range of an enemy, even if you enable ranged weapons with them. I remember having the same issue with assassin charge-up skills, and I couldn't figure a way to fix it.

User avatar
HarvestWombs
Senior Moderator
Arch-Angel
Posts: 1019
Joined: Wed May 25, 2011 11:50 pm
United States of America

Re: Poison Dagger working with Ranged Weapon?

Post by HarvestWombs » Sat Jun 11, 2011 9:53 pm

wouldnt it be easier to clone enchant and change the element?
Official Phrozen Keep Discord
Common Modding tools: link
My Resource Packs: link

User avatar
PureRage
Forum Regular
Angel
Posts: 570
Joined: Fri Jan 08, 2010 9:02 am
Location: Newcastle, England
Great Britain

Re: Poison Dagger working with Ranged Weapon?

Post by PureRage » Sat Jun 11, 2011 11:05 pm

Try cloning poison arrow, change the anim mode to A1 and itemtype to bow. Then change the missile's cell file to Poisonarrow and use the recolored fire arrow below.

Note: AnimLen should be set to 8
You do not have the required permissions to view the files attached to this post.
In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as "A bad move".
Douglas Adams

Return to “General Mod Making”