//==================================================================================
// ___ _ _ __ __ __ __ ___ ____ __ _ _ ___ ___ ==
// ( ,)( \/ ) / _)/ \( \/ )( _)(_ _)/ \( \/\/ )( _)( ,) ==
// ) ,\ \ / ( (_( () )) ( ) _) )( ( () )\ / ) _) ) \ ==
// (___/(__/ \__)\__/(_/\/\_)(___) (__) \__/ \/\/ (___)(_)\_) ==
// ==
//==================================================================================
- script OnDieG5 -1,{
set $killing,0; //Modo PK em 1000 kills (1 = ON / 0 = Off)
setarray .@mapaspvp$[0],"guild_vs3"; //Seus mapas de pvp
OnPCKillEvent:
getmapxy(@mapa$,@x,@y,0);
for(set @c,0; @c < getarraysize(.@mapaspvp$); set @c,@c+1)
if(@mapa$ == .@mapaspvp$[@c])
{
set killer,killer+1;
if(killer == 5)
{
set title,1;
dispbottom "Você desbloqueou um novo título, relogue para ativar";
}
if(killer == 10)
{
set title,2;
dispbottom "Você desbloqueou um novo título, relogue para ativar";
}
if(killer == 20)
{
set title,3;
dispbottom "Você desbloqueou um novo título, relogue para ativar";
}
if(killer == 30)
{
set title,4;
dispbottom "Você desbloqueou um novo título, relogue para ativar";
}
if(killer == 40)
{
set title,5;
dispbottom "Você desbloqueou um novo título, relogue para ativar";
}
if(killer == 50)
{
set title,6;
dispbottom "Você desbloqueou um novo título, relogue para ativar e entrou em modo PK";
}
end;
}
OnPCDieEvent:
getmapxy(@mapa$,@x,@y,0);
for(set @c,0; @c < getarraysize(.@mapaspvp$); set @c,@c+1)
if(@mapa$ == .@mapaspvp$[@c])
{
set killer,0;
}
end;
}
- script TitleG5 -1,{
OnPCLoginEvent:
setarray .@titles$[0],"","{Matador}","{Limpa Trilho}","{OMG}","{Profissional}","{Terror do PvP}","{PK}";
atcommand "@fakename "+.@titles$[title]+strcharinfo(0);
if(title == 6)
{
if($killing == 1)
{
atcommand "@killable";
atcommand "@killer";
}
}
end;
}
O npc era um sistema de titulos em pvp e modo pk.
ao desabilitar ele voltou a funcionar, Obrigado a todos...