Fork me on GitHub
Make creature stop and stay on waypoint
Post: #1
Question 
Hi

Is there a way which I am unaware of to make a creature completely stop and stay at a specified waypoint (not with waittime)?

I've tried DBscript commands Pause waypoints and change movement flag but that just makes the NPC go back to WP 1 instead of staying on the one which executes the script.

Any help appreciated!

Thanks
Reply
Post: #2
did you try using event ai for this - if you create a event it might work
"Any intelligent fool can make things bigger and more complex... It takes a touch of genius --- and a lot of courage to move in the opposite direction." - Albert Einstein
Reply
Post: #3
(02-28-2017, 10:40 PM)SADraco Wrote: did you try using event ai for this - if you create a event it might work

I looked at it but couldnt really find anything related to what I'm looking for. Any suggestions?
Reply
Post: #4
(..)Is there a way which I am unaware of to make a creature completely stop and stay at a specified waypoint (not with waittime)?(..)
So you have creature with waypoints....
You can use:
(xxx,0,20,0,0,0,0,0,0,0,0,0,0,0,0,0,'movement chenged to 0:idle'), -- DBscripts command 20.


Quote:20 SCRIPT_COMMAND_MOVEMENT resultingSource = Creature
* datalong = MovementType (0:idle, 1:random or 2:waypoint)
* datalong2 = wanderDistance (for random movement)
* data_flags & SCRIPT_FLAG_COMMAND_ADDITIONAL: RandomMovement around current position


or more complicated:
Creature without waypoints can be forced by another one (or quest/spell/event) to move to your xyz (and will stay there) by using:
(xxx,0,3,0,0,buddy,searchradius,flag,0,0,0,0,x,y,z,o,'move'), -- DBscripts command 3


Quote:3 SCRIPT_COMMAND_MOVE_TOresultingSource = Creature

Quote:If position is very near to current position, or x=y=z=0, then only orientation is changed
* datalong2 = travel_speed*100 (use 0 for creature default movement)
* data_flags & SCRIPT_FLAG_COMMAND_ADDITIONAL: teleport unit to position
* x/y/z/o
[-] The following 1 user says Thank You to grz3s for this post:
  â€¢ adellaci
Reply
Post: #5
@grz3s

Thank you for your answer. I tried using command 20 in dbscripts and It only results in NPC running back to its first waypoint and staying there.

I will try out the buddy method and give some feedback Smile

THanks again! Much appreciated!
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  [Classic] Mobs stop chasing and stare blankly when they cannot reach you decadewow 1 650 10-26-2016, 03:51 AM
Last Post: decadewow
  purpose of make some movement ack message magiceye 2 1,440 10-16-2015, 01:54 AM
Last Post: magiceye
  Waypoint Creator Malcrom 7 5,425 10-14-2014, 09:39 PM
Last Post: Malcrom
  Per creature spell damage modifier? ul1984 2 2,407 10-14-2014, 08:40 AM
Last Post: ul1984
  Random Creature Movement behavior Efonius 23 15,686 06-23-2014, 08:47 PM
Last Post: Efonius
  Creature-Movement Synchronisation fgreinus 5 4,787 03-24-2013, 05:59 AM
Last Post: SADraco
  Creature (template) addon SADraco 1 2,998 03-06-2013, 09:34 AM
Last Post: Schmoozerd
  How to make NPC;s Follow each other SADraco 9 8,116 03-04-2013, 01:40 PM
Last Post: Schmoozerd

Forum Jump:


Users browsing this thread: 1 Guest(s)

Continued MaNGOS | Return to Top | | Lite (Archive) Mode | RSS Syndication