ZnoteAAC icon indicating copy to clipboard operation
ZnoteAAC copied to clipboard

znoteShop.lua TFS 1.3 otservBR not working

Open kungen32 opened this issue 4 years ago • 3 comments

Hello

The talkaction !shop is not working for this version, added in top local znoteShop = TalkAction ("!shop") and final znoteshop:register() but not working, globalevent also not working.

useDb is on true in config.php, all tables in phpadmin added, all is working except get items/mounts/addons in game with the command, or using a global event, can we expect in a future the script working ?

kungen32 avatar Feb 05 '21 09:02 kungen32

if you are not the same guy I helped out today: https://otland.net/threads/actions-xml-12x.274447/#post-2645139

the script is working and this issue can be closed

EPuncker avatar Feb 05 '21 19:02 EPuncker

Is working thanks @EPuncker for the link!

LepiigorTv avatar Feb 07 '21 06:02 LepiigorTv

Is there a way to identify and distinguish otservBR from TFS 1.3 using Lua functions? I suppose I can try to do a function exist and overload method, just thinking about options on how to patch this, without having to resort to a dedicated compatibility file.

Edit: @EPuncker Gave me a tip:

both engines support Game.getClientVersion().string https://github.com/opentibiabr/otservbr-global/blob/122aa561aef06217926cfecb27beb98f27e4caa4/src/luascript.cpp#L5441 https://github.com/otland/forgottenserver/blob/master/src/luascript.cpp#L4560

Znote avatar Apr 16 '21 19:04 Znote