Jump to content

Recommended Posts

 

 

 

 

 

 

Hello, so I am trying to create a fight class that will allow my hunter to stay in place and just target 2 specific npcs (within range) and cast chimera shot on them.

Something like the video I made (apologies if the screen is wonky, still learning OBS Studio)

I added the Chimera Shot as the only spell to use. 1 second timer, as there is no CD for it on this server, so it just has that default 1 second before casting again.
I used the following line of code that I got off of google. My intention was to get the character to stand in one spot. Which it seems to have worked, and also added a code to force them to go back to the initial spot if moved, which works. However, they do not attack anything.

wManager.Events.MovementEvents.OnMovementPulse += (points, cancelable) => { cancelable.Cancel = true; };
wManager.Events.MovementEvents.OnMoveToPulse += (point, cancelable) => { cancelable.Cancel = true; };
if(ObjectManager.Me.Position.DistanceTo(position) > 1) { // Move }

EDIT: For the video, skip to 00:08 seconds.
EDIT 2: Added a video which shows someone else using a bot to do what I'm trying to do.


The following error messages is what I received:


 image.png.9a4625cead719fd0865862724e314ef6.png 

 

 

 

Link to comment
https://wrobot.eu/forums/topic/15690-hunter-fight-class-chimera-shot-only/
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...