Openkore.com

OpenKore Forums
It is currently 21 Aug 2019, 07:32

All times are UTC - 5 hours [ DST ]





Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 
Author Message
 Post subject: How to buy from npc located in house? [Solved]
PostPosted: 29 Mar 2017, 06:38 
Offline
Human
Human

Joined: 28 Mar 2017, 03:08
Posts: 39
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!


Last edited by palancho on 31 Mar 2017, 09:49, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: How to buy from npc located in house?
PostPosted: 29 Mar 2017, 08:45 
Offline
Developers
Developers

Joined: 01 Nov 2008, 15:31
Posts: 361
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.

_________________
Please use pin function for uploading your file contents!


Top
 Profile  
 
 Post subject: Re: How to buy from npc located in house?
PostPosted: 29 Mar 2017, 11:06 
Offline
Human
Human

Joined: 28 Mar 2017, 03:08
Posts: 39
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:/


Top
 Profile  
 
 Post subject: Re: How to buy from npc located in house?
PostPosted: 29 Mar 2017, 12:06 
Offline
Developers
Developers

Joined: 01 Nov 2008, 15:31
Posts: 361
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:
buyAuto Bloody Shell {
   maxAmount 4000
   minAmount 50
   npc alberta_in 176 81
   standpoint alberta_in 176 80
   price 30
}

_________________
Please use pin function for uploading your file contents!


Top
 Profile  
 
 Post subject: Re: How to buy from npc located in house?
PostPosted: 30 Mar 2017, 08:46 
Offline
Human
Human

Joined: 28 Mar 2017, 03:08
Posts: 39
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:
buyAuto Bloody Shell {
   maxAmount 4000
   minAmount 50
   npc alberta_in 176 81
   standpoint alberta_in 176 80
   price 30
}



Thank You, works :)


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group