ZnoteAAC icon indicating copy to clipboard operation
ZnoteAAC copied to clipboard

sell storage in the shop

Open RDaruish opened this issue 5 years ago • 2 comments

would there be any way to sell storages on the site? I have in-game spell enhancements that I would have to sell on the site, would it be possible?

RDaruish avatar Jul 06 '20 12:07 RDaruish

the workaround right now is to make it an item that give you storage when you use it:

<action itemid="XXXX" script="XXXX.lua"/>
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
	player:setStorageValue(XXXXX, VALUE)
	item:remove()
	return true
end

or even a talk action that will set the storage by reducting the points

EPuncker avatar Jul 06 '20 15:07 EPuncker

A shop order type can be used to represent storagevalue, and if the player is offline, website can directly add it to a player. (best way)

Alternatively, propagate the type to znote_shop_orders, and process it in the Lua shop scripts. (less optimal, gotta patch lots of different shop scripts for each version of TFS).

Znote avatar Jul 07 '20 22:07 Znote