Recent content by dervin13

  1. dervin13

    Lua Auto loot collecting item in bag

    Is it possible to make this autoloot collect the item inside the bag in corpse when you kill it? thanks local function scanContainer(cid, position) local player = Player(cid) if not player then return end local corpse = Tile(position):getTopDownItem() if not corpse...
  2. dervin13

    Lua Make it work in globalevents cleanning specific area

    thank you so much
  3. dervin13

    Lua Make it work in globalevents cleanning specific area

    It's working, but if there's an water placed in the area I get this error data/globalevents/scripts/clean.lua:24: attempt to get length of local 'ti leItems' (a nil value) It's possible to solve or is better to remove this water?
  4. dervin13

    Lua Make it work in globalevents cleanning specific area

    Im getting this error Lua Script Error: [GlobalEvent Interface] data/globalevents/scripts/clean.lua:onThink data/globalevents/scripts/clean.lua:23: attempt to index local 'tile' (a n umber value) and with Evil Hero Lua Script Error: [GlobalEvent Interface]...
  5. dervin13

    Why this autoloot system doesnt work

    Check if you registered correctly in login.lua, my server is tfs 1.2 and it's working good. Did you get any errors?
  6. dervin13

    Why this autoloot system doesnt work

    You already checked if collect from body? It doesnt collect from bag
  7. dervin13

    Lua Make it work in globalevents cleanning specific area

    It's working now thanks function onThink(interval) local area = { fromPos = {x = 300, y = 300, z = 7}, toPos = {x = 400, y = 400, z = 7} } local itemIds = {2148, 2152} for x = area.fromPos.x, area.toPos.x do for y = area.fromPos.y, area.toPos.y do for...
  8. dervin13

    Lua Make it work in globalevents cleanning specific area

    no, only this, i think it was a part of action, but I want to use this to clean a part of the map
  9. dervin13

    Lua Make it work in globalevents cleanning specific area

    function onThink(interval) local configClean = { Map = { LS = {x = 651, y = 541, z = 7}, -- LIMIT NORT WEST LI = {x = 670, y = 556, z = 7}, -- LIMIT SUL EAST }, } local ItensIDS = {2148, 2152} -- IDS FOR REMOVE for x = configClean.Map.LS.x, configClean.Map.LI.x do...
  10. dervin13

    Lua Make it work in globalevents cleanning specific area

    I put function onThink(interval) at the topo and changed the positions then come this error [Error - GlobalEvents::think] Failed to execute event: cleantemple
  11. dervin13

    Lua Make it work in globalevents cleanning specific area

    I get this script in another place and trying to make it work in globalevent, but already chance to function onThink(interval) but not happens... Can anyone help? It's to clean a specific area thanks function cleanmap() local configClean = { Map = { LS = {x = 550, y = 441, z = 7}...
  12. dervin13

    Need help about my bless.lua not work

    Try this one, in the past I used this It's not necessary to have storage ID but if you want we can try to add this local bless = {1, 2, 3, 4, 5} local cost = 50000 function onSay(cid, words, param) for i = 1, table.maxn(bless) do if(getPlayerBlessing(cid, bless[i])) then...
  13. dervin13

    C++ Question about delay follow/ follow attack

    bump
  14. dervin13

    Need help about my bless.lua not work

    what's the tfs version?
  15. dervin13

    C++ Question about delay follow/ follow attack

    Is there any place in c++ code that I can change to get the follow/ follow attack faster to respond to this action?? I already fixed the action to push the players but to follow i can't find it When i'm attacking a player and is a magic wall in front of me and it's gone the player take too...
Top