Page 1 of 1

How to buy from npc located in house? [Solved]

Posted: 29 Mar 2017, 06:38
by palancho
Hello. I am trying to buy ammo for my gunslinger in Alberta. Using this script:

buyAuto Bloody Shell {
maxAmount 4000
minAmount 50
npc alberta_in 176 81
distance 8
}
but is does not work, probably becouse of coords. How to make this script working- to make a bot to go to alberta-> house-> npc

THX a lot!

Re: How to buy from npc located in house?

Posted: 29 Mar 2017, 08:45
by Mortimal
I do not see price line in there...(u need to put it in your buyAuto block) maybe your bot don't have money?

if all is ok with zeny...

Check tables/portals.txt for line - alberta 98 153 alberta_in 189 89. If line is there...
try setting: distance 3.

Re: How to buy from npc located in house?

Posted: 29 Mar 2017, 11:06
by palancho
Thx for reply! :)
Bot goes to Alberta, but instead to go to house where npc is located and talk to him inside he goes here:

alberta 176 81

There are seperate coordinates to overall map and to place located inside the house in Alberta.
I don't know how to make bot to go inside the house and just there being already inside to go to this coordinates: 176 81.

This merchant coordinates describe the position of this npc inside the house in Alberta not on the overall map of Alberta I think:/

Re: How to buy from npc located in house?

Posted: 29 Mar 2017, 12:06
by Mortimal
That is strange because bot knows how to get to any npc no matter where it stands if coordinates provided correctly...

Maybe there is one more buyAuto Bloody Shell block with incorrect coordinates? If not....

Try this:

Code: Select all

buyAuto Bloody Shell {
	maxAmount 4000
	minAmount 50
	npc alberta_in 176 81
	standpoint alberta_in 176 80
	price 30
}

Re: How to buy from npc located in house?

Posted: 30 Mar 2017, 08:46
by palancho
Mortimal wrote:That is strange because bot knows how to get to any npc no matter where it stands if coordinates provided correctly...

Maybe there is one more buyAuto Bloody Shell block with incorrect coordinates? If not....

Try this:

Code: Select all

buyAuto Bloody Shell {
	maxAmount 4000
	minAmount 50
	npc alberta_in 176 81
	standpoint alberta_in 176 80
	price 30
}

Thank You, works :)