Ir para conteúdo

Josegvb

Posts Recomendados

estou com o siguente problema

[03/01/2017 17:57:15] [Error - TalkAction Interface] [03/01/2017 17:57:15] data/talkactions/scripts/love.lua:onSay[03/01/2017 17:57:15] Description: [03/01/2017 17:57:15] data/lib/034-exhaustion.lua:112: field 'day' missing in date table[03/01/2017 17:57:15] stack traceback:[03/01/2017 17:57:16] 	[C]: in function 'time'[03/01/2017 17:57:16] 	data/lib/034-exhaustion.lua:112: in function 'set'[03/01/2017 17:57:16] 	data/talkactions/scripts/love.lua:44: in function <data/talkactions/scripts/love.lua:1>[03/01/2017 18:00:04] [Error - TalkAction Interface] [03/01/2017 18:00:04] data/talkactions/scripts/tele.lua:onSay[03/01/2017 18:00:05] Description: [03/01/2017 18:00:05] data/lib/034-exhaustion.lua:103: field 'day' missing in date table[03/01/2017 18:00:05] stack traceback:[03/01/2017 18:00:05] 	[C]: in function 'time'[03/01/2017 18:00:05] 	data/lib/034-exhaustion.lua:103: in function 'get'[03/01/2017 18:00:05] 	data/talkactions/scripts/tele.lua:52: in function <data/talkactions/scripts/tele.lua:28>[03/01/2017 18:03:19] [Error - TalkAction Interface] [03/01/2017 18:03:19] data/talkactions/scripts/tele.lua:onSay[03/01/2017 18:03:19] Description: [03/01/2017 18:03:19] data/lib/034-exhaustion.lua:112: field 'day' missing in date table[03/01/2017 18:03:19] stack traceback:[03/01/2017 18:03:19] 	[C]: in function 'time'[03/01/2017 18:03:19] 	data/lib/034-exhaustion.lua:112: in function 'set'[03/01/2017 18:03:19] 	data/talkactions/scripts/tele.lua:143: in function <data/talkactions/scripts/tele.lua:28>

da nada começou a rodar esse bug no meu dxp nao sei o pq...

meu tele:

