Postado Janeiro 18, 2013 12 anos Administrador Bom primeiro não sei se estou postando esse topico no lugar certo, mais seguinte os players do meu server não estão ganhando frags ao matar outros players alguem sabe como eu arrumo? TibiaKing Team- KingTópicos www.tibiaking.com
Postado Janeiro 19, 2013 12 anos Autor Administrador @up TibiaKing Team- KingTópicos www.tibiaking.com
Postado Janeiro 19, 2013 12 anos Vá em script/creatureevent e olhe se tem um arquivo chamado frags .lua se não tiver, copie algum LUA e mude o nome para frags e coloque isso dentro function onKill(cid, target, lastHit) if(isPlayer(target) ~= true) then return true end if (isPlayer(cid) == true) and (isPlayer(target) == true) then if getPlayerSkullType(target) == SKULL_WHITE then addPlayerFrag(cid, 1) elseif getPlayerSkullType(target) == SKULL_YELLOW then addPlayerFrag(cid, 1) elseif getPlayerSkullType(target) == SKULL_RED then addPlayerFrag(cid, 1) elseif getPlayerSkullType(target) == SKULL_BLACK then addPlayerFrag(cid, 1) elseif getPlayerSkullType(target) == SKULL_NONE then addPlayerFrag(cid, 1) end return TRUE end end e adicione isso em creatures.xml <event type="kill" name="Frags" event="script" value="frags.lua"/> se mesmo com continuar dando erro, poste aqui e me diz se dá erro no distro e qual distro/versão você está usando Te ajudei? Se você achar que eu mereço, me dê uma "rep+" e selecione meu post como "melhor resposta" Skype: JoadsonAion
Postado Janeiro 19, 2013 12 anos Autor Administrador Cara Seguinte eu testei e deu esse erro no distro TibiaKing Team- KingTópicos www.tibiaking.com
Postado Janeiro 19, 2013 12 anos Execute isso no seu phpmyadmin CREATE TABLE `killers` ( `id` int(11) NOT NULL AUTO_INCREMENT, `death_id` int(11) NOT NULL, `final_hit` tinyint(1) unsigned NOT NULL DEFAULT '0', `unjustified` tinyint(1) unsigned NOT NULL DEFAULT '0', `war` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `death_id` (`death_id`), CONSTRAINT `killers_ibfk_1` FOREIGN KEY (`death_id`) REFERENCES `player_deaths` (`id`) ON DELETE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=latin1; você por acaso colocou algum sistema de war e esqueceu de executar os codigos mysql? Editado Janeiro 19, 2013 12 anos por joadson (veja o histórico de edições) Te ajudei? Se você achar que eu mereço, me dê uma "rep+" e selecione meu post como "melhor resposta" Skype: JoadsonAion
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.