• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Search results

  1. waqmaz

    How to detect if addEvent has ended?

    Can I ask something? What does really stackpos mean? Stackpos 1 = ground, stackpos 2 = mountain, stackpos 3 = item on mountain???
  2. waqmaz

    How to detect if addEvent has ended?

    ty, works
  3. waqmaz

    How to detect if addEvent has ended?

    Oh, my Gooosh!!! I lost all my day for this today! Lol, how stupid I am!!! Thanks!
  4. waqmaz

    How to detect if addEvent has ended?

    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
  5. waqmaz

    How to detect if addEvent has ended?

    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...
  6. waqmaz

    Couldn't estabilish connection to SQL database!

    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...
  7. waqmaz

    RME can't place creatures on mountain ground

    /deleted
  8. waqmaz

    A FUNCTION AND ARRAY IN LUA

    because i put "local pos" at the top of the script to see what will happen
  9. waqmaz

    A FUNCTION AND ARRAY IN LUA

    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?
  10. waqmaz

    A FUNCTION AND ARRAY IN LUA

    ok, guys, you cannot help me then i do not know how to do this, i am php programmer, not lua. in php it would work
  11. waqmaz

    A FUNCTION AND ARRAY IN LUA

    no matter where the "pos" var is defined. it doesn't work even outside functions i get error: or
  12. waqmaz

    A FUNCTION AND ARRAY IN LUA

    !? loop is okay. what do u mean by passing by parameter?
  13. waqmaz

    A FUNCTION AND ARRAY IN LUA

    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...
  14. waqmaz

    A FUNCTION AND ARRAY IN LUA

    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'] =...
  15. waqmaz

    Remove teleport from dead monster position [TFS 0.3.6]

    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.
  16. waqmaz

    Remove teleport from dead monster position [TFS 0.3.6]

    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.
  17. waqmaz

    Remove teleport from dead monster position [TFS 0.3.6]

    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 *...
  18. waqmaz

    Remove teleport from dead monster position [TFS 0.3.6]

    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)...
  19. waqmaz

    Remove teleport from dead monster position [TFS 0.3.6]

    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...
  20. waqmaz

    Couldn't estabilish connection to SQL database!

    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
Back
Top