Spoiler
local poke = {"Espeon", "Shiny Xatu", "Jynx", "Shiny Jynx", "Xatu", "Natu", "Exeggutor", "Slowking", "Slowbro", "Shiny Mr. Mime", 'Mew', 'Mewtwo', 'Abra', 'Kadabra', 'Alakazam', 'Drowzee', 'Hypno', 'Mr. Mime', 'Porygon', 'Shiny Abra', 'Shiny Alakazam', 'Shiny Hypno', 'Porygon2'}  --alterado v1.9local etele = 9499local cdtele = 1 -- debe ser 1800local config = {premium = false, -- se precisa ser premium account (true or false)battle = false	-- se precisa estar sem battle (true). Se colocar false, poderá usar teleport no meio de batalhas}local places = {[1] = {name = "saffron", id = 1, sto = 897530},[2] = {name = "cerulean", id = 2, sto = 897531},[3] = {name = "celadon", id = 3, sto = 897532},[4] = {name = "Lavender", id = 4, sto = 897533},[5] = {name = "vermillion", id = 5, sto = 897534},[6] = {name = "fuchsia", id = 6, sto = 897535},  --alterado v1.7[7] = {name = "Cinnabar", id = 7, sto = 897536},[8] = {name = "viridian", id = 8, sto = 897537},          [9] = {name = "pewter", id = 9},[10] = {name = "Outland South", id = 10, sto = 897538},[11] = {name = "Outland North", id = 11, sto = 897539},[12] = {name = "Outland East", id = 12, sto = 897540},}function onSay(cid, words, param)	if #getCreatureSummons(cid) == 0 then		doPlayerSendCancel(cid, "You need a pokemon to use teleport.")	return true	end	if not isInArray(poke, getCreatureName(getCreatureSummons(cid)[1])) then	return 0	end	    if getPlayerStorageValue(cid, 22545) == 1 then      --golden arena       doPlayerSendCancel(cid, "You can't do that while the golden arena!")    return true    end        if getPlayerStorageValue(cid, 212124) >= 1 then         --alterado v2.6       return doPlayerSendCancel(cid, "You can't do it with a pokemon with mind controlled!")    end    if getPlayerStorageValue(cid, 52480) >= 1 then       return doPlayerSendCancel(cid, "You can't do it while a duel!")  --alterado v2.6    end    	if exhaustion.get(cid, etele) and exhaustion.get(cid, etele) > 0 then		local tempo = tonumber(exhaustion.get(cid, etele)) or 0		local min = math.floor(tempo)		doPlayerSendCancel(cid, "Your pokemon is tired, wait "..getStringmytempo(tempo).." to teleport again.")	return true	end	if config.premium and not isPremium(cid) then		doPlayerSendCancel(cid, "Only premium members are allowed to use teleport.")	return true	end	if config.battle and getCreatureCondition(cid, CONDITION_INFIGHT) then		doPlayerSendCancel(cid, "Your pokemon can't concentrate during battles.")	return true	end	if (param == '') then		local str = ""		str = str .. "Places to go :\n\nHouse\n"			for a = 1, #places do				str = str..""..string.lower(places[a].name).."\n"			end		doShowTextDialog(cid, 7416, str)	return true	end	local item = getPlayerSlotItem(cid, 8)	local nome = getPokeballName(item.uid)	local summon = getCreatureSummons(cid)[1]	local lastppos = getThingPos(cid)	local lastspos = getThingPos(summon)	local telepos = {}	local myplace = ""	local townid = 0	local storagee = 0	if string.lower(param) == "house" then		if not getHouseByPlayerGUID(getPlayerGUID(cid)) then			doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "You don't own a house.")		return true		end		telepos = getHouseEntry(getHouseByPlayerGUID(getPlayerGUID(cid)))		myplace = "our home"	else		for x = 1, #places do			if string.find(string.lower(places[x].name), string.lower(param)) then				townid = places[x].id				myplace = places[x].name			end		end		if myplace == "" then			doPlayerSendCancel(cid, "That place doesn't exist.")		return true		end	end	if myplace ~= "" and townid > 0 then		telepos = getTownTemplePosition(townid)	end	if myplace == "Outland North" or myplace == "Outland South" or myplace == "Outland East"  thensetPlayerStorageValue(cid, 987321, 1)else	setPlayerStorageValue(cid, 987321, 0)end							doSendMagicEffect(getThingPos(summon), 211)	doSendMagicEffect(getThingPos(cid), 211)	--	doReturnPokemon(cid, summon, item, 0)	doTeleportThing(cid, telepos, false)	local pos2 = getClosestFreeTile(cid, getPosByDir(getThingPos(cid), SOUTH))	--doTeleportThing(summon, pos2, false)	--doSendMagicEffect(getThingPos(cid), 29)	doCreatureSay(cid, ""..nome..", teleport to "..myplace.."!", TALKTYPE_ORANGE_1)	doCreatureSay(cid, ""..nome..", teleport to "..myplace.."!", TALKTYPE_ORANGE_1, false, 0, lastppos)	doSendMagicEffect(getThingPos(summon), 211)    doSendMagicEffect(getThingPos(cid), 211)	doCreatureSetLookDir(cid, SOUTH)	exhaustion.set(cid, etele, cdtele)return trueend

 

034 exhaustion

 

Spoiler
function getmytempo(number)local s = numberlocal m = 0local h = 0for a = 1, math.floor(number/60) do    if s <= 59 then       return {h = h, m = m, s = s}    else       s = s - 60       m = m + 1	   if m >= 60 then          m = 0		  h = h + 1       end	endendreturn {h = h, m = m, s = s}endfunction getStringmytempo(number)local hour = ""local minu = ""local seco = ""	if getmytempo(number).h <= 9 then	hour = "0"..getmytempo(number).h..""	else	hour = ""..getmytempo(number).h..""	end	if getmytempo(number).m <= 9 then	minu = "0"..getmytempo(number).m..""	else	minu = ""..getmytempo(number).m..""	end 	if getmytempo(number).s <= 9 then	seco = "0"..getmytempo(number).s..""	else	seco = ""..getmytempo(number).s..""	endreturn ""..hour..":"..minu..":"..seco..""endballcooldown = {	check = function (cid, megafuckie)        if tonumber(getItemAttribute(getPlayerSlotItem(cid, 8).uid, ""..megafuckie.."")) == nil then	    return false	    end	    if tonumber(getItemAttribute(getPlayerSlotItem(cid, 8).uid, ""..megafuckie.."")) >= os.time(t) then	    return true	    end	    return false	end,	get = function (cid, megafuckie)	    if getItemAttribute(getPlayerSlotItem(cid, 8).uid, ""..megafuckie.."") == nil then		return ""		end		local mytempo = math.ceil(getItemAttribute(getPlayerSlotItem(cid, 8).uid, ""..megafuckie.."") - os.time(t))		local x = getStringmytempo(mytempo)		return x	end,	numberget = function (cid, megafuckie)		if getItemAttribute(getPlayerSlotItem(cid, 8).uid, ""..megafuckie.."") == nil then		return 0		end		local x = math.ceil(getItemAttribute(getPlayerSlotItem(cid, 8).uid, ""..megafuckie.."") - os.time(t))		return x	end,	set = function (cid, megafuckie, mytempo)        doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, ""..megafuckie.."", os.time(t) + mytempo)    end,	clean = function (cid, megafuckie)		doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, ""..megafuckie.."", 0)	end}exhaustion = {	check = function (cid, storage)          if(getPlayerFlagValue(cid, PLAYERFLAG_HASNOEXHAUSTION)) then             return false          end          return getPlayerStorageValue(cid, storage) >= os.time(t)	end,	get = function (cid, storage)        if isPlayer(cid) then           if(getPlayerFlagValue(cid, PLAYERFLAG_HASNOEXHAUSTION)) then              return false		   end        end        local exhaust = getPlayerStorageValue(cid, storage)        if(exhaust > 0) then           local left = exhaust - os.time(t)           if(left >= 0) then           return left           end        end        return false	end,	set = function (cid, storage, mytempo)       setPlayerStorageValue(cid, storage, os.time(t) + mytempo)    end,	make = function (cid, storage, mytempo)       local exhaust = exhaustion.get(cid, storage)       if(not exhaust) then          exhaustion.set(cid, storage, mytempo)          return true       end       return false    end}

 

 

