Page 1 of 1

r8118 (shop_LockOnly)

Posted: 20 Aug 2012, 07:29
by EternalHarvest
shopAuto_open can't really conflict with lockMap, so why?
Okay, but why changing default behaviour?
What happens now if you forgot to set lockMap or just warped to a location with no route to your lockMap?
Auto vending on multiple maps sounds like it already requires some scripting (or at least doCommands), why not change lockMap (free walking logic to a new location) or manually open the shop with it? Do you have any example where new code is really easier or more useful?

It may be a good idea to have a configurable control over this, but in that certain case (lockMap, shopAuto_open, openshop) it's not really understandable for me.

Also consistent naming (with inLockOnly, attackAuto_inLockOnly, avoidList_inLockOnly) isn't cool. Consistent lowercase-after-underscore theme neither.
if (!$cart{exists} && !$char->cartActive) {
That was already pointed on somewhere: that kind of check should be done inside cartActive().

Re: r8118 (shop_LockOnly)

Posted: 20 Aug 2012, 08:16
by kLabMouse
God Damn. Who changed Default Behavior and Why?

Re: r8118 (shop_LockOnly)

Posted: 20 Aug 2012, 08:22
by EternalHarvest
I've got an insight by reading your post. Maybe it's Windows users who Randomly capitalize Letters because Their filesystem Doesn'T carE.

It doesn't really break anything, but one important question still needs an answer: What happens now if you're warped to a location with no route to your lockMap?

Re: r8118 (shop_LockOnly)

Posted: 20 Aug 2012, 08:29
by kLabMouse
EternalHarvest wrote:I've got an insight by reading your post. Maybe it's Windows users who Randomly capitalize Letters because Their filesystem Doesn'T carE.

It doesn't really break anything, but one important question still needs an answer: What happens now if you're warped to a location with no route to your lockMap?
That Behavior should be checked out.

Be Default. Opening shop would be available anywhere where it's possible.
LockMap is only good for Constant Venders that do not leave the map.

Case 1)
Vender go to kafra; take goods; go to place where he sells; open shop;

Case 2)
Open shop in a location where is no kafra available; when he sells everything; he walk to LockMap and take goods from kafra; then go back to sell location

Case 3)
Playr does manually take goods; walk to point; open shop

Re: r8118 (shop_LockOnly)

Posted: 20 Aug 2012, 08:37
by EternalHarvest
kLabMouse wrote:LockMap is only good for Constant Venders that do not leave the map.
Why?
kLabMouse wrote:Case 1)
Vender go to kafra; take goods; go to place where he sells; open shop;
On the same map? Set lockMap with needed coordinates.
kLabMouse wrote:Case 2)
Open shop in a location where is no kafra available; when he sells everything; he walk to LockMap and take goods from kafra; then go back to sell location
Set lockMap and getAuto, go back and forth automatically. Actually, everything exactly the same as with the previous case.
kLabMouse wrote:Case 3)
Playr does manually take goods; walk to point; open shop
Open shop with command or set lockMap and open it automatically.

In all these cases, there is was conflict with lockMap. It's rather helpful to set lockMap when auto vending, and I want a counterexample.

More cases:
Case 4)
We need to change auto vending locations automatically. In this case, we just change lockMap and that's all.