i want to make rush impact take 50 range but with this code only goes in front of target always, i want to go on which location skill is casted with 50 range
not front please help me
video here:
code here
public final Location getFlyLocation(L2Character target, Skill skill)
{
if (target == null)
{
target = this;
}
int sign = 1;
Location toLoc = null;
int heading = target == this ? getHeading() : target.getHeading();
double radian = Util.convertHeadingToRadian(heading);
if (target != this)
{
toLoc = new Location(target.getX() + (int) (Math.sin(radian) * 40), target.getY() + (int) (Math.cos(radian) * 40), target.getZ());
}
else
{
toLoc = new Location(target.getX() + (int) (Math.sin(radian) * (skill.getFlyRadius() * (-sign))), target.getY() + (int) (Math.cos(radian) * (skill.getFlyRadius() * sign)), target.getZ(), heading);
}
if (isFlying())
{
return toLoc;
}
return GeoData.getInstance().moveCheck(this, toLoc);
}
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
I found this post randomly and I started to read the comments and after all I have only one question in my mind and you refuse to answer.
Again:
All your previous versions are shit and the last one is the best ever? What is going to happen to the last revision of your source after the next revision is going to be avaibile?
DISCORD :
utchiha_market
telegram :
https://t.me/utchiha_market
SELLIX STORE :
https://utchihamkt.mysellix.io/
Join our server for more products :
https://discord.gg/bDVQYKMUb3
https://campsite.bio/utchihaamkt
Question
GoldenNightmare
hello mxc i need some help with this code
i want to make rush impact take 50 range but with this code only goes in front of target always, i want to go on which location skill is casted with 50 range
not front please help me
video here:
code here
public final Location getFlyLocation(L2Character target, Skill skill) { if (target == null) { target = this; } int sign = 1; Location toLoc = null; int heading = target == this ? getHeading() : target.getHeading(); double radian = Util.convertHeadingToRadian(heading); if (target != this) { toLoc = new Location(target.getX() + (int) (Math.sin(radian) * 40), target.getY() + (int) (Math.cos(radian) * 40), target.getZ()); } else { toLoc = new Location(target.getX() + (int) (Math.sin(radian) * (skill.getFlyRadius() * (-sign))), target.getY() + (int) (Math.cos(radian) * (skill.getFlyRadius() * sign)), target.getZ(), heading); } if (isFlying()) { return toLoc; } return GeoData.getInstance().moveCheck(this, toLoc); }
0 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.