Postado Janeiro 13, 2019 6 anos Pessoal estou testando um servidor Styller Yourrots com meu irmão porem quando decidimos usa o Autloot que por sinal funciona bacanaaa, depois de um tempo aparece os seguintes erros, e consequentemente o char não loga mais... [22:23:27.287] [Error - CreatureScript Interface] [22:23:27.291] data/creaturescripts/scripts/autoloot.lua:onLogin [22:23:27.295] Description: [22:23:27.298] data/creaturescripts/scripts/autoloot.lua:3: attempt to compare string with number [22:23:27.301] stack traceback: [22:23:27.303] data/creaturescripts/scripts/autoloot.lua:3: in function <data/creaturescripts/scripts/autoloot.lua:1> [22:23:27.450] Pifafa has logged out. [22:23:27.567] [Error - CreatureScript Interface] [22:23:27.571] In a timer event called from: [22:23:27.576] data/creaturescripts/scripts/ExpGuild.lua:onLogin [22:23:27.581] Description: [22:23:27.583] (luaDoPlayerSendTextMessage) Player not found Não sei o que pode ser que esteja acontecendo isso, a ideia era joga o ot feliz mas não duro 15 minuto asdahdahsdhausdhuad os script que estão dando erro são: function onLogin(cid) if vip.hasVip(cid) and getPlayerStorageValue(cid, 27001) <= 0 then setPlayerStorageValue(cid, 27001, 1) elseif getPlayerStorageValue(cid, 27001) > 0 and not vip.hasVip(cid) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "[Auto Loot] You VIP is Over, Start a new list!") setPlayerStorageValue(cid, 27001, -1) setPlayerStorageValue(cid, info.Storages[1], -1) end return true end function onKill(cid, target, lastHit) if isPlayer(cid) and getAutoLootDays(cid) > 0 and isMonster(target) then addEvent(corpseRetireItems, 0, cid ,getThingPos(target)) end return true end function getGuildMembersOnline(GuildId) local players,query = {},db.getResult("SELECT `name` FROM `players` WHERE `rank_id` IN (SELECT `id` FROM `guild_ranks` WHERE `guild_id` = " .. GuildId .. ");") if (query:getID() ~= -1) then repeat table.insert(players,query:getDataString("name")) until not query:next() query:free() end return #players > 0 and players or false end function onLogin(cid) local guild_id = getPlayerGuildId(cid) local minimo = 2 local max = 2 local porcentagem = 1 ----------------------------------------- doPlayerSetExperienceRate(cid, 1) if guild_id == 0 then addEvent(doPlayerSendTextMessage, 200,cid, MESSAGE_STATUS_CONSOLE_RED,"[GUILD] Entre em uma guild para ter bonus de experiencia.") return true end if guild_id > 0 then local membros_online = table.maxn(getGuildMembersOnline(guild_id)) local tabela_membros = getGuildMembersOnline(guild_id) --if #getPlayersByIp(getPlayerIp(cid)) >= max then --doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED,"[GUILD] Players com Multi-Cliente nao contam para ganhar o bonus de experiencia.") --return true --end if membros_online <= minimo then addEvent(doPlayerSendTextMessage, 2000, cid, MESSAGE_STATUS_CONSOLE_RED,"[GUILD] Para ter bonus de experiencia precisa ter mais de "..minimo.." jogadores da guild online.\n Jogadores da Guild Online ["..membros_online.."]") return true end if membros_online > minimo then for var = 1, #tabela_membros do local nomes = getCreatureByName(tabela_membros[var]) local XP = ((membros_online*porcentagem) / 100) + 1.00 doPlayerSetExperienceRate(nomes, XP) addEvent(doPlayerSendTextMessage,1000,nomes, MESSAGE_STATUS_CONSOLE_RED, "[GUILD] A experiencia dos membros da guilda foi aumentada para +"..membros_online*porcentagem.."% - Membro "..getCreatureName(cid).." logou.") end return true end end end Editado Janeiro 13, 2019 6 anos por Pifafa (veja o histórico de edições)
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.