Yeah you can actually build anything with it using lua. Theres is a focus tho on Open Tibia so using it outside might require a few core changes =)Man! This can be later developed and used as a universal website builder! Not only for tibia! It has so many good features! Can definitely be made to host a website with a forum for private use!
Yeah of course, but since the OT community is small, and this is a great AAC, Might be a good idea to make a clone, edit few core stuff and now you have a site builder that can be used by anyone who wants to build his own website!Yeah you can actually build anything with it using lua. Theres is a focus tho on Open Tibia so using it outside might require a few core changes =)
local test = xml:unmarshalFile(serverPath .. "/data/monster/monsters.xml")
print(test.monsters.monster[1]["-name"])
-- [[ prints: Amazon ]]--
This is so great, then you can able to view monsters on the site and sort them through lua. My question is, are you able to read Sprite file and put the sprite of the monster next to it.
Yeah or spells >:·3. Not currently but I might make something to read spr files too. I first need to finish all the missing pages
What kinda pages are missing?
Love it and also that you creating this pages in lua makes it even more great. This website is so perfect for the opentibia community. Thank you and great work mate
local value = storage:get(player_id, key)
storage:set(player_id, key, value)
Yeah. thats so 2001. All queries are parameterizedThis looks awesome, is it safe against sql injection?
Hahahah sorry Im studying web programming (just starting) and I don't have a clue on how to protect every input, is it compatible with 0.4?Yeah. thats so 2001. All queries are parameterized
Rudimentary online list
Only reason to use Lua is to make current OT users comfortable and not having to deal with several different languages, I would assume. But then it's not all about the Lua language itself but also about the functions etc... Thus, I believe you should imitate the current TFS objects as well, e.g. Player(guid) and player:getStorage() etc... Same with guild and rest.Thanks. I hope I finish this soon. I was wondering if accessing storage values would be handy so I made a small wrapper to access player storage values
Code:local value = storage:get(player_id, key) storage:set(player_id, key, value)
For example limiting access to pages for users with X storage value
Paypal will come next using their REST API. You would be able to ban paypal accounts by its payer ID and customize the coin packages with lua too.
Thanks to @forgee for beeing the first contributor ^^