Page 1 of 1

Sell to vendor

Posted: Wed May 16, 2012 2:24 am
by jock52
So, I have my waypoints setup and there is a vendor nearby, but how do I target and sell my items to the vendor once my bags are full? The vendors name is Kakala Snaketail. Thanks in advance guys.

Re: Sell to vendor

Posted: Wed May 16, 2012 4:25 am
by rock5
There are A LOT of posts about this subject and a bit of info in the wiki too. Here is a link to instructions I gave once. A bit further down the thread there are also example files created using those instructions.
http://www.solarstrike.net/phpBB3/viewt ... 538#p16538

Re: Sell to vendor

Posted: Wed May 16, 2012 5:46 am
by jock52
Still having problems... My first waypoint file looks like this:


<?xml version="1.0" encoding="utf-8"?><waypoints>
<!-- # 1 --><waypoint x="-6397" z="47529" y="399"> </waypoint>
<!-- # 2 --><waypoint x="-6201" z="47583" y="396"> </waypoint>
<!-- # 3 --><waypoint x="-6083" z="47663" y="396"> </waypoint>
<!-- # 4 --><waypoint x="-5981" z="47727" y="399"> </waypoint>
<!-- # 5 --><waypoint x="-6166" z="47843" y="396"> </waypoint>
<!-- # 6 --><waypoint x="-6087" z="48060" y="401"> </waypoint>
if 5 > inventory:itemTotalCount(0) then -- if number of empty slots is less then 5
loadPaths("farm1_repair")
end
<!-- # 7 --><waypoint x="-5973" z="48111" y="397"> </waypoint>
<!-- # 8 --><waypoint x="-5841" z="48041" y="399"> </waypoint>
<!-- # 9 --><waypoint x="-5730" z="47881" y="424"> </waypoint>
<!-- # 10 --><waypoint x="-5818" z="47720" y="404"> </waypoint>
<!-- # 11 --><waypoint x="-6031" z="47665" y="396"> </waypoint>
<!-- # 12 --><waypoint x="-6234" z="47612" y="398"> </waypoint>
<!-- # 13 --><waypoint x="-6410" z="47545" y="396"> </waypoint>
</waypoints>


My NPC vendor waypoint file looks like this:

<?xml version="1.0" encoding="utf-8"?><waypoints>
<!-- # 1 --><waypoint x="-6068" z="48070" y="398"> </waypoint>
<!-- # 2 --><waypoint x="-6143" z="48086" y="396"> player:merchant("Kakala");
</waypoint>
<!-- # 3 --><waypoint x="-6109" z="48036" y="398"> </waypoint>
<!-- # 4 --><waypoint x="-6157" z="47899" y="396"> </waypoint>
<!-- # 5 --><waypoint x="-6192" z="47732" y="396"> </waypoint>
<!-- # 6 --><waypoint x="-6216" z="47593" y="397"> </waypoint>
<!-- # 7 --><waypoint x="-6304" z="47551" y="396"> </waypoint>
<!-- # 8 --><waypoint x="-6402" z="47535" y="398"> </waypoint>loadPaths("farm1") </waypoint>
</waypoints>

The script runs, but he does not sell anything to the vendor.

Re: Sell to vendor

Posted: Wed May 16, 2012 6:12 am
by jock52
Ok, got it working. Now if I could just get it to quit looting Gulo Meat...

Re: Sell to vendor

Posted: Wed May 16, 2012 7:26 am
by pman
use the addon lootomatic to trash it after loot

Re: Sell to vendor

Posted: Wed May 16, 2012 6:46 pm
by jock52
Thanks, did it and works great. By chance, would anyone be willing to share or help me with my KS bot? I am having a heck of a time with it. I'd be willing to throw some compensation someones way for their time!!

Re: Sell to vendor

Posted: Wed May 16, 2012 9:28 pm
by BillDoorNZ
have a look at the various KS scripts around already!!

http://www.solarstrike.net/phpBB3/viewt ... =27&t=2449
http://www.solarstrike.net/phpBB3/viewt ... =27&t=3779

and there is one from Lisa somewhere too!!!

Re: Sell to vendor

Posted: Thu May 17, 2012 2:37 pm
by jock52
For some reason, the invite function is not working on either of these scripts.

Re: Sell to vendor

Posted: Thu May 17, 2012 5:19 pm
by BillDoorNZ
post and example if your code, otherwise it it very difficult to tell you what you are doing wrong :(


in the KS_KillZone_WIP one, you need to set the toonResetter value t othe name of the character you want to invite. e.g. if I have a character named Bob that I use for resetting:

Code: Select all

-- ============== Options ==============
toonResetter = "Bob";				-- name of character used to reset instance
for a character named Fr3ddY, I would use:

Code: Select all

-- ============== Options ==============
toonResetter = "Fr3ddY";				-- name of character used to reset instance
i.e. the spelling and case has to match EXACTLY