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!
So to check if an event's time has ended, just use "if event == 0"? doesn't work. tfs 0.3.6
this doesnt work too:
if stopEvent(event) then
doCreatureSay(cid, "event stopped", TALKTYPE_ORANGE_1)
end
TFS 0.3.6
function onKill(cid, target)
local pos = {x = 1050, y = 1050, z = 7}
local time_ = 3000
local item_uid = 1036
local value = 1
local monster = 'Cave Rat'
local wall = getTileItemById(poz, item_uid).uid
if getCreatureName(target) == monster then...
It is because of the host type. Linuxpl.com isn't for games. It is for www sites. That is why it doesn't work. i bought minthost.pl and works perfectly, but i've got debian. had to install ubuntu 14. now everything works very well on a screen using ubuntu. :)
I was the biggest dumb ever trying...
no, men. it is full script. really. thanks for an answer. will try my best. it doesnt work. including an integer to the varaible does nothing usefull. i can just make an integer value instead of this. it isnt useful
and you got all code you need. what more do you need?
function lever(leverID, from, to)
if item.uid == leverID and item.itemid == 1945 then
local count_players = #to
local store = {}
for i = 1, count_players do
local pid = getTopCreature(from[i]).uid
if (pid == 0 or not...
Lets say I have a function with an array:
local function tp(from, to)
local pos = {
['pos_start'] = {
{['x'] = 179, ['y'] = 367, ['z'] = 7},
{['x'] = 666, ['y'] = 222, ['z'] = 7}
},
['pos_end'] = {
{['x'] = 1555, ['y'] =...
But the teleport still isnt removed. I will try function createItem instead of createTeleport, will script that item to be a teleport in lua and then i'll try to remove the item
Still does not work.
I dont understand. Lets say we have an item:
<item id="666" name="decay corpse"></item>
What should be the parameter inside?
Ofcourse.
/edit It is probably
Will check it.
Put teleport on top of body,
remove teleport after 5 second.
It should work that way, but isn't.
Are You sure this is correct for 0.3.6?
addEvent(doRemoveItem, 5 * 1000, getTileItemById(getCreaturePosition(target), 1387).uid, 1)
I've tried with getthingfrompos like
addEvent(doRemoveItem, 5 *...
Hey there. I've watched around 25+ topics about monsters and tp, but I cannot find anything about removing teleport from position of monster's corpse.
It will help a little. How to find dead monster position?
local function removal(monsters_corpse_position)...
doCreateTeleport(1387, tp_pos, getCreaturePosition(target))
addEvent(doRemoveItem, 5 * 1000, getTileItemById(getCreaturePosition(target), 1387).uid, 1)
This script creates teleport on a location of dead monster. All is inside onKill function.
How to remove the teleport?
Also the teleport...
bump
If here is someone who started his Open Tibia Server on external database and can help?
just wondering, maybe its because of encryptionType = "sha1"? but i dont think so