BBot - The best bot of the world
NEED Follow NPC + Talk macro - Printable Version

+- BBot - The best bot of the world (https://forums.bmega.net)
+-- Forum: Scripts & Macros (https://forums.bmega.net/forum-4.html)
+--- Forum: Requests (https://forums.bmega.net/forum-17.html)
+--- Thread: NEED Follow NPC + Talk macro (/thread-21248.html)



NEED Follow NPC + Talk macro - Elmgren1337 - 01-09-2021

I need a macro line that works, that first starts follow to the NPC from the current position, and when its next to NPC, say "Hi, Thais, Yes" for example.

I'm in really really big need of this, and to get it to work.

I'll ofcourse leave a good reputation.
THANK YOU!


-Elmgren


RE: NEED Follow NPC + Talk macro - doxmey - 01-09-2021

you can make a fullcheck label with the distance of the npc like @NPCNAME<=3 and if hes not there go to a label to go to another sqm and check again or it will just stay there until the npc is 3 sqms or less of distance, ofc you have to create a label loop if the npc is not there. so if its not there it will loop to a fixed point and check and it will stay on the loop until the npc is of distance. PS macros to follow dont work because macro is executed on an sqm so it will always keep going to that sqm.


RE: NEED Follow NPC + Talk macro - Elmgren1337 - 01-10-2021

(01-09-2021, 10:31 PM)doxmey Wrote: you can make a fullcheck label with the distance of the npc like @NPCNAME<=3 and if hes not there go to a label to go to another sqm and check again or it will just stay there until the npc is 3 sqms or less of distance, ofc you have to create a label loop if the npc is not there. so if its not there it will loop to a fixed point and check and it will stay on the loop until the npc is of distance. PS macros to follow dont work because macro is executed on an sqm so it will always keep going to that sqm.


Could you give me an example of how the fullcheck label would be written. Thanks


RE: NEED Follow NPC + Talk macro - doxmey - 01-12-2021

(01-10-2021, 01:18 AM)Elmgren1337 Wrote:
(01-09-2021, 10:31 PM)doxmey Wrote: you can make a fullcheck label with the distance of the npc like @NPCNAME<=3 and if hes not there go to a label to go to another sqm and check again or it will just stay there until the npc is 3 sqms or less of distance, ofc you have to create a label loop if the npc is not there. so if its not there it will loop to a fixed point and check and it will stay on the loop until the npc is of distance. PS macros to follow dont work because macro is executed on an sqm so it will always keep going to that sqm.


Could you give me an example of how the fullcheck label would be written. Thanks

Code:
Label (32386 31821 6:travelcarlinedron)
Fixed (32386 31821 6)
FullCheck (32386 31821 6:Full capgrey Else travelcarlinedron1 Code @Captain Greyhound<=3)
Label (32386 31821 6:capgrey)
NPCSay (32386 31821 6:hi)
NPCSay (32386 31821 6:edron)
NPCSay (32386 31821 6:yes)
GoLabel (33173 31764 6:contedron)
Label (32391 31821 6:travelcarlinedron1)
Fixed (32391 31821 6)
FullCheck (32391 31821 6:Full capgrey1 Else travelcarlinedron Code @Captain Greyhound<=3)
Label (32391 31821 6:capgrey1)
NPCSay (32391 31821 6:hi)
NPCSay (32391 31821 6:edron)
NPCSay (32391 31821 6:yes)
GoLabel (33173 31764 6:contedron)
Label (33173 31764 6:contedron)