Ir para conteúdo

NoNaMexD

Membro
  • Registro em

  • Última visita

Tudo que NoNaMexD postou

  1. NoNaMexD postou uma resposta no tópico em Mapas de Tibia
    No tópico principal da otland, esta atualizado em varias versões de itens otb. Entro muito pouco aqui. Até.
  2. NoNaMexD postou uma resposta no tópico em Mapas de Tibia
    Não testei não...Apenas trackiei e publiquei. Irei fazer uns testes no fim de semana, ai retorno. Usa o RME 10.90 aqui do forum: www.tibiaking.com/forum/topic/65505-remeres-map-editor-1090/ Os itens.otb, se não me engano é compativel com esse:
  3. NoNaMexD postou uma resposta no tópico em Mapas de Tibia
    Manda o Link do RME pra mim ver. Versão 10.90 de preferencia.
  4. NoNaMexD postou uma resposta no tópico em Mapas de Tibia
    Não tenho os monstros, esses vocês terão que criar por sí mesmo por enquanto. Apenas fiz o tracker e compartilhei. Se alguem quiser fazer essa contribuição ira auxiliar expressivamente. E me motivar a postar mais mapas no futuro.
  5. NoNaMexD postou uma resposta no tópico em Mapas de Tibia
    Ta ai o Scan: https://www.virustotal.com/pt/file/95ef4d948aa9e7704aead6aa166b2b61abce40f9282149175aa63447eb06e7fb/analysis/1451489004/
  6. NoNaMexD postou uma resposta no tópico em Mapas de Tibia
    Estou compartilhando, assim como fiz na otland o mapa de klailos com todos. SCAN https://www.virustotal.com/pt/file/95ef4d948aa9e7704aead6aa166b2b61abce40f9282149175aa63447eb06e7fb/analysis/1451489004/ DOWNLOAD CREDITOS: MIKII [ OTLAND QUE SOU EU ].
  7. Tenta trocar a bagaças dos "yes" por um simples true, ou "no" por false. Att.
  8. O que era??? Fiquei curioso...
  9. Já postei as libs ali atras, quando baixar elas, me avisa... Que eu vo remover do tópico...
  10. deixa eu te passar as libs corretas desse teu OT. Só um segundo. Já posto aqui. Puts, o pior é que eu nao achei a pasta lib, nem mesmo na otland.. =/// Ferrou. Não sei mais o que fazer para te ajudar. =/ Não sei mais o que pode ser, e não sei mais nem o que falar.... Tensoo...
  11. To achando que sua bliblioteca inteira esta errada, provavelmente... Você tem conta premium na otland? Baixou de lá? Ou pegou tudo pronto de algum fórum qualquer?? Mais uma pergunta, as escadas e bueiros funcionam corretamente??? Aquelas de thais?
  12. Bom... Coisa do demonio mesmo. rsrsrsrs Não sei mais o que pode ser. tentamos de tudo.. rsrsrsrs que versão é seu ot?
  13. Hunnnn.... Então esta funcionando certinho... Apenas tem um bug no accept... Deixa eu pensar. Tenta isso: Lembrando que vc tera que criar as guilds novamente, e tudo mais.... Executa essa SQL no banco de dados, para guild e guild_wars.. SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for `guilds` -- ---------------------------- DROP TABLE IF EXISTS `guilds`; CREATE TABLE `guilds` ( `id` int(11) NOT NULL AUTO_INCREMENT, `world_id` tinyint(4) unsigned NOT NULL DEFAULT '0', `name` varchar(255) NOT NULL, `ownerid` int(11) NOT NULL, `creationdata` int(11) NOT NULL, `checkdata` int(11) NOT NULL DEFAULT '0', `motd` varchar(255) NOT NULL DEFAULT '', `balance` int(10) unsigned NOT NULL DEFAULT '0', `guild_points` int(11) NOT NULL DEFAULT '0', `wins` int(11) NOT NULL DEFAULT '0', `losses` int(11) NOT NULL DEFAULT '0', `draws` int(11) NOT NULL DEFAULT '0', `invited_to` int(11) NOT NULL DEFAULT '0', `invited_by` int(11) NOT NULL DEFAULT '0', `in_war_with` int(11) NOT NULL DEFAULT '0', `kills` int(11) NOT NULL DEFAULT '0', `show` smallint(1) NOT NULL DEFAULT '0', `war_time` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`,`world_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- ---------------------------- -- Table structure for `guild_wars` -- ---------------------------- DROP TABLE IF EXISTS `guild_wars`; CREATE TABLE `guild_wars` ( `id` int(11) NOT NULL AUTO_INCREMENT, `guild_id` int(11) NOT NULL, `enemy_id` int(11) NOT NULL, `begin` bigint(20) NOT NULL DEFAULT '0', `end` bigint(20) NOT NULL DEFAULT '0', `frags` int(10) unsigned NOT NULL DEFAULT '0', `payment` bigint(20) unsigned NOT NULL DEFAULT '0', `guild_kills` int(10) unsigned NOT NULL DEFAULT '0', `enemy_kills` int(10) unsigned NOT NULL DEFAULT '0', `status` tinyint(1) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `status` (`status`), KEY `guild_id` (`guild_id`), KEY `enemy_id` (`enemy_id`), CONSTRAINT `guild_wars_ibfk_1` FOREIGN KEY (`guild_id`) REFERENCES `guilds` (`id`) ON DELETE CASCADE, CONSTRAINT `guild_wars_ibfk_2` FOREIGN KEY (`enemy_id`) REFERENCES `guilds` (`id`) ON DELETE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  14. Se essas variaveis estiverem dentro de 101-war.lua Remove elas dele, e adicione ao 000-constant... Outra coisa, você precisa ter uma guild para execurtar esse comando, parece que a NIL VALUE, ocorre por que aparentemente parece não haver uma guild.
  15. Bom, então sabemos agora, que as soucers estão corretas, precisamos apenas analisar se o erro esta nos arquivos.lua.... Vou analisar aqui o que pode estar faltando. Entre no 000-constant novamente e procure por: Abaixo dele adicione isso: Se tiver em war 101 isso ai de cima remova. E confere se em 101-war.lua tem isso:
  16. .....
  17. Então a ultima opção possivel, abra o arquivo das suas soucers, chamado: luascript.cpp E procura por este comando, com o CTRL + F Veja se ele existe... Att;
  18. Tenta mudar essa linha então apenas para testar: query = query .. " WHERE `id` = " .. tmp:getDataInt("id") if(t[1] == "accept") then doGuildAddEnemy(guild, enemy, tmp:getDataInt("id"), WAR_GUILD) doGuildAddEnemy(enemy, guild, tmp:getDataInt("id"), WAR_ENEMY) end Por isso: query = query .. " WHERE `id` = " .. tmp:getDataInt("id") if(t[1] == "accept") then doGuildAddEnemy(guild, enemy, tmp:getDataInt("id"), 0) doGuildAddEnemy(enemy, guild, tmp:getDataInt("id"), 1) end Se der erro me retorna o erro...
  19. Tenta usar esse script em talkactions/war.lua Tira uma copia da sua.... function onSay(cid, words, param, channel) local guild = getPlayerGuildId(cid) if(not guild or getPlayerGuildLevel(cid) < GUILDLEVEL_LEADER) then doPlayerSendChannelMessage(cid, "", "You cannot execute this talkaction.", TALKTYPE_CHANNEL_W, 0) return true end local t = string.explode(param, ",") if(not t[2]) then doPlayerSendChannelMessage(cid, "", "Not enough param(s).", TALKTYPE_CHANNEL_W, 0) return true end local enemy = getGuildId(t[2]) if(not enemy) then doPlayerSendChannelMessage(cid, "", "Guild \"" .. t[2] .. "\" does not exists.", TALKTYPE_CHANNEL_W, 0) return true end if(enemy == guild) then doPlayerSendChannelMessage(cid, "", "You cannot perform war action on your own guild.", TALKTYPE_CHANNEL_W, 0) return true end local enemyName, tmp = "", db.getResult("SELECT `name` FROM `guilds` WHERE `id` = " .. enemy) if(tmp:getID() ~= -1) then enemyName = tmp:getDataString("name") tmp:free() end if(isInArray({"accept", "reject", "cancel"}, t[1])) then local query = "`guild_id` = " .. enemy .. " AND `enemy_id` = " .. guild if(t[1] == "cancel") then query = "`guild_id` = " .. guild .. " AND `enemy_id` = " .. enemy end tmp = db.getResult("SELECT `id`, `begin`, `end`, `payment` FROM `guild_wars` WHERE " .. query .. " AND `status` = 0") if(tmp:getID() == -1) then doPlayerSendChannelMessage(cid, "", "Currently there's no pending invitation for a war with " .. enemyName .. ".", TALKTYPE_CHANNEL_W, 0) return true end if(t[1] == "accept") then local _tmp = db.getResult("SELECT `balance` FROM `guilds` WHERE `id` = " .. guild) local state = _tmp:getID() < 0 or _tmp:getDataInt("balance") < tmp:getDataInt("payment") _tmp:free() if(state) then doPlayerSendChannelMessage(cid, "", "Your guild balance is too low to accept this invitation.", TALKTYPE_CHANNEL_W, 0) return true end db.executeQuery("UPDATE `guilds` SET `balance` = `balance` - " .. tmp:getDataInt("payment") .. " WHERE `id` = " .. guild) end query = "UPDATE `guild_wars` SET " local msg = "accepted " .. enemyName .. " invitation to war." if(t[1] == "reject") then query = query .. "`end` = " .. os.time() .. ", `status` = 2" msg = "rejected " .. enemyName .. " invitation to war." elseif(t[1] == "cancel") then query = query .. "`end` = " .. os.time() .. ", `status` = 3" msg = "canceled invitation to a war with " .. enemyName .. "." else query = query .. "`begin` = " .. os.time() .. ", `end` = " .. (tmp:getDataInt("end") > 0 and (os.time() + ((tmp:getDataInt("begin") - tmp:getDataInt("end")) / 86400)) or 0) .. ", `status` = 1" end query = query .. " WHERE `id` = " .. tmp:getDataInt("id") if(t[1] == "accept") then doGuildAddEnemy(guild, enemy, tmp:getDataInt("id"), WAR_GUILD) doGuildAddEnemy(enemy, guild, tmp:getDataInt("id"), WAR_ENEMY) end tmp:free() db.executeQuery(query) doBroadcastMessage(getPlayerGuildName(cid) .. " has " .. msg, MESSAGE_EVENT_ADVANCE) return true end if(t[1] == "invite") then local str = "" tmp = db.getResult("SELECT `guild_id`, `status` FROM `guild_wars` WHERE `guild_id` IN (" .. guild .. "," .. enemy .. ") AND `enemy_id` IN (" .. enemy .. "," .. guild .. ") AND `status` IN (0, 1)") if(tmp:getID() ~= -1) then if(tmp:getDataInt("status") == 0) then if(tmp:getDataInt("guild_id") == guild) then str = "You have already invited " .. enemyName .. " to war." else str = enemyName .. " have already invited you to war." end else str = "You are already on a war with " .. enemyName .. "." end tmp:free() end if(str ~= "") then doPlayerSendChannelMessage(cid, "", str, TALKTYPE_CHANNEL_W, 0) return true end local frags = tonumber(t[3]) if(frags ~= nil) then frags = math.max(10, math.min(1000, frags)) else frags = 100 end local payment = tonumber(t[4]) if(payment ~= nil) then payment = math.max(100000, math.min(1000000000, payment)) tmp = db.getResult("SELECT `balance` FROM `guilds` WHERE `id` = " .. guild) local state = tmp:getID() < 0 or tmp:getDataInt("balance") < payment tmp:free() if(state) then doPlayerSendChannelMessage(cid, "", "Your guild balance is too low for such payment.", TALKTYPE_CHANNEL_W, 0) return true end db.executeQuery("UPDATE `guilds` SET `balance` = `balance` - " .. payment .. " WHERE `id` = " .. guild) else payment = 0 end local begining, ending = os.time(), tonumber(t[5]) if(ending ~= nil and ending ~= 0) then ending = begining + (ending * 86400) else ending = 0 end db.executeQuery("INSERT INTO `guild_wars` (`guild_id`, `enemy_id`, `begin`, `end`, `frags`, `payment`) VALUES (" .. guild .. ", " .. enemy .. ", " .. begining .. ", " .. ending .. ", " .. frags .. ", " .. payment .. ");") doBroadcastMessage(getPlayerGuildName(cid) .. " has invited " .. enemyName .. " to war till " .. frags .. " frags.", MESSAGE_EVENT_ADVANCE) return true end if(not isInArray({"end", "finish"}, t[1])) then return false end local status = (t[1] == "end" and 1 or 4) tmp = db.getResult("SELECT `id` FROM `guild_wars` WHERE `guild_id` = " .. guild .. " AND `enemy_id` = " .. enemy .. " AND `status` = " .. status) if(tmp:getID() ~= -1) then local query = "UPDATE `guild_wars` SET `end` = " .. os.time() .. ", `status` = 5 WHERE `id` = " .. tmp:getDataInt("id") tmp:free() doGuildRemoveEnemy(guild, enemy) doGuildRemoveEnemy(enemy, guild) db.executeQuery(query) doBroadcastMessage(getPlayerGuildName(cid) .. " has " .. (status == 4 and "mend fences" or "ended up a war") .. " with " .. enemyName .. ".", MESSAGE_EVENT_ADVANCE) return true end if(status == 4) then doPlayerSendChannelMessage(cid, "", "Currently there's no pending war truce from " .. enemyName .. ".", TALKTYPE_CHANNEL_W, 0) return true end tmp = db.getResult("SELECT `id`, `end` FROM `guild_wars` WHERE `guild_id` = " .. enemy .. " AND `enemy_id` = " .. guild .. " AND `status` = 1") if(tmp:getID() ~= -1) then if(tmp:getDataInt("end") > 0) then tmp:free() doPlayerSendChannelMessage(cid, "", "You cannot request ending for war with " .. enemyName .. ".", TALKTYPE_CHANNEL_W, 0) return true end local query = "UPDATE `guild_wars` SET `status` = 4, `end` = " .. os.time() .. " WHERE `id` = " .. tmp:getDataInt("id") tmp:free() db.executeQuery(query) doBroadcastMessage(getPlayerGuildName(cid) .. " has signed an armstice declaration on a war with " .. enemyName .. ".", MESSAGE_EVENT_ADVANCE) return true end doPlayerSendChannelMessage(cid, "", "Currently there's no active war with " .. enemyName .. ".", TALKTYPE_CHANNEL_W, 0) return true end
  20. Compila com esses comandos:
  21. Você esta compilando em que?? MVS? OU Dev-Cpp???
  22. Provavelmente o TSF não tem warsystem.... E pode ser sim, em 000-constant...
  23. NoNaMexD postou uma resposta no tópico em Suporte Tibia OTServer
    Pode sim, usar o comando reload dentro do jogo, porem especificente para scripts. Comandos: /reload actions /reload creaturescripts /reload items /reload movements /reload monsters /reload npcs /reload talkactions /reload spells /reload weapons Esses são os mais usados, e para usa-los, basta estar logado com o god e executar o comando no jogo.. Att.
  24. Bom, você apenas copiou um item existente ??? Ou adicionou um item completamente novo ? Att.
  25. NoNaMexD postou uma resposta no tópico em Suporte Tibia OTServer
    rsrsrsrsrs.. Lamento informar, mas isso não é possivel... Primeiro, até seria possivel, porem, simplesmente ao adicionar skills, a todos players ON já iria derrubar o server.. A melhor maneira para se fazer isso, é usando duas bases de dados mysql, e para isso necessitária de muito conhecimento, principalmente na parte de configuração de conexões multiplas com o banco de dados. A primeira com os players normais, a segunda com os players editador, sendo esta um espelho da primeira, porem editada. E também seria muito complexo. Mas não vou entrar em detalhes sobre isso, por que ninguem vai querer fazer isso. Ou seja: Não é possivel fazer... Att.

Informação Importante

Confirmação de Termo