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!
php.ini is in your linux/windows etc. server. For example a XAMPP has a path to php.ini like: C/XAMPP/PHP/php.ini.
Open that file and find:
;extension=php_curl.dll
To uncomment this code just remove ";" and save the file.
Now restart server (xampp here).
If I helped you, like this post. :)
For example in:
function onUse(cid, item, fromPosition, itemEx, toPosition)
what is an itemEx? xd
I program using TFS 0.3.6 a long time, but have never using that itemEx.
Add to config.lua
-- Auto regeneration HP & MP by waqmaz. Set this global variable to "false" if you want to disable auto regeneration in your Open Tibia Server
autoRegeneration = true
In login.lua above:
registerCreatureEvent(cid, "Mail")
Add:
registerCreatureEvent(cid, "regenerating")
In...
Hello. I am Wojciech, 23 years old. I program in LUA, MySQL, HTML, CSS, PHP, jQuery. I started lua 4 months ago, but the rest of that luanguages I know since around 10 years. I am looking for job. I can program scripts for Open Tibia Server, I know TFS 0.3.6 very well.
I wrote the following...
Looking for someone who creates cool 2D graphic for websites. We pay 330$ for a good template.
Example of required drawing abilities: https://imgur.com/a/BE6Co
Languages: english or polish
FIX:
nil instead of -1:
local function typeName(text)
return text
end
if msgcontains(msg, typeName(msg))
player = typeName(msg)
if getPlayerGUIDByName(player) == nil then -- this C++ function returns a nil value, not a number value
selfSay('Please...
There is a problem with the function getPlayerGUIDByName.
I've checked it this way:
local function sayName(text)
return text
end
if msgcontains(msg, sayName(msg)) then
local player_name = msg
if getPlayerGUIDByName(player_name) ~= 0 then...
Yeah, I have written the same code before.
I the player doesnt exist it returns error:
[16/08/2016 09:01:49] [Error - Npc interface]
[16/08/2016 09:01:49] data/npc/scripts/bankerrothschild.lua:onCreatureSay
[16/08/2016 09:01:49] Description:
[16/08/2016 09:01:49] data/npc/lib/npc.lua:54: attempt...
I would like to make a script, which checks if a player exist in database or not. This script has to be used inside a creatureSayCallback(cid, type, msg) as a msgcontains(msg, 'playername') function.
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)...
Why this code throws the error above? The error appears instead "
msg..''does not exist'" only when the code can't find the player.
if msgcontains(msg, selectPlayerName(msg)) then
if getPlayerGUIDByName(selectPlayerName(msg)) ~= 0 then
selfSay('Nick exists...
Bad answer, even with this function does not work.
local function getCount(s) -- -1 domyślnie
local b, e = s:find('%d+')
return b and e and math.min(4294967295, tonumber(s:sub(b, e))) or -1
end
k, works, ty.
if msgcontains(msg, 'deposit '..getCount(msg)) then
money =...