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!
Hi, i`m using tfs 1.3 downgraded by nekiro, i paralyzed a player and used this code:
but it print (nil).
why?
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
print(player:getCondition(CONDITION_PARALYZE))
return true
end
i tried to cried a function, but not success:
layout/widgests/serverinfo.php
checkingServerStatus() {
if ($config['status']['status_check']) {
@$sock = fsockopen ($config['status']['status_ip'], $config['status']['status_port'], $errno, $errstr, 1);
if(!$sock) {...
config.php
// Show outfits
$config['show_outfits'] = array(
'shop' => true,
'highscores' => true,
'characterprofile' => true,
'onlinelist' => true,
// Image server may be unreliable and only for test,
// host yourself...
local type_desc = {
"itemids",
"pending premium (skip)",
"pending gender change (skip)",
"pending character name change (skip)",
"Outfit and addons",
"Mounts",
"Instant house purchase"
}
function onThink(interval, lastExecution)
if...
How can i check if this item have attribute? i tried something like this, but return (hasAttribute) nil value. But i have another code with hasAttribute work fine.
local randomic_itemsID = {1540, 1541, 1566, 1800, 9222}
function onTime(interval)
local players = Game.getPlayers()
for i...
data/globalevents.xml (every 10 secs will run)
<globalevent name="shop" interval="10" event="script" value="shop.lua"/>
data/globalevents/shop.lua
function onThink(interval, lastExecution)
if #getPlayersOnline() >= 1 then
local type_desc = {
"itemids"...
put addEvent inside a function too, exemple, execute every 5 seconds:
local function returnMagic(cid, effect)
local player = Player(cid)
if not player then return true end
return player:getPosition():sendMagicEffect(effect) and addEvent(returnMagic, 1000, player:getId(), effect)
end...
error? what u need to code to? this way you are using the "for" function without needing....
if you want the effect to come out every X seconds, change that part
addEvent(returnMagic, 60000, player:getId(), effect)
for something like this:
addEvent(returnMagic, 1000 * i, player:getId(), effect)
local effect = 25
-- LOCAL FUNCTION TO USE SENDMAGICEFFECT IN ADDEVENT--
local function returnMagic(cid, effect)
local player = Player(cid)
if not player then return true end
return player:getPosition():sendMagicEffect(effect)
end
function onSay(player, words, param)
for i = 1, 5...
I don't know how much he wants, and I don't even know who wants to help, I'm posting here to get answers. if i already knew the answers i wouldn't be posting this.
You have no answer for everything, just like me, I am searching a possible solution.
Your comment does not contribute anything...
I already contributed to it, when he solved a bug that I needed, but alone I can't get a value that is high.
A tfs bug since 2017 that was only solved in 2020, for me tfs advances like a turtle
https://otland.net/threads/bug-in-wait-list-tfs-1-3-downgraded-8-6.270717/#post-2608419
I don't know...