-- ### CONFIG ###
-- message send to player by script "type" (types you can check in "global.lua")
SHOP_MSG_TYPE = 18
-- time (in seconds) between connections to SQL database by shop script
SQL_interval = 30
-- ### END OF CONFIG ###
function onThink(interval, lastExecution)
local result_plr = db.storeQuery("SELECT * FROM z_ots_comunication")
if(result_plr ~= false) then
repeat
local id = tonumber(result.getDataInt(result_plr, "id"))
local action =...
Im using it since im new and i didnt know about all those versions. Can you help me to find a version with the store?There is no ingame store in 1.0, not in 1.1, 1.2, 1.3, 1.4... this is why nothing happens... There is also no "ingame store" code even written to be compatible with 1.0 that I'm aware of, pretty sure any third party code you will find has been written to work with 1.4 or better, or canary.
Best guess is to have the shop only on the website, I don't believe there is any 1.0 shop system, you'll have to add it yourself or upgrade your distro.
Is there a specific reason you are using 1.0?
Perhaps these links from the one and only Gesior would help?
GlobalEvent Thread 'shop.lua for TFS 1.0'
As title says, it's shop.lua globalevent modified to work on TFS 1.0
Code:-- ### CONFIG ### -- message send to player by script "type" (types you can check in "global.lua") SHOP_MSG_TYPE = 18 -- time (in seconds) between connections to SQL database by shop script SQL_interval = 30 -- ### END OF CONFIG ### function onThink(interval, lastExecution) local result_plr = db.storeQuery("SELECT * FROM z_ots_comunication") if(result_plr ~= false) then repeat local id = tonumber(result.getDataInt(result_plr, "id")) local action =...
- Gesior.pl
- Replies: 13
- Forum: GlobalEvents, Spells & CreatureEvents
I'm planning new www shop script (not compatible with old shop script) and update for Gesior2012.
Acc. maker update plans:
- no more support for TFSes older then 1.1
- small fixes for 1.0/1.1 compability [vocations, passwords hashing ['encryptionKey' problem])
- cache for all statistics sites [ configurable on/off and refresh time in seconds ]
- 'my highscores' where you can check your [or any other player] place in highscores for each skill/level/mlvl [show highscores.php page on which is your character Y [highlighted], you don't have to click 'next page' 20 times to find your character]
-...
- Gesior.pl
- Replies: 24
- Forum: Discussion
If all you care about is that there is a working store which comes with the distro, then you want Canary.Im using it since im new and i didnt know about all those versions. Can you help me to find a version with the store?
Thank you for your message, i fixed the store issue by myself i had some errors while compiling.If all you care about is that there is a working store which comes with the distro, then you want Canary.
If you are in fact keen to only use a more close to TFS, kind of sources, then, Mateus Roberto has released the store for TFS 1.4 which you can find by using the search function, or by filtering the posts in the resources section. His source code points to a fork of TFS he has, which would fit your needs.
My recommendation is to teach yourself and develop the skills you are going to need. If you think that you are going to be able to just hop in, with zero experience, and get everyone to tell you everything you need, show you where to find the resources you seek, set things up for you, troubleshoot for you, and you will be able to set up a free money making machine, with almost zero to no effort... someone sold you a lie.
If you are a hobbyist, or someone seeking to learn... and you truly want to be able to handle changes like "adding a game store" to your own client and server, then, I suggest you start by learning C++ and Lua and get a handle on both those languages before coming back to "OT" and trying to figure things out. There is for sure a hard skill gap for entering into this type of "business", and those who are not willing to learn fail indefinitely, those who do learn at least have a chance...
If you start learning, and doing, then you won't be sitting around for a week at a time waiting for someone to tell you what you should do.. and please, don't be afraid to try to help yourself first, before coming here to seek help, because trust me, the help is much more limited nowadays...