Ir para conteúdo

Featured Replies

Postado
  • 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

  • Respostas 7
  • Visualizações 823
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • 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`

Postado

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 :D

Te ajudei?
Se você achar que eu mereço, me dê uma "rep+" e selecione meu post como "melhor resposta"

 

Skype: JoadsonAion

Postado

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 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.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo