Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Follow The NPC?
#1
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]
Reply
#2
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)
If i help you please Click ^ to give REP point Smile
if I'll have more rep I'll make better scrips

Reply
#3
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++
Reply
#4
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!)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)