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!
I would like to know if it is possible to count how many monsters there are in an area fromX toX ??
local top_left_corner = {x = 3341, y = 804, z = 6}
local bottom_right_corner = {x = 3352, y = 811, z = 6}
if monsters_summoned[1] then
local monster_count = 0
for i = 1...
Hiii me again, Im stuck at some coding again, and since you guys always help me out and teach me a lot of new stuff for every post I do, I will ask you for guidens! ^^
So basically I want to remove an item on my target offset. So I tried creating a variable like this :
local activeTileGrid1 =...
Hi! Me again 🤓 !
So Im trying Lua again and Im trying to search for a target.x offset. basically what I want is that when you use an item anywhere the script checks if that position you used the item on - 9 x has an object on it.
I tried this but got an error
elseif (target.x - 9):getId() ==...
Good night people
I was using a tfs 1.3 pack more, I decided to migrate to otservbr (revscript)
I have an aura system, on tfs 1.3 it works perfectly, on otservbr when equipped, it has a multiplied effect, you can equip more than 1x, I tried several modes ...
Maybe you could have expressed me...
@Levi999x and I will be providing scripting service for free.
The thread will be locked after a while but might be unlocked again later.
[ REQUIREMENTS ]
TFS: 1.3(+) ( github.com/otland/forgottenserver )
SCRIPTS: Actions, Creaturescripts, Globalevents, Movements, Talkactions
INFO: Give...
Okay, so i get this error now? this happend after i restarted my server with a new "Training Room".. it worked perfect and no error logs before this.. could it be something wrong with the map? or what happend.. hmm
[Error - LuaScriptInterface::luaGameLoadMap] Failed to load map: failed opening...
Hello everyone, everything good?
I have a script that is bothering me: it searches for the monsters that I have and some information about it. Everything works normal, including when I type a wrong or invalid name, it shows me the table with the name of the monsters and the alert that I typed...
Hello everyone. Could someone help me with this, I want to make a 10% bonus for having a client 12 and a 10% bonus for having a premium. But I think that the 2 codes collapse, the percentage does not give well it is disproportionate. Because if I remove 1 the other works fine. Thanks in...
Hi,
Can someome tell me why this spell do not dmg ?
local combat = Combat()
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE)
combat:setArea(createCombatArea(AREA_SQUAREWAVE5))
function onGetFormulaValues(cid, level, magicLevel)
local min = (level / 5) + (magicLevel * 1.4) + 8...
Hi everyone,
I was trying to add another creature event to allow me to handle with lua when a creature actually gets experience. I know there is already a onGainExperience function under the /events/player.lua file, but I'm trying to handle this even for summons and I was wondering if I could...
Hi,
I have little problem... bcs in my server I have transform system ( once vocation going to new vocation ) due to when player got new vocation he must relog bcs without relog he can't use any spell for him vocation.
Someone have idea where can be problem ?
TFS 1.3 , 8.6
Hi,
I need very simple script ( simple for you not for me xD ) .
When player use lever , lever add to player experience (1945 example id lever). I don't need add storage, player can use always lever not only once :D .
TFS 1.3 , 8.6
I have been trying to read a 2D lua-table in sources and I am not sure how to debug this.
The error msg that shows up is "attemp to index a boolean value".
What is going on here?
myLuaFunction({
{ a = 0, b = 123, c = "string", d = true, e = true, f = true },
{ a = 0, b = 123, c =...
Hello all,
I have been experimenting with lua monsters, one little issue i have run into and just wana double check im not missing somthing stupid.
so RME can only import monster files with extension .xml (im using 3.7 the latest release). To load my exisiting monsters i have been creating...
Hello OtLand!
I have a simple request this time... Is there any script to consult experience using a talkaction? Like... Saying !tolvl and then a message appears showing 'You need X experience points to level PlayerLv+1.'
I have been searching through the forum, but couldn't find something...
Hey there!
Question!
Am adding attributes to items.xml exampel a Shield of honour, the attributes am trying to give the item is
<attribute key="maxhitpointspercent" value="133" />
<attribute key="maxmanapointspercent" value="133" />
My issue is why does the attribute not show when you...
I can turn on the WASD walking with the checkbox, but I can't turn chat on and off with the enter key like in other tibia clients. What is the code modification in lua I need to enable chat toggle using the enter key?
Thanks,
CoolBuys1290
For some reason a lot of people have trouble reading console errors and it makes me feel as if ability to read console errors was some ancient wisdom.
In this tutorial you will learn to understand errors in your scripts.
case 1: server closes and you can't read the error message:
If you're on...
Hello im Lucas i am 29 y/o from Poland. Currently jobless so im looking for some job based on TFS.
Looking for job: Programer/Scripter(C++ / Lua based on TFS),
Additionally: Install OTS on Linux (Acc Maker, Engine, Required libs)
Contact; Dakos#7633
Experience; 8 Years with Tibia Servers...