Znote / ZnoteAAC

Developement repository for the Znote AAC project. A website portal to represent and manage your Open Tibia server.
MIT License
147 stars 127 forks source link

znoteShop.lua TFS 1.3 otservBR not working #464

Open kungen32 opened 3 years ago

kungen32 commented 3 years ago

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 ?

EPuncker commented 3 years ago

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

LepiigorTv commented 3 years ago

Is working thanks @EPuncker for the link!

Znote commented 3 years ago

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