BBot - The best bot of the world
Follow The NPC? - 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: Follow The NPC? (/thread-17176.html)



Follow The NPC? - fairoox94 - 01-15-2015

Hello guys,

Someone can help me with this?

What happens is that this NPC moves around of the blue mark, so I can not establish an exact point where to buy, since it is in another position.

It's possible make that enter in the place, and when the char see the npc approaches, bought and leave?

[Image: NPCKAZZ_zps648b56ab.png]


RE: Follow The NPC? - wedel92 - 01-15-2015

hello in my script i use something like that
Code:
Point (32607 31924 5)
Point (32614 31929 5)
Point (32621 31929 5)
Label (32624 31930 5:Shop)
FullCheck (32624 31930 5:Full BuySupplies1 Else Shop2 Code @Sigurd<=3)
Label (32624 31930 5:BuySupplies1)
Say (32624 31930 5:hi)
NPCSay (32624 31930 5:trade)
Buy (32624 31930 5:!shpid! !shpamount!)
Buy (32624 31930 5:!mpid! !mpamount!)
Label (32628 31930 5:Shop2)
FullCheck (32628 31930 5:Full BuySupplies2 Else Shop3 Code @Sigurd<=3)
Label (32628 31930 5:BuySupplies2)
Say (32628 31930 5:hi)
NPCSay (32628 31930 5:trade)
Buy (32628 31930 5:!shpid! !shpamount!)
Buy (32628 31930 5:!mpid! !mpamount!)
Label (32629 31924 5:Shop3)
FullCheck (32629 31924 5:Full BuySupplies3 Else Shop4 Code @Sigurd<=3)
Label (32630 31925 5:BuySupplies3)
Say (32629 31924 5:hi)
NPCSay (32629 31924 5:trade)
Buy (32629 31924 5:!shpid! !shpamount!)
Buy (32629 31924 5:!mpid! !mpamount!)
Label (32630 31918 5:Shop4)
FullCheck (32632 31917 5:Full BuySupplies4 Else Shop5 Code @Sigurd<=3)
Label (32630 31918 5:BuySupplies4)
Say (32630 31918 5:hi)
NPCSay (32630 31918 5:trade)
Buy (32630 31918 5:!mpid! !mpamount!)
Buy (32630 31918 5:!shpid! !shpamount!)
Label (32632 31917 5:Shop5)
FullCheck (32632 31917 5:Full Go Else Shop Code !shpid!>40;!mpid!>150)
Label (32632 31917 5:Go)
Point (32630 31924 5)
Point (32629 31928 5)
Point (32624 31929 5)
Point (32619 31930 5)
Point (32614 31930 5)
Point (32610 31930 5)
Point (32609 31926 5)

and works good Smile)


RE: Follow The NPC? - fairoox94 - 01-15-2015

Bro i already test and works perfect!! Thx u very much.
Just i make some changes cuz i don't use variables in this script xD but 100% works

Thanks you very much!!!

Rep++


RE: Follow The NPC? - erleo - 01-29-2015

PD: Last fullcheck are bad
Bad:
Code:
FullCheck (32632 31917 5:Full Go Else Shop Code !hpID!<=!hpLEAVE!)

Good:
Code:
FullCheck (32632 31917 5:Full Shop Else Go Code !hpID!<=!hpLEAVE!)