Jump to content
  • 0
Sign in to follow this  
prism

FAW Silver Sniper get target of Master

Question

Does anyone know if this is possible? I want to make it so that FAW Silver Snipers and Magic Decoys will target the same thing as their master. Preferably in the form of the master using a skill say, Provoke or another skill, on the target and the summons will make that their new target. The closest things I can think of are Homuns and those elemental summons Sorcers get where the master can give them a target but that isn't done through a skill.

Edited by prism

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

it's probably possible by adding 4 or 5 lines of code in front of the code which performs an attack calculation for the player using special "if" conditions to check and rewrite the target of whatever type of class(player,mob,homunculus etc.) silver snipers and decoys are(you might need to add a failsafe if it tries to acquire a target it couldn't hit).

 

alternatively, in a single line you could rewrite the silver sniper/decoy's target by adding a pointer which basically says that your master's last target is your target(and you'd have to run this every single time before each attack), but i don't know how that would end up if that target was out of range so you may need to add a check first which gets the distance between your turret and the monster and also gets your turret's attack range from src and compares them. you also have to refresh it somewhere in between each turret attack somehow even if your character is attacking nothing now, so you might need to create a variable in the memory that remembers the last thing your player character attacked, but you can probably place that within the turret directly.  i'm not capable of doing it myself, only imagining how it would work in computer logic.

Edited by Blinzer

Share this post


Link to post
Share on other sites
  • 0

I'll try digging around in mob.c and homunculus.c some more to see if I can find anything interesting related to what you said. Thanks!

Edited by prism

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.