nao sei o porque mais DA NADA começou a rodar esse bug... ele nao acontece sempre, acontece as veces o tp pra de funfar e tem q dar um reload talkactions para arrumar

 

Link para o comentário
Compartilhar em outros sites

love.lua

Spoiler
function onSay(cid, words, param)	if param ~= "" then	return false	end	if string.len(words) ~= 5 then	return false	end	local cd = exhaustion.get(cid, 88727)	if not cd then		cd = 0	end	if cd > 0 then		doPlayerSendCancel(cid, "You have to wait "..cd.." seconds.")	return true	end	if #getCreatureSummons(cid) <= 0 then		doPlayerSendCancel(cid, "You need a pokemon to use this command.")	return true	end	doSendMagicEffect(getThingPos(cid), 180)	local function doLovePokemon(cid)		if not isCreature(cid) then return true end		if #getCreatureSummons(cid) <= 0 then return true end		if exhaustion.get(cid, 88727) and exhaustion.get(cid, 88727) > 3 then return true end	local a = getCreatureSummons(cid)[1]	local b = getPlayerStorageValue(a, 1008)	if b > 250 then       doPlayerSendCancel(cid, "Your pokemon is already so happy.")       return true    end	doSendMagicEffect(getThingPos(a), 180)	setPlayerStorageValue(a, 1008, b + 45)	exhaustion.set(cid, 88727, 180)	end	exhaustion.set(cid, 88727, 3)	addEvent(doLovePokemon, 1150, cid)return trueend

 

 

sera que alguem ta dando !love e com isso bugando? sei la...

Editado por Josegvb
Link para o comentário
Compartilhar em outros sites

1 hora atrás, Poccnn disse:

Apaga isso e testa

 

 

ainda ta bugando

 

 

[03/01/2017 20:28:38] [Error - TalkAction Interface] 

[03/01/2017 20:28:38] data/talkactions/scripts/tele.lua:onSay

[03/01/2017 20:28:38] Description: 

[03/01/2017 20:28:38] data/lib/034-exhaustion.lua:103: field 'day' missing in date table

[03/01/2017 20:28:38] stack traceback:

[03/01/2017 20:28:38]     [C]: in function 'time'

[03/01/2017 20:28:38]     data/lib/034-exhaustion.lua:103: in function 'get'

[03/01/2017 20:28:38]     data/talkactions/scripts/tele.lua:52: in function <data/talkactions/scripts/tele.lua:28>

[03/01/2017 20:29:30] [Error - TalkAction Interface] 

[03/01/2017 20:29:30] data/talkactions/scripts/tele.lua:onSay

[03/01/2017 20:29:30] Description: 

[03/01/2017 20:29:30] data/lib/034-exhaustion.lua:103: field 'day' missing in date table

[03/01/2017 20:29:30] stack traceback:

[03/01/2017 20:29:30]     [C]: in function 'time'

[03/01/2017 20:29:30]     data/lib/034-exhaustion.lua:103: in function 'get'

[03/01/2017 20:29:30]     data/talkactions/scripts/tele.lua:52: in function <data/talkactions/scripts/tele.lua:28>

Link para o comentário
Compartilhar em outros sites

  • 2 weeks later...
×
×
  • Criar Novo...