Ir para conteúdo

eder santos

Membro
  • Registro em

  • Última visita

Histórico de Curtidas

  1. Curtir
    eder santos recebeu reputação de Vodkart em erro script npc   
    sim arumei agora so fico esse erro como antes quando vo entregar a task 
    [3/4/2018 15:55:23] [Error - NpcScript Interface] 
    [3/4/2018 15:55:23] data/npc/scripts/simple_task.lua:onCreatureSay
    [3/4/2018 15:55:23] Description: 
    [3/4/2018 15:55:24] [string "task_sys = {..."]:122: attempt to index local 'i_i' (a number value)
    [3/4/2018 15:55:24] stack traceback:
    [3/4/2018 15:55:24]     [string "task_sys = {..."]:122: in function 'GiveRewardsTask'
    [3/4/2018 15:55:24]     data/npc/scripts/simple_task.lua:58: in function 'callback'
    [3/4/2018 15:55:24]     data/npc/lib/npcsystem/npchandler.lua:456: in function 'onCreatureSay'
    [3/4/2018 15:55:24]     data/npc/scripts/simple_task.lua:8: in function <data/npc/scripts/simple_task.lua:8>
    problema resolvido pode fechar 
  2. Gostei
    eder santos deu reputação a Vodkart em erro script npc   
    ja expliquei oq faltava ali, tenta da reload dps que arrumar a task [12]
  3. Obrigado
    eder santos deu reputação a Vodkart em erro script npc   
    então certifique-se de que o MOD está la na pasta MODS.
     
    qualquer coisa só seguir estes passos:
     
     
    http://www.tibiaking.com/forum/forums/topic/77489-86-task-system-40-task-system-daily-task-system/
  4. Obrigado
    eder santos deu reputação a Werner em Ajuda Erro em script   
    Pega o ID do item que da acesso a cave exclusiva no seu server, abre o actions.xml e procura por ele e posta o que achar
  5. Curtir
    eder santos deu reputação a Werner em Ajuda Erro em script   
    Substitui por isso aqui e ve se vai:
     
    local function filtrateString(str) if type(str) ~= "string" then return false end local first, last = 0, 0 local second, final = 0, #str for i = 1, #str do if string.byte(str:sub(i,i)) == string.byte('a') then first = i + 2 for t = first, #str do if string.byte(str:sub(t,t)) == string.byte(' ') then last = t - 1 break end end end if string.byte(str:sub(i,i)) == string.byte('b') then second = i + 2 end end return {str:sub(first, last), str:sub(second, final)} end local positions = { [1] = {{x = 2435, y = 499, z = 7}, {x = 2578, y = 593, z = 7}}, [2] = {{x = 2445, y = 390, z = 7}, {x = 2588, y = 487, z = 7}}, [3] = {{x = 2410, y = 280, z = 7}, {x = 2520, y = 377, z = 7}}, [4] = {{x = 2423, y = 167, z = 7}, {x = 2561, y = 271, z = 7}}, [5] = {{x = 2457, y = 252, z = 6}, {x = 2520, y = 302, z = 6}}, [6] = {{x = 1932, y = 402, z = 7}, {x = 2081, y = 459, z = 7}}, [7] = {{x = 2194, y = 469, z = 6}, {x = 2282, y = 543, z = 6}}, [8] = {{x = 2058, y = 559, z = 7}, {x = 2135, y = 632, z = 7}}, [9] = {{x = 2049, y = 458, z = 9}, {x = 2133, y = 528, z = 9}}, [10] = {{x = 2068, y = 325, z = 8}, {x = 2160, y = 405, z = 8}}, [11] = {{x = 2592, y = 507, z = 7}, {x = 2730, y = 597, z = 7}}, [12] = {{x = 2609, y = 399, z = 7}, {x = 2723, y = 489, z = 7}}, [13] = {{x = 2526, y = 318, z = 7}, {x = 2580, y = 370, z = 7}}, [14] = {{x = 2267, y = 161, z = 7}, {x = 2398, y = 269, z = 7}}, [15] = {{x = 2769, y = 505, z = 7}, {x = 2919, y = 601, z = 7}}, [16] = {{x = 2245, y = 315, z = 7}, {x = 2393, y = 419, z = 7}}, [17] = {{x = 2598, y = 316, z = 7}, {x = 2655, y = 370, z = 7}}, [18] = {{x = 2411, y = 16, z = 7}, {x = 2557, y = 124, z = 7}}, [19] = {{x = 1949, y = 62675, z = 7}, {x = 2011, y = 62767, z = 7} }, [20] = {{x = 1875, y = 62774, z = 7}, {x = 1930, y = 62753, z = 7}}, [21] = {{x = 1773, y = 62774, z = 7}, {x = 1832, y = 62863, z = 7}}, [22] = {{x = 1777, y = 62697, z = 7}, {x = 1849, y = 62772, z = 7}}, [23] = {{x = 697, y = 62607, z = 6}, {x = 878, y = 62710, z = 6}}, [24] = {{x = 895, y = 62607, z = 7}, {x = 966, y = 62674, z = 7}}, [25] = {{x = 969, y = 62611, z = 6}, {x = 1097, y = 62694, z = 6}}, [26] = {{x = 988, y = 62701, z = 7}, {x = 1108, y = 62787, z = 7}}, [27] = {{x = 1761, y = 62627, z = 9}, {x = 1844, y = 62689, z = 9}}, [28] = {{x = 1680, y = 62660, z = 8}, {x = 1756, y = 62732, z = 8}}, [29] = {{x = 1591, y = 62699, z = 7}, {x = 1664, y = 62772, z = 7}}, [30] = {{x = 1516, y = 62591, z = 7}, {x = 1664, y = 62688, z = 7}}, [31] = {{x = 1425, y = 62715, z = 7}, {x = 1475, y = 62755, z = 7}}, [32] = {{x = 1123, y = 62685, z = 6}, {x = 1240, y = 62763, z = 6}}, [33] = {{x = 1270, y = 62721, z = 6}, {x = 1397, y = 62806, z = 6}}, [34] = {{x = 1297, y = 62599, z = 6}, {x = 1357, y = 62692, z = 6}}, [35] = {{x = 1372, y = 62602, z = 6}, {x = 1516, y = 62672, z = 6}}, [36] = {{x = 2730, y = 62701, z = 7}, {x = 2808, y = 62754, z = 7}} ---[ } function onThink(interval, lastExecution) for i = 1, #positions do local players = getPlayersInArea(positions[i][1], positions[i][2]) if players then for _, pid in pairs(players) do if getPlayerAccountId(pid) ~= tonumber(filtrateString(getGlobalStorageValue(822080+i))[1]) or getPlayerAccountId(pid) == tonumber(filtrateString(getGlobalStorageValue(822080+i))[1]) and tonumber(filtrateString(getGlobalStorageValue(822080+i))[2]) <= os.time() then doTeleportThing(pid, getTownTemplePosition(getPlayerTown(pid))) doPlayerPopupFYI(pid, "Seu tempo como dono da Cave ".. i .." expirou. Você foi levado até seu templo.") end end end end return true end  
  6. Haha
    eder santos deu reputação a Dwarfer em Pizo que desloga   
    local newpos = {x=1,y=1,z=1} function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor) doTeleportThing(cid, newpos) addEvent(doRemoveCreature,1,cid) return true end <movevent type="StepIn" actionid="ACTIONIDDOPISO" event="script" value="NOMEDOARQUIVO.lua"/>

Informação Importante

Confirmação de Termo