Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
To me it looks like the argument 'thing' is nil, try printing it and post the output.
Add this to the beginning:
function onLook(cid, thing, position, lookDistance)
print(thing)
for k,v in pairs(thing) do
print(k)
print(v)
end
One thing I see mappers do is to "over decorate" with flowers/trash/stones and that tend to become quite messy, but the roads are clear and I like this mapping!
No that "query" is a complete mess.
Let's assume your table looks like this:
account_id
player_id
vocation
kills
deaths
attempts
monster
Then highscore() would look something like this:
function highscore(player, monster, killed)
-- If no record, create new
local results =...
Before you proceed I'd make the DB table look right. You should always have a field set to primary auto increment, e.q. a field called "id" just to keep track of everything (you can read this http://www.w3schools.com/sql/sql_autoincrement.asp).
Then, there's no need to have a vocation field...
Currently there are no official rules against botting, but I want this server to be kind of "hard work to succeed". I'll set up a warning system for botting and I'll be active in trying to catch them. We'll see how it goes, I have a feeling that there wont me much activity on the server...
The error makes no sense since you don't have a 'Test' column in your query... Are you sure you haven't modified this?
What does your table 'z_ots_comunication' look like?
I'm not really sure but it seems like the storage values are not set after the kill.
You could try to replace line #7 with this:
local player = Player(cid)
to
local player = cid:getPlayer()
Thank you for the reply, but this wont solve the problem. I need to check if the player exist in the database. If the player X exists, but is not online I want to return true. I cannot find a functions which does this in the TFS 1.1 package, so I think I will have to make a separate query that...
As far as I know there are not that many servers that are as "vanilla" as this one. They always have some kind of "events" (all the same, zombie/LMS/Team Battle/etc.) or infinite runes/arrows, casinos etc.
I understand what you mean, but this is a good base to start on. If you don't mind, please...