SphereCommunity
Vendor Buy - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: Vendor Buy (/Thread-Vendor-Buy)



Vendor Buy - Soulless - 02-08-2013 06:19 AM

I'm not at home right now, does anyone know a good way to make sure that when you say "buy" that the nearest vendor by you gets it? i have this situation where i will say "vendor buy" and a vendor 5-6 spaces behind the closest vendor sells to me. i was thinking just adding los + dist check under the vendor speech def. cause you can't complete a purchase when your so far away anyways. this is one of those things that has annoyed for for a decade, and i just never fixed it lol, i'd just type in "shana buy" and carry on. Lol


RE: Vendor Buy - Soulless - 02-08-2013 03:29 PM

this helps prevent from buying off vendors that are a shit ton distance away. but then the other vendors around them dont sell to me...

IF !(<CANSEELOS <SRC.UID>>) || (<SRC.DISTANCE <UID>> >3)
RETURN 1
ENDIF

anyone else know what im talking about? anyone annoyed by this?


RE: Vendor Buy - Ultima One - 02-08-2013 08:26 PM

It should pick up the nearest one by default, unless you interacted with another one first it will go back to that guy.

Just use a macro to say 'bye', 'buy' - should pick up the nearest npc at the time Sad

I haven't experienced any vendors over about 5 tiles pick up a buy command from a player, and we dont really have any vendors much closer than 5 tiles, if we do our players bye/buy/guards speech macros tend to be fine.


RE: Vendor Buy - Soulless - 02-09-2013 09:02 AM

for some reason it sometimes picks someone whos like beyond a wall, or further away than the other vendor.

but in retrospect, i did not try it with gm off. so, that kinda shoulda been my first step. thank you though btw, if it does turn out to be an issue for me i'll just look to see what removes that recently talked to memory from the npc. unless that doesnt work. then i'll just learn to deal.